:root {
    /* Technical Luxury System */

    /* Deep Neutrals */
    --bg-deep: #111111;
    --surface: #0a0a0a;
    --surface-light: rgba(255, 255, 255, 0.03);

    /* Accents */
    --primary: #3b82f6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --primary-dim: rgba(59, 130, 246, 0.1);

    /* Lines & Grids */
    --grid-line: rgba(255, 255, 255, 0.08);
    --grid-line-dim: rgba(255, 255, 255, 0.04);

    /* Typography */
    --on-surface: #ffffff;
    --on-surface-muted: rgba(255, 255, 255, 0.6);
    --on-surface-dim: rgba(255, 255, 255, 0.4);

    /* Transitions & Specs */
    --transition-tech: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 80px;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-deep: #bdc3c7;
    /* Even darker silver for high contrast */
    --surface: #ffffff;
    --surface-light: rgba(0, 0, 0, 0.03);
    --primary: #2b4d7b;
    /* Logo Navy Blue */
    --primary-glow: rgba(43, 77, 123, 0.4);
    --primary-dim: rgba(43, 77, 123, 0.1);
    --on-surface: #050505;
    --on-surface-muted: rgba(0, 0, 0, 0.6);
    --on-surface-dim: rgba(0, 0, 0, 0.4);
    --grid-line: rgba(0, 0, 0, 0.08);
    --grid-line-dim: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] html {
    background-color: var(--bg-deep) !important;
}

[data-theme="light"] body {
    background-color: transparent !important;
}

[data-theme="light"] .logo img {
    filter: none !important;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    background-color: #111111;
    /* Lighter base to make noise/grain pop */
}

#vanta-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

body {
    background-color: transparent !important;
    color: var(--on-surface);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    position: relative;
    z-index: 10;
    /* Always on top of environmental effects */
    width: 100%;
}


.tech-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.display-md {
    font-size: 3rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    box-sizing: border-box;
}

.display-lg,
.display-md,
.display-sm,
.body-md,
.body-sm {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Global subtle texture shadow */
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-kinetic);
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--on-surface);
}

.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.display-lg {
    font-size: 4.5rem;
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 800;
}

.body-lg {
    font-size: 1.125rem;
    color: var(--on-surface-muted);
    font-weight: 400;
}

.body-sm {
    font-size: 0.875rem;
    color: var(--on-surface-muted);
    font-weight: 500;
}

/* Layout Classes */
.container {
    max-width: 1400px;
    /* Matching Navbar */
    margin: 0 auto;
    padding: 0 40px;
}

/* Ensure navbar style matches Dribbble (more square, thin borders) */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --temp-glow: transparent !important; /* Force no glow at top */
}

.navbar .nav-container {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar .liquidGlass-text {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 20px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    --temp-glow: inherit; /* Restore temp glow color on scroll */
}

.navbar.scrolled .liquidGlass-text {
    background: rgba(5, 5, 5, 0.1) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

[data-theme="light"] .navbar.scrolled .liquidGlass-text {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 !important; /* Managed by liquidGlass-text now */
}

/* Liquid Glass Base (Injected by JS) */
.liquidGlass-wrapper {
    position: relative;
    overflow: hidden;
}

.liquidGlass-effect, .liquidGlass-tint, .liquidGlass-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquidGlass-text {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar Scrolled Neutralization */
.navbar:not(.scrolled) .liquidGlass-effect,
.navbar:not(.scrolled) .liquidGlass-tint,
.navbar:not(.scrolled) .liquidGlass-shine {
    opacity: 0 !important;
}

.navbar:not(.scrolled) .liquidGlass-text {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

[data-theme="light"] .liquidGlass-text {
    background: rgba(43, 77, 123, 0.1);
    border-color: rgba(43, 77, 123, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Clear internal glass styles for specific UI elements */
.btn .liquidGlass-text,
.nav-item .liquidGlass-text,
.nav-action .liquidGlass-text,
.mobile-bottom-nav .liquidGlass-text {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-shadow: none !important;
}

.navbar .liquidGlass-text {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px !important;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    /* Consistently sized */
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 0;
    /* Add some vertical padding to help centering */
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--on-surface-muted);
    transition: var(--transition-tech);
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* .vr-indicator base properties (styling moved to unified section) */
.vr-indicator {
    /* Style moved to common section with .lang-switcher button */
}

.tech-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(10, 10, 10, 0.85);
}

.vr-indicator:hover .tech-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-theme="light"] .tech-tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tech-tooltip::after {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.lang-switcher button, 
.vr-indicator,
.vanta-switcher {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--on-surface-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    width: 38px !important;
    height: 38px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.lang-switcher button {
    border-radius: 12px;
}

.vr-indicator,
.vanta-switcher {
    border-radius: 50%;
}

.lang-switcher button:hover,
.vr-indicator:hover,
.vanta-switcher:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: white;
}

[data-theme="light"] .lang-switcher button,
[data-theme="light"] .vr-indicator,
[data-theme="light"] .vanta-switcher {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.vanta-selection-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vanta-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 20px);
    left: 50%;
    right: auto;
    width: 220px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.dropdown-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar */
.dropdown-list::-webkit-scrollbar {
    width: 4px;
}
.dropdown-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

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


.vanta-option {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--on-surface-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    white-space: nowrap;
}

.vanta-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    padding-left: 18px;
}

.vanta-option.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    font-weight: 700;
}

.vanta-option.active::after {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    margin-left: 10px;
}

[data-theme="light"] .vanta-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


[data-theme="light"] .vanta-option:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary);
}

.vr-indicator::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #4facfe;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    box-shadow: 0 0 10px #4facfe;
    animation: vrPulse 2s infinite;
}

