/* ═══════════════════════════════════════════════════
   NexusMind — Desert Edition
   Cloned layout with desert background & film grain
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only — visible to crawlers, hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --color-white: #ffffff;
    --color-off-white: #e8e2e2;
    --color-light: #c8b8b8;
    --color-muted: #9a8080;
    --color-dark: #0d0808;
    --color-bg: #080404;
    --color-accent: #d4382c;
    --color-accent-bright: #ff4a3a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'DM Serif Display', 'Georgia', serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-off-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Desert Background ──────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        url('assets/desert-bg.jpg') center center / cover no-repeat;
    z-index: -2;
}

/* Dark overlay for readability */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 4, 4, 0.6) 0%,
            rgba(8, 4, 4, 0.45) 25%,
            rgba(8, 4, 4, 0.4) 50%,
            rgba(8, 4, 4, 0.5) 75%,
            rgba(8, 4, 4, 0.75) 100%);
    z-index: -1;
}

/* ── Film Grain Overlay ─────────────────────────── */
.film-grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.film-grain::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: grain 0.4s steps(8) infinite;
}

.film-grain::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise2)' opacity='1'/%3E%3C/svg%3E");
    background-size: 512px 512px;
    animation: grain 0.6s steps(5) infinite reverse;
    opacity: 0.6;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* ── Scan Lines ─────────────────────────────────── */
.scan-lines {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
    animation: scanScroll 8s linear infinite;
}

@keyframes scanScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

/* ── Glitch / Broken Signal Effect ──────────────── */
.glitch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    overflow: hidden;
    animation: glitchFlicker 6s steps(1) infinite;
}

.glitch-bar {
    position: absolute;
    left: -5%;
    width: 110%;
    background: rgba(212, 56, 44, 0.06);
    box-shadow:
        0 0 20px rgba(212, 56, 44, 0.08),
        inset 0 0 40px rgba(255, 255, 255, 0.02);
    opacity: 0;
}

.glitch-bar:nth-child(1) {
    height: 3px;
    animation: glitchBar1 4s steps(1) infinite;
}

.glitch-bar:nth-child(2) {
    height: 8px;
    animation: glitchBar2 7s steps(1) infinite;
}

.glitch-bar:nth-child(3) {
    height: 2px;
    animation: glitchBar3 5s steps(1) infinite;
}

@keyframes glitchFlicker {

    0%,
    100% {
        opacity: 1;
    }

    42% {
        opacity: 1;
    }

    42.5% {
        opacity: 0.7;
    }

    43% {
        opacity: 1;
    }

    67% {
        opacity: 1;
    }

    67.3% {
        opacity: 0.85;
    }

    67.6% {
        opacity: 1;
    }
}

@keyframes glitchBar1 {

    0%,
    100% {
        opacity: 0;
        top: 0;
    }

    5% {
        opacity: 1;
        top: 15%;
        transform: translateX(3px);
    }

    6% {
        opacity: 1;
        top: 15%;
        transform: translateX(-5px);
    }

    7% {
        opacity: 0;
    }

    35% {
        opacity: 0;
    }

    36% {
        opacity: 1;
        top: 62%;
        transform: translateX(8px);
    }

    37% {
        opacity: 1;
        top: 62%;
        transform: translateX(-2px);
    }

    38% {
        opacity: 0;
    }

    70% {
        opacity: 0;
    }

    71% {
        opacity: 1;
        top: 88%;
        transform: translateX(-6px);
    }

    72% {
        opacity: 1;
        top: 88%;
        transform: translateX(4px);
    }

    73% {
        opacity: 0;
    }
}

@keyframes glitchBar2 {

    0%,
    100% {
        opacity: 0;
        top: 0;
    }

    12% {
        opacity: 0;
    }

    13% {
        opacity: 0.8;
        top: 43%;
        transform: translateX(-10px);
    }

    14% {
        opacity: 0.8;
        top: 43%;
        transform: translateX(6px);
    }

    15% {
        opacity: 0;
    }

    52% {
        opacity: 0;
    }

    53% {
        opacity: 0.6;
        top: 28%;
        transform: translateX(12px);
    }

    54.5% {
        opacity: 0;
    }

    85% {
        opacity: 0;
    }

    86% {
        opacity: 0.7;
        top: 71%;
        transform: translateX(-8px);
    }

    87% {
        opacity: 0;
    }
}

