/* ============================================================
   EMPIRE VISUAL STUDIO — COMPANY PROFILE
   Stylesheet v2.0
   ============================================================ */

/* ─── FONT FACES ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
    font-family: 'evsfont';
    src: url('../font/evsfont.eot');
    src: url('../font/evsfont.woff2') format('woff2'),
         url('../font/evsfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ─── ROOT THEME TOKENS ─────────────────────────────────── */
:root {
    --evs-bg-primary:       #26292b;
    --evs-bg-dark:          #1a1c1e;
    --evs-bg-darker:        #111213;
    --evs-accent:           #004286;
    --evs-accent-light:     #1a8aff;
    --evs-accent-bright:    #3da5ff;
    --evs-text:             #ffffff;
    --evs-text-secondary:   #9ca3af;
    --evs-text-dim:         #4b5563;
    --evs-border:           rgba(255,255,255,0.08);
    --evs-glass:            rgba(255,255,255,0.04);
    --evs-font-heading:     'evsfont', 'Inter', sans-serif;
    --evs-font-body:        -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
    --evs-nav-height:       70px;
    --evs-radius:           8px;
    --evs-transition:       0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --evs-transition-slow:  0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide Stats/GUI from sample scripts */
#stats, .dg.ac, .stats, #fps-counter,
div[style*="position: absolute"][style*="left: 0px"][style*="top: 0px"][style*="cursor: pointer"],
div[style*="position:absolute"][style*="left:0"][style*="top:0"][style*="cursor:pointer"] {
    display: none !important; visibility: hidden !important; pointer-events: none !important;
}

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

html, body {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

body#evs-profile-body {
    background: var(--evs-bg-darker);
    color: var(--evs-text);
    font-family: var(--evs-font-body);
    overflow: hidden;
    height: 100vh; width: 100vw;
}

a { color: var(--evs-accent-light); text-decoration: none; }
a:hover { color: var(--evs-text); }
img { display: block; max-width: 100%; }
.evsfont { font-family: var(--evs-font-heading); }

/* ─── LOADING SCREEN ─────────────────────────────────────── */
#evs-loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--evs-bg-darker);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#evs-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.loader-text {
    display: block; font-family: var(--evs-font-body);
    font-size: 0.75rem; letter-spacing: 0.4em;
    color: var(--evs-text-secondary); margin-bottom: 0.8rem;
    text-transform: uppercase; font-weight: 500;
}
.loader-sub {
    display: block;
    font-family: var(--evs-font-heading);
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: #fff;
    margin: 0 0 45px;
    text-transform: uppercase;
    font-weight: 900;
}
.loader-bar {
    width: 240px; height: 2px; background: rgba(61, 165, 255, 0.1);
    position: relative; overflow: hidden;
    box-shadow: 0 0 15px rgba(61, 165, 255, 0.3);
}
.loader-bar::after {
    content: ''; position: absolute; left: -100%; top: 0;
    width: 100%; height: 100%; background: var(--evs-accent-bright);
    box-shadow: 0 0 10px var(--evs-accent-bright);
    animation: loaderSlide 1.2s ease-in-out infinite;
}
@keyframes loaderSlide {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
#evs-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--evs-nav-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 3rem; z-index: 9000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 80%, rgba(0,0,0,0) 100%);
    transition: background var(--evs-transition);
}
#evs-nav.scrolled { background: rgba(26,28,30,0.92); backdrop-filter: blur(12px); }

