/* ================================================================
   AVIATION CONSULTANTS - PROFESSIONAL ENHANCED V2
   Modern, Aviation-Inspired Design
   ================================================================ */

/* PROFESSIONAL FONTS */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* CSS VARIABLES - Professional Aviation Theme */
:root {
    /* Primary Colors */
    --navy-deep: #0a2342;
    --navy-mid: #0b3c5d;
    --navy-light: #1e5b85;
    
    /* Accent Colors */
    --gold-dark: #b8941f;
    --gold-mid: #d4af37;
    --gold-light: #e8d084;
    
    /* Technical Colors */
    --sky-blue: #4a90e2;
    --radar-green: #00ff41;
    --data-blue: #00d4ff;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray-mid: #6c757d;
    --gray-dark: #343a40;
}

/* ENHANCED NAVIGATION */
.main-nav { 
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--gold-mid);
}
.nav-container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 18px 0; 
    position: relative; 
}
.logo { 
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo::before {
    content: '✈';
    color: var(--gold-mid);
    margin-right: 10px;
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

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

.menu-toggle { 
    display: none; 
    font-size: 28px; 
    color: var(--white); 
    cursor: pointer; 
    padding: 10px; 
    position: absolute; 
    right: 0; 
    transition: transform 0.3s ease;
}
.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--gold-mid);
}

.nav-links { 
    display: flex; 
    gap: 8px; 
}
.nav-links a { 
    color: var(--white);
    text-decoration: none; 
    padding: 10px 18px; 
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-mid);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover { 
    background: rgba(255,255,255,0.1);
    color: var(--gold-mid);
}
.nav-links a:hover::before {
    width: 80%;
}

/* MOBILE NAV - FIXED HAMBURGER POSITIONING & NAVIGATION */
@media (max-width: 768px) {
    /* FIX #1: Prevent hamburger from overlapping logo */
    .nav-container {
        padding-right: 50px; /* Make space for hamburger */
    }
    
    .menu-toggle { 
        display: block;
        right: 0; /* Keep at right edge */
        z-index: 10000; /* Ensure it's above everything */
    }
    
    .nav-links { 
        display: none; 
        flex-direction: row;
        flex-wrap: wrap;
        position: fixed; 
        top: 68px; 
        left: 0; 
        right: 0; 
        background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
        padding: 16px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        z-index: 9998;
        animation: slideDown 0.3s ease;
        gap: 10px;
        justify-content: center;
    }
    
    /* FIX #2: Show menu when toggled - works with both onclick and classList methods */
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links a { 
        color: #ffffff !important;
        padding: 12px 18px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        font-size: 14px;
        background: rgba(255,255,255,0.08);
        min-width: 100px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255,255,255,0.2);
        border-color: var(--gold-mid);
        color: var(--gold-mid) !important;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ENHANCED HERO SECTION */
.home-hero { 
    height: 75vh; 
    min-height: 600px; 
    background: 
        linear-gradient(135deg, rgba(10, 35, 66, 0.85) 0%, rgba(11, 60, 93, 0.75) 50%, rgba(30, 91, 133, 0.65) 100%),
        url("../images/atc-hero2.png") center/cover no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated radar grid overlay */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0,255,65,0.03) 50px, rgba(0,255,65,0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0,255,65,0.03) 50px, rgba(0,255,65,0.03) 51px);
    pointer-events: none;
}

/* Animated gradient sweep */
.home-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

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

.home-hero-overlay { 
    max-width: 1000px; 
    padding: 40px 30px; 
    color: var(--white);
    position: relative;
    z-index: 2;
}

.home-hero-overlay h1 { 
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700; 
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.home-hero-overlay p { 
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* ENHANCED CTA BUTTONS */
.hero-cta { 
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary, .btn-secondary { 
    display: inline-block; 
    padding: 16px 40px; 
    margin: 8px; 
    border-radius: 8px; 
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none; 
    min-width: 220px; 
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-mid) 100%);
    color: var(--navy-deep);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    position: relative;
}

.btn-primary:hover { 
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.btn-secondary { 
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-mid);
    color: var(--gold-mid);
    transform: translateY(-4px);
}

/* MOBILE HERO */
@media (max-width: 768px) {
    .home-hero { height: 65vh; min-height: 500px; }
    .home-hero-overlay h1 { font-size: 2rem; }
    .home-hero-overlay p { font-size: 1.05rem; }
    .btn-primary, .btn-secondary { display: block; width: 100%; max-width: 320px; margin: 12px auto; font-size: 16px; }
    .hero-cta { flex-direction: column; align-items: center; }
}

/* ENHANCED STATISTICS */
.stats-row { 
    max-width: 1200px; 
    margin: -60px auto 60px auto;
    padding: 0 24px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 24px;
    position: relative;
    z-index: 10;
}

.stat-box { 
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border: 2px solid var(--gray-light);
    border-radius: 16px; 
    padding: 40px 24px; 
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-mid), var(--sky-blue), var(--data-blue));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    border-color: var(--gold-mid);
}

.stat-box:hover::before {
    transform: translateX(0);
}

.stat-box h3 { 
    margin: 0 0 12px; 
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: var(--navy-mid);
    font-weight: 700;
}

