:root {
    --bg: #1e1e2e;
    /* Mantle */
    --surface: #181825;
    /* Crust */
    --text: #cdd6f4;
    /* Text */
    --blue: #89b4fa;
    --mauve: #cba6f7;
    --green: #a6e3a1;
    --sapphire: #74c7ec;
    --yellow: #f9e2af;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Background */
#energy-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    background: rgba(24, 24, 37, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--blue);
    position: sticky;
    top: 0;
    z-index: 100;
}

header img {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(137, 180, 250, 0.3));
}



nav a {
    color: var(--text);
    margin-left: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    color: var(--blue);
    transform: translateY(-2px);
}

.logo img {
    width:auto;
    height:40px;
    overflow:hidden;
}

.hero {
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--blue), var(--mauve), var(--sapphire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: rgba(116, 199, 236, 0.2);
    color: var(--sapphire);
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--sapphire);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(116, 199, 236, 0.2);
    cursor: pointer;
}

.btn:hover {
    background: var(--sapphire);
    color: var(--surface);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 25px rgba(116, 199, 236, 0.4);
}

.btn-secondary {
    background: rgba(203, 166, 247, 0.15);
    color: var(--mauve);
    border: 1px solid var(--mauve);
}

.btn-secondary:hover {
    background: var(--mauve);
    color: var(--surface);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 25px rgba(203, 166, 247, 0.4);
}

.section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--bg);
    position: relative;
    z-index: 1;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50px;
    background: var(--blue);
    transform: translateX(-50%);
}

.section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.card {
    background: rgba(24, 24, 37, 0.6);
    border: 1px solid rgba(137, 180, 250, 0.2);
    border-radius: 16px;
    padding: 2rem;
    width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(137, 180, 250, 0.2);
    border-color: var(--blue);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--sapphire);
}

.card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--sapphire);
}

.projects {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.8;
}

.projects strong {
    color: var(--mauve);
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(24, 24, 37, 0.8);
    border: 1px solid var(--blue);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.contact-form textarea {
    min-height: 120px;
}

footer {
    background: var(--surface);
    color: var(--text);
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(137, 180, 250, 0.1);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.95rem;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }
}
