/* ═══════════════════════════════════════════════════════════
   PRELOADER — Covers white flash while assets load
   ═══════════════════════════════════════════════════════════ */
#evai-preloader {
    position: fixed;
    inset: 0;
    background: #070709;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#evai-preloader.evai-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#evai-preloader.evai-loaded > * {
    display: none !important;
}

.evai-preloader-logo {
    font-family: 'EVSFont', 'Orbitron', sans-serif;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(to right, #b4b4b4 0%, #ffffff 25%, #888888 45%, #e0e0e0 65%, #ffffff 80%, #b4b4b4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.8));
    animation: preloader-pulse 2s ease-in-out infinite, preloader-metallic 3s linear infinite;
}

.evai-preloader-logo span {
    /* inherits the gradient — no separate color override needed */
}

.evai-preloader-bar-wrap {
    width: clamp(180px, 30vw, 280px);
    height: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.evai-preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007bff, #00d4ff, #6f42c1);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: evai-bar-fill 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               evai-bar-shimmer 1s linear infinite;
}

.evai-preloader-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(232, 230, 240, 0.3);
    margin-top: -10px;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

@keyframes preloader-metallic {
    to { background-position: 200% center; }
}

@keyframes evai-bar-fill {
    0%   { width: 0%; }
    30%  { width: 40%; }
    70%  { width: 75%; }
    90%  { width: 92%; }
    100% { width: 100%; }
}

@keyframes evai-bar-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ═══════════════════════════════════════════════════════════ */

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

/* --- TOKENS & RESET --- */
:root {
    --c-bg: #070709;
    --c-surface: rgba(255, 255, 255, 0.04);
    --c-border: rgba(255, 255, 255, 0.1);
    --c-text: #e8e6f0;
    --c-muted: rgba(232, 230, 240, 0.35);
    --c-accent1: #007bff;
    --c-accent2: var(--c-accent1);
    /* Standardized to accent1 */
    --c-accent3: #6f42c1;
    --font-main: 'EVSFont', 'Orbitron', sans-serif;
    --font-display: var(--font-main);
    --font-secondary: 'Outfit', sans-serif;
    --font-mono: "DM Mono", monospace;
    --transition-speed: 0.6s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

body.is-dragging {
    cursor: grabbing !important;
}

body.is-dragging #cursor-dot,
body.is-dragging #cursor-ring {
    display: none !important;
}

/* --- CUSTOM CURSOR --- */
#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--c-accent1);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 30000;
    transform: translate(-50%, -50%);
    transition: transform .1s, width .2s, height .2s, background .2s;
    mix-blend-mode: exclusion;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(179, 255, 200, .5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 29999;
    transform: translate(-50%, -50%);
    transition: transform .12s cubic-bezier(.23, 1, .32, 1), width .3s, height .3s, border-color .3s;
}

body:has(a:hover) #cursor-dot,
body:has(.card:hover) #cursor-dot {
    width: 16px;
    height: 16px;
    background: var(--c-accent2);
}

body:has(a:hover) #cursor-ring,
body:has(.card:hover) #cursor-ring {
    width: 64px;
    height: 64px;
    border-color: var(--c-accent2);
}

.cursor-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border: 2px solid var(--c-accent2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    animation: ripple-out .6s ease-out forwards;
}

@keyframes ripple-out {
    0% {
        width: 10px;
        height: 10px;
        opacity: .8
    }

    100% {
        width: 100px;
        height: 100px;
        opacity: 0
    }
}

/* --- AURORA BG --- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .18;
    will-change: transform;
    animation: aurora-drift 16s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(1) {
    width: 70vw;
    height: 60vh;
    background: radial-gradient(circle, var(--c-accent1) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation-duration: 14s;
}

.aurora-blob:nth-child(2) {
    width: 50vw;
    height: 70vh;
    background: radial-gradient(circle, var(--c-accent2) 0%, transparent 70%);
    top: 20%;
    right: -15%;
    animation-duration: 18s;
    animation-delay: -6s;
}

.aurora-blob:nth-child(3) {
    width: 55vw;
    height: 55vh;
    background: radial-gradient(circle, var(--c-accent3) 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-duration: 20s;
    animation-delay: -3s;
}

@keyframes aurora-drift {
    0% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(6vw, -4vh) scale(1.08)
    }

    66% {
        transform: translate(-4vw, 5vh) scale(.95)
    }

    100% {
        transform: translate(3vw, 2vh) scale(1.05)
    }
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: .045;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* --- SCROLL PROGRESS --- */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--c-accent1);
    width: 0%;
    z-index: 10001;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all .4s ease;
}

header.scrolled {
    background: rgba(7, 7, 9, .8);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 40px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: var(--font-mono);
    align-items: center;
    flex: 1;
    /* Key for centering the middle logo */
    flex-basis: 0;
}

/* Hide on mobile utility */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.letstalk-btn {
    border: 1px solid var(--c-border);
    padding: 10px 40px;
    border-radius: 30px;
    transition: all .3s ease;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    margin-right: -20px;
    /* Pulls it 20px closer to the right edge if header padding is 40px */
}

.letstalk-btn:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, .4);
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all .3s ease;
}

a:hover {
    color: var(--c-accent1);
    text-shadow: 0 0 8px rgba(0, 123, 255, .8), 0 0 16px rgba(0, 123, 255, .4);
}


/* --- DROPDOWN MENU --- */
.nav-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(7, 7, 9, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    list-style: none;
    padding: 15px 0;
    min-width: 220px;
    max-height: 320px; /* Restrict height of dropdown menu */
    overflow-y: auto;  /* Enable vertical scrollbar if longer than max-height */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Custom narrow scrollbar for dropdown menu */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 4px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent1);
}

/* Invisible bridge on the wrapper to prevent menu closing when moving cursor */
.nav-dropdown-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 99;
    display: none;
}
.nav-dropdown-wrap:hover::after {
    display: block;
}

.nav-dropdown-wrap:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px 12px 35px;
    /* Added left padding for the arrow */
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--c-accent1);
    /* Blue color used by the site */
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: none !important;
    position: relative;
}

.dropdown-menu li a::before {
    content: "→";
    position: absolute;
    left: 15px;
    font-size: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: var(--c-text);
}

.dropdown-menu li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 40px;
    /* Slight shift to the right */
}

.dropdown-menu li a:hover::before {
    opacity: 1;
    transform: translateX(4px);
    color: var(--c-accent1);
}

/* Arrow indicator (optional, but looks premium) */
.nav-dropdown-wrap>a::after {
    content: "↓";
    font-size: 8px;
    margin-left: 6px;
    opacity: 0.5;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-dropdown-wrap:hover>a::after {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--c-accent1);
}

/* --- LAYOUT --- */
.page {
    position: relative;
    z-index: 2;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 10%;
    gap: 3rem;
    position: relative;
}

#about::before,#seo-content::before,#work::before,
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .4;
    z-index: -1;
    pointer-events: none;
}

#about::before {
    background-image: url('../img/ai-aboutbackground.jpg');
}
#seo-content::before {
    background-image: url('../img/ai-seocontent.jpg');
}
#work::before {
    background-image: url('../img/ai-work.jpg');
}
#contact::before {
    background-image: url('../img/ai-contactbackground.jpg');
}

/* --- TAG --- */
.tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    padding: .35rem .8rem;
    border-radius: 2rem;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .03);
    transition: all .3s ease;
}

.tag:hover {
    border-color: var(--c-accent1);
    color: #fff;
}

/* --- BUTTON SWEEP EFFECT --- */
.btn-sweep {
    position: relative;
    overflow: hidden !important;
    z-index: 10;
}

.btn-sweep::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: left .7s cubic-bezier(.23, 1, .32, 1);
    pointer-events: none;
    z-index: -1;
}

.btn-sweep:hover::after {
    left: 150%;
}

.btn-sweep span,
.btn-sweep svg,
.btn-sweep {
    color: inherit;
}

