:root {
    --brand-primary: #00f3ff;
    --brand-accent: #bc13fe;
    --brand-bg: #020205;
    --brand-text: #e0faff;
    --glass-bg: rgba(0, 243, 255, 0.02);
    --glass-border: rgba(0, 243, 255, 0.15);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--brand-bg);
    color: var(--brand-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

::selection {
    background: var(--brand-primary);
    color: #fff;
}

/* 3D Canvas fixed in background */
#canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none !important; /* Let clicks pass through to HTML content */
}

/* Foreground content container */
.content {
    position: relative;
    z-index: 1;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

header nav a {
    color: var(--brand-text);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

header nav a:hover {
    opacity: 0.6;
}

/* Layout Utilities */
.section {
    min-height: 100vh;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--brand-accent);
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--brand-text);
    color: var(--brand-bg);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    color: white;
}

.cta-btn.outline {
    background: transparent;
    border: 1px solid var(--brand-text);
    color: var(--brand-text);
}

.cta-btn.outline:hover {
    background: var(--brand-text);
    color: var(--brand-bg);
}

/* Hero Section */
#hero {
    align-items: flex-start;
}

.hero-content {
    max-width: 800px;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-content .main-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero-content .hero-desc {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
#about {
    align-items: flex-end;
    text-align: right;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* Works Section */
#works {
    align-items: center;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.work-card {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.work-card:hover::before {
    opacity: 0.8;
}

.work-card-inner {
    position: relative;
    z-index: 2;
}

.work-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.work-card p {
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Contact Section */
#contact {
    text-align: center;
    align-items: center;
}

#contact h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* --- Hamburger Menu Styles --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--brand-text);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 5rem 3rem;
    }
    .hero-content .main-title {
        font-size: clamp(3.5rem, 6vw, 6rem);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 2, 5, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    header nav.active {
        right: 0;
    }
    header nav a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }
    
    /* Animation for burger */
    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section {
        padding: 4rem 1.5rem;
        text-align: center;
    }
    #hero {
        align-items: center;
        text-align: center;
    }
    .hero-content .main-title {
        font-size: 3rem;
    }
    #about {
        align-items: center;
        text-align: center;
    }
    .about-content h2 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
    #contact h2 {
        font-size: 3rem;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
}
