/* Custom styles for Flight Deck */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .floating-card {
        animation: none !important;
    }
    .reveal {
        opacity: 1 !important;
    }
}

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
}

.floating-card {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.card-1 {
    animation: float-1 5s ease-in-out infinite;
}

.card-2 {
    animation: float-2 4s ease-in-out infinite;
}

.card-3 {
    animation: float-3 6s ease-in-out infinite;
}

/* Scroll reveal - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.reveal-hidden-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal.reveal-hidden-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Gold gradient divider */
.gold-divider {
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.5), transparent);
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f8fafc;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid rgba(212, 160, 23, 0.5);
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
