/* ============================================
   This Way Up — Custom Styles
   ============================================ */

/* --- Animations --- */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* --- Hero Section --- */

.hero-section {
    background: #0e1b4d;
}

.hero-bg {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(227, 36, 2, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(22, 35, 96, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, #0a1338 0%, #0e1b4d 50%, #162360 100%);
}

#hero-video {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#hero-video.loaded {
    opacity: 1;
}

.hero-overlay {
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(14, 27, 77, 0.4) 0%,
        rgba(14, 27, 77, 0.2) 40%,
        rgba(14, 27, 77, 0.6) 70%,
        rgba(14, 27, 77, 0.95) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
    #hero-video { display: none; }
}

/* --- Navbar --- */

#navbar {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(14, 27, 77, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* --- Flight Cards --- */

.flight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flight-card:hover {
    transform: translateY(-4px);
}

/* --- Scroll Reveal --- */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Smooth Scrolling --- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* --- Selection --- */

::selection {
    background: rgba(227, 36, 2, 0.2);
    color: #0e1b4d;
}

/* --- Mobile Menu Transition --- */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* --- Focus Styles (accessibility) --- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #e32402;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Scrollbar --- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1338;
}

::-webkit-scrollbar-thumb {
    background: #162360;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e32402;
}
