/* Fonts */
@font-face {
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/space-mono-v17-italic-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/space-mono-v17-italic-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/space-mono-v17-regular-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/space-mono-v17-regular-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/syne-v24-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/syne-v24-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/syne-v24-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/syne-v24-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/syne-v24-800.ttf') format('truetype');
}

:root {
    --white: #fff6dc;
    --black: #02202c;
    --orange: #d6622c;
    --blue: #34cfbf;
    --font-main: 'Space Mono', monospace;
    --font-heading: 'Syne', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Retro Overlays */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(2, 32, 44, 0.8), rgba(2, 32, 44, 0.8)), 
                url('assets/images/header.webp');
    background-size: cover;
    background-position: center;
}

.hero-content {
    padding: 0 2rem;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8.5vw, 8rem);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--white);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
    word-break: normal;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--white);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(2, 32, 44, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 246, 220, 0.1);
    z-index: 100;
    padding: 1.5rem 0;
}

.sticky-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
}

.sticky-nav a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.sticky-nav a:hover {
    color: var(--orange);
}

/* Section Styles */
.section {
    padding: 10rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.alt-bg {
    background: rgba(255, 246, 220, 0.02);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    border-left: 8px solid var(--orange);
    padding-left: 2rem;
}

.content-grid, .about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-block p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.accent-box {
    aspect-ratio: 1;
    background: var(--blue);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.accent-box:hover {
    transform: scale(1.02);
}

.accent-box.orange {
    background: var(--orange);
}

.accent-box.blue-border {
    background: transparent;
    border: 2px solid var(--blue);
}

.accent-box::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--white);
    z-index: -1;
}

/* Equipment List */
.equipment-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.eq-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 246, 220, 0.2);
    transition: all 0.3s ease;
}

.eq-item:hover {
    background: rgba(255, 246, 220, 0.03);
    padding-left: 1rem;
    border-bottom-color: var(--blue);
}

.eq-type {
    color: var(--blue);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.eq-name {
    font-weight: 700;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 246, 220, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 246, 220, 0.5);
}

/* Glitch Animation for Hero */
.glitch {
    position: relative;
    display: block;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--blue);
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--orange);
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(81px, 9999px, 23px, 0); }
    80% { clip: rect(45px, 9999px, 67px, 0); }
    100% { clip: rect(10px, 9999px, 85px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(15px, 9999px, 56px, 0); }
    20% { clip: rect(85px, 9999px, 12px, 0); }
    40% { clip: rect(44px, 9999px, 98px, 0); }
    60% { clip: rect(12px, 9999px, 65px, 0); }
    80% { clip: rect(76px, 9999px, 34px, 0); }
    100% { clip: rect(23px, 9999px, 81px, 0); }
}

footer a {
    color: var(--orange);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 32, 44, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--black);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid var(--white);
    width: 80%;
    max-width: 800px;
    color: var(--white);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-family: var(--font-heading);
    color: var(--orange);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.modal-content h3 {
    font-family: var(--font-heading);
    color: var(--blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.close-button {
    color: var(--white);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--orange);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid, .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .sticky-nav ul {
        gap: 1.5rem;
    }

    .accent-box {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 11vw, 3rem);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: clamp(1.5rem, 10vw, 2.5rem);
        text-align: center;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}