/* --- HERO --- */
.hero {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: .6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, var(--c-bg));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.glitch-wrap {
    position: relative;
    display: inline-block;
    padding: 0 50px;
}

.glitch {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(to right, #b4b4b4 0%, #fff 20%, #808080 40%, #e0e0e0 60%, #fff 80%, #b4b4b4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, .8));
    animation: glitch-main 6s infinite, metallic-sweep 4s linear infinite;
}

@keyframes metallic-sweep {
    to {
        background-position: 200% center
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    pointer-events: none;
}

.glitch::before {
    -webkit-text-fill-color: var(--c-accent2);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-before 6s infinite linear;
    opacity: 0;
    filter: drop-shadow(-2px 0 var(--c-accent1)) brightness(1.2);
}

.glitch::after {
    -webkit-text-fill-color: var(--c-accent3);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-after 6s infinite linear;
    opacity: 0;
    filter: drop-shadow(2px 0 var(--c-accent1)) brightness(1.2);
}

.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 123, 255, .1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
    animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
    from {
        background-position: 0 0
    }

    to {
        background-position: 0 100%
    }
}

@keyframes glitch-main {

    0%,
    46%,
    51%,
    100% {
        transform: none;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, .8))
    }

    47% {
        transform: skewX(2deg) scaleY(1.05);
        -webkit-text-fill-color: #007bff;
        filter: none
    }

    48% {
        transform: skewX(-3deg) translateX(-5px);
        -webkit-text-fill-color: #00d4ff;
        filter: drop-shadow(0 0 10px #007bff)
    }

    49% {
        transform: skewX(5deg) scaleY(.9);
        -webkit-text-fill-color: #3498db
    }

    50% {
        transform: translateX(10px) skewX(-10deg);
        -webkit-text-fill-color: #00a8ff
    }
}

@keyframes glitch-before {

    0%,
    46%,
    51%,
    100% {
        transform: translate(0);
        opacity: 0
    }

    47% {
        transform: translate(-8px, 4px);
        opacity: .8
    }

    48% {
        transform: translate(8px, -4px);
        opacity: .8
    }

    49% {
        transform: translate(-4px, -8px);
        opacity: .8
    }

    50% {
        transform: translate(4px, 8px);
        opacity: .8
    }
}

@keyframes glitch-after {

    0%,
    46%,
    51%,
    100% {
        transform: translate(0);
        opacity: 0
    }

    47% {
        transform: translate(10px, -6px);
        opacity: .8
    }

    48% {
        transform: translate(-10px, 6px);
        opacity: .8
    }

    49% {
        transform: translate(6px, 10px);
        opacity: .8
    }

    50% {
        transform: translate(-6px, -10px);
        opacity: .8
    }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(.8rem, 2vw, 1.1rem);
    color: var(--c-muted);
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    overflow: hidden;
}

/* --- SINGLE POST HERO (compact) --- */
.single-hero {
    min-height: 40vh !important;
    padding: 240px 10% 60px !important;
    justify-content: flex-end !important;
}

.single-hero .hero-content {
    width: 100%;
    text-align: center;
}

.single-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--c-text);
    line-height: 1.1;
}

/* --- POST CONTENT AREA --- */
.post-content-section {
    min-height: auto !important;
    padding: 80px 10% !important;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: block !important;
}

.post-content-section h1,
.post-content-section h2,
.post-content-section h3,
.post-content-section h4,
.post-content-section h5,
.post-content-section h6 {
    font-family: var(--font-secondary);
    color: var(--c-text);
    margin: 1.5rem 0 0.8rem;
    line-height: 1.2;
}

.post-content-section h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.post-content-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.post-content-section h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.post-content-section p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-muted);
    margin-bottom: 1.2rem;
}

#about strong,
.post-content-section strong,
.post-content-section b {
    color: var(--c-accent2);
    font-weight: 700;
}

.post-content-section img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.post-content-section img:hover {
    border-color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-content-section a {
    color: var(--c-accent2);
    text-decoration: underline;
}

.post-content-section ul,
.post-content-section ol {
    font-family: var(--font-secondary);
    color: var(--c-muted);
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.post-content-section blockquote {
    border-left: 3px solid var(--c-accent1);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--c-surface);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--c-muted);
}

.post-content-section pre,
.post-content-section code {
    font-family: var(--font-mono);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: .2rem .5rem;
    font-size: .9rem;
    color: #00d4ff;
}

.post-content-section pre {
    padding: 1.5rem;
    display: block;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

/* --- AUDIO PLAYER CUSTOMIZATION --- */
/* Target both native and MediaElement wrappers used by WP */
.post-content-section audio,
audio,
.mejs-container.wp-audio-shortcode,
.mejs-container {
    width: 100%;
    height: 54px !important;
    border-radius: 40px !important;
    background-color: #000 !important;
    margin: 2.5rem 0 !important;
    border: 2px solid var(--c-accent1) !important;
    /* Match Return to Home Button */
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    overflow: hidden !important;
}

/* Chrome, Edge, Safari Native Controls */
audio::-webkit-media-controls-panel {
    background-color: #000 !important;
}

/* Force blue accent on ALL native control parts */
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-seek-back-button,
audio::-webkit-media-controls-seek-forward-button {
    filter: invert(1) brightness(1.5) sepia(1) saturate(10) hue-rotate(185deg) !important;
}

/* MediaElement.js (WordPress standard) Overrides */
.mejs-controls {
    background: transparent !important;
    height: 50px !important;
}

.mejs-time-rail .mejs-time-current,
.mejs-horizontal-volume-current {
    background: var(--c-accent1) !important;
}

.mejs-button>button {
    color: var(--c-accent1) !important;
    filter: none !important;
}

/* Ensure the play icon is the correct blue */
.mejs-playpause-button button:before,
.mejs-playpause-button button:after {
    color: var(--c-accent1) !important;
}

.mejs-time {
    color: #fff !important;
    font-family: var(--font-mono) !important;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta a {
    color: var(--c-accent2);
}

/* --- MARQUEE --- */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, .02);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    gap: 3rem;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-muted);
}

.marquee-sep {
    color: var(--c-accent2);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* --- GLASS CARDS --- */
.section-header {
    width: 100%;
    text-align: left;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    position: relative;
    border-radius: 20px;
    padding: 3rem 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.23, 1, .32, 1), box-shadow .4s, background .4s;
    transform-style: preserve-3d;
}

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

.card:hover .card-video {
    opacity: .3;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position .6s ease;
    pointer-events: none;
}

.card:hover::before {
    background-position: 200% 0;
}

.card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: conic-gradient(from var(--angle, 0deg), #00d4ff, #ff6ef7, #00f2ff, #00d4ff);
    z-index: -2;
    opacity: 0;
    transition: opacity .4s;
    animation: border-spin 4s linear infinite;
}

.card:hover::after {
    opacity: 1;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-spin {
    to {
        --angle: 360deg
    }
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.card-desc {
    font-family: var(--font-secondary);
    font-size: .9rem;
    line-height: 1.6;
    color: var(--c-muted);
    transition: color .3s ease;
}

.card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, .4), rgba(255, 110, 247, .2));
    backdrop-filter: blur(10px) saturate(1.8);
}

.card:hover .card-title,
.card:hover .card-desc {
    color: #000;
}

/* --- ABOUT FLOATING IMAGES --- */
.floating-img {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: .4;
    filter: blur(2px);
    animation: float-random 10s ease-in-out infinite alternate;
    max-width: none !important;
    max-height: none !important;
}

.img-left {
    top: 10%;
    left: 5%;
    width: auto;
    height: auto;
}

.img-right {
    bottom: 10%;
    right: 5%;
    width: auto;
    height: auto;
    animation-duration: 12s;
    animation-delay: -5s;
}

