/* Global Styles */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-gold: #f59e0b;
    --accent-silver: #cbd5e1;
    --accent-red: #ef4444;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    /* Triggered by JS observer */
}

.slide-in-right {
    opacity: 0;
    /* Triggered by JS observer */
}

.fade-in {
    opacity: 0;
    /* Triggered by JS observer */
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.visible-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.visible-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo ion-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}



/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9)), url('site_hero.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--accent-silver);
    margin-bottom: 2.5rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections General */
.content-section {
    padding: 6rem 5%;
}

.dark-bg {
    background-color: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-header .divider {
    height: 4px;
    width: 60px;
    background: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* History Grid */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-silver);
}

.history-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.history-image .img-wrapper {
    width: 100%;
    height: 400px;
    background-color: #1e293b;
    background-image: url('history_spitfire.svg');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--accent-silver);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.history-image:hover .img-wrapper {
    border-color: var(--accent-gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.citation {
    display: block;
    margin-top: 1rem;
    text-align: right;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Parallax Dividers */
#divider-blueprint {
    background-image: url('site_hero.svg');
}

#divider-hangar {
    background-image: url('history_spitfire.svg');
}

.parallax-divider {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.divider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.divider-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.divider-content p {
    font-size: 1.2rem;
    font-style: italic;
}

/* Cards (Legends) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #1e293b;
    border-radius: 8px;
    /* Slightly rounded */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.card-img {
    height: 250px;
    background-color: #334155;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#img-legend-1 {
    background-image: url('history_spitfire.svg');
}

#img-legend-2 {
    background-image: url('modern_jet.svg');
}

#img-legend-3 {
    background-image: url('site_hero.svg');
    background-position: top;
}



.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Curiosities / Facts */
.facts-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.fact-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-left: 3px solid var(--accent-gold);
    transition: background 0.3s ease;
}

.fact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fact-item ion-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    min-width: 50px;
}

.fact-text h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--accent-silver);
}

.fact-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Gallery - Masonry style feel */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #334155;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

#gallery-1 {
    background-image: url('modern_jet.svg');
}

#gallery-2 {
    background-image: url('history_spitfire.svg');
}

#gallery-3 {
    background-image: url('site_hero.svg');
}

#gallery-4 {
    background-image: url('modern_jet.svg');
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loading Placeholder */
.loading-placeholder {
    width: 100%;
    height: 100%;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu needed */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: white;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .facts-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}