@keyframes vrPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.vr-indicator:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: white;
}

/* Final Polish Illustrated Theme Switcher */
.theme-switcher.illustrated {
    width: 76px;
    height: 38px;
}

.theme-switcher.illustrated .switch-track {
    width: 100%;
    height: 100%;
    background: #111;
    /* Night */
    border-radius: 40px;
    overflow: hidden;
    /* Secure containment */
    padding: 5px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-tech);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.switch-thumb {
    width: 28px;
    height: 28px;
    background: #e1e7ec;
    /* Moonlight White */
    border-radius: 50%;
    position: relative;
    z-index: 5;
    /* Lowered as requested */
    transition: var(--transition-tech);
    box-shadow: inset -3px -2px 5px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Moon Craters */
.switch-thumb::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #cbd5e0;
    border-radius: 50%;
    top: 6px;
    left: 8px;
    box-shadow: 10px 4px 0 #cbd5e0, 6px 12px 0 #cbd5e0;
    opacity: 0.8;
    transition: var(--transition-tech);
}

.stars-container,
.clouds-container,
.rain-container,
.snow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: var(--transition-tech);
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    /* Above thumb */
}

.star,
.cloud,
.drop,
.flake {
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.s1 {
    width: 2px;
    height: 2px;
    top: 10px;
    right: 15px;
}

.s2 {
    width: 3px;
    height: 3px;
    top: 22px;
    right: 25px;
}

.s3 {
    width: 2px;
    height: 2px;
    top: 14px;
    right: 8px;
}

.c1 {
    width: 28px;
    height: 28px;
    bottom: -12px;
    left: 8px;
}

.c2 {
    width: 22px;
    height: 22px;
    bottom: -4px;
    left: 24px;
}

.rain-container,
.snow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: var(--transition-tech);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
    /* Keep inside track */
}

.drop {
    position: absolute;
    width: 2px;
    height: 7px;
    background: #a5f3fc;
    border-radius: 2px;
    animation: rainFall 0.8s linear infinite;
}

.dr1 {
    top: -15px;
    left: 10px;
    animation-delay: 0s;
}

.dr2 {
    top: -15px;
    left: 22px;
    animation-delay: 0.3s;
}

.dr3 {
    top: -15px;
    left: 35px;
    animation-delay: 0.5s;
}

.dr4 {
    top: -15px;
    left: 48px;
    animation-delay: 0.1s;
}

.dr5 {
    top: -15px;
    left: 60px;
    animation-delay: 0.4s;
}

.dr6 {
    top: -15px;
    left: 70px;
    animation-delay: 0.6s;
}

.flake {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: snowFall 2.5s linear infinite;
}

.f1 {
    top: -15px;
    left: 8px;
    animation-delay: 0s;
}

.f2 {
    top: -15px;
    left: 20px;
    animation-delay: 1.2s;
}

.f3 {
    top: -15px;
    left: 35px;
    animation-delay: 0.7s;
}

