:root {
    --ink-black: #010B13;
    --dark-slate: #05101a;
    --cyan: #00FFFF;
    --magenta: #FF00FF;
    --white: #FFFFFF;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-premium: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--ink-black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.font-heading {
    font-family: var(--font-heading);
}

/* --- UI COMPONENTS --- */

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

/* Preloader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--ink-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.8em;
    display: block;
    margin-bottom: 30px;
    color: var(--white);
}

.loader-progress-container {
    width: 300px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.05em;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
    transition: all 0.4s var(--transition-premium);
}

.nav-link:hover {
    opacity: 1;
    color: var(--cyan);
    transform: translateY(-2px);
}

/* --- SECTIONS --- */

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, var(--ink-black) 90%);
    z-index: 3;
    pointer-events: none;
}

.hero-text-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.giant-text {
    font-size: 14vw;
    line-height: 0.8;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.giant-text.filled {
    color: var(--white);
    -webkit-text-stroke: 0;
    position: absolute;
    clip-path: circle(180px at var(--mouse-x) var(--mouse-y));
    z-index: 4;
}

.sphere-container {
    width: 32vw;
    height: 32vw;
    max-width: 450px;
    max-height: 450px;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 120px rgba(0, 255, 255, 0.25);
    background: #000;
}

.sphere-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
}

.sphere-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 255, 0.15));
    mix-blend-mode: overlay;
}

.hero-tagline {
    position: absolute;
    bottom: 15vh;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.8em;
    text-transform: uppercase;
    color: var(--cyan);
    z-index: 5;
    opacity: 0.7;
}

.init-scroll {
    position: absolute;
    bottom: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0.2;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

/* Work */
#work {
    min-height: 400vh;
    background: var(--dark-slate);
}

.work-pinned-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-indicator {
    position: absolute;
    top: 60px;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 20px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--magenta);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--magenta);
}

.indicator-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.3;
}

.work-bg-text {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 12vw;
    font-weight: 700;
    color: var(--white);
    opacity: 0.015;
    pointer-events: none;
    white-space: nowrap;
}

.cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.work-card {
    position: absolute;
    width: 900px;
    height: 550px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    padding: 70px;
    gap: 50px;
    will-change: transform, opacity;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5);
}

.card-img-container {
    width: 45%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #000;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.6s var(--transition-premium);
}

.work-card:hover .card-img-container img {
    transform: scale(1.08);
    opacity: 1;
}

.card-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 15px;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 25px;
    color: var(--white);
}

.card-content p {
    font-size: 1.1rem;
    opacity: 0.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.card-link {
    text-decoration: none;
    color: var(--magenta);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 18px;
}

/* Skills */
#skills {
    padding: 200px 5vw;
    background: var(--dark-slate);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.skill-widget {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 60px;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.skill-widget:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.span-4 { grid-column: span 4; }
.span-2 { grid-column: span 2; }

.skill-widget.neon-inset-cyan {
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: inset 0 0 50px rgba(0, 255, 255, 0.02);
}

.widget-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    opacity: 0.3;
    margin-bottom: 20px;
}

.widget-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.sub-value {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.4;
    margin-left: 15px;
    color: var(--cyan);
}

.widget-desc {
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.5;
    font-weight: 300;
}

.skill-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.skill-pill {
    padding: 12px 24px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--cyan);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Contact */
#contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 150px 5vw 100px;
    background: var(--ink-black);
}

.marquee-bg {
    position: absolute;
    width: 200%;
    font-family: var(--font-heading);
    font-size: 22vw;
    font-weight: 700;
    opacity: 0.02;
    white-space: nowrap;
    letter-spacing: -0.06em;
    pointer-events: none;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 7vw;
    font-weight: 700;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
    margin-bottom: 100px;
    letter-spacing: -0.02em;
}

.contact-links {
    display: flex;
    gap: 80px;
    justify-content: center;
}

.contact-link-item {
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.contact-icon {
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: rgba(255, 255, 255, 0.01);
    color: var(--cyan);
    transition: all 0.5s var(--transition-premium);
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s var(--transition-premium);
}

.contact-link-item:hover .contact-icon {
    border-color: transparent;
    transform: translateY(-8px);
}

.contact-link-item:hover .contact-icon::after {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

#footer {
    margin-top: 200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    opacity: 0.25;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .work-card {
        width: 85vw;
        padding: 50px;
        gap: 30px;
    }
    .card-content h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .work-card {
        flex-direction: column;
        height: auto;
    }
    .card-img-container, .card-content {
        width: 100%;
    }
    .card-img-container {
        height: 300px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .span-4, .span-2 {
        grid-column: span 1;
    }
    .contact-links {
        flex-direction: column;
        gap: 60px;
    }
}