@keyframes glitchBar3 {

    0%,
    100% {
        opacity: 0;
        top: 0;
    }

    20% {
        opacity: 0;
    }

    21% {
        opacity: 1;
        top: 55%;
        transform: translateX(5px);
    }

    21.5% {
        opacity: 1;
        top: 55%;
        transform: translateX(-7px);
    }

    22% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    61% {
        opacity: 0.9;
        top: 35%;
        transform: translateX(-3px);
    }

    61.8% {
        opacity: 0;
    }

    90% {
        opacity: 0;
    }

    91% {
        opacity: 1;
        top: 78%;
        transform: translateX(9px);
    }

    92% {
        opacity: 0;
    }
}

/* ── Navigation ─────────────────────────────────── */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
    max-width: 920px;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 20px;
    background: rgba(12, 6, 6, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 56, 44, 0.2);
    border-radius: 50px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-off-white);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
}

.logo-text {
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-light);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::before,
.nav-link::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.nav-link::before {
    color: #ff4a3a;
    z-index: -1;
}

.nav-link::after {
    color: #8b1a1a;
    z-index: -1;
}

.nav-link:hover {
    color: var(--color-white);
    animation: navGlitchText 0.4s steps(2) both;
}

.nav-link:hover::before {
    opacity: 0.7;
    animation: navGlitchLeft 0.4s steps(2) infinite;
}

.nav-link:hover::after {
    opacity: 0.7;
    animation: navGlitchRight 0.4s steps(2) infinite;
}

@keyframes navGlitchText {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 1px);
    }

    40% {
        transform: translate(2px, -1px);
    }

    60% {
        transform: translate(-1px, -1px);
    }

    80% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes navGlitchLeft {
    0% {
        clip-path: inset(0 0 65% 0);
        transform: translate(-3px, 0);
    }

    25% {
        clip-path: inset(40% 0 20% 0);
        transform: translate(2px, 0);
    }

    50% {
        clip-path: inset(10% 0 55% 0);
        transform: translate(-2px, 0);
    }

    75% {
        clip-path: inset(60% 0 5% 0);
        transform: translate(3px, 0);
    }

    100% {
        clip-path: inset(0 0 80% 0);
        transform: translate(-1px, 0);
    }
}

@keyframes navGlitchRight {
    0% {
        clip-path: inset(65% 0 0 0);
        transform: translate(3px, 0);
    }

    25% {
        clip-path: inset(20% 0 40% 0);
        transform: translate(-2px, 0);
    }

    50% {
        clip-path: inset(55% 0 10% 0);
        transform: translate(2px, 0);
    }

    75% {
        clip-path: inset(5% 0 60% 0);
        transform: translate(-3px, 0);
    }

    100% {
        clip-path: inset(80% 0 0 0);
        transform: translate(1px, 0);
    }
}

.nav-dot {
    color: rgba(212, 56, 44, 0.4);
    font-size: 0.5rem;
    user-select: none;
}

.nav-cta {
    text-decoration: none;
    color: var(--color-off-white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 9px 22px;
    border: 1px solid rgba(212, 56, 44, 0.4);
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 8px;
}

.nav-cta:hover {
    background: rgba(212, 56, 44, 0.15);
    border-color: rgba(212, 56, 44, 0.55);
    color: var(--color-white);
}

/* ── Hero Section ───────────────────────────────── */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    min-height: 100vh;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Latest Badge */
.latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    background: rgba(12, 6, 6, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 56, 44, 0.25);
    border-radius: 50px;
    margin-bottom: 36px;
    font-size: 0.82rem;
}

.badge-label {
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.badge-text {
    color: var(--color-light);
    font-weight: 400;
}

/* Hero Heading - Dot Matrix Style with Geist */
.hero-heading {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--color-off-white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;

    /* Dot matrix text effect */
    background-image: radial-gradient(circle,
            var(--color-off-white) 1.2px,
            transparent 1.2px);
    background-size: 3.5px 3.5px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 0 14px rgba(212, 56, 44, 0.2));
    transition: transform 0.4s ease-out;
}

.hero-heading em {
    font-style: italic;
}

.heading-line {
    display: block;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    color: wheat;
    max-width: 560px;
    margin: 0 auto 36px;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* CTA Buttons */
.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    color: var(--color-dark);
    background: var(--color-off-white);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--color-off-white);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-off-white);
    border-color: rgba(212, 56, 44, 0.5);
    box-shadow: 0 0 30px rgba(212, 56, 44, 0.2);
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: var(--color-light);
    font-size: 0.88rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.btn-secondary:hover {
    color: var(--color-white);
}

.btn-secondary:hover::after {
    width: 100%;
}

/* ── Company Logos Bar ──────────────────────────── */
.logos-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    background: rgba(8, 4, 4, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 56, 44, 0.12);
}

.logos-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
    font-weight: 300;
    letter-spacing: 0.02em;
    min-width: 240px;
}