/* Logo: E.V.S | Empire Visual Studio */
.nav-logo {
    display: flex; align-items: center; gap: 1rem; color: #fff;
    cursor: pointer; text-decoration: none;
}
.nav-logo-main {
    font-size: 1.6rem; font-weight: 800; letter-spacing: 0.1em;
    color: var(--evs-text); transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-logo:hover .nav-logo-main {
    letter-spacing: 0.25em; color: #fff;
    text-shadow: 0 0 15px rgba(61, 165, 255, 0.8), 0 0 30px rgba(61, 165, 255, 0.4);
}
.nav-logo-separator { width: 1px; height: 1.8rem; background: rgba(255,255,255,0.15); }
.nav-logo-sub {
    font-family: var(--evs-font-body); font-size: 0.75rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 500;
    color: #ddd;
}

.nav-menu { list-style: none; display: flex; gap: 2.5rem; }
.nav-link {
    color: var(--evs-text-secondary); font-size: 0.75rem;
    font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; position: relative;
    padding: 0.25rem 0; transition: color var(--evs-transition);
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 1px; background: var(--evs-accent-light);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-link:hover, .nav-link.is-active { color: var(--evs-text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-section-indicator {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.65rem; letter-spacing: 0.1em; color: var(--evs-text-dim);
}
.indicator-line { width: 2rem; height: 1px; background: var(--evs-text-dim); }
.indicator-current { color: var(--evs-text); font-weight: 600; }

/* ─── FULLSCREEN & TOOLTIP ────────────────────────────── */
#evs-fullscreen-btn {
    position: fixed !important;
    top: 4px !important;
    right: 4px !important;
    z-index: 100000;
    cursor: pointer;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
#evs-fullscreen-btn svg { width: 20px; height: 20px; fill: #888; transition: fill 0.3s ease; }
#evs-fullscreen-btn:hover svg { fill: #fff; }
#evs-fullscreen-btn:hover { transform: scale(1.1); }

.evs-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #000;
    border: 1px solid var(--evs-accent-bright);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0; visibility: hidden;
    transition: 0.3s ease;
    z-index: 100001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    pointer-events: none;
}
#evs-fullscreen-btn:hover .evs-tooltip { opacity: 1; visibility: visible; margin-top: 15px; }

/* ─── SECTIONS ───────────────────────────────────────────── */
#evs-sections { background: #000; position: relative; height: 100vh; width: 100vw; overflow: hidden; }

.intro-layer-grid { display: flex; flex-direction: column; width: 100%; height: 100%; }
.intro-layer-wall {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr);
    gap: 8px; padding: 15px;
    background: #000;
}
.wall-cell {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);
}
.intro-layer-img { /* Cleanup old single img style if still used */
    width: 100%; height: 100%; background-size: cover; background-position: center;
}

.evs-section {
    position: absolute; inset: 0;
    width: 100vw; height: 100vh; overflow: hidden;
    opacity: 0; visibility: hidden;
}
.evs-section.is-active { opacity: 1; visibility: visible; }

/* Section background layer */
.section-bg {
    position: absolute; inset: 0; z-index: 1;
    background-size: cover; background-position: center;
    filter: brightness(0.25);
}

/* Shared heading styles */
.section-label {
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.25em; color: var(--evs-accent-bright);
    margin-bottom: 1rem; display: block;
    text-shadow: 0 0 10px rgba(61, 165, 255, 0.5);
}
.section-heading {
    font-family: var(--evs-font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1; color: var(--evs-text); margin-bottom: 1.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%); z-index: 60;
    font-size: 0.6rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--evs-text-dim);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-indicator::after {
    content: ''; width: 1px; height: 3rem;
    background: linear-gradient(to bottom, var(--evs-text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* ━━━━━━━━━ SECTION 1: HOME ━━━━━━━━━ */
#sec-home .section-bg { filter: brightness(0.15); }

#intro-glass-scene {
    position: absolute; inset: 0; z-index: 2; opacity: 0;
}
.home-scanlines {
    position: absolute; inset: 0; z-index: 1.5; /* Between bg and glass mirrors */
    background: repeating-linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0) 4px, rgba(0,0,0,0.15) 4px, rgba(0,0,0,0.15) 8px);
    pointer-events: none; opacity: 0; transition: opacity 1.5s ease;
}
.is-active .home-scanlines { opacity: 1; }

#intro-layers {
    position: absolute; inset: 0; z-index: 50; pointer-events: none;
}
.intro-layer {
    position: absolute; width: 100%; height: 100%;
    overflow: hidden; transform: translate3d(0, 102%, 0);
}
.intro-layer-img {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transform: translate3d(0, -102%, 0);
    filter: brightness(0.7);
}

#glass-scene {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    opacity: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
}
#glass-canvas { width: 100%; height: 100%; display: block; }

#home-title {
    position: absolute; z-index: 60;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    text-align: center; pointer-events: none;
}
.evs-hero-title {
    font-family: var(--evs-font-heading);
    font-size: clamp(0.9rem, 1.4vw, 1.7rem);
    white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.05;
    background: linear-gradient(
        90deg, #555 0%, #888 12%, #fff 25%, #bbb 37%,
        #ddd 50%, #888 62%, #fff 75%, #888 87%, #555 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalSweep 6s ease-in-out infinite;
    opacity: 0;
}
.evs-hero-title, .evs-hero-subtitle, .vision-reveal, .house-reveal, .vision-content h2, .section-heading, .section-label, .portfolio-now-playing, .team-header h2, .clients-header h2, .connect-think-text { 
    opacity: 0;
}
.evs-hero-title.visible { opacity: 1; transition: opacity 1.5s ease; }
@keyframes metalSweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.evs-hero-subtitle {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--evs-text-secondary); margin-top: 1.5rem; opacity: 0;
}
.evs-hero-subtitle.visible { opacity: 1; transition: opacity 1.5s ease 0.5s; }

