/* Custom CSS Variables for Lumen Theme */
@font-face {
    font-family: 'Garet';
    src: url('Font BM/Garet-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Garet';
    src: url('Font BM/Garet-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'TT Ramillas';
    src: url('Font BM/TT Ramillas Trial Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'TT Ramillas';
    src: url('Font BM/TT Ramillas Trial Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-color: #0A0A0C;
    --bg-darker: #050506;
    --surface-color: #16161A;
    --surface-hover: #1E1E24;
    
    /* Lumen Accent Colors */
    --accent-primary: #d4f424; /* Neon Lime */
    --accent-secondary: #00f0ff; /* Glowing Cyan */
    
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    
    --font-heading: 'TT Ramillas', serif;
    --font-body: 'Garet', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for award-winning feel */
}

html {
    /* Remove smooth behavior to let Lenis handle it */
    overscroll-behavior: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 244, 36, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover-active {
    transform: translate(-50%, -50%) scale(0);
}

.cursor-follower.hover-active {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 244, 36, 0.1);
    border-color: var(--accent-primary);
    backdrop-filter: blur(2px);
}

/* WebGL Canvas */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Behind everything */
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    z-index: 2; /* Above canvas */
    scroll-margin-top: 100px; /* Prevents fixed navbar from cutting off section headers */
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden; /* For GSAP reveal */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0; /* 30% thinner */
    background: transparent;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.lang-btn {
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--accent-primary);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-color);
    border: 2px solid var(--accent-primary);
    opacity: 0.9;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(212, 244, 36, 0.4);
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    /* Inherit padding from .btn so heights match perfectly */
}

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

.mt-4 { margin-top: 2rem; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center; /* Ensure buttons are vertically aligned */
}


/* What We Do */
#what-we-do {
    padding: 2.5rem 0; /* More compact */
}

#what-we-do .section-title {
    margin-bottom: 2rem; /* Reduced space below title */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* Tighter grid */
}

.feature-card {
    background: rgba(22, 22, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem; /* More compact inner padding */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: rgba(212, 244, 36, 0.2);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Work */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(212, 244, 36, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.parallax-img {
    width: 100%;
    height: 130%; /* Taller for parallax room */
    object-fit: cover;
    transform: translateY(-15%); /* Center it initially */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover .parallax-img {
    transform: translateY(-15%) scale(1.05); /* Combine GSAP parallax with hover scale */
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.portfolio-overlay p {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conspiracy Layout (Services Redesign) */
.conspiracy-section {
    position: relative;
    padding: 4rem 0; /* More compact */
    overflow: hidden;
}

.conspiracy-container {
    position: relative;
    display: flex;
    justify-content: flex-end; /* Push items to the right */
    min-height: 50vh; /* Removed excess height */
}

/* Massive Background Text */
.conspiracy-bg-text {
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 25rem);
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.02); /* Extremely faint */
    z-index: 1;
    pointer-events: none;
    letter-spacing: -5px;
}

/* Diagonal Line */
.diagonal-line {
    position: absolute;
    top: -20%;
    left: 40%;
    width: 1px;
    height: 140%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(35deg);
    z-index: 2;
    pointer-events: none;
}

/* Geometric Circle (Reference Match) */
.conspiracy-circle {
    position: absolute;
    top: 15%;
    left: 25%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Staggered List */
.conspiracy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Reduced gap for compactness */
    width: 60%;
    z-index: 10;
    position: relative;
    padding-top: 2rem;
}

.conspiracy-item {
    transition: var(--transition);
}

/* Staggering the items visually - Reduced for compactness */
.conspiracy-item:nth-child(1) { margin-left: 0; }
.conspiracy-item:nth-child(2) { margin-left: 5%; }
.conspiracy-item:nth-child(3) { margin-left: 10%; }
.conspiracy-item:nth-child(4) { margin-left: 15%; }

.conspiracy-item h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem); /* Slightly smaller */
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.conspiracy-item p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-left: 2rem; /* Reduced indent */
    line-height: 1.5;
    opacity: 0.8;
}

/* Hover Effects */
.conspiracy-item:hover h3 {
    color: var(--accent-primary);
    transform: translateX(20px);
}

.conspiracy-item:hover h3::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary); /* The red dot equivalent */
    border-radius: 50%;
}

.conspiracy-item:hover p {
    color: var(--text-primary);
    opacity: 1;
}

@media (max-width: 900px) {
    .conspiracy-list {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .conspiracy-item:nth-child(n) {
        margin-left: 0;
    }
    
    .conspiracy-item p {
        margin-left: 0;
        text-align: center;
    }
    
    .diagonal-line {
        display: none; /* Hide complex geometry on mobile */
    }
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    width: 100px;
    flex-shrink: 0;
}

.service-item:hover .service-num {
    color: var(--accent-primary);
}

.service-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* --- Clients Marquee --- */
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: max-content;
    padding-left: 6rem;
    animation: marqueeScroll 60s linear infinite; /* 30-50% slower */
    animation-direction: reverse; /* Moves to the right */
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.client-logo {
    height: 180px; /* 10% bigger */
    width: auto;
    max-width: 450px;
    object-fit: contain;
    /* Premium standardization: Make white & slightly transparent */
    filter: grayscale(100%) contrast(0) brightness(200%) opacity(0.4);
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0) contrast(1) brightness(100%) opacity(1);
    transform: scale(1.1);
}

/* Footer / Contact */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* Reduced gap */
    margin-bottom: 2rem; /* Reduced margin */
}

.footer-col h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.footer-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.location h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* GSAP Helper styles */
.reveal-text, .reveal-card, .reveal-service {
    visibility: hidden; /* Hide before GSAP takes over */
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    * {
        cursor: auto; /* Disable custom cursor on mobile */
    }
    .cursor, .cursor-follower {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .service-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-num {
        width: auto;
    }
    
    .footer-locations {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: none;
    z-index: 2001;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Lead Form */
.lead-form {
    background: rgba(22, 22, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem; /* Reduced for compactness */
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1rem; /* Reduced for compactness */
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem; /* Reduced for compactness */
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(212, 244, 36, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
    resize: vertical;
}

.w-100 {
    width: 100%;
}

/* Validation Popup */
.validation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.validation-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.validation-popup .popup-content {
    background: var(--bg-darker);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 244, 36, 0.3);
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.validation-popup.active .popup-content {
    transform: scale(1);
}

.validation-popup h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.validation-popup p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Floating Dock */
.floating-dock {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(12px);
    padding: 1.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1500;
    animation: floatDock 6s ease-in-out infinite; /* Breathing effect */
}

@keyframes floatDock {
    0% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-52%) translateX(-2px); }
    100% { transform: translateY(-50%) translateX(0); }
}

.dock-item {
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring-like transition */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    position: relative;
}

.dock-item:hover {
    color: var(--accent-primary);
    transform: scale(1.25) translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(212, 244, 36, 0.5));
}

@media (max-width: 768px) {
    .floating-dock {
        right: 1rem;
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    .dock-item svg {
        width: 20px;
        height: 20px;
    }
}