.f4 {
    top: -15px;
    left: 48px;
    animation-delay: 1.8s;
}

.f5 {
    top: -15px;
    left: 60px;
    animation-delay: 0.3s;
}

.f6 {
    top: -15px;
    left: 72px;
    animation-delay: 0.9s;
}

@keyframes rainFall {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(55px);
        opacity: 0;
    }
}

@keyframes snowFall {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translate(6px, 25px);
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 58px);
        opacity: 0;
    }
}

.stars-container,
.clouds-container {
    opacity: 0;
}

/* Dynamic Weather Visibility Logic */
.theme-switcher.is-clear .stars-container {
    opacity: 1;
}

[data-theme="light"] .theme-switcher.is-clear .stars-container {
    opacity: 0;
}

/* Show clouds if cloudy, rainy or snowy */
.theme-switcher.is-cloudy .clouds-container,
.theme-switcher.is-rainy .clouds-container,
.theme-switcher.is-snowy .clouds-container {
    opacity: 0.8;
}

.theme-switcher.is-rainy .rain-container {
    opacity: 1;
}

.theme-switcher.is-snowy .snow-container {
    opacity: 1;
}

/* Grey Sky Logic — Desaturation when rainy/snowy */
.theme-switcher.is-rainy .switch-track,
.theme-switcher.is-snowy .switch-track {
    background: #334155 !important;
    /* Muted Navy Grey for Dark mode */
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .theme-switcher.is-rainy .switch-track,
[data-theme="light"] .theme-switcher.is-snowy .switch-track {
    background: #94a3b8 !important;
    /* Steel Blue Grey for Light mode */
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-switcher.is-cloudy .clouds-container,
[data-theme="light"] .theme-switcher.is-rainy .clouds-container,
[data-theme="light"] .theme-switcher.is-snowy .clouds-container {
    opacity: 1;
    transform: translateY(-28px);
    /* Adjusted so cloud isn't too high up */
}

[data-theme="light"] .theme-switcher.is-rainy .rain-container,
[data-theme="light"] .theme-switcher.is-snowy .snow-container {
    opacity: 1;
    transform: translateY(0); /* Always cover full height */
}

.temp-val {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
    /* Default: Dark mode, thumb is left, temp is right */
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 50;
    /* Always on top */
    letter-spacing: -0.02em;
    transition: var(--transition-tech);
}

[data-theme="light"] .temp-val {
    right: auto;
    left: 8px;
    /* Light mode: thumb is right, temp is left */
    color: rgba(43, 77, 123, 0.9);
}

/* Day State */
[data-theme="light"] .theme-switcher.illustrated .switch-track {
    background: #4facfe;
    /* Day Blue */
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .switch-thumb {
    transform: translateX(38px);
    background: #fbc531;
    /* Sun Gold */
    box-shadow: 0 0 20px rgba(251, 197, 49, 0.6);
}

[data-theme="light"] .switch-thumb::before {
    opacity: 0;
    /* Hide craters on Sun */
}

/* Base logic overrides removed - now handled by dynamic classes */

/* Triangle for Menu (Desktop only or specific usage) */
.triangle-btn {
    display: none;
    /* Hidden on desktop if we use bottom nav for app feel, or we can keep it for specific actions */
}

@media (min-width: 993px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 70px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--grid-line);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--on-surface-muted);
    text-decoration: none;
    transition: var(--transition-tech);
}

.mobile-bottom-nav .nav-item .material-symbols-outlined {
    font-size: 1.8rem;
    /* Larger touch targets for mobile */
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
}

[data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* VR Button Styling */
    .vr-button {
        position: fixed;
        bottom: 30px;
        left: 30px;
        z-index: 9999;
        padding: 12px 24px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        color: white;
        font-family: inherit;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .vr-button:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    }

    /* Hide VR button on standard mobile view if not needed */
    @media (max-width: 768px) {
        .vr-button {
            bottom: 90px;
            /* Stay above mobile nav */
            padding: 10px 18px;
            font-size: 0.7rem;
        }
    }

    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-primary {
    background: rgba(59, 130, 246, 0.5);
    /* Semi-transparent Blue */
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: rgba(59, 130, 246, 0.7);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(43, 77, 123, 0.08);
    color: var(--primary);
    border-color: rgba(43, 77, 123, 0.2);
}

/* Hero Section & Isometric Elements */
.hero {
    min-height: 100vh !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 120px 0 80px;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
    /* Allow aura to bleed out */
}

.hero-content.centered {
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
    z-index: 10;
}

.hero-visual {
    height: 400px;
    position: relative;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Isometric Cube Animation */
.isometric-cube {
    width: 80px;
    height: 80px;
    border: 1px solid var(--primary);
    background: rgba(59, 130, 246, 0.05);
    position: absolute;
    transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg) translate(var(--x), var(--y));
    animation: cubeFloat 6s infinite ease-in-out alternate;
    animation-delay: var(--d);
    box-shadow: 0 0 30px var(--primary-dim);
}

@keyframes cubeFloat {
    from {
        transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg) translate(var(--x), var(--y));
    }

    to {
        transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg) translate(var(--x), calc(var(--y) - 30px));
    }
}