/* ━━━━━━━━━ SECTION 2: VISION ━━━━━━━━━ */
.vision-bg {
    position: absolute; inset: 0; z-index: 1;
    background-size: cover; background-position: center;
    filter: brightness(0.3); transform: scale(1.05);
    transition: transform 8s ease-out;
}
#sec-vision.is-active .vision-bg { transform: scale(1); }

/* Section 2 HTML Template Background Styles */
/* Section 2 HTML Template Background Styles — Replicated from Living Words Sample */
.s2-wrapper { position: absolute; inset: 0; z-index: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.s2-content { position: relative; width: 1000px !important; height: 562px !important; border-radius: 40px; animation: 200s linear infinite s2-brightness; transform-origin: center center; flex-shrink: 0; }
.s2-container-full { position: absolute; width: 1000px; height: 562px; overflow: hidden; margin: 0; display: flex; justify-content: center; align-items: center; transform: scale(1); animation: 280s ease-in-out infinite alternate s2-zoom-in; }
.s2-backgroundImage { position: absolute; width: 1000px; top: 0; left: 0; }
.s2-boyImage { position: absolute; width: 1000px; z-index: 2; top: 0; left: 0; animation: 200s linear infinite s2-blur; }
.vision-people-overlay { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; z-index: 8; pointer-events: none; }
.s2-container { display: flex; justify-content: center; align-items: center; }
.s2-cube { position: relative; transform-style: preserve-3d; perspective: 480px; perspective-origin: 51% 70%; z-index: 3; width: 870px; height: 190px; }
.s2-face { position: absolute; display: flex; align-items: center; overflow: hidden; background: transparent; opacity: 0.5; width: 870px; height: 190px; }
.s2-face.s2-top, .s2-face.s2-bottom { width: 870px; height: 870px; }
.s2-face p { white-space: nowrap; overflow: hidden; font-family: "Bebas Neue", sans-serif; font-size: calc(6em + 1.9rem); font-weight: 400; color: #fff; padding-top: 20px; }
.s2-face span { color: red; }
.s2-front { transform: translateZ(435px); display: none; }
.s2-back { transform: translateZ(-435px) rotateY(180deg) scaleX(-1); }
.s2-left { transform: translateX(-435px) rotateY(-90deg) scaleX(-1); }
.s2-right { transform: translateX(435px) rotateY(90deg) scaleX(-1); }
.s2-top { transform: translateY(-435px) rotateX(90deg) scaleY(-1); }
.s2-bottom { transform: translateY(-245px) rotateX(-90deg) scaleY(-1); }
.s2-left p { margin-left: 480px; animation: 200s linear infinite s2-left; }
.s2-back p { margin-left: -390px; animation: 200s linear infinite s2-back; }
.s2-right p { margin-left: -1260px; animation: 200s linear infinite s2-right; }
.s2-hue { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 100%; mix-blend-mode: overlay; background: radial-gradient(ellipse at center, #1e5799 0, #7db9e8 100%); animation: 8s infinite s2-filter-animation; }
.s2-container-reflect { position: absolute; display: flex; align-items: center; justify-content: center; margin-top: 380px; filter: blur(10px); z-index: 3; }
.s2-container-reflect .s2-cube { perspective-origin: 51% -30%; }
.s2-container-reflect .s2-back { transform: translateZ(-435px) rotateY(180deg) scaleX(-1) scaleY(-1); }
.s2-container-reflect .s2-left { transform: translateX(-435px) rotateY(-90deg) scaleX(-1) scaleY(-1); }
.s2-container-reflect .s2-right { transform: translateX(435px) rotateY(90deg) scaleX(-1) scaleY(-1); }
.s2-container-reflect p { transform: scaleY(70%); }
@keyframes s2-left { 100% { margin-left: -54000px; } }
@keyframes s2-back { 100% { margin-left: -54870px; } }
@keyframes s2-right { 100% { margin-left: -55740px; } }
@keyframes s2-filter-animation { 0%, 100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(100deg); } }
@keyframes s2-zoom-in { 0% { transform: scale(1); } 100% { transform: scale(1.25); } }
@keyframes s2-blur { 0% { filter: blur(0px); } 100% { filter: blur(3px); } }
@keyframes s2-brightness { 0% { filter: brightness(1) contrast(1); } 100% { filter: brightness(0.8) contrast(1.3); } }

.vision-overlay {
    position: absolute; inset: 0; z-index: 5;
    background: linear-gradient(to top,
        rgba(0,0,0,0.80) 0%,
        rgba(0,0,0,0.80) 10%,
        transparent 100%);
    pointer-events: none;
}

/* 3D perspective scrolling text */
.vision-scroll-wrapper {
    position: absolute; top: 50%; left: 0; width: 100%;
    transform: translateY(-50%) perspective(600px) rotateX(8deg) rotateY(-5deg);
    z-index: 3; pointer-events: none; overflow: visible;
}
.vision-scroll-text {
    white-space: nowrap;
    font-family: var(--evs-font-heading);
    font-size: clamp(5rem, 14vw, 14rem);
    color: rgba(255,255,255,0.04);
    text-transform: uppercase; letter-spacing: 0.05em;
    animation: marqueeScroll 40s linear infinite;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.vision-content {
    position: relative; z-index: 15;
    display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center;
    height: 100%; padding: 0 10vw 50px; text-align: center;
}
.vision-text-band {
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 50vh;
    background: linear-gradient(to top,
        rgba(0,0,0,0.80) 0%,
        rgba(0,0,0,0.80) 10%,
        transparent 100%);
    z-index: 14; pointer-events: none;
}
.vision-content .section-heading { font-size: clamp(2rem, 4vw, 4rem); }
.vision-text {
    max-width: 680px; font-size: clamp(0.9rem, 1.1vw, 1.15rem);
    line-height: 1.85; color: var(--evs-text-secondary); font-weight: 300;
}

/* ━━━━━━━━━ SECTION 3: PORTFOLIO ━━━━━━━━━ */
.portfolio-video-wrap {
    position: absolute; inset: 0; z-index: 5;
}
.portfolio-video-wrap video {
    width: 100vw; height: 100vh; object-fit: cover; opacity: 0.6; pointer-events: none;
}

.portfolio-overlay {
    position: absolute; inset: 0; z-index: 10;
    background: linear-gradient(to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.85) 15%,
        transparent 100%);
    pointer-events: none;
}
.portfolio-overlay::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(rgba(0,0,0,0.3) 0, rgba(0,0,0,0.3) 4px, rgba(0,0,0,0) 4px, rgba(0,0,0,0) 8px);
    pointer-events: none; z-index: 12;
}

/* Lightbox styles */
.portfolio-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95); opacity: 0; visibility: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; backdrop-filter: blur(20px);
}
.portfolio-lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
    position: absolute; top: 2rem; right: 2rem; font-size: 3rem; color: #fff;
    cursor: pointer; z-index: 1000; transition: color 0.3s; line-height: 1;
}
.lightbox-close:hover { color: var(--evs-accent-bright); }

