@font-face {
    font-family: 'EVSFont';
    src: url('../font/evsfont.eot');
    src: url('../font/evsfont.eot?#iefix') format('embedded-opentype'),
        url('../font/evsfont.woff2') format('woff2'),
        url('../font/evsfont.woff') format('woff'),
        url('../font/evsfont.ttf') format('truetype'),
        url('../font/evsfont.svg#EVSFont') format('svg');
    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: var(--c-accent1);
    color: #000;
    border-color: var(--c-accent1);
    box-shadow: 0 0 20px rgba(0, 123, 255, .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;
    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);
}

/* Invisible bridge to prevent menu closing when moving cursor */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.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,
#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');
}

#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: 35vw;
    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;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
    filter: grayscale(.2);
}

.work-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.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: 60vw;
    }
}

@media (max-width: 768px) {

    .nav-right,
    .nav-left .nav-dropdown-wrap {
        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: 85vw;
    }

    .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: 1.8rem;
    }

    .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;
    }
}