.hero-subtext {
    max-width: 1000px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
}

.display-sm {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.body-md {
    font-size: 1.05rem;
    color: var(--on-surface-muted);
    line-height: 1.7;
}

#vanta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #vanta-canvas {
        position: fixed !important;
        inset: 0;
        width: 100%;
        height: 100vh;
        left: 0;
        transform: scale(1);
        z-index: -1;
    }
}

/* Vanta Layering & Noise */
#vanta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--background);
}

#vanta-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 1;
    mix-blend-mode: revert-layer;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(1) invert(1);
}

[data-theme="light"] #vanta-canvas::before {
    opacity: 0.02;
    /* Even lighter for Light Mode */
}

#vanta-canvas::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] #vanta-canvas::after {
    background: radial-gradient(circle at center, transparent 50%, rgba(43, 77, 123, 0.1) 100%);
}

[data-theme="light"] #vanta-canvas {
    filter: contrast(1.1) brightness(1.1);
}

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

/* Grid & Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.interactive-card {
    border-radius: 24px;
    transition: var(--transition-kinetic);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Fixed border */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .interactive-card {
    background: rgba(43, 77, 123, 0.05);
    border-color: rgba(43, 77, 123, 0.15);
}

.interactive-card .liquidGlass-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
}

/* No-Divider Rule, Surface shift applied instead */
.interactive-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--long-tail-shadow-hover);
}

.card-icon .material-symbols-outlined {
    font-size: 2.8rem;
    /* Large, high-impact icons for services */
    color: var(--primary);
}

.card-content {
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.offset-card {
    margin-top: 40px;
    /* Intentional Asymmetry */
}

/* Chips & Tags */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    /* Reduced to a balanced value */
    position: relative;
    z-index: 20;
}

.chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.chip {
    color: #ffffff;
    border-radius: 9999px;
    /* full roundedness against md geometric containers */
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chip .liquidGlass-text {
    padding: 6px 16px;
}

/* Portfolio Module */
.section-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Corrected alignment */
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.portfolio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--surface);
    /* Fallback */
    background: linear-gradient(to right, var(--surface), var(--surface-container-low));
}

.portfolio-row.reverse {
    background: linear-gradient(to left, var(--surface), var(--surface-container-low));
}

.portfolio-row.reverse .portfolio-info {
    order: 2;
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.feature-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--on-surface-muted);
}

.feature-list i {
    color: var(--primary);
}

.glass-panel {
    border-radius: 24px;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.glass-panel .liquidGlass-text {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    gap: 20px;
    height: 100%;
}

/* Abstract Vis */
.data-bar {
    width: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 8px 8px 0 0;
    opacity: 0.8;
}

.orb-small {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(40px);
    position: absolute;
    top: 20%;
    left: 20%;
}

.orb-small.offset {
    background: rgba(255, 255, 255, 0.08);
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
}

/* Forms - Kinetic State Flow */
.form-container {
    border-radius: 24px;
    margin-top: 60px;
    position: relative;
    border: none;
    overflow: hidden;
}

.form-container .liquidGlass-text {
    padding: 60px;
}

.contact-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px auto 0;
    max-width: 900px;
    justify-content: center;
}

.info-card {
    text-align: center;
}

.info-card .glass-inner {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    /* Unified glass layer */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    height: 100%;
}

[data-theme="light"] .info-card .glass-inner {
    background: rgba(43, 77, 123, 0.1);
    border-color: rgba(43, 77, 123, 0.2);
}

.info-card.interactive-card {
    border: none;
    background: transparent;
}