.lightbox-nav {
    position: absolute; top: 50%; left: 0; width: 100%;
    transform: translateY(-50%); display: flex;
    justify-content: space-between; padding: 0 40px;
    z-index: 1000; pointer-events: none;
}
.lb-arrow {
    width: 50px; height: 50px; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; font-size: 1.2rem;
    transition: all 0.3s ease; pointer-events: auto;
}
.lb-arrow:hover { background: var(--evs-accent-bright); transform: scale(1.1); }

.lightbox-content {
    width: 90%; max-height: 90vh; aspect-ratio: 16/9; position: relative;
    box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.lightbox-content iframe { width: 100%; height: 100%; border: none; }
.portfolio-title-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 80%, rgba(0,0,0,0) 100%);
    padding: 0 4%;
    z-index: 102; pointer-events: none;
}
.portfolio-title-area.hidden { opacity: 0; }
.portfolio-title-area {
    position: absolute; bottom: 160px; left: 50%;
    transform: translateX(-50%);
    text-align: center; z-index: 105; pointer-events: none;
    transition: opacity 0.5s ease;
}
.portfolio-now-playing {
    font-size: 0.75rem; letter-spacing: 0.15em;
    color: var(--evs-text-secondary); text-transform: uppercase;
}

.portfolio-thumbs {
    position: absolute; bottom: 0; left: 0; width: 100%;
    z-index: 110; padding: 1.5rem 3rem 2.5rem;
    display: flex; gap: 1.2rem; justify-content: center;
    overflow-x: auto;
}
.portfolio-thumbs::-webkit-scrollbar { display: none; }

