/* Truuze Futuristic Styles */
/* Fonts loaded via <link rel="preload"> in HTML for better performance */

:root {
    /* --- Default Dark Theme (Space / Cyberpunk) --- */
    --bg: #051a20;
    --bg-grad-start: #103038;
    --bg-grad-end: #051a20;

    --text-main: #e6f1f1;
    --text-muted: #8a9ea0;
    --heading: #ffffff;

    --header: rgba(16, 48, 56, 0.8);

    /* Accents - Neon Versions of App Colors */
    --accent-teal: #00f2ff;
    /* Neon Cyan for "Teal" slots */
    --accent-lime: #c0e218;
    /* Bright Lime */
    --accent-orange: #ff9f1c;
    /* Bright Orange */
    --accent-cyan: #00f2ff;
    /* Primary Interaction */

    --glass-bg: rgba(16, 48, 56, 0.35);
    /* Increased transparency (was 0.6) */
    --glass-border: rgba(0, 242, 255, 0.2);
    --store-border: 1px solid rgba(255, 255, 255, 0.25);
    /* Default Dark Mode Border */

    --card-bg: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 8px 30px rgba(0, 242, 255, 0.1);

    --particle-opacity: 1;
}

[data-theme="light"] {
    /* --- Light Theme (Clean App Palette) --- */
    --bg: #FFFFFF;
    --bg-grad-start: #ffffff;
    --bg-grad-end: #f0f4f8;

    --text-main: #555555;
    --text-muted: #777777;
    --heading: #216064;
    /* Deep Teal Heading in Light Mode */

    --header: #216064;

    /* Accents - Proper App Colors */
    --accent-teal: #0A8D85;
    --accent-lime: #A5BE15;
    --accent-orange: #EB8F00;
    --accent-cyan: #1391A0;

    --glass-bg: rgba(255, 255, 255, 0.65);
    /* Increased transparency (was 0.85) */
    --glass-border: rgba(33, 96, 100, 0.15);
    --store-border: 1px solid rgba(33, 96, 100, 0.3);
    /* Darker border for visibility on white */

    --card-bg: #FFFFFF;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

    --particle-opacity: 0.5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body Transition */
body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 50%, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    perspective: 1000px;
    /* touch-action: none; (Removed per Fix5 to allow scrolling) */
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-cyan);
    transition: fill 0.3s;
}

/* Background Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: var(--particle-opacity);
    transition: opacity 0.5s ease;
}

/* Main Container - 3D Tilt Effect */
.container-3d {
    position: relative;
    z-index: 10;
    text-align: center;
    transform-style: preserve-3d;
    will-change: transform;
    /* GPU Hint */
}

/* Glassmorphism Hero Panel */
.hero-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: clamp(2rem, 4vh, 6rem) clamp(1.5rem, 3vw, 3rem);
    min-height: auto;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    max-width: 800px;
    width: 90vw;
    margin: 0 auto;
    position: relative;
    overflow: visible;

    /* Initial state for GSAP */
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
    /* Animated Gradient Background */
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(33, 96, 100, 0.05) 50%, var(--glass-bg) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glowing Border Effect - Adjusted for Light Mode */
.hero-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-teal), transparent, var(--accent-lime), transparent);
    background-size: 300% 300%;
    animation: gradient-shift 6s linear infinite;
    z-index: -1;
    border-radius: 32px;
    filter: blur(10px);
    opacity: 0.5;
}

/* Fix10: Dual-Layer Backlight Pulse */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    animation: backlight-pulse 4s infinite ease-in-out;
}

@keyframes backlight-pulse {

    0%,
    100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.6;
        /* Boosted from 0.4 */
        transform: translate(-50%, -50%) scale(1.3);
        /* Boosted scale */
    }
}

.logo-container {
    margin-bottom: 2rem;
    perspective: 500px;

    /* Robust Input Fixes */
    position: relative;
    z-index: 20;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Expanded Hit Box for Reliability */
.logo-container::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 21;
}

.logo {
    width: clamp(60px, 10vh, 100px);
    /* Reduced from 150px */
    height: clamp(60px, 10vh, 100px);
    /* Soft shadow instead of neon glow */
    filter: drop-shadow(0 10px 15px rgba(33, 96, 100, 0.3));
    will-change: transform;
    overflow: visible;
    /* Fix33: Allow drop-shadows to bleed out */
}

