/* ═══════════════════════════════════════════════════════════
   CHANDRAKANT — CINEMATIC PORTFOLIO
   Premium Dark Theme with Neon Blue/Purple Accents
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --bg: #0b0b0b;
    --bg-alt: #111111;
    --text: #f0f0f0;
    --text-dim: #888888;
    --text-muted: #555555;
    --accent: #6C63FF;
    --accent-glow: rgba(108, 99, 255, 0.45);
    --accent2: #BF5AF2;
    --accent2-glow: rgba(191, 90, 242, 0.4);
    --accent3: #0A84FF;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-h: 72px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── Reset ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

html {
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

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

a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; }
img { display: block; max-width: 100%; }

/* ── Custom Cursor ── */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .custom-cursor { display: none; }
    body, a, button { cursor: auto; }
}

.cursor-hover .cursor-ring {
    transform: scale(1.8);
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.1);
}

.cursor-hover .cursor-dot {
    transform: scale(0.5);
}

@media (max-width: 768px) {
    .custom-cursor { display: none; }
    body, a, button { cursor: auto; }
}

/* ═══════════════════════════════════════
   1. CINEMATIC INTRO — Design Cover
   ═══════════════════════════════════════ */
.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #0b0b0b;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

/* Textures */
.intro-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
    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");
}

.intro-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Meta */
.intro-top-meta {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(10px);
}

.meta-divider {
    margin: 0 1rem;
    color: var(--accent);
}

/* Main Title */
.intro-main-wrap {
    position: relative;
    padding: 3rem 4rem;
}

.intro-title {
    font-size: clamp(2.5rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin: 0;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: 0.02em;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light Source Letter */
.char.light-source {
    position: relative;
    -webkit-text-fill-color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 50px rgba(108, 99, 255, 0.4);
}

.char.light-source::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
}

/* Signature */
.intro-signature {
    position: absolute;
    top: 105%; /* Pushes it strictly below the main title */
    right: 5%;
    width: min(350px, 40vw);
    z-index: 20;
    pointer-events: none;
}

@media (max-width: 768px) {
    .intro-signature {
        top: 110%; /* More clearance on mobile */
        right: 50%;
        transform: translateX(50%);
        width: min(280px, 80vw);
    }
}

.signature-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.signature-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    opacity: 1; /* JS will fade this out */
}

.signature-text-plain {
    font-size: 85px;
    font-family: 'Dancing Script', cursive; /* Professional Cursive Style */
    font-weight: 700;
    fill: #22c55e;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
}

/* Tool Icons */
.intro-tool-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.intro-tool-icon.pr { top: -20px; left: 15%; color: #9999ff; border-color: #4a4acc; }
.intro-tool-icon.ai { top: -20px; right: 15%; color: #ff9a00; border-color: #cc7000; }
.intro-tool-icon.dr { bottom: 20%; right: -20px; color: #ffcc66; }
.intro-tool-icon.ae { top: 35%; left: -20px; color: #cc99ff; border-color: #7a4acc; }

@media (max-width: 768px) {
    .intro-main-wrap {
        padding: 2rem 1rem; /* Reduced padding to fit more in viewport */
    }
    .intro-tool-icon {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    .intro-tool-icon.pr { left: 10%; top: -10px; }
    .intro-tool-icon.ai { right: 10%; top: -10px; }
    .intro-tool-icon.dr { right: 10%; bottom: 10%; }
    .intro-tool-icon.ae { left: 10%; top: 40%; }
}

.intro-tool-icon svg {
    width: 20px;
    height: 20px;
}

/* Selection Box */
.intro-selection {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.sel-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border: 1px solid #fff;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
}

.sel-corner.tl { top: -5px; left: -5px; }
.sel-corner.tr { top: -5px; right: -5px; }
.sel-corner.bl { bottom: -5px; left: -5px; }
.sel-corner.br { bottom: -5px; right: -5px; }

.sel-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
}

.sel-line.l, .sel-line.r { width: 1px; height: 0; top: 0; }
.sel-line.t, .sel-line.b { height: 1px; width: 0; left: 0; }
.sel-line.l { left: 0; }
.sel-line.r { right: 0; }
.sel-line.t { top: 0; }
.sel-line.b { bottom: 0; }

/* Progress */
.intro-progress-wrap {
    position: absolute;
    bottom: 4rem;
    width: min(250px, 50vw);
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
}

.intro-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* Final Zoom Exit */
.intro-loader.fade-out {
    opacity: 0;
    background: transparent;
    transition: all 1.2s cubic-bezier(0.7, 0, 0.3, 1);
    pointer-events: none;
}


/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(-20px);
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.logo:hover::after { width: 100%; }

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text);
}
.nav-links a:hover::after { width: 100%; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    z-index: 1002;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }

.mobile-menu-link:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    height: 88vh; /* Further reduced from 92vh to ensure high-visibility peak */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(11, 11, 11, 0.4); /* Thinner dark overlay */
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        radial-gradient(ellipse at center, transparent 0%, var(--bg) 85%),
        radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(191, 90, 242, 0.08) 0%, transparent 50%);
}