.thumb-item {
    width: 160px; height: 90px; border-radius: var(--evs-radius);
    overflow: hidden; cursor: pointer;
    border: 2px solid transparent; flex-shrink: 0;
    transition: border-color var(--evs-transition), transform var(--evs-transition);
}
.thumb-item:hover, .thumb-item.is-active { border-color: var(--evs-accent-bright); transform: scale(1.05); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-label {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 0.3rem 0.5rem; font-size: 0.55rem;
    letter-spacing: 0.05em; background: rgba(0,0,0,0.7);
    color: var(--evs-text-secondary); text-transform: uppercase;
}

/* ━━━━━━━━━ SECTION 4: CLIENTS ━━━━━━━━━ */
#sec-clients {
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; padding-bottom: 80px;
}
#sec-clients .section-bg { filter: brightness(0.18); }

.clients-header {
    position: absolute; top: 12vh; left: 50%;
    transform: translateX(-50%); text-align: center; z-index: 10;
}

.clients-rows {
    width: 140vw; position: relative; z-index: 5;
    display: flex; flex-direction: column; gap: 0.5rem;
    transform: rotate(-5deg) translateX(-15vw);
    transform-origin: center center;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.5));
}
/* Lens Distortion Effect Overlay */
#sec-clients::after {
    content: ''; position: absolute; inset: 0; z-index: 100;
    pointer-events: none;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 100%);
    box-shadow: inset 0 0 200px rgba(0,0,0,0.8);
}
.clients-collab-text {
    font-family: var(--evs-font-body);
    font-size: clamp(0.75rem, 0.9vw, 1rem);
    color: rgba(255,255,255,0.5);
    max-width: 800px;
    margin: 1.2rem auto 0;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.clients-row-wrapper { width: 100%; overflow: visible; display: flex; padding: 15px 0; }
.clients-row {
    display: flex;
    width: max-content;
    will-change: transform;
}
.marquee-group {
    display: flex; gap: 4rem; padding-right: 4rem; /* Match gap and padding for perfect seamless loop */
}
.cw-row1 { animation: scrollLeft 55s linear infinite; }
.cw-row2 { animation: scrollRight 55s linear infinite; }
.cw-row3 { animation: scrollLeft 65s linear infinite; }

.client-tile {
    width: 280px; height: 180px; flex-shrink: 0; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; padding: 4px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, border-color 0.4s ease;
    z-index: 10;
}
.client-tile:hover { 
    background: rgba(61,165,255,0.15); 
    border-color: rgba(61,165,255,0.5); 
    transform: scale(1.15); 
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 15px rgba(61,165,255,0.3);
}
.client-tile img { width: 100%; height: 100%; object-fit: contain; filter: none; opacity: 1; transition: all 0.4s ease; }
.client-tile:hover img { transform: scale(1.05); }

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

/* ━━━━━━━━━ SECTION 5: TEAM ━━━━━━━━━ */
#sec-team {
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; padding-bottom: 80px;
}
#sec-team .section-bg { filter: brightness(0.12) contrast(1.1); }

#sec-team .team-header {
    position: absolute; top: 8vh; left: 50%; transform: translateX(-50%);
    text-align: center; z-index: 100;
}
#sec-team .section-label { color: var(--evs-accent-bright); font-weight: 700; margin-bottom: 0.8rem; display: block; letter-spacing: 0.25em; text-shadow: 0 0 10px rgba(60,140,255,0.4); }
#sec-team .section-heading { margin-bottom: 1.5rem; text-align: center; }
.team-zone {
    position: absolute; top: 0; height: 100%; width: 22%;
    z-index: 25; display: flex; align-items: center;
    pointer-events: none; opacity: 0;
    transition: opacity 0.4s ease;
}
#sec-team.is-active .team-zone { opacity: 1; }
.team-zone-left  { left: 0;  background: linear-gradient(to right, rgba(0,0,0,0.45), transparent); justify-content: flex-start; padding-left: 2.5rem; }
.team-zone-right { right: 0; background: linear-gradient(to left,  rgba(0,0,0,0.45), transparent); justify-content: flex-end;   padding-right: 2.5rem; }
.team-zone-arrow { font-size: 2.5rem; color: rgba(255,255,255,0.35); letter-spacing: 0; }
.gallery__wrapper { width: 100%; height: 75vh; overflow: hidden; position: relative; display: flex; align-items: flex-end; padding-bottom: 80px; }
.gallery__image__container {
    display: flex; gap: 4rem; height: 60vh; will-change: transform;
    padding-left: 15vw; padding-right: 15vw; align-items: center;
    position: relative; z-index: 50; /* Ensure it sits above navigation zones */
}
.gallery__media {
    flex-shrink: 0; aspect-ratio: 4 / 5; height: 60vh;
    overflow: hidden; position: relative; display: block;
    background: #000; /* Pure black background for parallax frame */
    cursor: default; border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: auto; /* Guarantee hover trigger */
}
.gallery__media:active { cursor: default; }
.gallery__media:hover { transform: scale(1.02); z-index: 30; border-color: var(--evs-accent-bright); }
.gallery__media__image {
    position: absolute; top: 0; left: 0; width: 180%; height: 100%; object-fit: cover;
    pointer-events: none; filter: grayscale(1) brightness(0.7); transition: all 0.6s ease;
}
.gallery__media:hover .gallery__media__image { filter: grayscale(0) brightness(1.1); }