@keyframes float-random {
    0% {
        transform: translateY(0) translateX(0) rotate(0)
    }

    50% {
        transform: translateY(-30px) translateX(20px) rotate(5deg)
    }

    100% {
        transform: translateY(20px) translateX(-15px) rotate(-3deg)
    }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, .4);
    border-radius: 10px;
    transition: background .3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent1);
    box-shadow: 0 0 10px var(--c-accent1);
}

/* --- WORK GRID --- */
.work-track {
    display: flex;
    gap: 30px;
    transition: none;
    width: max-content;
}

.work-grid {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: -10vw;
    padding: 0 10vw;
}

.work-item {
    position: relative;
    width: 25vw;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    background: #111;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--c-border);
}

.work-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    border: 2px solid var(--c-border);
    opacity: 0.8;
    color: #fff;
    font-size: 2rem;
}

.work-grid:hover .work-arrow {
    opacity: 1;
    background: rgba(0, 123, 255, 0.2);
}

.work-arrow:hover {
    background: var(--c-accent1) !important;
    border-color: #fff;
    scale: 1.1;
    box-shadow: 0 0 30px var(--c-accent1);
}

.work-arrow.disabled {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

.work-arrow.prev {
    left: 40px;
}

.work-arrow.next {
    right: 40px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border:5px solid transparent;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
    filter: grayscale(.2);
}

.work-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
	border-color: var(--c-accent1);
}

.work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    transform: translateY(20px);
    opacity: 0;
    transition: all .4s ease;
}

.work-item:hover .work-content {
    transform: translateY(0);
    opacity: 1;
}

.work-cat {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--c-accent2);
}

.work-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-top: 5px;
}

/* --- SCRAMBLE --- */
#scramble-text {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: .01em;
    text-align: center;
    color: var(--c-text);
    max-width: 900px;
    line-height: 1.2;
}

/* --- SPOTLIGHT --- */
.spotlight-section {
    position: relative;
    min-height: 40vh;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
    border: 1px solid var(--c-border);
}

#spotlight-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity .4s;
}

.spotlight-section:hover #spotlight-canvas {
    opacity: 1;
}

.spotlight-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5) 30%, rgba(0, 212, 255, 0.5) 70%, transparent);
    margin: 40px 0;
}

.post-content-section hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent2) 30%, var(--c-accent2) 70%, transparent);
    margin: 3rem 0;
}

/* --- FOOTER --- */
footer {
    padding: 80px 10%;
    border-top: 1px solid var(--c-border);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-copy {
    color: var(--c-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- VIDEO MODAL --- */
#video-modal, #image-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.16, 1, .3, 1), visibility 0.5s ease;
}

#video-modal {
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(20px);
}

#image-modal {
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(25px);
}

#video-modal.active,
#image-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-main {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.modal-frame {
    width: 90%;
    height: 90%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Cinematic Shading: Deep shadow + Blue/Purple ambient glow pulses */
    box-shadow:
        0 50px 150px rgba(0, 0, 0, 0.9),
        -30px 0 80px rgba(0, 212, 255, 0.2),
        30px 0 80px rgba(111, 66, 193, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .5s;
}

#video-modal.active .modal-frame,
#image-modal.active .modal-frame {
    transform: scale(1);
}

.modal-close {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 31000;
    /* Above the cursor loop */
    transition: all .4s cubic-bezier(.16, 1, .3, 1);

    /* Perfect centering using pseudo-elements for the X */
    color: transparent;
    font-size: 0;
}

.modal-close:before,
.modal-close:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.modal-close:before {
    transform: rotate(45deg);
}

.modal-close:after {
    transform: rotate(-45deg);
}

.modal-close:hover {
    background: #ff4757;
    transform: rotate(180deg);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.video-main {
    flex: 1;
    width: 100%;
    height: 100%;
}

.thumb-scroller {
    background: #0a0a0a;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    height: auto;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 200;
}

/* Hit-area for revealing thumbs */
.thumb-trigger {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 150;
    display: none;
}

#video-modal.playing .thumb-trigger {
    display: block;
}

#video-modal.playing .thumb-scroller {
    transform: translateY(110%);
    opacity: 0;
}

#video-modal.playing .thumb-trigger:hover+.thumb-scroller,
#video-modal.playing .thumb-scroller:hover {
    transform: translateY(0);
    opacity: 1;
}

.v-thumb {
    width: 120px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    opacity: .6;
    transition: all .3s ease;
    border: 2px solid transparent;
    overflow: visible;
}

.v-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.v-thumb.active {
    opacity: 1;
    border-color: var(--c-accent1);
    transform: translateY(-5px);
}

.v-thumb.active::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--c-accent1);
}

/* --- MOBILE BURGER --- */
#burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

#burger-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--c-text);
    transition: all .3s ease;
}

#burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#burger-menu.active span:nth-child(2) {
    opacity: 0;
}

#burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .nav-left,
    .nav-right {
        gap: 20px;
    }

    .work-item {
        width: 45vw;
    }
}

@media (max-width: 768px) {

    .nav-right,
    .nav-left .nav-dropdown-wrap,
    .nav-left > .nav-link-scroll {
        display: none !important;
    }

    #burger-menu {
        display: none !important;
    }

    header {
        padding: 15px 5%;
        display: flex !important;
        justify-content: flex-start !important;
        /* Align to top-left */
        align-items: center !important;
        gap: 15px;
        width: 100% !important;
        left: 0 !important;
    }

    .nav-left {
        display: flex !important;
        order: 1 !important;
        flex: none !important;
        margin-left: 0 !important;
        /* Ensure it stays left */
    }

    .side-menu-trigger {
        margin: 0 !important;
    }

    .logo-wrap {
        display: flex !important;
        order: 2 !important;
        align-items: center !important;
        max-width: none !important;
    }

    .logo-wrap div {
        display: none !important;
        /* Hide subtext on mobile */
    }

    .logo {
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }

    .hero-content h1 {
        font-size: 1.25rem !important;
        /* Smaller hero title for mobile */
    }

    .hero-subtitle {
        font-size: 0.55rem !important;
        /* More compact hero subtitle */
        letter-spacing: 0.5px !important;
    }

    /* Footer mobile adjustments */
    .footer-logo-main {
        font-size: 16px !important;
    }

    .footer-links {
        flex-wrap: nowrap !important;
        gap: 10px !important;
        justify-content: center;
        width: 100%;
    }

    .footer-links li:first-child {
        display: none !important;
        /* Hide 'Empire Visual Studio |' text */
    }

    .footer-copy-text {
        font-size: 10px;
    }

    section {
        padding: 60px 20px;
    }

    .work-grid {
        width: 100%;
        margin-left: 0;
        padding: 0;
        overflow-x: auto;
    }

    .work-track {
        gap: 15px;
    }

    .work-item {
        width: 75vw;
    }

    .work-arrow {
        display: none !important;
    }

    .floating-img {
        opacity: 0.1 !important;
        scale: 0.5;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    #scramble-text {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .letstalk-btn {
        margin-right: 0;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .modal-close:before,
    .modal-close:after {
        width: 16px;
    }

    .aurora,
    .noise,
    #cursor-dot,
    #cursor-ring,
    .cursor-ripple {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

/* Closing media query (max-width: 768px) here to include overrides */

/* --- WHATSAPP BUTTON --- */
#whatsapp-btn:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, .6);
    border-color: #fff !important;
    transform: scale(1.08) translateY(-3px);
}

#open-video-btn:hover {
    background: var(--c-accent1) !important;
    box-shadow: 0 0 25px var(--c-accent1);
    transform: scale(1.05);
}

/* --- SIDE MENU TRIGGER --- */
.side-menu-trigger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    width: 24px;
    height: 14px;
    justify-content: center;
    transition: all .3s ease;
    margin: 0 15px;
    z-index: 2001;
}

.side-menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-text);
    transition: all .3s ease;
}

.side-menu-trigger:hover span:nth-child(2) {
    transform: translateX(4px);
}

.side-menu-trigger:hover span:nth-child(3) {
    transform: translateX(8px);
}