.logos-list {
    display: flex;
    align-items: center;
    gap: 48px;
    flex: 1;
    justify-content: space-around;
}

.company-logo {
    font-size: 0.92rem;
    color: rgba(232, 226, 226, 0.55);
    font-weight: 500;
    letter-spacing: 0.04em;
    user-select: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.company-logo:hover {
    color: var(--color-off-white);
}

/* ── Music Toggle Button ────────────────────────── */
.music-toggle {
    position: fixed;
    bottom: 80px;
    right: 28px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 56, 44, 0.4);
    background: rgba(12, 6, 6, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.music-toggle:hover {
    border-color: rgba(212, 56, 44, 0.7);
    background: rgba(212, 56, 44, 0.15);
    transform: scale(1.08);
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-off-white);
    position: relative;
    width: 16px;
    height: 16px;
}

/* Play icon */
.icon-play {
    transition: opacity 0.3s ease;
    margin-left: 2px;
}

.music-toggle.playing .icon-play {
    display: none;
}

/* Equalizer bars */
.equalizer {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.music-toggle.playing .equalizer {
    display: flex;
}

.eq-bar {
    width: 3px;
    background: var(--color-accent-bright);
    border-radius: 1px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
    height: 4px;
    animation-delay: 0s;
}

.eq-bar:nth-child(2) {
    height: 10px;
    animation-delay: 0.15s;
}

.eq-bar:nth-child(3) {
    height: 6px;
    animation-delay: 0.3s;
}

.eq-bar:nth-child(4) {
    height: 12px;
    animation-delay: 0.45s;
}

@keyframes eqBounce {
    0% {
        height: 3px;
    }

    100% {
        height: 14px;
    }
}

/* Pulse ring when playing */
.music-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(212, 56, 44, 0.3);
    opacity: 0;
    pointer-events: none;
}

.music-toggle.playing .music-pulse {
    animation: musicPulse 2s ease-out infinite;
}

@keyframes musicPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ── Hamburger Button ───────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
    margin-left: 8px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-off-white);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 4, 4, 0.93);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 24px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-link {
    text-decoration: none;
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-off-white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease calc(var(--i) * 0.07s + 0.15s),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) calc(var(--i) * 0.07s + 0.15s),
        color 0.3s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 1px;
    background: var(--color-accent);
    transition: transform 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-accent);
}

.mobile-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-cta {
    text-decoration: none;
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    background: var(--color-off-white);
    padding: 14px 40px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(16px);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-menu.open .mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.55s,
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s,
        background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-cta:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 0 30px rgba(212, 56, 44, 0.3);
}

.mobile-footer {
    opacity: 0;
    transition: opacity 0.4s ease 0.65s;
}

.mobile-menu.open .mobile-footer {
    opacity: 1;
}

.mobile-tagline {
    font-size: 0.72rem;
    color: var(--color-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        max-width: none;
    }

    .nav-inner {
        padding: 8px 12px 8px 16px;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 120px 20px 100px;
    }

    .hero-heading {
        font-size: 2.8rem;
        background-size: 3px 3px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        max-width: 90%;
    }

    .logos-bar {
        position: relative;
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        border-top: 1px solid rgba(212, 56, 44, 0.12);
    }

    .logos-label {
        min-width: auto;
        text-align: center;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .logos-list {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 16px 32px;
        justify-content: center;
        justify-items: center;
        width: 100%;
    }

    .company-logo {
        font-size: 0.82rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2.2rem;
        background-size: 2.5px 2.5px;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 16px;
    }

    .company-logo {
        font-size: 0.75rem;
    }

    .mobile-link {
        font-size: 1.6rem;
    }

    .logos-bar {
        padding: 20px 16px;
    }

    .logos-list {
        grid-template-columns: repeat(2, auto);
        gap: 14px 28px;
    }

    /* Center the last (odd) logo across both columns */
    .logos-list .company-logo:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ── Subtle Animations ──────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.latest-badge {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-heading {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
    animation: fadeUp 0.8s ease-out 0.8s both;
}

/* ── Vignette Effect ────────────────────────────── */
.hero::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(8, 4, 4, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════
   View Portfolio Button & Overlay
   ═══════════════════════════════════════════════════ */

.btn-portfolio {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-off-white);
    padding: 14px 28px;
    border-radius: 6px;
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-portfolio:hover {
    border-color: rgba(212, 56, 44, 0.5);
    background: rgba(212, 56, 44, 0.08);
    transform: translateY(-2px);
}

/* ── Portfolio Overlay ──────────────────────────── */
.portfolio-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(4, 2, 2, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.5s,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header */
.portfolio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(212, 56, 44, 0.1);
    flex-shrink: 0;
}

.portfolio-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-brand {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-off-white);
    letter-spacing: 0.02em;
}

.portfolio-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-close:hover {
    color: var(--color-off-white);
    border-color: rgba(212, 56, 44, 0.3);
}

/* Horizontal scroll container */
.portfolio-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 40px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 56, 44, 0.3) transparent;
}

.portfolio-scroll::-webkit-scrollbar {
    height: 4px;
}

.portfolio-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 56, 44, 0.3);
    border-radius: 2px;
}