.hero-overlay-noise {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    /* Removed mix-blend-mode for huge scroll performance boost */
}

/* ═══════════════════════════════════════
   0. GLOBAL 3D BACKGROUND
   ═══════════════════════════════════════ */
.three-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 7.5vw, 7.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    width: 100%;
}

.hero-3d-elements {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-svg-item {
    position: absolute;
    will-change: transform;
    opacity: 0;
    animation: fadeInSVG 2s ease forwards 1s;
}

@keyframes fadeInSVG {
    to { opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    opacity: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-dim);
    opacity: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-wrap: balance;
}

.hero-tagline-highlight {
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

@media (max-width: 768px) {
    .section-container { padding: 5rem 1.5rem; }
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
}

/* Reveal animation base */
.reveal-el {
    opacity: 0;
    transform: translateY(40px); /* Reduced for "earlier" feel */
    transition: opacity 0.8s ease, transform 0.8s ease; /* CSS fallback */
}

.reveal-el.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ═══════════════════════════════════════
   SHOWREEL / WORK (SPLIT VERTICAL)
   ═══════════════════════════════════════ */
.showreel-split-wrapper {
    background: transparent;
    overflow: hidden;
    position: relative;
    padding-bottom: 8rem;
}

.showreel-split-wrapper .section-container {
    padding-top: 3rem; /* Reduced from 8rem to let heading peak through */
}

.split-header {
    margin-bottom: 6rem;
}

.split-header .section-title-massive {
    font-size: clamp(3rem, 15vw, 12rem); /* Extreme scale for stylish impact */
    font-weight: 950;
    line-height: 0.8;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.section-title-massive span.accent-text {
    display: block;
    -webkit-text-stroke: 2px rgba(108, 99, 255, 0.2);
    color: transparent;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(108, 99, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-top: -0.1em;
}

/* Stylish Scroll V2 */
.scroll-indicator-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.scroll-icon-symbol {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    position: relative;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.1);
}

.scroll-icon-symbol::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDotAnim 1.5s ease-in-out infinite;
}

@keyframes scrollDotAnim {
    0% { opacity: 0; transform: translate(-50%, -10px); }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

.scroll-v2-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-left: 0.4em;
}

/* Unified Grid Wrapper */
.showreel-grid-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.showreel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .showreel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .showreel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.category-title {
    font-size: 1.3rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 3rem; /* Fixed: Added spacing to prevent overlay with cards */
    opacity: 0.9;
}



/* CINEMATIC CARDS */
.cinematic-card {
    position: relative;
    width: 100%; /* Fill grid cell */
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.5s var(--ease-out);
    transform-style: preserve-3d;
    will-change: transform;
}

/* For shorts, let's keep a consistent aspect ratio in the 3-col grid */
.cinematic-card[data-type="short"] {
    aspect-ratio: 9/16;
    max-width: 320px;
    margin: 0 auto;
}



.card-thumb {
    position: absolute;
    inset: -5%; /* slightly larger for zoom */
    background-size: cover;
    background-position: center;
    transform: scale(1.4) translateZ(0); /* Removed parallax CSS var to fix lag */
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 1.2s ease;
    z-index: 1;
    will-change: transform;
}

.cinematic-card:hover .card-thumb {
    transform: scale(1.1) translateZ(0);
    filter: brightness(0.7) contrast(1.2);
}

.card-hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.cinematic-card:hover .card-hover-video {
    opacity: 1;
}

/* Video Numeric Info Overlay */
.video-card .card-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    pointer-events: none;
}

.video-card .card-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 950;
    margin: 0;
    color: transparent; /* Fixed: Transparent numeric labels */
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.4); /* Stylish Outline */
    line-height: 0.85;
    letter-spacing: -0.1em;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* 3D Float Touch - Core */