/* Fix12: Granular SVG Animation + Flicker */
.logo-t {
    animation: pulse-cyan 3s infinite alternate, neon-flicker 4s infinite;
}

.logo-u {
    animation: pulse-pink 3s infinite alternate-reverse;
}

@keyframes pulse-cyan {
    from {
        fill-opacity: 0.8;
    }

    to {
        fill-opacity: 1;
        filter: drop-shadow(0 0 5px var(--accent-cyan));
    }
}

@keyframes pulse-pink {
    from {
        stroke-opacity: 0.8;
    }

    to {
        stroke-opacity: 1;
        filter: drop-shadow(0 0 5px #E052A0);
    }
}

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }

    20%,
    24%,
    55% {
        opacity: 0.2;
        filter: brightness(0.5);
    }

    /* Hard Flicker */
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vh, 2.5rem);
    /* Reduced from 3.5rem */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    color: var(--heading);
    background: none;
    -webkit-text-fill-color: var(--heading);
    text-shadow: none;
    /* Fix11: H1 Breath */
    animation: text-breath 4s infinite ease-in-out;
}

@keyframes text-breath {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

p.tagline {
    font-size: clamp(1rem, 2.5vh, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: clamp(1.5rem, 3vh, 3rem);
    color: var(--accent-teal);
}

/* Futuristic Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
    margin-bottom: clamp(2rem, 4vh, 4rem);
    perspective: 1000px;
    width: 100%;
}

.store-btn {
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.store-btn img {
    height: clamp(38px, 5vh, 50px);
    width: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.store-btn:hover img {
    filter: brightness(1.1) sepia(0%) hue-rotate(0deg);
    box-shadow: 0 5px 15px rgba(10, 141, 133, 0.3);
    border-color: var(--accent-teal);
}

.store-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.coming-soon {
    font-size: 0.9rem;
    color: var(--accent-lime);
    /* Lime for numbers/status */
    margin-top: -3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
    font-weight: 600;
}

/* Cyber Button - Adapted for Light Mode */
.btn-blockchain {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    color: var(--accent-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    border: 2px solid var(--accent-cyan);
    overflow: hidden;
    transition: 0.5s;
    background: rgba(5, 26, 32, 0.7);
    z-index: 1;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 2rem;
    /* Fix4: Visual Balance */
}

.btn-blockchain:hover {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 5px 20px rgba(19, 145, 160, 0.4);
}

/* ─── Hero Navigation Buttons ─── */
.hero-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    /* Fix8: Prevent Collision */
    margin-top: 2rem;
    width: 100%;
}

.hero-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 14px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.hero-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-lime));
    border-radius: 3px 0 0 3px;
    opacity: 0.5;
    transition: opacity 0.3s, width 0.3s;
}

.hero-nav-btn:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.15), inset 0 0 20px rgba(0, 242, 255, 0.03);
}

.hero-nav-btn:hover::before {
    opacity: 1;
    width: 4px;
}

.hn-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.hn-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hn-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
}

/* Footer */
footer {
    position: relative;
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 10;
}

.copyright {
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.footer-row-social a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.footer-social a:hover {
    color: var(--accent-cyan);
}

.footer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-teal);
    text-shadow: none;
}

/* ─── Agent Terminal Modal (Restored) ─── */
#terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#terminal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#terminal-overlay.hidden {
    display: none;
    /* True hiding for performance */
}

.terminal-window {
    width: 80%;
    max-width: 700px;
    height: 500px;
    background: rgba(10, 20, 25, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#terminal-overlay.active .terminal-window {
    transform: scale(1);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-header .title {
    color: #888;
    margin-left: 10px;
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: center;
}

#close-terminal {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 0.5;
}

#close-terminal:hover {
    color: #fff;
}

.terminal-body {
    flex-grow: 1;
    padding: 20px;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-y: auto;
    white-space: pre-wrap;
    -webkit-overflow-scrolling: touch;
}

/* Terminal Colors */
.cmd {
    color: #f1f1f1;
}

.cmd-active {
    color: #00f2ff;
    font-weight: bold;
}

.comment {
    color: #6a9955;
}

.output {
    color: #ccc;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ─── Screenshot Gallery (Restored) ─── */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.screen-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    aspect-ratio: 9 / 19.5;
    /* Mobile ratio */
    box-shadow: var(--card-shadow);
}

.screen-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.screen-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-cyan);
    z-index: 10;
}

.screen-card:hover img {
    transform: scale(1.08);
}