.portfolio-track {
    display: flex;
    gap: 32px;
    height: 100%;
    padding-right: 40px;
}

/* Project cards */
.portfolio-card {
    flex-shrink: 0;
    width: 680px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.12);
    background: rgba(12, 6, 6, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    border-color: rgba(212, 56, 44, 0.35);
    box-shadow: 0 16px 64px rgba(212, 56, 44, 0.1);
}

/* Screenshot placeholder */
.portfolio-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(30, 18, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 56, 44, 0.08);
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-placeholder {
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.75rem;
    color: rgba(154, 128, 128, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Project info */
.portfolio-info {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.portfolio-name {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-off-white);
}

.portfolio-desc {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.6;
    font-weight: 300;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tag {
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(212, 56, 44, 0.08);
    border: 1px solid rgba(212, 56, 44, 0.15);
    color: var(--color-accent-bright);
    letter-spacing: 0.04em;
}

.portfolio-link {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-off-white);
    text-decoration: none;
    margin-top: auto;
    padding-top: 8px;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--color-accent-bright);
}

/* Scroll hint */
.portfolio-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: rgba(154, 128, 128, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-header {
        padding: 16px 20px;
    }

    .portfolio-scroll {
        padding: 20px 20px 10px;
    }

    .portfolio-card {
        width: 85vw;
    }

    .portfolio-track {
        gap: 20px;
        padding-right: 20px;
    }
}

/* ═══════════════════════════════════════════════════
   Contact Terminal Overlay
   ═══════════════════════════════════════════════════ */

.contact-terminal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.contact-terminal.active {
    opacity: 1;
    visibility: visible;
}

.contact-terminal .ct-window {
    width: 90%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.35);
    background: #0a0a0a;
    box-shadow: 0 24px 80px rgba(212, 56, 44, 0.2),
        0 0 0 1px rgba(212, 56, 44, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-terminal.active .ct-window {
    transform: scale(1) translateY(0);
}

.contact-terminal .terminal-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid rgba(212, 56, 44, 0.15);
    gap: 10px;
}

.contact-terminal .terminal-dots {
    display: flex;
    gap: 6px;
}

.contact-terminal .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.contact-terminal .dot-red {
    background: #ff5f57;
}

.contact-terminal .dot-yellow {
    background: #febc2e;
}

.contact-terminal .dot-green {
    background: #28c840;
}

.contact-terminal .terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.7rem;
    color: rgba(154, 128, 128, 0.6);
}

.contact-terminal .terminal-close-btn {
    background: transparent;
    border: none;
    color: rgba(154, 128, 128, 0.6);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.contact-terminal .terminal-close-btn:hover {
    color: #f0e6e6;
}

.contact-terminal .terminal-content {
    padding: 24px 24px 32px;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #c8b8b8;
    min-height: 320px;
}

.contact-terminal .term-line {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-terminal .term-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-terminal .term-prompt {
    color: #d4382c;
    font-weight: 700;
}

.contact-terminal .term-cmd {
    color: #f0e6e6;
}

.contact-terminal .term-success {
    color: #28c840;
    font-weight: 600;
}

.contact-terminal .term-muted {
    color: rgba(154, 128, 128, 0.3);
}

.contact-terminal .term-label {
    color: #d4382c;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.contact-terminal .term-link {
    color: #f0e6e6;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 56, 44, 0.3);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-weight: 500;
}

.contact-terminal .term-link:hover {
    color: #d4382c;
    border-color: #d4382c;
}

.contact-terminal .term-ascii {
    line-height: 1.1;
}

.contact-terminal .term-ascii pre {
    margin: 0;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.55rem;
    color: #d4382c;
    opacity: 0.7;
}

.contact-terminal .term-cursor {
    animation: termBlink 1s step-end infinite;
    color: #d4382c;
}

@keyframes termBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .contact-terminal .terminal-content {
        padding: 16px 16px 24px;
        font-size: 0.72rem;
    }

    .contact-terminal .term-ascii pre {
        font-size: 0.38rem;
    }
}