.cinematic-card, .gd-card {
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.2, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.cinematic-card:hover, .gd-card:hover {
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.9),
        0 0 40px rgba(108, 99, 255, 0.2);
}

.card-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.cinematic-card:hover .card-overlay-gradient {
    opacity: 0.95;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 20%, rgba(11, 11, 11, 0.95) 100%);
}

.card-info {
    position: absolute;
    bottom: 25px;
    left: 30px;
    right: 30px;
    z-index: 4;
    transform: translateZ(30px);
    transition: transform 0.4s var(--ease-out);
}

.card-cat {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.card-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.play-btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(40px) scale(0.9);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    opacity: 0;
    transition: all 0.4s var(--ease-out);
}

.play-icon {
    font-size: 1.2rem;
    color: #fff;
    margin-left: 4px;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 6;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Hover States */
.cinematic-card:hover {
    transform: scale(1.03) translateY(-5px);
    z-index: 10;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        0 0 0 2px var(--accent),
        0 0 30px var(--accent-glow);
}

.cinematic-card:hover .card-thumb {
    transform: scale(1.1);
}

.cinematic-card:hover .play-btn-circle {
    opacity: 1;
    transform: translate(-50%, -50%) translateZ(60px) scale(1);
    background: rgba(108, 99, 255, 0.3);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.cinematic-card:hover .card-glow {
    opacity: 1;
}

/* Used during modal zoom transition */
.cinematic-card.is-expanding {
    position: fixed;
    z-index: 10000;
    border-radius: 0;
    transition: all 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

/* ═══════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════ */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 3;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(108, 99, 255, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-out);
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.modal-content.is-vertical {
    max-width: 400px;
    aspect-ratio: 9/16;
    max-height: 85vh;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════ */
.experience {
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1500px; /* Enable 3D depth */
    transform-style: preserve-3d;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255,255,255,0.05);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-glow-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    box-shadow: 0 0 15px var(--accent-glow);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    width: 50%;
}

.timeline-item[data-side="left"] {
    padding-right: 3rem;
    text-align: right;
}

.timeline-item[data-side="right"] {
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item[data-side="left"] .timeline-dot {
    right: -8px;
}

.timeline-item[data-side="right"] .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.3);
}

.timeline-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.timeline-card:hover {
    background: rgba(108, 99, 255, 0.05);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.timeline-role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   SEO FOOTER
   ═══════════════════════════════════════ */
.seo-footer {
    background: #050505;
    padding: 6rem 2rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 10;
}

.seo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.seo-column h3 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.seo-column p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 2rem;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.seo-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.seo-column ul {
    list-style: none;
    padding: 0;
}

.seo-column ul li {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.seo-column ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .seo-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.8) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-p {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 3rem;
}

.accent-text {
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats */
.about-stats {
    display: flex;
    gap: 4rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* About Visual Orb */
.visual-orb {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.15);
    box-shadow: 
        0 0 60px rgba(108, 99, 255, 0.1),
        inset 0 0 60px rgba(108, 99, 255, 0.05);
}

#aboutCanvas {
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-glow-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 80%, rgba(108, 99, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 30% 60%, rgba(191, 90, 242, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    text-align: center;
    padding: 10rem 2rem;
}

.contact-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 3rem;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 30px var(--accent-glow);
}

.cta-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 50px var(--accent-glow);
}

.cta-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}

.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover .cta-shine {
    left: 100%;
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.contact-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.contact-link svg {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.contact-link:hover svg {
    opacity: 1;
}

/* ── 3D Buttons & Contact Redesign ── */
.contact-work-heading {
    margin-bottom: 3.5rem;
}

.work-with-me-title {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 0 20px rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-with-me-title:hover {
    border-color: rgba(255,255,255,0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 0 40px rgba(108, 99, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
}

.work-with-me-title::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: luxurySweep 5s infinite;
}

@keyframes luxurySweep {
    0% { left: -100%; }
    15% { left: 200%; }
    100% { left: 200%; }
}

.contact-grid-3d {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button-3d {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-3d-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 2.5rem;
    background: #1a1a1a;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.1, 0, 0.2, 1);
}

.btn-3d-base {
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 6px 0 var(--btn-shadow, #333);
}

/* Specific Colors */
.email-3d { --btn-shadow: #2c3e50; }
.email-3d .btn-3d-inner { border-color: rgba(108, 99, 255, 0.3); }

.whatsapp-3d { --btn-shadow: #1b5e20; }
.whatsapp-3d .btn-3d-inner { border-color: rgba(34, 197, 94, 0.3); }

/* Hover & Active */
.button-3d:hover .btn-3d-inner {
    transform: translateY(-8px);
    background: #222;
    border-color: var(--accent);
}

.button-3d:active .btn-3d-inner {
    transform: translateY(0);
}

.button-3d:active {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .contact-grid-3d {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    .button-3d {
        width: 100%;
        max-width: 300px;
    }
    .btn-3d-inner {
        justify-content: center;
    }
}



/* ═══════════════════════════════════════
   GRAPHIC DESIGN SECTION
   ═══════════════════════════════════════ */
.graphic-design {
    position: relative;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

/* Grain texture overlay */
.gd-grain-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Ambient glow */
.gd-ambient-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(108, 99, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(191, 90, 242, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.graphic-design .section-container {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem 10rem;
}

/* ── Section Header (Minimal Editorial Style) ── */
.gd-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gd-header-rule {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.gd-header-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.5rem 0 0;
}

.gd-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #fff;
    margin: 0;
    text-align: center;
}

.gd-title em {
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.5);
}

.gd-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ── Category Labels ── */
.gd-category {
    margin-bottom: 5rem;
}

.gd-category:last-child {
    margin-bottom: 0;
}

.gd-category-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gd-cat-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.gd-cat-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Grid Layouts ── */
.gd-grid {
    display: grid;
    gap: 2.5rem;
}

.gd-grid-logos {
    grid-template-columns: repeat(3, 1fr);
}

.gd-grid-posters {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.gd-grid-vcards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .gd-grid-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gd-grid-logos,
    .gd-grid-posters,
    .gd-grid-vcards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .graphic-design .section-container {
        padding: 5rem 1.5rem 6rem;
    }
    .gd-header {
        margin-bottom: 4rem;
    }
    .gd-category {
        margin-bottom: 4rem;
    }
}

/* ═══════════════════════════════════════
   GD CARDS — BASE
   ═══════════════════════════════════════ */
.gd-card {
    cursor: pointer;
    position: relative;
}

.gd-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

/* ═══════════════════════════════════════
   LOGO CARDS
   ═══════════════════════════════════════ */
.gd-card-logo .gd-card-inner {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gd-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gd-card-bg-dark {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
}

.gd-card-bg-light {
    background: radial-gradient(circle at center, #f5f5f5 0%, #e0e0e0 100%);
}

.gd-logo-img {
    position: relative;
    z-index: 1;
    width: 65%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s var(--ease-out), filter 0.5s ease;
}

.gd-card-glow-ring {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.5s ease;
    pointer-events: none;
}

/* Logo Hover */
.gd-card-logo:hover .gd-card-inner {
    transform: scale(1.05);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(108, 99, 255, 0.1);
}

.gd-card-logo:hover .gd-logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 30px rgba(108, 99, 255, 0.25));
}

.gd-card-logo:hover .gd-card-glow-ring {
    box-shadow:
        inset 0 0 0 1px rgba(108, 99, 255, 0.3),
        0 0 20px rgba(108, 99, 255, 0.08);
}

/* ═══════════════════════════════════════
   POSTER CARDS
   ═══════════════════════════════════════ */
.gd-card-poster .gd-card-inner {
    aspect-ratio: 3/4;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-2deg);
}

.gd-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.gd-poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Poster Hover */
.gd-card-poster:hover .gd-card-inner {
    transform: perspective(1000px) rotateY(0deg) scale(1.05) translateY(-8px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(191, 90, 242, 0.2),
        0 0 40px rgba(191, 90, 242, 0.08);
}

.gd-card-poster:hover .gd-poster-img {
    transform: scale(1.05);
}

.gd-card-poster:hover .gd-poster-shine {
    opacity: 1;
}

/* ═══════════════════════════════════════
   VISITING CARD CARDS — 3D Mockup Style
   ═══════════════════════════════════════ */
.gd-card-vcard {
    text-align: center;
}

.gd-vcard-3d {
    aspect-ratio: 1.75;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateX(5deg) rotateY(-3deg);
    transform-style: preserve-3d;
}

.gd-vcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.gd-vcard-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0) 55%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gd-vcard-label {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Visiting Card Hover */
.gd-card-vcard:hover .gd-vcard-3d {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1.05) translateY(-8px);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(108, 99, 255, 0.2),
        0 0 50px rgba(108, 99, 255, 0.06);
}

.gd-card-vcard:hover .gd-vcard-label {
    color: var(--accent);
}

.gd-card-vcard:hover .gd-vcard-reflection {
    opacity: 0;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATION BASE (GD-specific)
   ═══════════════════════════════════════ */
.gd-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.gd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   IMAGE LIGHTBOX MODAL
   ═══════════════════════════════════════ */
.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.img-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.img-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.img-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.img-lightbox img {
    max-width: 90%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 80px rgba(108, 99, 255, 0.12);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}

.img-lightbox.active img#imgLightboxImg {
    transform: scale(1);
    opacity: 1;
}

/* ── Lightbox 3D Flip ── */
.lightbox-flip-card {
    display: none;
    position: relative;
    width: 85vw;
    max-width: 1000px;
    aspect-ratio: 1.75;
    perspective: 2500px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
}

.lightbox-flip-card.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.7);
    background: #000;
}

.flip-back {
    transform: rotateY(180deg);
}

.flip-front img, .flip-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1 !important; /* Force visibility over standard lightbox image defaults */
    transform: none !important;
}

.flip-hint {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: hintPulse 2s infinite ease-in-out;
    pointer-events: none;
    text-shadow: 0 0 15px var(--accent-glow);
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-10px); }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════
   CURSOR SPARKLES
   ═══════════════════════════════════════ */
.cursor-sparkle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    background: radial-gradient(circle, #fff 10%, #FFEC8B 60%, #FFD700 100%); /* Lite Gold Tracker */
    border-radius: 50%;
    box-shadow: 
        0 0 10px #FFD700,
        0 0 20px rgba(255, 215, 0, 0.4);
    will-change: transform, opacity;
}

/* ── Audio Toggle ── */
.audio-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    transition: all 0.3s ease;
}
.audio-toggle:hover {
    border-color: var(--accent);
    background: rgba(30,30,30,0.8);
}
.audio-bars {
    display: flex;
    gap: 3px;
    height: 12px;
    align-items: center;
}
.audio-bars .bar {
    width: 2px;
    background: var(--text-dim);
    transition: all 0.2s ease;
}
.audio-bars .bar:nth-child(1){height: 4px;}
.audio-bars .bar:nth-child(2){height: 8px;}
.audio-bars .bar:nth-child(3){height: 6px;}
.audio-toggle.active .audio-bars .bar {
    background: var(--accent);
    animation: eqPlay 0.8s infinite ease-in-out alternate;
}
.audio-toggle.active .bar:nth-child(2){animation-delay: 0.2s;}
.audio-toggle.active .bar:nth-child(3){animation-delay: 0.4s;}
@keyframes eqPlay {
    0% { height: 4px; }
    100% { height: 12px; }
}
.audio-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dim);
}
.audio-toggle.active .audio-text {
    color: var(--accent);
}