/* --- SIDE MENU --- */
.side-menu {
    position: fixed;
    top: 0;
    left: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(7, 7, 9, 0.95);
    backdrop-filter: blur(40px);
    z-index: 2000;
    padding: 120px 60px;
    transition: left 0.7s cubic-bezier(.16, 1, .3, 1);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    margin-bottom: 50px;
}

.side-menu-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    overflow-y: auto;
    padding-right: 20px;
    scrollbar-width: none;
    /* Firefox */
}

.side-menu-content::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Edge */
}

.side-main-link {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: rgba(232, 230, 240, 0.25);
    text-transform: uppercase;
    transition: all .4s ease;
    line-height: 1.1;
    display: block;
}

.side-main-link:hover {
    color: var(--c-text);
    text-shadow: 0 0 25px var(--c-accent1);
}

.menu-group {
    position: relative;
}

.main-link-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expand-toggle {
    font-size: 1.8rem;
    color: var(--c-muted);
    cursor: pointer;
    transition: all .3s ease;
    font-weight: 300;
}

.side-sub-links {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(.16, 1, .3, 1);
    padding-left: 5px;
    margin-top: 0;
    border-left: 1px solid transparent;
}

.menu-group.expanded .side-sub-links {
    max-height: 2000px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-left: 1px solid var(--c-border);
}

.menu-group.expanded .expand-toggle {
    transform: rotate(45deg);
    color: var(--c-accent1);
}

.side-sub-links li {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.menu-group.expanded .side-sub-links li {
    opacity: 1;
    transform: translateX(0);
}

.side-sub-links a {
    font-size: 0.7rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

.side-sub-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.menu-divider {
    height: 1px;
    background: var(--c-border);
    margin: 5px 0 15px 0;
    width: 100%;
}

/* --- SERVICES ACCORDION SECTION --- */
.services-accordion-section {
    padding: 100px 0 0 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.services-accordion-section .section-header {
    margin-bottom: 40px;
    padding: 0 10%;
    align-self: flex-start;
}

.c-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    width: 100%;
    overflow: hidden;
    height: 70vh;
    overflow-anchor: none;
    /* Prevent scroll jump anchoring */
}

.c-accordion__item {
    --cover: #111;
    background: var(--cover);
    background-position: center;
    background-size: cover;
    position: relative;
    flex: 1;
    transition: all 0.7s cubic-bezier(.16, 1, .3, 1);
    overflow: hidden;
    overflow-anchor: none;
    will-change: flex;
    /* Performance optimization */
}

.c-accordion__item:hover {
    flex: 10;
}

.c-accordion__action {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 9, 0) 0%, rgba(7, 7, 9, 0.85) 100%);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.c-accordion__content {
    padding: 0 6rem 40px 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    width: 100%;
    max-width: 900px;
}

.c-accordion__item:hover .c-accordion__content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.c-accordion__title--hero {
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    font-family: var(--font-display);
    text-shadow: none;
    /* Removed glow */
}

.c-accordion__description {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font-secondary);
    text-shadow: none;
    /* Remove any glow */
}

.c-accordion__aside {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity .4s ease;
    z-index: 5;
}

.c-accordion__item:hover .c-accordion__aside {
    opacity: 0;
}

.c-accordion__aside h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    margin: 0;
}

.c-accordion__aside::after {
    content: "+";
    font-size: 2rem;
    color: var(--c-accent1);
    font-weight: 300;
}

@media (max-width: 768px) {
    .side-menu {
        width: 320px;
        padding: 100px 30px;
    }

    .side-main-link {
        font-size: 0.9rem !important;
    }

    .expand-toggle {
        font-size: 1.1rem !important;
    }

    .side-menu .logo {
        font-size: 1rem !important;
    }

    .c-accordion {
        flex-direction: column;
        height: auto;
    }

    .c-accordion__item {
        width: 100%;
        height: 150px;
        flex: none;
    }

    .c-accordion__item:hover {
        height: 400px;
    }

    .c-accordion__aside {
        right: 20px;
        transform: translateY(-50%);
        rotate: 0deg;
        flex-direction: row-reverse;
    }

    .c-accordion__content {
        padding: 30px;
    }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 20px 30px;
    z-index: 10000;
    transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    bottom: 30px;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content p {
    font-size: 0.8rem;
    color: var(--c-muted) !important;
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-secondary);
}

.cookie-content a {
    color: var(--c-accent1);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.cookie-btn.accept {
    background: var(--c-accent1);
    color: #fff;
    border: 1px solid var(--c-accent1);
}

.cookie-btn.accept:hover {
    box-shadow: 0 0 15px var(--c-accent1);
    transform: scale(1.05);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
}

.cookie-btn.decline:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
        bottom: -300px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.7rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   SEO CONTENT SECTION — "Why Choose Us" pillars + CTA
   ═══════════════════════════════════════════════════════════ */
.seo-content-section {
    padding: 100px 10%;
    min-height: auto;
    text-align: center;
}

.seo-content-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 4-column pillar grid */
.seo-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto 60px;
    max-width: 1200px;
    text-align: left;
}

.seo-pillar {
    backdrop-filter: blur(10px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.seo-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 123, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.seo-pillar:hover {
    border-color: var(--c-accent1);
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.12);
	background: rgba(0, 0, 0, 0.8);	
}

.pillar-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.seo-pillar h3 {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.seo-pillar p {
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--c-muted);
}

/* CTA Conversion Block */
.seo-cta-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.seo-cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(0, 123, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.seo-cta-block h3 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-text);
    margin-bottom: 12px;
}

.seo-cta-block > p {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--c-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.seo-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Responsive: tablet (2 columns) */
@media (max-width: 1024px) {
    .seo-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: mobile (1 column) */
@media (max-width: 600px) {
    .seo-pillars {
        grid-template-columns: 1fr;
    }

    .seo-content-section {
        padding: 80px 5%;
    }

    .seo-cta-block {
        padding: 35px 20px;
    }

    .seo-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .seo-cta-actions a {
        justify-content: center;
    }
}

/* --- YOUTUBE HERO BACKGROUND --- */
.hero-youtube-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.6;
}

.hero-youtube-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    .hero-youtube-bg {
        height: 56.25vw;
    }
}
@media (max-aspect-ratio: 16/9) {
    .hero-youtube-bg {
        width: 177.78vh;
    }
}

/* --- RESPONSIVE EMBEDS IN POST CONTENT --- */
/* Standalone iframes / videos / embeds in content */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
    max-width: 100% !important;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* Standalone iframes (NOT inside Gutenberg wrappers) */
.entry-content iframe:not(.wp-block-embed__wrapper iframe) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}

/* Standalone vertical iframes/shorts */
.entry-content iframe:not(.wp-block-embed__wrapper iframe)[src*="/shorts/"],
.entry-content iframe:not(.wp-block-embed__wrapper iframe)[src*="shorts"] {
    aspect-ratio: 9 / 16 !important;
}
.entry-content iframe:not(.wp-block-embed__wrapper iframe)[width][height] {
    aspect-ratio: auto !important;
}

/* Direct self-hosted video elements */
.entry-content video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
}

/* Gutenberg block embeds configuration */
.wp-block-embed {
    width: 100% !important;
    margin: 1.5rem 0 !important;
}

.wp-block-embed__wrapper {
    position: relative;
    width: 100% !important;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; /* keeps border-radius working */
    
    /* Default landscape aspect ratio */
    aspect-ratio: 16 / 9 !important;
}

/* Let Gutenberg override the aspect ratio of the wrapper using standard classes */
.wp-embed-aspect-9-16 .wp-block-embed__wrapper {
    aspect-ratio: 9 / 16 !important;
}
.wp-embed-aspect-1-1 .wp-block-embed__wrapper {
    aspect-ratio: 1 / 1 !important;
}
.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
    aspect-ratio: 4 / 3 !important;
}

/* Iframes inside Gutenberg wrapper MUST occupy 100% height and width of the wrapper */
.wp-block-embed__wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important; /* Crucial: fills the wrapper height */
    border: none !important;
    margin: 0 !important;
}