.icon-display {
    font-size: 3.5rem !important;
    color: var(--primary);
    margin-bottom: 10px;
}


/* Footer */
footer {
    padding: 100px 0 60px;
    border-top: 1px solid var(--grid-line);
    position: relative;
    z-index: 10;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White in dark mode */
}

[data-theme="light"] .footer-logo img {
    filter: none;
    /* Original colors or navy in light mode */
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-card {
    position: relative;
    height: 450px;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    padding: 0 !important;
    /* Force remove padding to allow image to cover everything */
    border: none;
}

.portfolio-visual {
    position: absolute;
    inset: 0;
    /* Cover entire card area */
    width: 100%;
    height: 100%;
}

.portfolio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .portfolio-visual img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 5, 15, 0.95) 0%, rgba(0, 5, 15, 0.4) 40%, transparent 100%);
    color: #ffffff !important;
    /* ALWAYS white for high contrast on images */
    transition: background 0.4s ease;
}

.portfolio-overlay h3,
.portfolio-overlay .chip,
.portfolio-overlay .view-hint {
    color: #ffffff !important;
    /* Force white for all overlay elements */
}

.portfolio-overlay h3 {
    margin: 10px 0 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.view-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    color: var(--primary);
}

.portfolio-card:hover .view-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

[data-theme="light"] .modal-overlay {
    background: rgba(236, 240, 241, 0.85);
    /* Frosty light background for Light Mode */
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: hidden;
    /* No internal scroll */
    position: relative;
    padding: 0 !important;
    border-radius: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

[data-theme="light"] .modal-close {
    background: rgba(43, 77, 123, 0.1);
    color: var(--on-surface);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
}

.modal-visual {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-visual img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    /* Perfect circle */
    border: 4px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .modal-visual img {
    border: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(43, 77, 123, 0.2);
}

.modal-info {
    padding: 50px 60px 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    color: var(--on-surface);
}

.modal-info .chip {
    width: fit-content;
    background: var(--primary);
    color: white !important;
    padding: 6px 20px;
    /* Added padding for a professional pill look */
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

[data-theme="light"] .modal-info #modal-chip {
    background: var(--primary);
    color: white !important;
}

@media (max-width: 850px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-visual {
        height: 300px;
    }

    .modal-info {
        padding: 30px;
    }
}

.footer-links a {
    color: var(--on-surface-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) * 2) 0;
}

.hero-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    max-width: 1200px;
}

.hero-subtext {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    text-align: left;
    align-items: flex-start;
}

.hero-buttons {
    display: flex;
    gap: 24px;
}

.footer-bottom .tech-label {
    opacity: 0.6;
    letter-spacing: 0.2em;
}

.copyright {
    opacity: 0.4;
    font-size: 0.8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    padding: 30px;
    border: 1px solid var(--grid-line);
    background: rgba(255, 255, 255, 0.02);
}

.info-item .display-sm {
    font-size: 1.5rem;
    color: #fff;
    display: block;
    margin-top: 8px;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary);
}

footer {
    padding: 100px 0 60px;
    border-top: 1px solid var(--grid-line);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--on-surface-muted);
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--grid-line-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--on-surface-dim);
}


/* Responsive Overrides */
@media (max-width: 992px) {
    .container-asymmetric {
        padding-left: 40px;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        margin-top: auto;
        margin-bottom: auto;
        align-items: center;
    }

    .hero-graphics {
        width: 100%;
        opacity: 0.3;
    }

    .portfolio-row {
        grid-template-columns: 1fr;
    }

    .portfolio-row.reverse .portfolio-info {
        order: 0;
    }
}

