/* --- RESET & CORE --- */
:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* System fonts for speed */
    --easing: cubic-bezier(0.16, 1, 0.3, 1); /* "Apple-like" smooth easing */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hiding default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    font-size: 16px;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* --- INTRO SECTION --- */
.section-intro {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Video */
.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Dimmed for premium text readability */
    filter: grayscale(100%) contrast(1.2); /* Black & White filter */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make text pop */
    background: radial-gradient(circle, rgba(5,5,5,0) 0%, rgba(5,5,5,1) 90%);
}

/* Typography & Layout */
.intro-content {
    text-align: center;
    z-index: 2;
    mix-blend-mode: difference; /* Creates cool inversion effect */
}

.brand-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.brand-name {
    font-size: clamp(3rem, 15vw, 12rem); /* Responsive giant text */
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    will-change: transform;
}

.cta-wrapper {
    margin-top: 4rem;
}

.btn-main {
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.4s var(--easing);
}

.btn-main:hover {
    background: white;
    color: black;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: white;
    animation: scrollLine 2s infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Animation Classes (Controlled by JS) */
.anim-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s var(--easing), transform 1.5s var(--easing);
}

.anim-text.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- GLOBAL FILM GRAIN --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg'); /* Lightweight SVG noise */
}

/* --- SECTIONS GENERAL --- */
.section-padding {
    padding: 10rem 2rem;
    position: relative;
    background-color: var(--bg-color);
    z-index: 5; /* Sit above the fixed intro video if needed */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 Label, 2/3 Content */
    gap: 4rem;
}

/* --- ABOUT TYPOGRAPHY --- */
.about-label span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    display: block;
}

.about-content h3 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 400; /* Thinner weights look more premium */
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.about-content .body-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #aaa;
    max-width: 600px;
    margin-bottom: 1rem;
}

.spacer-small {
    height: 3rem;
}

/* --- MASK ANIMATION LOGIC --- */
/* The parent hides the overflow */
.text-mask {
    overflow: hidden; 
    position: relative;
    display: block;
}

/* The child sits "below" the visible area initially */
.anim-line-up {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s var(--easing), opacity 1s var(--easing);
    will-change: transform;
    display: block;
}

/* The active state triggers the slide up */
.anim-line-up.in-view {
    transform: translateY(0);
    opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 2rem;
    }
    .section-padding {
        padding: 6rem 1.5rem;
    }
}


/* --- WIDE GALLERY LAYOUT --- */
.container-fluid {
    width: 95%; /* Almost full width for cinematic feel */
    max-width: 1800px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    padding-left: 2.5%; /* Align with grid if needed */
}

.label-text {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #666;
    text-transform: uppercase;
}

/* --- VIDEO ITEM STRUCTURE --- */
.video-item {
    margin-bottom: 8rem; /* Space between projects */
    position: relative;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 80vh; /* Tall, immersive height */
    overflow: hidden;
    cursor: none; /* Hide default cursor inside here */
    background: #111; /* Loading placeholder color */
}

/* --- IMAGE & VIDEO LAYERING --- */
.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits on top of video */
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
    background: black;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* Darken image slightly for text contrast */
    transition: transform 1.2s var(--easing), opacity 0.5s ease;
}