/* ═══════════════════════════════════════════════════════════════════
   EVAI THEME LAYER · css/evsnext-skin.css · v4
   -------------------------------------------------------------------
   The complete visual re-theme of the aievs2026 markup in the evsNext
   design language. Content/markup/functionality untouched.
   NAMING CONVENTION: every element added by this layer is prefixed
   evai-  (evai-fullscreen, evai-hud, evai-boot, evai-lightbox-nav …)
   and is reusable on every page.
   -------------------------------------------------------------------
   INDEX
   01 tokens          08 header/nav       15 cards            22 cookie
   02 typography      09 letstalk green   16 accordion        23 music player
   03 progress off    10 evai-fullscreen  17 seo pillars      24 content pages
   04 evai-scanlines  11 side menu        18 portfolio        25 footer
   05 ambient fx      12 tags/buttons     19 contact fade     26 evai-faq (Q&A)
   06 evai-boot       13 hero glitch      20 evai-lightbox    27 motion polish
   07 evai-hud        14 metallic type    21 scrollbar
   ═══════════════════════════════════════════════════════════════════ */

/* ══ 01. DESIGN TOKENS ══════════════════════════════════════════════ */
:root {
    --c-bg: #04060a;
    --c-surface: rgba(255, 255, 255, 0.035);
    --c-border: rgba(255, 255, 255, 0.08);
    --c-border-blue: rgba(46, 133, 255, 0.24);
    --c-text: #f2f5f9;
    --c-secondary: #9ba7b4;
    --c-muted: #8b97a5;
    --c-accent1: #2e85ff;
    --c-accent2: #85bdff;
    --c-accent3: #0b5ed7;
    --c-green: #25D366;
    --evai-ice: #a8d4ff;
    --evai-glow: 0 0 14px rgba(46, 133, 255, .5), 0 0 44px rgba(46, 133, 255, .2);
    --evai-glow-green: 0 0 14px rgba(37, 211, 102, .45), 0 0 40px rgba(37, 211, 102, .18);
    --evai-grad-metal: linear-gradient(180deg, #fff 0%, #bfc9d5 60%, #7d8997 100%);
    --evai-ease: cubic-bezier(.16, 1, .3, 1);
}
body { background: var(--c-bg); }
a:hover { color: var(--c-accent2); text-shadow: 0 0 8px rgba(46,133,255,.8), 0 0 16px rgba(46,133,255,.4); }

/* ══ 02. TYPOGRAPHY — evsNext scale + readability ═══════════════════ */
.hero-subtitle { font-size: clamp(.72rem, 1.7vw, .95rem); letter-spacing: .28em; }
.glitch { font-size: clamp(1.5rem, 3.6vw, 2.8rem); }
/* unified section titles: display font, UPPERCASE, italic, thin, smaller */
.section-title, .section-header h2, .seo-cta-block h3, .spotlight-content .section-title {
    font-family: var(--font-main) !important;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.25rem, 2.5vw, 1.9rem);
    letter-spacing: .06em;
}
.seo-cta-block h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
/* readable body copy in secondary font; descriptors italic */
p { font-family: var(--font-secondary); }
.section-header .section-sub, .c-accordion__description, .seo-pillar p, .card-desc,
.seo-intro, .seo-cta-block > p, .about-copy p, .post-content-section p {
    font-size: .875rem; font-style: italic; letter-spacing: .01em;
}
.seo-intro { font-size: .92rem; }
.card-title { font-size: 1.05rem; }
.seo-pillar h3 { font-size: .78rem; }
.work-title { font-size: 15px; }
.tag { font-size: .62rem; letter-spacing: .26em; }
.nav-left, .nav-right { font-size: 10px; letter-spacing: 2.5px; font-weight: 500; }
.dropdown-menu li a { font-size: 9px; }
.footer-links { font-size: 11px; }
.footer-copy { font-size: 10px; }
#scramble-text { font-size: clamp(1.35rem, 4.4vw, 2.5rem); font-weight: 300; }
.side-main-link { font-size: 1.3rem; letter-spacing: .05em; }
.side-sub-links a { font-size: .64rem; }
.marquee-item { font-size: .75rem; letter-spacing: .16em; }
em, .post-content-section em { font-style: italic; color: var(--evai-ice); }
.single-hero h1 { font-size: clamp(1.35rem, 3.4vw, 2.6rem); }
.post-content-section h2 { font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.post-content-section h3 { font-size: clamp(1rem, 1.8vw, 1.35rem); }

/* ══ 03. TOP PROGRESS LINE — removed ════════════════════════════════ */
#progress { display: none !important; }

/* ══ 04. EVAI-SCANLINES — site-wide filter layer (injected) ═════════ */
.evai-scanlines {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, .12) 3px 5px);
    opacity: .55;
}
@media (max-width: 768px) { .evai-scanlines { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .evai-hud i, .evai-boot i, .evai-boot-logo::after { animation: none !important; } }

/* ══ 05. AMBIENT FX ═════════════════════════════════════════════════ */
.aurora-blob { opacity: .14; filter: blur(90px); }
#cursor-dot { box-shadow: 0 0 12px rgba(46, 133, 255, .9); }
#cursor-ring { border-color: rgba(168, 212, 255, .45); }

/* ══ 06. EVAI-BOOT — preloader boot screen (injected) ═══════════════ */
#evai-preloader { background: var(--c-bg); gap: 26px; }
.evai-boot { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.evai-preloader-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 50px;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    background: var(--evai-grad-metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    pointer-events: none;
}
.evai-boot i { position: absolute; display: block; border-radius: 50%; }
.evai-boot-ring   { inset: -4px; border: 2px solid rgba(46,133,255,.4); border-top-color: #00d4ff; border-right-color: #2e85ff; animation: evaiSpin 1.4s linear infinite; box-shadow: 0 0 20px rgba(46,133,255,.6), 0 0 35px rgba(0,212,255,.4); mix-blend-mode: screen; }
.evai-boot-circle { inset: 8%;  border: 1.5px dashed rgba(133,189,255,.35); animation: evaiSpin 4s linear infinite reverse; mix-blend-mode: screen; }
.evai-boot-blade  { inset: 12%;  background: radial-gradient(circle, rgba(46,133,255,.28), transparent 70%); animation: evaiPulse 2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes evaiSpin  { to { transform: rotate(360deg); } }
@keyframes evaiPulse { 0%,100% { opacity:.4; transform:scale(.94); } 50% { opacity:1; transform:scale(1.04); } }
/* logo inside the circle — circle-matched, light sweep follows shape */
.evai-boot-logo {
    position: absolute; inset: 10%;
    border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.evai-boot-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 16px rgba(46,133,255,.6)); }
.evai-boot-logo::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
    background-size: 250% 100%; background-position: 200% 0;
    animation: evaiLogoSweep 2.2s ease-in-out infinite; pointer-events: none;
    mix-blend-mode: screen;
}
@keyframes evaiLogoSweep { 0% { background-position: 200% 0; } 60%,100% { background-position: -120% 0; } }
.evai-boot-status { font-family:'DM Mono',monospace; font-size:.6rem; letter-spacing:.3em; text-transform:uppercase; color:var(--c-muted); display:flex; gap:14px; align-items:center; }
.evai-boot-status b { color: var(--c-accent2); font-weight: 500; }
.evai-preloader-bar { background: linear-gradient(90deg, var(--c-accent3), var(--c-accent1), var(--c-accent2)); background-size: 200% 100%; }

/* ══ 07. EVAI-HUD — section chips, BOTTOM-LEFT corners (injected) ═══ */
.evai-hud {
    position: absolute; top: auto; bottom: 14px; left: 16px;
    display: flex; align-items: center; gap: 8px;
    font: 7px/1 'Orbitron', Arial, sans-serif;
    letter-spacing: .2em; text-transform: uppercase;
    color: #768292; z-index: 6; pointer-events: none;
}
.evai-hud-right {
    position: absolute; top: auto; bottom: 14px; right: 16px;
    display: flex; align-items: center; gap: 8px;
    font: 7px/1 'Orbitron', Arial, sans-serif;
    letter-spacing: .2em; text-transform: uppercase;
    color: #768292; z-index: 6; pointer-events: none;
}
.evai-hud-line {
    width: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent1));
}
.evai-hud i { width: 4px; height: 4px; border-radius: 50%; background: #45a0ff; box-shadow: 0 0 10px #2e85ff; animation: evaiBlink 1.5s infinite; }
.evai-hud b { color: var(--c-accent2); font-weight: 500; }
@keyframes evaiBlink { 0%,49% { opacity:1; } 50%,100% { opacity:.35; } }
@media (max-width: 768px) { .evai-hud { bottom: 12px; left: 14px; } }

/* ══ 08. EVAI-HEADER — nav refresh (original markup) ════════════════ */
header { padding: 24px 40px; }
header.scrolled {
    background: linear-gradient(to bottom, rgba(3,5,9,.9), rgba(3,5,9,.75));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 12px 40px;
}
.logo { background: var(--evai-grad-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: .14em; }
.logo a { -webkit-text-fill-color: transparent; }
.nav-left > a, .nav-dropdown-wrap > a { color: var(--c-secondary); position: relative; padding-bottom: 3px; }
.nav-left > a::before, .nav-dropdown-wrap > a::before {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: linear-gradient(90deg, var(--c-accent1), var(--c-accent2));
    transition: width .35s var(--evai-ease);
}
.nav-left > a:hover::before, .nav-dropdown-wrap:hover > a::before { width: 100%; }
.nav-left > a:hover, .nav-dropdown-wrap:hover > a { color: var(--c-text); text-shadow: none; }
#main-header .nav-right { padding-right: 46px; }
@media (max-width: 768px) { #main-header .nav-right { padding-right: 0; } }
/* evai-header-menu — dropdowns with first-image thumbnails */
.dropdown-menu {
    background: rgba(4,6,10,.94);
    border: 1px solid var(--c-border);
    border-top: 1px solid var(--c-border-blue);
    border-radius: 4px; min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,.8), 0 0 30px rgba(46,133,255,.06);
}
.dropdown-menu li a { color: var(--c-accent2); display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; }
.dropdown-menu li a::before { display: none; }
.dropdown-menu li a:hover { background: rgba(46,133,255,.07); padding-left: 14px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: rgba(46,133,255,.3); }
.evai-dd-thumb, .evsx-dd-thumb {
    width: 44px; height: 26px; object-fit: cover; border-radius: 3px;
    border: 1px solid rgba(46,133,255,.25); flex-shrink: 0; filter: saturate(.85);
    transition: border-color .3s ease, filter .3s ease, transform .3s ease;
}
.dropdown-menu li a:hover .evai-dd-thumb, .dropdown-menu li a:hover .evsx-dd-thumb {
    border-color: var(--c-accent1); filter: saturate(1); transform: scale(1.06);
    box-shadow: 0 0 12px rgba(46,133,255,.35);
}

/* ══ 09. LET'S TALK — green, evsNext interaction ════════════════════ */
.letstalk-btn {
    border: 1px solid rgba(37,211,102,.45); border-radius: 2px; padding: 10px 34px;
    color: var(--c-green) !important; background: rgba(37,211,102,.08);
    letter-spacing: 2.5px; transition: all .35s var(--evai-ease);
}
.letstalk-btn:hover {
    background: var(--c-green); color: #04140a !important; border-color: var(--c-green);
    box-shadow: var(--evai-glow-green); transform: translateY(-2px); text-shadow: none;
}

/* ══ 10. EVAI-FULLSCREEN — fixed top-right corner control ═══════════ */
.evai-fullscreen {
    position: fixed; top: 14px; right: 14px; z-index: 1500;
    width: 28px; height: 28px; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(4,6,10,.55);
    border: 1px solid var(--c-border-blue); border-radius: 2px;
    cursor: pointer; transition: all .3s var(--evai-ease); flex-shrink: 0;
}
.evai-fullscreen i { position: relative; display: block; width: 10px; height: 10px; }
.evai-fullscreen i::before, .evai-fullscreen i::after {
    content: ""; position: absolute; width: 4px; height: 4px;
    border: 1.5px solid var(--c-accent2); transition: all .3s ease;
}
.evai-fullscreen i::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.evai-fullscreen i::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.evai-fullscreen:hover { background: rgba(46,133,255,.16); border-color: var(--c-accent1); box-shadow: var(--evai-glow); transform: translateY(-2px); }
.evai-fullscreen[aria-pressed="true"] i::before { top: 3px; left: 3px; }
.evai-fullscreen[aria-pressed="true"] i::after  { bottom: 3px; right: 3px; }
@media (max-width: 768px) { .evai-fullscreen { display: none !important; } }

/* ══ 11. SIDE MENU ══════════════════════════════════════════════════ */
.side-menu { background: rgba(4,6,10,.94); border-right: 1px solid var(--c-border-blue); }
.side-menu-trigger:hover span { background: var(--c-accent2); box-shadow: 0 0 8px rgba(46,133,255,.6); }
.side-main-link { color: rgba(155,167,180,.3); }
.side-main-link:hover { color: var(--c-text); text-shadow: 0 0 25px var(--c-accent1); }
.menu-group.expanded .side-sub-links { border-left: 1px solid var(--c-border-blue); }
.side-sub-links a:hover { color: #fff; padding-left: 12px; }

/* ══ 12. TAGS & BUTTONS ═════════════════════════════════════════════ */
.tag { border-radius: 2px; background: rgba(46,133,255,.04); color: var(--c-secondary); padding: .4rem .9rem; }
.tag:hover { border-color: var(--c-accent1); color: #fff; box-shadow: 0 0 18px rgba(46,133,255,.25); }
#open-video-btn { border-radius: 2px; transition: all .35s var(--evai-ease); }
#open-video-btn:hover { background: var(--c-accent1) !important; box-shadow: var(--evai-glow); transform: translateY(-2px) scale(1.03); }
#whatsapp-btn { border-radius: 2px; }
#whatsapp-btn:hover { transform: scale(1.05) translateY(-3px); }
#seo-cta-whatsapp, #seo-cta-email { border-radius: 2px; }

/* ══ 13. HERO GLITCH — EVS blues ════════════════════════════════════ */
@keyframes glitch-main {
    0%, 46%, 51%, 100% { transform: none; -webkit-text-fill-color: transparent; filter: drop-shadow(0px 2px 4px rgba(0,0,0,.8)); }
    47% { transform: skewX(2deg) scaleY(1.05); -webkit-text-fill-color: #2e85ff; filter: none; }
    48% { transform: skewX(-3deg) translateX(-5px); -webkit-text-fill-color: #85bdff; filter: drop-shadow(0 0 10px #2e85ff); }
    49% { transform: skewX(5deg) scaleY(.9); -webkit-text-fill-color: #45a0ff; }
    50% { transform: translateX(10px) skewX(-10deg); -webkit-text-fill-color: #a8d4ff; }
}
.scanlines { background: linear-gradient(to bottom, transparent 50%, rgba(46,133,255,.09) 50%); background-size: 100% 4px; }
.hero-overlay { background: radial-gradient(circle at center, transparent, var(--c-bg) 85%), linear-gradient(to top, rgba(3,5,9,.85), transparent 45%); }

/* ══ 14. METALLIC DISPLAY TYPE ══════════════════════════════════════ */
.section-title, .footer-logo, .seo-cta-block h3 {
    background: var(--evai-grad-metal);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.divider { background: linear-gradient(90deg, transparent, rgba(46,133,255,.5) 30%, rgba(46,133,255,.5) 70%, transparent); }
.marquee-wrap { background: rgba(46,133,255,.02); }
.marquee-sep { color: var(--c-accent1); }

/* ══ 15. CARDS — EVS blue glass ═════════════════════════════════════ */
.card { border-radius: 6px; padding: 2.6rem 1.9rem; }
.card::after {
    inset: 0; border-radius: 6px;
    background: radial-gradient(120% 120% at 50% 0%, rgba(46,133,255,.14), transparent 55%);
    animation: none; z-index: 0; pointer-events: none;
}
.card:hover {
    background: rgba(46,133,255,.05); border-color: var(--c-border-blue);
    box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 40px rgba(46,133,255,.12);
    backdrop-filter: blur(20px) saturate(1.4);
}
.card:hover .card-title { color: var(--c-text); }
.card:hover .card-desc { color: var(--c-secondary); }
.card-icon { color: var(--c-accent2); text-shadow: 0 0 24px rgba(46,133,255,.6); font-size: 2.1rem; }
.card-title, .card-desc, .card-icon { position: relative; z-index: 1; }

/* ══ 16. ACCORDION ══════════════════════════════════════════════════ */
.c-accordion__item { border-right: 1px solid rgba(255,255,255,.04); }
.c-accordion__action { background: linear-gradient(180deg, rgba(4,6,10,0) 0%, rgba(4,6,10,.88) 100%); }
.c-accordion__aside h2 { font-size: .68rem; }
.c-accordion__aside::after { color: var(--c-accent1); }

/* ══ 17. SEO PILLARS + CTA ══════════════════════════════════════════ */
.seo-pillar { border-radius: 6px; background: rgba(4,6,10,.35); padding: 28px 22px; }
.seo-pillar::before { background: radial-gradient(circle at top left, rgba(46,133,255,.07), transparent 60%); }
.seo-pillar:hover { border-color: var(--c-border-blue); box-shadow: 0 12px 40px rgba(46,133,255,.12); background: rgba(3,5,9,.85); }
.pillar-icon { font-size: 1.7rem; }
.seo-cta-block { border-radius: 8px; }
.seo-cta-block::before { background: radial-gradient(ellipse at top, rgba(46,133,255,.1), transparent 60%); }
.seo-serving { font-size: .72rem; font-style: italic; }

/* ══ 18. EVAI-PORTFOLIO — work grid ═════════════════════════════════ */
.work-item { border-radius: 6px; background: #0a0e14; border: 1px solid rgba(46,133,255,.18); position: relative; }
.work-item:hover { border-color: var(--c-accent1); box-shadow: 0 0 30px rgba(46,133,255,.18); }
.work-item img { border-width: 0; filter: saturate(.85); }
.work-item:hover img { border-color: transparent; filter: saturate(1); }
.work-content { background: linear-gradient(transparent, rgba(3,5,9,.9)); }
.work-cat { color: var(--c-accent2); letter-spacing: .3em; font-size: 9px; }
.work-grid:hover .work-arrow { background: rgba(46,133,255,.18); }
.work-arrow { width: 70px; height: 70px; font-size: 1.7rem; }
.work-arrow:hover { box-shadow: var(--evai-glow); }

/* ══ 19. CONTACT — frame removed, 4-edge fade ═══════════════════════ */
#contact .spotlight-section { border: 0; background: transparent; border-radius: 0; }
#contact::before {
    opacity: .5;
    -webkit-mask-image: radial-gradient(78% 72% at 50% 50%, #000 45%, transparent 98%);
    mask-image: radial-gradient(78% 72% at 50% 50%, #000 45%, transparent 98%);
}

/* ══ 20. EVAI-LIGHTBOX — modals, small ×, prev/next nav ═════════════ */
.modal-frame {
    border-radius: 10px;
    box-shadow: 0 50px 150px rgba(0,0,0,.9), -30px 0 80px rgba(46,133,255,.18), 30px 0 80px rgba(11,94,215,.18), inset 0 0 30px rgba(255,255,255,.03);
}
.thumb-scroller { background: #05070c; }
.v-thumb { border-radius: 4px; position: relative; }
.v-thumb img { border-radius: 3px; }
.modal-close {
    width: 28px; height: 28px; top: 22px; right: 22px;
    background: transparent; backdrop-filter: none;
    border: 1px solid rgba(255,255,255,.28); border-radius: 2px;
}
.modal-close:before, .modal-close:after { width: 12px; height: 1.5px; }
.modal-close:hover { background: rgba(46,133,255,.18); border-color: var(--c-accent1); transform: none; box-shadow: var(--evai-glow); }
/* evai-lightbox-nav — injected prev/next arrows for the image lightbox */
.evai-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 56px; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    background: rgba(4,6,10,.6); backdrop-filter: blur(8px);
    border: 1px solid var(--c-border-blue); border-radius: 3px;
    color: var(--c-accent2); font-size: 1.15rem; line-height: 1;
    cursor: pointer; user-select: none;
    transition: all .3s var(--evai-ease);
}
.evai-lightbox-nav:hover { background: rgba(46,133,255,.22); border-color: var(--c-accent1); color: #fff; box-shadow: var(--evai-glow); }
.evai-lightbox-nav--prev { left: 16px; }
.evai-lightbox-nav--next { right: 16px; }
@media (max-width: 768px) {
    .modal-close { width: 26px; height: 26px; top: 14px; right: 14px; }
    .modal-close:before, .modal-close:after { width: 11px; }
    .evai-lightbox-nav { width: 34px; height: 46px; }
    .evai-lightbox-nav--prev { left: 8px; }
    .evai-lightbox-nav--next { right: 8px; }
}

/* ══ 21. SCROLLBAR ══════════════════════════════════════════════════ */
::-webkit-scrollbar-thumb { background: rgba(46,133,255,.4); }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent1); box-shadow: 0 0 10px var(--c-accent1); }

/* ══ 22. COOKIE BANNER ══════════════════════════════════════════════ */
.cookie-banner { background: rgba(4,6,10,.88); border: 1px solid var(--c-border-blue); border-radius: 6px; }
.cookie-content p { font-size: .78rem; font-style: italic; }
.cookie-btn { border-radius: 2px; letter-spacing: .1em; font-size: .68rem; }
.cookie-btn.accept:hover { box-shadow: var(--evai-glow); }
.cookie-content a { color: var(--c-accent2); }

/* ══ 23. MUSIC PLAYER — playlist matched to theme ═══════════════════
   (Bar/panel base skin lives appended in music/player.css; these rules
   theme the playlist TRACK ROWS generated by player.js.) */
.evmp-pl-tracks > * {
    font-family: var(--font-secondary) !important;
    font-size: .72rem !important;
    color: var(--c-secondary) !important;
    border-radius: 3px;
    border-left: 2px solid transparent;
    transition: background .25s ease, color .25s ease, border-color .25s ease, padding-left .25s ease;
}
.evmp-pl-tracks > *:hover {
    background: rgba(46,133,255,.08) !important;
    color: var(--c-text) !important;
    border-left-color: var(--c-accent1);
}
.evmp-pl-tracks > *[class*="active"],
.evmp-pl-tracks > *[class*="current"],
.evmp-pl-tracks > *[class*="playing"] {
    background: rgba(46,133,255,.14) !important;
    color: var(--evai-ice) !important;
    border-left-color: var(--c-accent2);
    text-shadow: 0 0 10px rgba(46,133,255,.5);
}
.post-content-section audio, audio, .mejs-container.wp-audio-shortcode, .mejs-container {
    border-color: var(--c-accent1) !important;
    box-shadow: 0 10px 30px rgba(46,133,255,.2);
}

/* ══ 24. CONTENT PAGES + IMAGE FRAMES / BORDER LIGHT ════════════════ */
.post-content-section pre, .post-content-section code { color: var(--c-accent2); }
.post-content-section blockquote { border-left-color: var(--c-accent1); font-style: italic; }
.post-content-section hr { background: linear-gradient(90deg, transparent, var(--c-accent2) 30%, var(--c-accent2) 70%, transparent); }
@property --evai-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes evaiBorderSpin { to { --evai-a: 360deg; } }
.work-item::after, .wp-block-embed__wrapper::after, .v-thumb::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: conic-gradient(from var(--evai-a), transparent 0deg 290deg,
                rgba(46,133,255,.2) 310deg, #2e85ff 335deg, #a8d4ff 355deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 3;
}
.wp-block-embed__wrapper { position: relative; border: 1px solid rgba(46,133,255,.22) !important; }
.work-item:hover::after, .wp-block-embed__wrapper:hover::after, .v-thumb:hover::after, .v-thumb.active::after {
    opacity: 1; animation: evaiBorderSpin 3s linear infinite;
}
.post-content-section img,
.entry-content iframe, .entry-content video, .entry-content embed, .entry-content object {
    border: 1px solid rgba(46,133,255,.28) !important; border-radius: 6px;
}
.post-content-section img:hover {
    border-color: var(--c-accent1) !important; transform: scale(1.01);
    box-shadow: 0 0 24px rgba(46,133,255,.3), 0 10px 30px rgba(0,0,0,.5);
}

/* ══ 25. FOOTER ═════════════════════════════════════════════════════ */
footer { background: linear-gradient(to bottom, transparent, rgba(3,5,9,.7)); }
.footer-logo { font-size: 28px; }
.footer-services-list a { letter-spacing: .08em; }
address { font-style: italic !important; }

/* ══ 26. EVAI-FAQ — RankMath Q&A as click-to-open accordion ═════════ */
.rank-math-block .rank-math-list-item, .rank-math-list .rank-math-list-item {
    background: rgba(4,6,10,.5);
    border: 1px solid var(--c-border-blue); border-radius: 6px;
    padding: 0; margin: 0 0 14px; overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.rank-math-list-item:hover { border-color: rgba(46,133,255,.5); box-shadow: 0 0 24px rgba(46,133,255,.1); }
.rank-math-question {
    display: flex !important; align-items: center; gap: 12px;
    margin: 0 !important; padding: 14px 18px !important;
    background: linear-gradient(90deg, rgba(46,133,255,.1), transparent 70%);
    font-family: var(--font-main) !important;
    font-size: .92rem !important; color: var(--c-text) !important; line-height: 1.35 !important;
}
.rank-math-question::before {
    content: "Q"; flex-shrink: 0; width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(46,133,255,.16); border: 1px solid var(--c-accent1); border-radius: 3px;
    font-family: 'Orbitron', sans-serif; font-size: .65rem; font-weight: 900; color: var(--c-accent2);
}
.rank-math-answer {
    position: relative; margin: 0 0 12px 12px !important;
    padding: 14px 18px 16px 54px !important;
    font-family: var(--font-secondary) !important;
    font-size: .875rem !important; font-style: italic;
    color: var(--c-secondary) !important; line-height: 1.7 !important;
    border-left: 2px solid rgba(46,133,255,.35);
}
.rank-math-answer::before {
    content: "A"; position: absolute; left: 18px; top: 15px; width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(133,189,255,.08); border: 1px solid rgba(133,189,255,.4); border-radius: 3px;
    font-family: 'Orbitron', sans-serif; font-size: .65rem; font-weight: 900; font-style: normal; color: var(--evai-ice);
}
/* accordion behaviour (activated by evai- motion js adding .evai-faq) */
.evai-faq .rank-math-question { cursor: pointer; border-bottom: 0; }
.evai-faq .rank-math-question::after {
    content: "+"; margin-left: auto; flex-shrink: 0;
    font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500;
    color: var(--c-accent2); transition: transform .35s var(--evai-ease);
}
.evai-faq .rank-math-answer {
    max-height: 0; overflow: hidden; opacity: 0;
    margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
    transition: max-height .45s var(--evai-ease), opacity .35s ease, padding .35s ease, margin .35s ease;
}
.evai-faq.evai-open { border-color: rgba(46,133,255,.5); }
.evai-faq.evai-open .rank-math-question { border-bottom: 1px solid rgba(46,133,255,.18); }
.evai-faq.evai-open .rank-math-question::after { transform: rotate(45deg); }
.evai-faq.evai-open .rank-math-answer {
    max-height: 600px; opacity: 1;
    margin-bottom: 12px !important; padding-top: 14px !important; padding-bottom: 16px !important;
}

/* ══ 27. MOTION POLISH ══════════════════════════════════════════════ */
.reveal { filter: blur(6px); transition: opacity .8s var(--evai-ease), transform .8s var(--evai-ease), filter .8s ease; }
.reveal.in-view { filter: blur(0); }
.cards-grid .card:nth-child(2), .seo-pillars .seo-pillar:nth-child(2) { transition-delay: .08s; }
.cards-grid .card:nth-child(3), .seo-pillars .seo-pillar:nth-child(3) { transition-delay: .16s; }
.seo-pillars .seo-pillar:nth-child(4) { transition-delay: .24s; }
.reveal, .c-accordion__item, .work-track, .marquee-track { backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .reveal { filter: none; transition: none; } }

/* AI Generation Station */
.btn-ai-station {
    background: linear-gradient(90deg, #0b5ed7, #00d4ff, #0b5ed7);
    background-size: 200% auto;
    animation: evaiLogoSweep 3s infinite linear;
}
.btn-ai-station:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}
.ai-station-frame {
    background: linear-gradient(135deg, rgba(2,7,18,0.7) 0%, rgba(6,17,42,0.7) 50%, rgba(2,7,18,0.7) 100%);
    border: 1px solid rgba(46, 133, 255, 0.3);
    border-radius: 0;
    overflow: hidden;
}
.ai-station-frame::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(46,133,255,0.03) 10px, rgba(46,133,255,0.03) 11px);
}
@keyframes aiStationBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ══ 28. ASSET RELOCATION (v4.1) — media moved to /assets/ ══════════
   Direct overrides so fonts + section backgrounds never depend on
   the .htaccess legacy-path rewrites. */
@font-face {
    font-family: 'EVSFont';
    src: url('../assets/font/evsfont.woff2') format('woff2'),
         url('../assets/font/evsfont.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
#about::before       { background-image: url('../assets/img/ai-aboutbackground.jpg') !important; }
#seo-content::before { background-image: url('../assets/img/ai-seocontent.jpg') !important; }
#work::before        { background-image: url('../assets/img/ai-work.jpg') !important; }
#contact::before     { background-image: url('../assets/img/ai-contactbackground.jpg') !important; }


/* ══ 29. EVAI-FAQ v2 (v4.2) — accordion driven by scripts.js ════════
   scripts.js already toggles .is-active on .rank-math-list-item.
   These rules bind the open/close styling to that class (the earlier
   .evai-open rules are inert; behaviour has ONE owner: scripts.js). */
.evai-faq .rank-math-answer,
.rank-math-list-item .rank-math-answer {
    max-height: 0; overflow: hidden; opacity: 0;
    margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
    transition: max-height .45s var(--evai-ease), opacity .35s ease, padding .35s ease, margin .35s ease;
}
.evai-faq.is-active,
.rank-math-list-item.is-active { border-color: rgba(46, 133, 255, .5); }
.evai-faq.is-active .rank-math-question,
.rank-math-list-item.is-active .rank-math-question { border-bottom: 1px solid rgba(46, 133, 255, .18); }
.evai-faq .rank-math-question::after,
.rank-math-list-item .rank-math-question::after {
    content: "+"; margin-left: auto; flex-shrink: 0;
    font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500;
    color: var(--c-accent2); transition: transform .35s var(--evai-ease);
}
.evai-faq.is-active .rank-math-question::after,
.rank-math-list-item.is-active .rank-math-question::after { transform: rotate(45deg); }
.evai-faq.is-active .rank-math-answer,
.rank-math-list-item.is-active .rank-math-answer {
    max-height: 600px; opacity: 1;
    margin-bottom: 12px !important; padding-top: 14px !important; padding-bottom: 16px !important;
}
.rank-math-question { cursor: pointer; }