.gallery__media:hover .gallery__media__image { filter: grayscale(0) brightness(1.2) contrast(1.1); }

.gallery__media:hover .gallery__media__image { filter: grayscale(0) brightness(1.2) contrast(1.1); }

.member-name-plate {
    position: absolute; bottom: 0; left: 0; right: 0; width: 100%;
    padding: 1.5rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,10,0.95) 0%, rgba(0,0,10,0.6) 75%, transparent 100%);
    z-index: 60; pointer-events: none;
}
.member-name { font-family: var(--evs-font-heading); font-size: 1.15rem; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.2; text-shadow: 0 0 10px rgba(0,0,0,0.8); }

.member-info {
    position: absolute; bottom: 0; left: 0; right: 0; width: 100%;
    padding: 1.5rem 1.2rem 1.8rem; text-align: left;
    background: linear-gradient(to top, rgba(0,0,10,0.98), rgba(0,0,10,0.95) 100%);
    z-index: 55;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}
.gallery__media:hover .member-info { transform: translateY(0); z-index: 70; }

.member-role { font-family: var(--evs-font-body); font-size: 1rem; letter-spacing: 0.18em; color: var(--evs-accent-bright); text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 0.6rem; text-shadow: 0 0 10px rgba(61, 165, 255, 0.4); }
.member-desc { font-family: var(--evs-font-body); font-size: 0.8rem; color: rgba(255,255,255,1); line-height: 1.6; font-weight: 400; max-width: 100%; margin: 0; }

/* ━━━━━━━━━ SECTION 6: CONNECT ━━━━━━━━━ */
#sec-connect {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cube-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connect-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    z-index: 10;
    pointer-events: none;
    padding: 10vh 0;
}

#cube-container {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    border: none; z-index: 1; pointer-events: none;
}
.connect-think-text {
    font-family: var(--evs-font-heading);
    font-size: clamp(2rem, 6vw, 4.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(to bottom, #fff 30%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    opacity: 1;
    pointer-events: auto;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 60px rgba(60,140,255,0.5);
    margin-bottom: 1rem;
}

.connect-sub-text {
    font-family: var(--evs-font-body);
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    color: rgba(255,255,255,0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
    text-align: center;
    pointer-events: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.connect-whatsapp {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(37, 211, 102, 0.25), inset 0 -4px 0 rgba(0,0,0,0.15);
    font-family: var(--evs-font-body);
}

.connect-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4), inset 0 -4px 0 rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #2ae771 0%, #128C7E 100%);
}

.connect-url-link {
    display: block;
    margin-top: 100px;
    font-size: clamp(0.9rem, 1.1vw, 1.3rem) !important;
    text-decoration: none;
    color: var(--evs-text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-align: center;
    pointer-events: auto;
}

.connect-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.connect-whatsapp:hover svg {
    transform: scale(1.1) rotate(-10deg);
}

/* Hide dat.gui from the reference script */
.dg.ac {
    display: none !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
    #evs-nav { padding: 0 1.5rem; }
    .nav-menu { gap: 1.2rem; }
    .nav-link { font-size: 0.6rem; }
    .nav-section-indicator { display: none; }
    .nav-logo-sub { display: none; }
    .team-member { width: 240px; height: 340px; }
    .client-tile { width: 200px; height: 130px; }
    .portfolio-thumbs { padding: 1rem 1.5rem; }
    .thumb-item { width: 110px; height: 62px; }
}
@media (max-width: 480px) {
    .nav-menu { display: none; }
    .nav-logo-main { font-size: 1.2rem; }
}
