/* SPYRE Common Styles - Shared across all pages */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&family=Bebas+Neue&display=swap');

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

:root {
    --primary-black: #0a0a0a;
    --cyber-green: #ffffff;
    --cyber-white: #ffffff;
    --danger-red: #ff0040;
    --tech-gray: #1a1a1a;
    --grid-gray: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #888;
    --success-green: #00ff41;
    --border-subtle: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.3);
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--primary-black);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Animated Background Grid */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    z-index: -2;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glitch Text Effect - Used on multiple pages */
.glitch {
    position: relative;
    color: var(--text-white);
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
    color: var(--text-white);
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim-2 0.3s infinite linear alternate-reverse;
    color: var(--cyber-green);
    z-index: -2;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    20% { clip: rect(12px, 9999px, 59px, 0); }
    40% { clip: rect(63px, 9999px, 34px, 0); }
    60% { clip: rect(29px, 9999px, 83px, 0); }
    80% { clip: rect(2px, 9999px, 45px, 0); }
    100% { clip: rect(46px, 9999px, 30px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    20% { clip: rect(90px, 9999px, 12px, 0); }
    40% { clip: rect(48px, 9999px, 78px, 0); }
    60% { clip: rect(31px, 9999px, 95px, 0); }
    80% { clip: rect(61px, 9999px, 5px, 0); }
    100% { clip: rect(75px, 9999px, 43px, 0); }
}

/* Section Header Pattern */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-white);
}

.barcode {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-top: 1rem;
    animation: barcode-pulse 2s ease-in-out infinite;
}

@keyframes barcode-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--cyber-green); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .grid-bg,
    .glitch::before,
    .glitch::after {
        animation: none !important;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 1023.98px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100%;
        position: relative;
    }
}

/* Hide decorative barcode text on mobile — reads as noise at small widths */
@media (max-width: 768px) {
    .barcode {
        display: none !important;
    }
}

/* =========================================================
   SPYRE Footer — used across all pages
   ========================================================= */
.spyre-footer {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2rem 2rem;
    color: var(--text-white);
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    z-index: 2;
}

.spyre-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "logo   nav"
        "social social"
        "bottom bottom";
    gap: 2rem 3rem;
    align-items: center;
}

.spyre-footer .footer-logo {
    grid-area: logo;
}

.spyre-footer .footer-logo a {
    display: inline-block;
    line-height: 0;
}

.spyre-footer .footer-logo img {
    height: 36px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.spyre-footer .footer-logo a:hover img {
    opacity: 0.85;
}

.spyre-footer .footer-nav {
    grid-area: nav;
    justify-self: end;
}

.spyre-footer .footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-end;
}

.spyre-footer .footer-nav-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.spyre-footer .footer-nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--text-white);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.spyre-footer .footer-nav-list a:hover {
    color: var(--text-white);
}

.spyre-footer .footer-nav-list a:hover::after {
    transform: scaleX(1);
}

.spyre-footer .footer-social {
    grid-area: social;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spyre-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.spyre-footer .footer-social-link svg {
    flex-shrink: 0;
}

.spyre-footer .footer-social-link:hover {
    color: var(--text-white);
    transform: translateY(-1px);
}

.spyre-footer .footer-bottom {
    grid-area: bottom;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.spyre-footer .footer-copyright {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    text-transform: uppercase;
}

/* Mobile footer layout */
@media (max-width: 768px) {
    .spyre-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .spyre-footer .footer-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nav"
            "social"
            "bottom";
        gap: 1.5rem;
        text-align: center;
    }

    .spyre-footer .footer-social {
        gap: 1rem;
        padding-top: 1.25rem;
    }

    .spyre-footer .footer-social-link {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .spyre-footer .footer-logo,
    .spyre-footer .footer-nav {
        justify-self: center;
    }

    .spyre-footer .footer-nav-list {
        justify-content: center;
        gap: 1.25rem 1.75rem;
    }

    .spyre-footer .footer-nav-list a {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .spyre-footer .footer-bottom {
        padding-top: 1.5rem;
    }
}