/* --- TEXT OVERLAY --- */
.video-info {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through to wrapper */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-title {
    font-size: clamp(2rem, 6vw, 5rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.project-cat {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
}

/* --- INTERACTION STATES --- */
/* Hover State: Zoom image */
.video-wrapper:hover .video-poster img {
    transform: scale(1.05);
    opacity: 0.5;
}

/* Active State (Class added by JS): Hide poster */
.video-wrapper.is-playing .video-poster {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper.is-playing .video-info {
    opacity: 0;
    transform: translateY(20px);
}

/* --- MAGNETIC PLAY BUTTON --- */
.play-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none; /* Physics handled by JS */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%) scale(0); /* Hidden by default */
    transition: transform 0.3s var(--easing); /* Smooth reveal */
    mix-blend-mode: exclusion; /* Makes it cool over images */
}

.play-cursor span {
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Show play button on hover */
.video-wrapper:hover .play-cursor {
    transform: translate(-50%, -50%) scale(1);
}

/* Hide play button when playing */
.video-wrapper.is-playing .play-cursor {
    transform: translate(-50%, -50%) scale(0) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .video-wrapper {
        height: 50vh;
    }
    .video-info {
        bottom: 1.5rem;
        left: 1.5rem;
    }
    .play-cursor {
        display: none; /* Disable magnetic cursor on touch devices */
    }
    .video-wrapper {
        cursor: pointer; /* Restore default pointer */
    }
}

/* --- REELS SECTION SPECIFIC --- */

/* --- REELS SECTION (NEW) --- */
.section-reels {
    padding: 5rem 0 10rem 0;
    overflow: hidden;
    background: var(--bg-color);
    margin-top:-70px;
}

.header-wrapper {
    padding-left: 2.5%;
    margin-bottom: 3rem;
}

/* Window & Track */
.reels-window {
    width: 100%;
    overflow: hidden; /* Hide scrollbars completely */
    cursor: grab;
    /* Create 3D space for the skew effect */
    perspective: 1000px; 
}

.reels-window:active {
    cursor: grabbing;
}

.reels-track {
    display: flex;
    gap: 4vw;
    padding: 0 5vw; /* Side padding */
    width: max-content; /* Allow track to be as long as needed */
    will-change: transform; /* Performance optimization */
    /* We remove default scrolling to handle it via JS transform */
}

/* Individual Items */
.reel-item {
    position: relative;
    width: 25vw; /* Desktop width */
    max-width: 350px;
    min-width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* The skew happens here */
    transform-style: preserve-3d;
    will-change: transform;
}

.reel-inner {
    position: relative;
    width: 100%;
    padding-top: 177.77%; /* 9:16 Aspect */
    background: #111;
    overflow: hidden;
    border-radius: 4px; /* Subtle premium curve */
}

.reel-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}

/* Hover Effect: Scale Image */
.reel-item:hover .reel-inner img {
    transform: scale(1.1);
}

/* Overlay with Text */
.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

.reel-overlay span {
    border: 1px solid white;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.reel-item:hover .reel-overlay {
    opacity: 1;
}

.reel-meta {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

/* --- LIGHTBOX (FIXES PLAYBACK) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* Click through when hidden */
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    height: 85vh;
    aspect-ratio: 9/16;
    background: black;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.lightbox-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .reel-item {
        width: 70vw; /* Wider on mobile */
    }
    
    .reels-track {
        gap: 2rem;
    }

    .lightbox-content {
        width: 100%;
        height: 100%; /* Full screen on mobile */
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
        z-index: 10001;
    }
}




/* --- CONTACT SECTION SPECIFIC --- */
.section-contact {
    margin-bottom: 2rem;
}

.big-heading {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

/* --- THE GRID --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Equal columns */
    gap: 1px; /* The gap creates the border effect if we used a bg, but here we use distinct borders */
    width: 100%;
}

/* --- THE CARDS (BUTTONS) --- */
.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px; /* Tall, imposing buttons */
    border: 1px solid #333; /* Dark grey subtle borders initially */
    padding: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s var(--easing);
    background: transparent;
}

/* Fix borders to prevent double-thickness */
.contact-card + .contact-card {
    border-left: none; 
}

/* --- ICONS --- */
.icon-box {
    width: 60px;
    height: 60px;
}

.icon-box svg {
    width: 100%;
    height: 100%;
    /* 'currentColor' allows the SVG to take the text color */
    fill: currentColor; 
}

/* --- TEXT --- */
.card-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-text span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sub-link {
    font-size: 0.9rem;
    color: #666;
    transition: color 0.4s ease;
}

/* --- HOVER EFFECTS --- */
.contact-card:hover {
    background: white;
    color: black; /* This flips the SVG fill and the main text */
    border-color: white;
}

.contact-card:hover .sub-link {
    color: #333; /* Make subtext readable on white */
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    
    .contact-card {
        height: 150px; /* Shorter on mobile */
        flex-direction: row; /* Horizontal layout on mobile */
        align-items: center;
        border: 1px solid #333 !important; /* Restore borders */
        margin-bottom: -1px; /* Collapse borders */
    }

    .icon-box {
        width: 40px;
        height: 40px;
    }

    .big-heading {
        margin-bottom: 2rem;
    }
}

/* --- FOOTER SPECIFIC --- */
footer {
    padding: 6rem 0 2rem 0;
    border-top: 1px solid #222; /* Subtle separation */
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Brand gets more space */
    gap: 2rem;
    margin-bottom: 6rem;
}

/* Typography */
.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #444; /* Darker grey for "watermark" feel */
}

.footer-col p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.faded {
    opacity: 0.5;
}

/* Social Links */
.footer-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.5;
}

/* Back to Top Button */
.btn-top {
    background: none;
    border: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    cursor: none; /* We use custom cursor */
}

.btn-top span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.arrow-up {
    width: 40px;
    height: 40px;
    transition: transform 0.5s var(--easing);
}

.btn-top:hover .arrow-up {
    transform: translateY(-10px);
}

/* Footer Bottom Bar */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    border-top: 1px solid #111;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.legal-links a {
    text-decoration: none;
    color: #555;
    margin-left: 2rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack everything */
        gap: 3rem;
        text-align: center;
    }
    
    .btn-top {
        align-items: center; /* Center button on mobile */
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .legal-links a {
        margin: 0 1rem;
    }
}