.stat-box p { 
    margin: 0; 
    font-size: 0.9rem;
    color: var(--gray-mid);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ENHANCED SERVICES */
.core-services { 
    max-width: 1200px; 
    margin: 80px auto; 
    padding: 0 24px; 
    text-align: center; 
}

.core-services h2 { 
    font-family: 'Rajdhani', sans-serif;
    color: var(--navy-deep);
    font-size: 2.75rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-subtitle { 
    color: var(--gray-mid);
    font-size: 1.2rem;
    margin-bottom: 60px;
    font-weight: 500;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
}

.service-tile { 
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border: 2px solid var(--gray-light);
    padding: 32px 24px; 
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--navy-mid), var(--sky-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.15);
    border-color: var(--navy-mid);
    background: var(--white);
}

.service-tile:hover::before {
    transform: scaleX(1);
}

.service-tile strong { 
    font-family: 'Rajdhani', sans-serif;
    color: var(--navy-mid);
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.service-tile p { 
    font-size: 14px; 
    margin-top: 10px;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* PAGE BANNER */
.page-banner { 
    max-width: 1200px; 
    margin: 30px auto 40px; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 12px 40px rgba(0,0,0,0.15); 
}
.page-banner-inner { 
    background-size: cover; 
    background-position: center; 
    padding: 80px 40px; 
    text-align: center; 
    position: relative; 
}
.page-banner-inner::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.92) 0%, rgba(11, 60, 93, 0.85) 50%, rgba(30, 91, 133, 0.78) 100%);
}
.page-banner h1, .page-banner p { 
    position: relative; 
    z-index: 2; 
    color: #ffffff !important;
}
.page-banner h1 { 
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: #ffffff !important;
}
.page-banner p { 
    font-size: 1.2rem;
    opacity: 0.95;
    color: #ffffff !important;
}

/* Additional banner text fix */
.page-banner-inner h1,
.page-banner-inner p {
    color: #ffffff !important;
}

/* CONTENT */
.content-shell, .page-wrapper { 
    max-width: 1100px; 
    margin: 60px auto; 
    padding: 0 30px; 
}

.info-card { 
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 16px; 
    padding: 40px; 
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.info-card h3 { 
    font-family: 'Rajdhani', sans-serif;
    color: var(--navy-mid);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.highlight-card { 
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    border-left: 5px solid var(--gold-mid);
}

.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.service-card { 
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 16px; 
    padding: 36px; 
    text-decoration: none; 
    color: inherit; 
    display: block;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--navy-mid), var(--sky-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: var(--navy-mid);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 { 
    font-family: 'Rajdhani', sans-serif;
    color: var(--navy-mid);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

/* CONTACT */
.contact-wrapper { 
    background: linear-gradient(135deg, var(--off-white) 0%, var(--gray-light) 100%);
    padding: 80px 30px; 
}
.contact-section { 
    max-width: 650px;
    background: var(--white);
    padding: 50px 40px; 
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    margin: 0 auto; 
    text-align: center; 
}
.contact-section h2 { 
    font-family: 'Rajdhani', sans-serif;
    color: var(--navy-deep);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}
.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 16px 20px; 
    margin-bottom: 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--navy-mid);
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 60, 93, 0.1);
}
.contact-form button { 
    padding: 16px 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
    color: var(--white);
    border: none; 
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11, 60, 93, 0.3);
}

/* FIX #3: CONTACT INFO CARD */
.contact-info-card {
    position: fixed;
    bottom: 32px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--navy-mid);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    line-height: 1.8;
    border: 2px solid var(--gray-light);
    backdrop-filter: blur(10px);
    z-index: 9996;
    max-width: 280px;
}

.contact-info-card strong {
    color: var(--navy-deep);
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-info-card {
        position: static;
        margin: 30px auto;
        max-width: 90%;
    }
}

/* DOWNLOADS */
.download-card { 
    max-width: 950px; 
    margin: 40px auto;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 20px; 
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.download-card:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}
.download-card-header { 
    display: flex; 
    gap: 30px; 
}
.pdf-icon { 
    width: 72px; 
    height: 72px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px; 
    color: var(--white);
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 700; 
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}
.download-btn { 
    display: inline-block; 
    margin-top: 20px;
    padding: 14px 35px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.download-btn:hover { 
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 60, 93, 0.3);
}
.download-btn::after { 
    content: ' ↓';
    font-size: 1.3rem;
}

/* BACK TO TOP */
.back-to-top { 
    position: fixed; 
    bottom: 35px; 
    right: 35px;
    width: 56px; 
    height: 56px;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer; 
    display: none;
    align-items: center; 
    justify-content: center;
    box-shadow: 0 8px 25px rgba(11, 60, 93, 0.3);
    z-index: 9997;
    transition: all 0.3s ease;
}
.back-to-top:hover { 
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(11, 60, 93, 0.4);
    background: linear-gradient(135deg, var(--gold-mid) 0%, var(--gold-dark) 100%);
}

/* FOOTER */
.site-footer { 
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    text-align: center; 
    padding: 40px; 
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 80px;
    border-top: 4px solid var(--gold-mid);
}
.site-footer a { 
    color: var(--gold-light);
    font-weight: 600; 
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover { 
    color: var(--gold-mid);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .services-grid, .stats-row, .card-grid { grid-template-columns: 1fr; }
    .download-card-header { flex-direction: column; text-align: center; }
    .page-banner-inner { padding: 60px 30px; }
    .page-banner h1 { font-size: 2rem; }
    .core-services h2 { font-size: 2rem; }
    .back-to-top { bottom: 25px; right: 25px; width: 52px; height: 52px; }
}
