:root {
    --color-delta-blue: #003366;
    --color-delta-red: #E3132C;
    --color-bg-dark: #0a0e17;
    --color-bg-darker: #05070a;
    --color-text-main: #f0f4f8;
    --color-text-muted: #94a3b8;
    --color-glass: rgba(16, 24, 39, 0.4);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    --color-glass-hover: rgba(30, 41, 59, 0.6);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Subtle animated noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h2 span,
h1 span {
    color: var(--color-delta-red);
    text-shadow: 0 0 20px rgba(227, 19, 44, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    gap: 8px;
}

.logo-delta {
    color: var(--color-delta-red);
}

.logo-model {
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-delta-red);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--color-delta-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* We'll set the image via inline style or JS when the generated image is ready, for now a dark gradient */
    background: url('assets/hero.png') no-repeat center center / cover;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 7, 10, 0.9) 0%, rgba(5, 7, 10, 0.4) 50%, rgba(5, 7, 10, 0) 100%);
}

.hero-content {
    max-width: 650px;
    z-index: 1;
}

.hero-content .glass-panel {
    padding: 3rem;
    animation: fadeUp 1s ease-out forwards;
}

.subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-delta-red);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 19, 44, 0.4);
}

.btn-primary:hover {
    background: #FF2E46;
    box-shadow: 0 6px 25px rgba(227, 19, 44, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(5px);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-delta-red);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* Sections General */
section {
    padding: 8rem 10%;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header.center {
    margin: 0 auto 4rem auto;
    text-align: center;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    background: var(--color-bg-dark);
}

.stats-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-btn.active,
.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--color-glass-hover);
}

.stat-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 500;
    -webkit-text-fill-color: var(--color-text-muted);
}

.stat-label {
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plane-interactive-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 4rem;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(0, 51, 102, 0.2) 0%, rgba(10, 14, 23, 0) 70%);
}

.callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 10;
}

.callout .dot {
    width: 16px;
    height: 16px;
    background: var(--color-delta-red);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-delta-red);
    position: relative;
}

.callout .dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--color-delta-red);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.callout .label {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    white-space: nowrap;
}

.callout:hover .label {
    opacity: 1;
    transform: translateX(0);
}

/* Destinations Section */
.destinations-section {
    background: var(--color-bg-darker);
}

.map-container {
    display: flex;
    height: 600px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.map-overlay {
    flex: 2;
    position: relative;
    background: #020617;
    /* Map background placeholder */
    border-right: 1px solid var(--color-glass-border);
}

#flightMap {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-flights-panel {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.live-flights-panel h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-flights-panel h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #10B981;
    /* Green dot for live */
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.flights-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1rem;
}

/* Custom Scrollbar for flight list */
.flights-list::-webkit-scrollbar {
    width: 6px;
}

.flights-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.flights-list::-webkit-scrollbar-thumb {
    background: var(--color-glass-border);
    border-radius: 10px;
}

.flight-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.flight-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.flight-num {
    color: var(--color-delta-red);
    font-weight: 700;
}

.flight-status {
    font-size: 0.8rem;
    color: #10B981;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.flight-route-icon {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hub-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.hub-card:hover {
    border-color: var(--color-delta-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.4);
}

.hub-code {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.hub-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.hub-stat {
    font-size: 0.9rem;
    color: var(--color-delta-red);
}

/* Dual Section (Passenger & Pilot) */
.dual-section {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

.half-section {
    flex: 1;
    min-width: 50%;
    position: relative;
    padding: 6rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 10s ease;
}

.half-section:hover .bg-image {
    transform: scale(1.05);
}

/* Base gradients until images load */
.passenger-side .bg-image {
    background: url('assets/cabin.png') no-repeat center center / cover;
}

.pilot-side .bg-image {
    background: url('assets/cockpit.png') no-repeat center center / cover;
}

.half-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content-card {
    position: relative;
    z-index: 2;
    padding: 3rem;
    width: 100%;
    max-width: 550px;
    background: rgba(10, 14, 23, 0.6);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-list .icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-list h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.feature-list p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.pilot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.p-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.p-stat .value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-delta-red);
    margin-bottom: 0.5rem;
}

.p-stat .label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-box {
    background: rgba(0, 51, 102, 0.2);
    border-left: 4px solid var(--color-delta-blue);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.tech-box h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.tech-box p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Footer */
footer {
    background: var(--color-bg-darker);
    padding: 4rem 10% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .dual-section {
        flex-direction: column;
    }

    .half-section {
        min-width: 100%;
    }

    .title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simple mobile menu behavior for demo */
    .hero-section {
        padding: 0 2rem;
    }

    .title {
        font-size: 3rem;
    }

    .map-container {
        flex-direction: column;
        height: auto;
    }

    .map-overlay {
        height: 300px;
    }

    section {
        padding: 5rem 2rem;
    }
}