@media (max-width: 992px) {

    .container,
    .hero-content,
    .hero {
        padding-left: 24px !important;
        padding-right: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .expertise-header,
    .contact-container,
    .form-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-subtext {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        /* Removed padding */
        gap: 12px;
        align-items: center;
        text-align: center;
        margin-top: 15px !important;
    }

    .modal-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px !important;
    }

    .modal-info .chip {
        margin: 0 auto 15px auto !important;
    }

    .display-sm {
        font-size: 1.3rem !important;
        line-height: 1.2;
        font-weight: 500;
        opacity: 0.9;
    }

    .body-md {
        font-size: 0.85rem !important;
        line-height: 1.4;
        max-width: 90%;
        margin: 0 auto;
    }

    /* Target ONLY the 3 service cards in the expertise section */
    #servicii .interactive-card,
    #servicii .card,
    #servicii .glass-inner,
    #servicii .liquidGlass-wrapper {
        background: transparent !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    #servicii .liquidGlass-effect,
    #servicii .liquidGlass-shine,
    #servicii .liquidGlass-tint {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .logo img {
        height: 32px;
    }

    .nav-links {
        display: none !important;
    }

    .display-lg {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
    }

    .display-md {
        font-size: 1.8rem;
        text-align: center;
    }

    .body-md,
    .body-sm {
        font-size: 1rem;
        text-align: center;
    }

    .hero-content .tech-label,
    .section-heading .tech-label,
    .section-title-flex .tech-label {
        text-align: center;
        width: 100%;
        display: block;
    }

    .nav-container {
        padding: 0 20px;
    }

    .container {
        padding: 0 24px;
        width: 100% !important;
        box-sizing: border-box;
    }

    .section {
        padding: 80px 0 120px;
        /* Space for the bottom navigation bar */
        min-height: auto;
    }
}

/* Extra Tight Mobile (iPhone SE etc) */
@media (max-width: 400px) {
    .logo img {
        height: 24px;
    }

    .nav-controls {
        gap: 6px;
    }

    .vr-indicator {
        width: 32px;
        height: 32px;
    }

    .vr-indicator svg {
        width: 18px;
        height: 18px;
    }

    .lang-switcher button {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }

    .theme-switcher.illustrated {
        width: 60px;
        height: 30px;
    }

    .switch-thumb {
        width: 22px;
        height: 22px;
    }
    
    .temp-val {
        font-size: 0.5rem;
    }
    
    [data-theme="light"] .switch-thumb {
        transform: translateX(30px);
    }
}

/* Swiper Theming */
.swiper-pagination-bullet {
    background-color: var(--on-surface-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
    opacity: 1;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem !important;
    font-weight: 700;
}


.nav-container,
.container {
    width: 100%;
}

/* --- Weather & Environmental UI --- */
:root {
    --temp-glow: rgba(59, 130, 246, 0.4);
    /* Default temperature glow */
}

/* Global Atmosphere transition */
body {
    transition: background-color 1.5s ease, filter 1.5s ease;
}

/* Ambient Overlay Container */
#weather-ambient-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    /* Sits behind content, above vanta */
    overflow: hidden;
}

/* 1. SUNNY State (Light Mode Focus) */
[data-theme="light"].weather-sunny {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
}

/* 2. CLOUDY State */
[data-theme="light"].weather-cloudy {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
}

/* 3. FROZEN Effect (< -5°C) */
.temp-frozen #weather-ambient-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/frozen-wall.png');
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.temp-frozen .interactive-card {
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(186, 230, 253, 0.3) !important;
}

/* 4. ARCTIC Effect (< -15°C) */
.temp-arctic {
    filter: contrast(1.1) brightness(1.05) saturate(0.8);
}

.temp-arctic #weather-ambient-container::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px rgba(186, 230, 253, 0.5);
}

/* 5. TEMPERATURE GLOW APPLICATION */
.interactive-card,
.btn-primary,
.navbar {
    box-shadow: 0 10px 40px -10px var(--temp-glow) !important;
    transition: box-shadow 1s ease, transform var(--transition-tech);
}

/* Sun Animation for Sunny Days */
.weather-sunny #weather-ambient-container::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: sunPulse 8s infinite alternate;
}

@keyframes sunPulse {
    from {
        transform: scale(1);
        opacity: 0.3;
    }

    to {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

/* 4K & Ultra-Wide Optimization - Aggressive Scaling */
@media (min-width: 2200px) {
    html {
        font-size: 140%;
        /* Increase base scale for 2K+ */
    }

    .container,
    .nav-container {
        max-width: 2000px;
    }

    header {
        height: calc(var(--nav-height) * 1.4);
    }
}

@media (min-width: 3700px) {
    html {
        font-size: 220%;
        /* Massive scaling for true 4K (3840px) */
    }

    .container,
    .nav-container {
        max-width: 3400px;
        /* Fill the ultra-wide space */
    }

    header {
        height: calc(var(--nav-height) * 2);
    }

    header .logo img {
        height: 60px;
        /* Larger logo for 4K */
    }
}