/* ===================================
   Hello, are you looking for a job?

   Send a email to jobs@wingitjets.com

   Write: I found you! in the subject line!

   Happy hunting!
   
   =================================== */

/* CSS Variables matching iOS design system */
:root {
    /* Colors - matching DesignSystem.swift */
    --wing-background: #1C2128;
    --wing-card-background: #2E333F;
    --wing-gold: #D9B26A;
    --wing-text-primary: #F2F2F7;
    --wing-text-secondary: #AEAEB2;
    --wing-medium-gray: #707885;
    --wing-success: #34C759;
    --wing-warning: #FF9500;
    --wing-error: #FF3B30;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family);
    background-color: var(--wing-background);
    color: var(--wing-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* ===================================
   FIXED NAVIGATION - Zoom Stable
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(28, 33, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(112, 120, 133, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
}

.navbar.scrolled {
    background-color: rgba(28, 33, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(217, 178, 106, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    min-height: 70px;
    transition: padding 0.3s ease;
}

.navbar.scrolled .nav-content {
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 20px;
    font-weight: 700;
    color: var(--wing-text-primary);
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
    height: auto;  /* Changed from 70px */
    position: static;  /* Ensure normal flow */
}

.nav-link {
    color: var(--wing-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
    padding: 0 4px;
    white-space: nowrap;
    display: inline-block;  
    align-items: center;
    height: auto;
    line-height: 70px;  
}

.nav-link:hover {
    color: var(--wing-gold);
}

.nav-link.active {
    color: var(--wing-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--wing-gold);
    border-radius: 3px 3px 0 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

/* Auth buttons - FIXED for mobile */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.welcome-text {
    color: var(--wing-text-primary);
    font-size: 14px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background-color: var(--wing-gold);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(28, 33, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(112, 120, 133, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu-link {
    color: var(--wing-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--wing-gold);
    background-color: rgba(217, 178, 106, 0.1);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--wing-gold);
    color: var(--wing-background);
}

.btn-primary:hover {
    background-color: #E5C278;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(217, 178, 106, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--wing-gold);
    border: 2px solid var(--wing-gold);
}

.btn-outline:hover {
    background-color: rgba(217, 178, 106, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    transition: transform 0.2s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(217, 178, 106, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(217, 178, 106, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(217, 178, 106, 0.1);
    border: 1px solid rgba(217, 178, 106, 0.3);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wing-gold);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--wing-gold);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--wing-gold) 0%, #E5C278 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--wing-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding: 20px 24px;
    background: rgba(46, 51, 63, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-avatar-stack {
    display: flex;
    margin-left: -8px;
}

.proof-avatar {
    width: 32px;
    height: 32px;
    background: var(--wing-card-background);
    border: 2px solid var(--wing-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: -8px;
}

.proof-icon {
    font-size: 24px;
}

.proof-text {
    font-size: 14px;
    color: var(--wing-text-secondary);
}

.proof-text strong {
    color: var(--wing-text-primary);
    font-weight: 700;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: rgba(112, 120, 133, 0.3);
}

/* ===================================
   ROUTE SHOWCASE
   =================================== */
.route-showcase {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--wing-background) 0%, var(--wing-card-background) 50%, var(--wing-background) 100%);
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.route-card {
    background: var(--wing-background);
    padding: 32px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.route-card:hover {
    border-color: var(--wing-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(217, 178, 106, 0.2);
}

.route-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 0;
}

.route-dot {
    width: 48px;
    height: 48px;
    background: var(--wing-card-background);
    border: 2px solid var(--wing-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--wing-gold);
    flex-shrink: 0;
}

.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--wing-gold) 0%, transparent 100%);
    position: relative;
}

.route-plane {
    font-size: 24px;
    animation: planeFly 3s ease-in-out infinite;
}

@keyframes planeFly {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(10deg); }
}

.route-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.route-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--wing-medium-gray);
    margin-bottom: 16px;
}

.route-price {
    color: var(--wing-gold);
    font-weight: 700;
    font-size: 16px;
}

.route-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--wing-text-secondary);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--wing-success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

/* ===================================
   SECTIONS
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.section-subtitle, .section-description {
    font-size: 18px;
    color: var(--wing-text-secondary);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card-enhanced {
    padding: 40px 32px;
    background: var(--wing-card-background);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card-enhanced:hover {
    transform: translateY(-8px);
    border-color: var(--wing-gold);
    box-shadow: 0 20px 40px rgba(217, 178, 106, 0.2);
}

.feature-icon-large {
    font-size: 64px;
    margin-bottom: 24px;
}

.feature-title-large {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.feature-description-large {
    font-size: 16px;
    color: var(--wing-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-example {
    background: var(--wing-background);
    padding: 20px;
    border-radius: 12px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.example-row span {
    font-size: 14px;
    color: var(--wing-medium-gray);
}

.feature-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-mini {
    padding: 8px 16px;
    background: var(--wing-background);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wing-gold);
}

.step-arrow {
    font-size: 20px;
    color: var(--wing-medium-gray);
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.safety-badge {
    padding: 6px 12px;
    background: rgba(52, 199, 89, 0.15);
    color: var(--wing-success);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

/* Discover Section */
.discover-section {
    padding: 80px 0;
    background-color: rgba(46, 51, 63, 0.3);
}

.flights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.flight-card {
    background-color: var(--wing-card-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.flight-card:hover {
    transform: translateY(-4px);
    border-color: var(--wing-gold);
    box-shadow: var(--shadow-lg);
}

/* Loading & Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
}

.spinner, .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(217, 178, 106, 0.2);
    border-top-color: var(--wing-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    align-items: start;
}

.step-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--wing-gold) 0%, #E5C278 100%);
    color: var(--wing-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--wing-text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(217, 178, 106, 0.1) 0%, rgba(217, 178, 106, 0.05) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: 18px;
    color: var(--wing-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Footer */
.footer {
    padding: 60px 0 var(--spacing-lg);
    border-top: 1px solid rgba(112, 120, 133, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--wing-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--wing-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--wing-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(112, 120, 133, 0.2);
    color: var(--wing-medium-gray);
    font-size: 14px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--wing-background);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wing-card-background);
    border: none;
    border-radius: 50%;
    color: var(--wing-text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--wing-gold);
    color: var(--wing-background);
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        min-height: 70px;
    }
    
    .nav-content {
        padding: 16px 0;
        min-height: 70px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    /* CRITICAL: Make auth buttons visible on mobile */
    .auth-buttons {
        display: flex !important;
        gap: 8px;
    }
    
    .auth-buttons .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-proof {
        flex-direction: column;
        gap: 16px;
    }
    
    .proof-divider {
        width: 100%;
        height: 1px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid-enhanced,
    .routes-grid,
    .flights-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .cta-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .modal-content {
        margin: var(--spacing-sm);
    }
    
    .auth-buttons .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}