.screen-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 96, 100, 0.95);
    /* Deep Teal */
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screen-card:hover .screen-caption {
    transform: translateY(0);
}

/* ─── Web App Badge (Restored & Corrected) ─── */
.web-app-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Ensure proper spacing */
    height: clamp(38px, 5vh, 50px);
    /* Match image height */
}

.web-badge {
    height: 100%;
    /* Fill container */
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    min-width: 150px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.web-badge .icon {
    font-size: 20px;
    margin-right: 10px;
}

.web-badge .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.0;
}

.web-app-btn:hover .web-badge {
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(10, 141, 133, 0.3);
    border-color: var(--accent-teal);
}

.web-badge .small {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.web-badge .large {
    font-size: 1rem;
    font-weight: 700;
    font-family: sans-serif;
}



.store-btn:hover .web-badge {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan);
    filter: brightness(1.2);
}

/* ─── Glitch Utilities ─── */
@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(1px, -1px);
    }
}

.glitch-hover:hover {
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
}

/* ─── Dynamic Tagline Cursor ─── */
#dynamic-text {
    color: var(--accent-cyan);
    font-weight: bold;
    border-right: 2px solid var(--accent-cyan);
    animation: blink 0.7s infinite;
    padding-right: 5px;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-cyan);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.6rem, 4vh, 2.2rem);
        /* Fluid, not fixed */
    }

    p.tagline {
        font-size: 1.2rem;
    }

    .hero-panel {
        padding: 3rem 1.5rem;
    }

    .hero-nav {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .store-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .store-buttons .web-app-btn {
        grid-column: 1 / -1;
    }

    .hero-nav-btn {
        flex-direction: row;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
        text-align: left;
        min-height: 48px;
    }

    .store-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .btn-blockchain {
        min-height: 48px;
    }

    .theme-toggle {
        width: 48px;
        height: 48px;
    }

    .footer-row-top a,
    .footer-row-social a {
        display: inline-block;
        padding: 8px 12px;
        min-height: 48px;
        line-height: 32px;
    }

    .hn-sub {
        text-align: left;
    }


    .screenshot-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .terminal-window {
        width: 95%;
        height: 60vh;
    }
}

/* ─── Accessibility / SEO Utilities ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ─── Compact Safety Net (Short Screens) ─── */
@media (max-height: 850px) {

    /* Perf13: 850px for laptops */
    .hero-panel {
        padding: 1.5rem 1.5rem !important;
    }

    .logo {
        width: 60px !important;
        height: 60px !important;
    }

    h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    p.tagline {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-nav {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }

    .hero-nav-btn {
        padding: 0.6rem 0.5rem !important;
    }

    .hn-sub {
        display: none !important;
    }

    .store-buttons {
        margin-bottom: 1.5rem !important;
        gap: 0.8rem !important;
    }

    .store-btn img,
    .web-app-btn {
        height: 36px !important;
    }

    .btn-blockchain {
        padding: 0.7rem 2rem !important;
        font-size: 0.8rem !important;
    }
}

/* ─── Footer Collapsible SEO Content ─── */
.footer-seo {
    width: 100%;
    max-width: 800px;
    margin: 1.2rem auto 0;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.footer-seo summary {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    transition: color 0.3s;
    min-height: 48px;
}

.footer-seo summary::-webkit-details-marker {
    display: none;
}

.footer-row-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.footer-row-top a {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    text-decoration: none;
    padding: 6px 10px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-row-top a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.footer-row-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    flex-wrap: wrap;
}

.footer-row-social a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 6px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.footer-row-social a:hover {
    color: var(--accent-cyan);
}

.footer-divider {
    color: var(--glass-border);
    margin: 0 0.6rem;
    font-size: 1rem;
    opacity: 0.6;
    user-select: none;
}

.footer-toggle {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-seo summary:hover .footer-toggle {
    color: var(--accent-cyan);
}

.toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.footer-seo[open] .toggle-arrow {
    transform: rotate(90deg);
}

.footer-seo-content {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.65;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-seo-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-seo-content h3:first-child {
    margin-top: 0.5rem;
}

.footer-seo-content h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 600;
    color: var(--heading);
    margin: 1rem 0 0.3rem;
}

.footer-seo-content p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-seo-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 242, 255, 0.3);
    text-underline-offset: 2px;
    transition: color 0.3s;
}

.footer-seo-content a:hover {
    color: var(--accent-teal);
}