:root {
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --bg-light: #f5f5f5;
    
    --accent: #dcf241; /* Electrifying lime/yellow often seen in premium sites */
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-dark: #050505;
    --text-dark-sec: rgba(5, 5, 5, 0.6);

    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =======================================
   RESET & LENIS SETUP
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    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-scrolling iframe {
    pointer-events: none;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Noise Grain Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 999999;
}

/* Hide scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* =======================================
   CUSTOM CURSOR
   ======================================= */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%); /* Start offset handled in JS */
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(220, 242, 65, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translate(-50%, -50%);
}

.cursor.magnetic-active {
    width: 60px;
    height: 60px;
    background: rgba(220, 242, 65, 0.1);
    border: 1px solid var(--accent);
    mix-blend-mode: normal;
}

.cursor-follower.magnetic-active {
    opacity: 0;
}

/* Work Item Cursor overriding */
.work-item:hover ~ .cursor, .work-item:hover ~ .cursor-follower {
    opacity: 0;
}

/* =======================================
   PRELOADER
   ======================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.2em;
    overflow: hidden;
    display: flex;
}

.preloader-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
}

.preloader-progress {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
}

body.loading {
    overflow: hidden;
}

/* =======================================
   TYPOGRAPHY & UTILS
   ======================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
}

p {
    font-weight: 300;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-end {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 8vh;
}

.text-center { text-align: center; }
.text-dark { color: var(--text-dark); }
.bg-light { background: var(--bg-light); }
.dark { background: var(--bg-primary); color: var(--text-primary); }
.light { background: var(--bg-light); color: var(--text-dark); }
.accent { color: var(--accent); }

.outline-text {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--text-primary);
}
.outline-text.light {
    -webkit-text-stroke: 1px var(--text-primary);
}

.split-text {
    /* For split-type */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.line {
    overflow: hidden;
}

.word {
    display: inline-block;
}

/* =======================================
   NAV
   ======================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    z-index: 1000;
    mix-blend-mode: difference;
    color: #fff;
}

.logo a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: 0.1em;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    padding: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#sound-toggle {
    background: transparent;
    border: none;
    color: inherit;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sound-bars {
    display: flex;
    gap: 2px;
    height: 12px;
    align-items: flex-end;
}

.sound-bars .bar {
    width: 2px;
    background: currentColor;
    height: 20%;
    transition: height 0.2s ease;
}

#sound-toggle.playing .bar {
    animation: sound 1s infinite alternate;
}
#sound-toggle.playing .bar:nth-child(2) { animation-delay: 0.2s; }
#sound-toggle.playing .bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes sound {
    0% { height: 20%; }
    100% { height: 100%; }
}

.cta-mini {
    position: relative;
    color: #000;
    background: var(--accent);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 50px;
    overflow: hidden;
    display: inline-block;
}

.cta-text {
    display: block;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-text::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
}

.cta-mini:hover .cta-text {
    transform: translateY(-100%);
}

/* =======================================
   PANELS & LAYOUT
   ======================================= */
.panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    z-index: 0;
    will-change: transform;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5,5,5,0.6);
}

.overlay.gradient {
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.2) 100%);
}

.panel > .container {
    position: relative;
    z-index: 10;
    height: 100vh;
}

/* =======================================
   HERO
   ======================================= */
.hero-content h1 {
    font-size: clamp(4rem, 12vw, 12rem);
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* =======================================
   VISION
   ======================================= */
.vision-content h2 {
    font-size: clamp(3rem, 7vw, 7rem);
    margin: 2rem 0;
    color: var(--text-dark);
}

.vision-content .outline-text {
    -webkit-text-stroke: 1px var(--text-dark);
}

.overline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pill-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
}

.dark-pill {
    border: 1px solid rgba(5,5,5,0.2);
    color: var(--text-dark);
}

/* =======================================
   CGI UNIVERSE (Split Layout)
   ======================================= */
.split-layout {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .split-layout {
        flex-direction: row;
    }
}

.split-left, .split-right {
    flex: 1;
    position: relative;
}

.split-left {
    padding: 15vh 5vw;
}

.content-box h2 {
    font-size: clamp(4rem, 8vw, 9rem);
    margin: 1rem 0 2rem;
}

.content-box .desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 450px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 2.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

.mt-8 { margin-top: 3rem; }

.split-right {
    background: var(--bg-secondary);
    min-height: 50vh;
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: var(--transition-smooth);
}

.img-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =======================================
   WORK Grid
   ======================================= */
.work-section {
    padding-top: 15vh;
    padding-bottom: 15vh;
    background: var(--bg-primary);
}

.work-section .container {
    height: auto;
}

.section-header {
    margin-bottom: 15vh;
}

.section-header h2 {
    font-size: clamp(4rem, 10vw, 10rem);
    text-align: right;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8vh;
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5vw;
    }
    .offset-top {
        margin-top: 15vh;
    }
}

.work-item {
    cursor: none;
}

.work-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #111;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.work-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 10;
}

.work-img-wrapper:hover .work-overlay {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.work-arrow {
    color: #000;
    font-size: 2rem;
}

.work-info h3 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.5rem;
}

.work-info span {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
    height: 100vh;
}

.massive-text {
    font-size: clamp(5rem, 15vw, 15rem);
    margin-bottom: 5vh;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links a {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
}

.contact-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.contact-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    margin-top: 15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.back-to-top {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.back-to-top:hover {
    color: var(--accent);
}
