/* AeroFusion Main Stylesheet - Premium Dark Aviation Theme */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Backgrounds */
    --bg: #0f172a;                /* Dark Slate Blue (Deep Space) */
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e3a8a;   /* Rich Navy Blue */
    
    /* Glassmorphism */
    --card: rgba(30, 41, 59, 0.7); /* Dark Blue with 70% opacity */
    --glass: rgba(30, 41, 59, 0.7); /* Standardized Glass */
    --border: rgba(255, 255, 255, 0.1); /* White with 10% opacity */
    --input-bg: rgba(15, 23, 42, 0.6); /* Darker Slate with 60% opacity */
    
    /* Typography */
    --text: #f8fafc;              /* Off-White / Slate 50 */
    --muted: #94a3b8;             /* Slate Gray */
    
    /* Accents & Actions */
    --accent: #3b82f6;            /* Bright Blue (Aviation Blue) - Primary Action */
    --accent-2: #0ea5e9;          /* Sky Cyan (Highlights) */
    --accent-hover: #2563eb;      /* Medium Blue (Interactive) */
    
    /* Effects */
    --glow: rgba(59, 130, 246, 0.5); /* Blue glow */
    --shadow: rgba(0, 0, 0, 0.3);
    --radius: 20px;
    --max-width: 1400px;
    
    /* Status Colors (Mapped to theme) */
    --success: #0ea5e9;
    --warning: #f8fafc;
    --info: #3b82f6;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    /* Linear Gradient Body Background */
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* ===== LOGIN PAGE OVERRIDES (reduce flicker across browsers) ===== */
body.login-page {
    /* Use a simpler, static background for the login screen */
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    background-attachment: scroll;
    overflow-x: hidden;
}

/* Disable heavy ether animations on the login page only */
body.login-page::before,
body.login-page::after {
    content: none !important;
}

/* Register page: prevent rotating box flicker near scrollbar */
body.register-page {
    overflow-x: hidden;
}

/* ===== LIQUID ETHER ANIMATION ===== */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    margin-left: -400px;
    margin-top: -400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(14, 165, 233, 0.2) 30%, transparent 70%);
    filter: blur(80px);
    animation: floatEther 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 30%;
    left: 30%;
    width: 600px;
    height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.3) 0%, rgba(59, 130, 246, 0.15) 30%, transparent 70%);
    filter: blur(90px);
    animation: floatEtherReverse 25s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatEther {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    25% { transform: translate(150px, -100px) scale(1.2); opacity: 0.8; }
    50% { transform: translate(-100px, 150px) scale(0.9); opacity: 1; }
    75% { transform: translate(100px, 100px) scale(1.1); opacity: 0.9; }
}

@keyframes floatEtherReverse {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    25% { transform: translate(-120px, 120px) scale(1.15); opacity: 0.85; }
    50% { transform: translate(130px, -80px) scale(0.95); opacity: 1; }
    75% { transform: translate(-90px, -110px) scale(1.08); opacity: 0.9; }
}

/* ===== AEROFUSION UI ANIMATIONS (unique aviation theme) ===== */
/* Horizon-style reveal: elements rise into view like approaching aircraft */
@keyframes aero-horizon-up {
    from {
        opacity: 0;
        transform: translateY(28px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Subtle cruise float for cards – smooth, not bouncy */
@keyframes aero-float {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-6px) translateZ(0); }
}

/* Aviation blue glow pulse – matches --accent / --accent-2 */
@keyframes aero-glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25); }
    50% { box-shadow: 0 6px 28px rgba(14, 165, 233, 0.4); }
}

/* Fade + slight scale for modals/overlays */
@keyframes aero-scale-in {
    from {
        opacity: 0;
        transform: scale(0.97) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

/* AOS overrides: aviation-themed easing (smooth, confident) */
[data-aos] {
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Stagger utility classes for grids – sequential “approach” feel */
.aos-stagger-1 { transition-delay: 0.05s; }
.aos-stagger-2 { transition-delay: 0.12s; }
.aos-stagger-3 { transition-delay: 0.19s; }
.aos-stagger-4 { transition-delay: 0.26s; }

/* Hover: subtle lift (aviation “climb”) */
.aero-hover-lift {
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
}
.aero-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

/* ===== HEADER & NAVIGATION (Floating Oval Liquid Glass) ===== */
.header {
    position: fixed;
    top: 20px; /* Detached from top */
    left: 50%;
    transform: translateX(-50%); /* Centered */
    width: 95%; /* Not full width */
    max-width: 1400px;
    z-index: 1000;
    
    /* Liquid Glass Effect */
    background: rgba(15, 23, 42, 0.65); 
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* Oval / Pill Shape */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Full border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Deep shadow for floating effect */
    transition: all 0.3s ease;
}

.navbar {
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 2rem; /* Padding inside the oval */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Fixed height for the pill */
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: 1rem;
    position: relative;
    flex-direction: column;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    color: var(--text);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
    margin-top: 0;
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.08em;
    /* Cool cyan → blue → magenta neon, no warm orange */
    background: linear-gradient(90deg,
        #7df9ff 0%,
        #38bdf8 25%,
        #60a5fa 45%,
        #a855f7 75%,
        #f9a8d4 100%
    );
    background-size: 160% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Very soft neon glow so gradient stays visible */
    text-shadow:
        0 0 1px rgba(148, 232, 255, 0.7),  /* soft core */
        0 0 4px rgba(56, 189, 248, 0.45);  /* gentle cyan halo */
    filter: drop-shadow(0 0 2px rgba(15, 23, 42, 0.9));
    animation: logoGradientDrift 10s ease-in-out infinite;
}

@keyframes logoGradientDrift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent); /* Bright Blue */
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* User Section Layout */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-user span {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 2rem; /* Rounded buttons to match pill header */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.btn-danger:hover {
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.8) 0%, rgba(71, 85, 105, 0.9) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.9) 0%, rgba(51, 65, 85, 1) 100%);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
}

/* Admin button - Red liquid glassmorphic style (only visible for Sasmitha) */
#adminBtn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.95) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #ffffff;
    border-radius: 25px;
    padding: 0.65rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 
        0 8px 32px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: none; /* Hidden by default, shown via JavaScript */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

#adminBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#adminBtn:hover::before {
    left: 100%;
}

#adminBtn:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(185, 28, 28, 1) 100%);
    box-shadow: 
        0 12px 40px rgba(239, 68, 68, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

#adminBtn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes liquid-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 775px;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--text);
    padding: 2rem;
    position: relative;
    z-index: 2;
    padding-top: 100px; /* Increased Offset for floating header */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted);
    font-weight: 400;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px; /* Matched to root */
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
    text-shadow: 0 0 10px var(--glow);
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 1.25rem;
    color: var(--text);
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    animation: statCardFloat 3s ease-in-out infinite;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent
    );
    opacity: 0.6;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.25), 
        0 0 30px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.5);
}

.stat-card:hover::after {
    opacity: 1;
}

@keyframes statCardFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent-2); /* Cyan numbers */
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 500;
}

/* ===== CARD LAYOUTS ===== */
.card {
    background: var(--card);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

/* ===== ABOUT ME SECTION ===== */
.about-section {
    margin-top: 1rem;
}

.about-card {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 2.75rem;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.about-avatar-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.5);
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2), transparent, var(--accent));
    animation: aboutRingSpin 14s linear infinite;
    opacity: 0.6;
}

.about-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    border: 4px solid rgba(15, 23, 42, 0.9);
    position: relative;
    z-index: 1;
    animation: aboutFloat 7s ease-in-out infinite;
}

.about-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(59,130,246,0.5);
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59,130,246,0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(59,130,246,0.8);
    }
}

.about-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.about-title {
    text-align: left;
    margin-bottom: 0.75rem;
}

.about-text {
    color: var(--muted);
    line-height: 1.9;
    font-size: 1.05rem;
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.about-highlight {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.about-bullet {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(15,23,42,0.9);
    flex-shrink: 0;
}

.about-highlight-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.98rem;
}

.about-highlight-text {
    font-size: 0.9rem;
    color: var(--muted);
}

.about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(10px);
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes aboutRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .about-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .about-avatar-wrapper {
        margin: 0 auto 1.5rem auto;
    }

    .about-title {
        text-align: center;
    }

    .about-text {
        text-align: left;
    }
}

/* ===== FEATURES CARD SECTION ===== */
.features-card {
    padding: 2.5rem;
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.features-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59,130,246,0.15), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.features-content {
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-item:last-of-type {
    margin-bottom: 1.75rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
    flex-shrink: 0;
    color: var(--text);
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-tag {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .features-card {
        padding: 2rem;
    }

    .feature-item {
        margin-bottom: 1.25rem;
    }
}

/* ===== CONTACT FORM HORIZONTAL LAYOUT ===== */
.contact-form-card {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.card:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card-description {
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text);
    position: relative;
    z-index: 1;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Password field with view toggle (eye icon) */
.password-wrapper {
    position: relative;
    display: block;
}
.password-wrapper .form-input,
.password-wrapper .admin-form-input {
    padding-right: 2.75rem;
    position: relative;
    z-index: 0;
}
.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    color: var(--muted, #94a3b8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}
.toggle-password:hover {
    color: var(--accent, #3b82f6);
}
.toggle-password svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}
/* Default: show eye (reveal), hide eye-off */
.toggle-password .icon-eye { display: block; }
.toggle-password .icon-eye-off { display: none; }
.toggle-password[aria-pressed="true"] .icon-eye { display: none; }
.toggle-password[aria-pressed="true"] .icon-eye-off { display: block !important; }

/* ===== FOOTER (same look on every page: index, flightradar, learning-hub, etc.) ===== */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
}

/* Instagram: gradient (orange → pink → purple) – original look */
.footer .social-links a.social-link-instagram .social-icon,
body .footer .social-links a.social-link-instagram .social-icon {
    width: 40px;
    height: 40px;
    filter: none;
}
.footer .social-links a.social-link-instagram:hover .social-icon {
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.6));
}

/* TikTok: teal – same as other pages */
.footer .social-links a.social-link-tiktok .social-icon,
body .footer .social-links a.social-link-tiktok .social-icon {
    width: 40px;
    height: 40px;
    fill: #00f2ea;
    filter: none;
}
.footer .social-links a.social-link-tiktok:hover .social-icon {
    fill: #00f2ea;
    filter: drop-shadow(0 0 8px rgba(0, 242, 234, 0.6));
}

/* Mail: white envelope */
.footer .social-links a.social-link-mail .social-icon,
body .footer .social-links a.social-link-mail .social-icon {
    width: 40px;
    height: 40px;
    fill: #f8fafc;
    filter: none;
}
.footer .social-links a.social-link-mail:hover .social-icon {
    fill: #e2e8f0;
    filter: drop-shadow(0 0 8px rgba(248, 250, 252, 0.4));
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

.copyright {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.footer-contact-wrap {
    margin-top: 1rem;
}

.btn-contact-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-contact-footer:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* ===== CONTACT MODAL (footer popup) ===== */
.contact-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-modal-overlay.is-open {
    display: flex;
}

.contact-modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.contact-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.contact-modal .section-title {
    margin-bottom: 1rem;
    padding-right: 40px;
}

.contact-modal .form-group {
    margin-bottom: 1rem;
}

.contact-modal .form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-modal .form-input,
.contact-modal .form-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.contact-modal .form-textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-modal .alert {
    margin-bottom: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-modal .alert-success {
    background: rgba(14, 165, 233, 0.2);
    color: var(--accent-2);
    border: 1px solid var(--accent-2);
}

.contact-modal .alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #f87171;
}

.contact-direct-links {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
}

.contact-direct-links p {
    margin: 0 0 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-direct-links-list {
    display: grid;
    gap: 0.65rem;
}

.contact-direct-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-direct-link:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(37, 99, 235, 0.15);
}

.contact-direct-link-label {
    font-weight: 600;
}

.contact-direct-link-handle {
    color: var(--muted);
    font-size: 0.88rem;
}

/* ===== TIMELINE STYLES ===== */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--glow);
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-out: card fades and slides up when scrolled past */
.timeline-item.passed {
    opacity: 0;
    transform: translateY(-45px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered reveal inside card when it appears */
.aircraft-card .aircraft-image,
.aircraft-card .aircraft-year,
.aircraft-card .aircraft-name,
.aircraft-card .aircraft-description,
.aircraft-card .aircraft-specs,
.aircraft-card .view-3d-btn {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, filter 0.3s ease;
}

.timeline-item.visible .aircraft-card .aircraft-image { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.timeline-item.visible .aircraft-card .aircraft-year { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.timeline-item.visible .aircraft-card .aircraft-name { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.timeline-item.visible .aircraft-card .aircraft-description { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.timeline-item.visible .aircraft-card .aircraft-specs { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
.timeline-item.visible .aircraft-card .view-3d-btn { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.timeline-item:nth-child(odd) .timeline-content {
    flex-direction: row;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    flex-direction: row-reverse;
    text-align: left;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 30px var(--accent);
}

.aircraft-card {
    flex: 1;
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px var(--shadow);
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.aircraft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.aircraft-card:hover::before {
    left: 100%;
}

.aircraft-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--glow);
    border-color: var(--accent);
}

.aircraft-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.aircraft-card:hover .aircraft-image {
    filter: brightness(1.1);
}

.aircraft-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px var(--glow);
}

.aircraft-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.aircraft-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.aircraft-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.spec-item {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    color: var(--text);
}

.view-3d-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--glow);
    width: 100%;
}

.view-3d-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent);
}

.viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.viewer-modal.active {
    display: flex;
}

.viewer-content {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px var(--glow);
}

.viewer-header {
    padding: 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
}

.close-viewer {
    background: var(--accent);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-viewer:hover {
    background: var(--accent-hover);
    transform: rotate(90deg);
}

.viewer-frame {
    width: 100%;
    height: calc(100% - 80px);
    border: none;
}

.timeline-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-top: 100px; /* Increased Offset for floating header */
}

.timeline-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow);
}

.timeline-hero p {
    font-size: 1.5rem;
    color: var(--muted);
}

/* ===== FLIGHT RADAR PAGE STYLES ===== */

.flightradar-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    padding-top: 120px; /* account for floating header */
}

.flightradar-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow);
    font-weight: 800;
}

.flightradar-hero-content p {
    font-size: 1.3rem;
    color: var(--muted);
}

.flightradar-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.flightradar-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(59,130,246,0.35), rgba(15,23,42,0.95));
    border: 1px solid var(--border);
    box-shadow: 0 12px 35px rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flightradar-screen-placeholder {
    text-align: center;
    color: var(--muted);
    max-width: 420px;
    padding: 1.5rem;
}

.flightradar-screen-placeholder h3 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.flightradar-screen-placeholder p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.flightradar-screen-placeholder code {
    background: rgba(15,23,42,0.9);
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    border: 1px solid var(--border);
}

.flightradar-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===== FLIGHT SCHOOLS PAGE STYLES ===== */

.schools-hero {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
}

.schools-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow);
    font-weight: bold;
}

.schools-hero-content p {
    font-size: 1.5rem;
    color: var(--muted);
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.section-description {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.schools-section {
    position: relative;
    margin: 4rem 0;
    padding: 2rem 0;
}

.scroll-navigation {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--glow);
    transition: all 0.3s ease;
    pointer-events: all;
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-left { margin-left: -25px; }
.scroll-right { margin-right: -25px; }

.schools-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--card);
}

.schools-container::-webkit-scrollbar {
    height: 10px;
}

.schools-container::-webkit-scrollbar-track {
    background: var(--card);
    border-radius: 10px;
}

.schools-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 10px;
}

.schools-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* School Card Styles */
.school-card {
    flex: 0 0 400px;
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px var(--shadow);
    position: relative;
}

.school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.school-card:hover::before {
    left: 100%;
}

.school-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px var(--glow);
    border-color: var(--accent);
}

.school-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 15px var(--glow);
    z-index: 2;
}

.school-image-wrapper {
    height: 200px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.school-image-placeholder {
    color: var(--accent);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.school-card:hover .school-image-placeholder {
    opacity: 0.8;
    transform: scale(1.1);
}

.school-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.school-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.3;
}

.school-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 120px;
}

.school-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(59, 130, 246, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

.visit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--glow);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent);
}

.visit-btn svg {
    transition: transform 0.3s ease;
}

.visit-btn:hover svg {
    transform: translateX(5px);
}

/* Info Section */
.info-section {
    margin: 6rem 0 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--glow);
    border-color: var(--accent);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.info-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ========================================= */
/* ===== NEW: LEARNING HUB STYLES =========== */
/* ========================================= */

#aerofusion-learning-hub {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem 3rem; /* Top padding accounts for floating header */
    position: relative;
    z-index: 1;
}

.hub-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding: 2rem 0;
}

.hub-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    border-radius: 2px;
}

.hub-header h1 {
    font-size: 3.5rem;
    color: var(--text);
    text-shadow: 0 0 30px var(--glow), 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.8)); }
}

.hub-header p {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Profession Grid */
.profession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    perspective: 1000px;
}

.job-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    opacity: 0;
    animation: cardFadeIn 0.6s ease-out forwards;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.15s; }
.job-card:nth-child(3) { animation-delay: 0.2s; }
.job-card:nth-child(4) { animation-delay: 0.25s; }
.job-card:nth-child(5) { animation-delay: 0.3s; }
.job-card:nth-child(6) { animation-delay: 0.35s; }
.job-card:nth-child(7) { animation-delay: 0.4s; }
.job-card:nth-child(8) { animation-delay: 0.45s; }
.job-card:nth-child(9) { animation-delay: 0.5s; }
.job-card:nth-child(10) { animation-delay: 0.55s; }
.job-card:nth-child(11) { animation-delay: 0.6s; }
.job-card:nth-child(12) { animation-delay: 0.65s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.job-card:hover::before {
    left: 100%;
}

.job-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3),
                0 0 30px rgba(14, 165, 233, 0.2);
}

.job-card:active {
    transform: translateY(-5px) rotateX(2deg) scale(0.98);
}

.job-card div[class^="icon-"] {
    font-size: 3.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    transform-style: preserve-3d;
}
.job-card .card-icon-svg {
    width: 3.5rem;
    height: 3.5rem;
    color: inherit;
    display: block;
    margin: 0 auto;
}
.job-card .card-icon-drone {
    color: var(--accent, #3b82f6);
}
.job-card .card-icon-img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.job-card:hover div[class^="icon-"] {
    transform: scale(1.3) rotateY(15deg) rotateZ(5deg);
    filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.5));
}

.job-card h3 {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.job-card:hover h3 {
    color: var(--accent-2);
}

.job-card-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.job-card:hover .job-card-desc {
    color: var(--text);
}

/* Modal Overlay (The Big Card Background) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Deep dark overlay */
    z-index: 2000; /* Higher than header (1000) to ensure it's always on top */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 120px 1rem 2rem; /* Top padding to push content below navbar (navbar ~90px + margin) */
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal Content (The Big Card) */
.modal-content {
    background: rgba(15, 23, 42, 0.95); /* Nearly opaque for readability */
    backdrop-filter: blur(20px);
    color: var(--text);
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 140px); /* Account for navbar and padding */
    overflow-y: auto;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--accent);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
    margin-top: 0;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

/* Ensure modal content starts at top when opened */
.modal-overlay.visible {
    scroll-behavior: auto;
}

.modal-overlay.visible .modal-content {
    scroll-behavior: auto;
}

/* Modal Header & Toggles */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--glow);
}

.toggle-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.region-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.region-btn:hover {
    box-shadow: 0 0 15px var(--glow);
}

.region-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--glow);
}

/* Modal Body */
.modal-body p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.requirements-section h3, 
.mind-map-section h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 4px solid var(--accent-2);
    padding-left: 1rem;
}

.requirements-section ul {
    list-style: none;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
}

.requirements-section ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.requirements-section ul li::before {
    content: '✈';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Animated Mind Map (Flight Path) */
.flight-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.flight-node {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.6), transparent);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    width: 90%;
    opacity: 0;
    animation: slideIn 0.35s forwards ease-out;
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 5px 0;
}

.node-icon {
    background: var(--accent);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--glow);
}

.node-text {
    font-weight: 500;
    font-size: 1.05rem;
}

.flight-line {
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    opacity: 0;
    animation: growLine 0.35s forwards ease-out;
    box-shadow: 0 0 10px var(--glow);
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes growLine {
    from { height: 0; opacity: 0; }
    to { height: 30px; opacity: 1; }
}

/* Close Button */
.close-btn {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -2.5rem -1.5rem 1rem auto;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--accent-2);
    transform: rotate(90deg);
}

/* Modal sources (references inside popup) */
.modal-procedures-costs {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #334155);
}
.modal-procedures-costs.hidden {
    display: none !important;
}
.modal-procedures-costs h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.modal-procedures-costs .cost-list-detail {
    list-style: none;
    padding-left: 0;
}
.modal-procedures-costs .cost-list-detail li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}
.modal-procedures-costs .cost-range {
    color: var(--accent);
    font-weight: 500;
}

.modal-sources {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.modal-sources.hidden {
    display: none !important;
}
.modal-sources h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}
.sources-note, .references-intro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}
.sources-list, .references-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: none;
}
.sources-list li, .references-list li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}
.sources-list li::before, .references-list li::before {
    content: '↗ ';
    color: var(--accent);
}
.sources-list a, .references-list a {
    color: var(--accent-2);
    text-decoration: none;
}
.sources-list a:hover, .references-list a:hover {
    text-decoration: underline;
}

/* Page references section (below cards) */
.hub-references {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    backdrop-filter: blur(12px);
}
.hub-references h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.hub-references .references-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

/* ===== Training Timeline & Cost Estimator ===== */
.hub-section {
    margin-top: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.hub-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.hub-section h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px var(--glow);
    position: relative;
    display: inline-block;
}

.hub-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
}

.section-intro {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 70ch;
    line-height: 1.7;
}

.training-timeline-section {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.training-timeline-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    animation: sectionGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sectionGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-10%, -10%) scale(1.1); opacity: 0.5; }
}

#training-timeline-root {
    position: relative;
    z-index: 1;
}

.training-timeline-section .section-intro a {
    color: var(--accent-2);
    text-decoration: underline;
}

/* ===== Compact Interactive Training Timeline ===== */
.timeline-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.timeline-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    padding: 0.35rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.timeline-toggle .region-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-toggle .region-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.timeline-3d-container {
    perspective: 1200px;
    perspective-origin: center center;
    padding: 0.75rem 0;
}

.timeline-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    position: relative;
    transform-style: preserve-3d;
}

.timeline-connector {
    flex: 0 0 32px;
    min-width: 24px;
    max-width: 48px;
    height: 3px;
    align-self: center;
    position: relative;
    transform: translateZ(0);
}

.connector-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 20%, 
        var(--accent-2) 50%, 
        var(--accent) 80%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: connectorFlow 3s ease-in-out infinite;
    border-radius: 2px;
    opacity: 0.7;
}

.connector-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseTravel 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-2);
}

@keyframes connectorFlow {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

@keyframes pulseTravel {
    0% { left: 0; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
    100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.timeline-milestone-card {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 200px;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transform-style: preserve-3d;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) rotateX(-10deg);
}

.timeline-milestone-card.in-view {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.timeline-milestone-card:nth-child(1) { transition-delay: 0.1s; }
.timeline-milestone-card:nth-child(3) { transition-delay: 0.2s; }
.timeline-milestone-card:nth-child(5) { transition-delay: 0.3s; }
.timeline-milestone-card:nth-child(7) { transition-delay: 0.4s; }
.timeline-milestone-card:nth-child(9) { transition-delay: 0.5s; }

.milestone-card-inner {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.milestone-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.timeline-milestone-card:hover .milestone-card-inner,
.timeline-milestone-card.active .milestone-card-inner {
    transform: translateY(-4px) rotateX(3deg);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25),
                0 0 20px rgba(14, 165, 233, 0.15);
}

.timeline-milestone-card:hover .milestone-card-inner::before,
.timeline-milestone-card.active .milestone-card-inner::before {
    transform: scaleX(1);
}

.timeline-dot-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    transform-style: preserve-3d;
}

.timeline-dot-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    transform: translate(-50%, -50%);
    animation: dotPulse 2s ease-in-out infinite;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 3px solid rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) translateZ(8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.timeline-dot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-2), transparent);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.35s ease;
    filter: blur(6px);
}

.timeline-milestone-card:hover .timeline-dot,
.timeline-milestone-card.active .timeline-dot {
    transform: translate(-50%, -50%) translateZ(12px) scale(1.15);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.6),
                0 0 28px rgba(14, 165, 233, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.timeline-milestone-card:hover .timeline-dot-glow,
.timeline-milestone-card.active .timeline-dot-glow {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.5);
}

@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.3; }
}

/* Milestone Content */
.timeline-milestone-content {
    position: relative;
    z-index: 1;
}

.milestone-number {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transform: rotate(0deg);
    transition: transform 0.35s ease;
}

.timeline-milestone-card:hover .milestone-number,
.timeline-milestone-card.active .milestone-number {
    transform: rotate(360deg) scale(1.1);
}

.timeline-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.timeline-milestone-card:hover .timeline-label,
.timeline-milestone-card.active .timeline-label {
    color: var(--accent-2);
}

.timeline-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.timeline-milestone-card:hover .timeline-duration-badge,
.timeline-milestone-card.active .timeline-duration-badge {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent);
    transform: scale(1.05);
}

.duration-icon {
    font-size: 0.9rem;
}

.timeline-duration {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
}

.timeline-desc-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-milestone-card.active .timeline-desc-wrapper {
    max-height: 180px;
}

.timeline-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-expand-btn {
    margin-top: 0.4rem;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    color: var(--accent-2);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.milestone-expand-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.timeline-milestone-card.active .expand-icon {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 900px) {
    .timeline-track {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .timeline-milestone-card {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
    
    .timeline-connector {
        width: 3px;
        height: 24px;
        min-width: 3px;
        max-width: none;
        flex: 0 0 24px;
    }
    
    .connector-line {
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, 
            transparent 0%, 
            var(--accent) 20%, 
            var(--accent-2) 50%, 
            var(--accent) 80%, 
            transparent 100%);
        background-size: 100% 200%;
        animation: connectorFlowVert 3s ease-in-out infinite;
    }
    
    .connector-pulse {
        top: 0;
        left: 50%;
        width: 8px;
        height: 8px;
        animation: pulseTravelVert 3s ease-in-out infinite;
    }
}

@keyframes connectorFlowVert {
    0%, 100% { background-position: 0 100%; }
    50% { background-position: 0 0%; }
}

@keyframes pulseTravelVert {
    0% { top: 0; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
    100% { top: 100%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Cost Estimator */
.cost-estimator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.cost-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.cost-card-title {
    font-size: 1.2rem;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.cost-disclaimer {
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cost-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    background: none;
}

.cost-list li {
    margin-bottom: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-left: 0;
}

.cost-list li::before {
    content: none;
}

.cost-range {
    color: var(--accent-2);
    font-weight: 600;
}

.cost-notes {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.cost-total-note {
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    margin: 0;
}

/* Horizontal Cost Card Layout */
.cost-card-horizontal {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cost-card-left {
    flex: 1;
    min-width: 0;
}

.cost-card-right {
    flex: 1;
    min-width: 0;
}

.cost-items-title {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    font-weight: 600;
}

@media (max-width: 900px) {
    .cost-card-horizontal {
        flex-direction: column;
    }
    
    .cost-card-left,
    .cost-card-right {
        width: 100%;
    }
}

/* ===== Pilot journey: horizontal step tracker ===== */
.pilot-journey-section {
    position: relative;
    padding: 0.5rem 0 1rem;
}
.pilot-journey-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.pilot-journey-title {
    font-size: 1.75rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px var(--glow);
}
.pilot-journey-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.pilot-journey-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pilot-step {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 200px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem 0.85rem;
    text-align: center;
    position: relative;
    animation: pilotStepReveal 0.5s ease-out backwards;
}
.pilot-step:nth-child(1) { animation-delay: 0.05s; }
.pilot-step:nth-child(3) { animation-delay: 0.15s; }
.pilot-step:nth-child(5) { animation-delay: 0.25s; }
.pilot-step:nth-child(7) { animation-delay: 0.35s; }
.pilot-step:nth-child(9) { animation-delay: 0.45s; }
@keyframes pilotStepReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.pilot-step:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.pilot-step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    margin-bottom: 0.3rem;
}
.pilot-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}
.pilot-step-duration {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}
/* Animated connector line (shimmer) */
.pilot-step-connector {
    flex: 0 0 24px;
    min-width: 20px;
    max-width: 40px;
    align-self: center;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%, transparent 100%);
    background-size: 200% 100%;
    animation: pilotConnectorFlow 2.5s ease-in-out infinite;
    border-radius: 1px;
    opacity: 0.8;
}
@keyframes pilotConnectorFlow {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}
@media (max-width: 768px) {
    .pilot-journey-track {
        flex-direction: column;
        align-items: center;
        max-width: 280px;
        margin: 0 auto;
    }
    .pilot-step {
        max-width: 100%;
        width: 100%;
    }
    .pilot-step-connector {
        width: 2px;
        height: 20px;
        min-width: 2px;
        max-width: none;
        flex: 0 0 20px;
        background: linear-gradient(180deg, transparent 0%, var(--accent) 30%, var(--accent-2) 70%, transparent 100%);
        background-size: 100% 200%;
        animation: pilotConnectorFlowVert 2.5s ease-in-out infinite;
    }
    .pilot-step:nth-child(3),
    .pilot-step:nth-child(5),
    .pilot-step:nth-child(7),
    .pilot-step:nth-child(9) {
        animation-delay: 0.15s;
    }
}
@keyframes pilotConnectorFlowVert {
    0%, 100% { background-position: 0 100%; }
    50% { background-position: 0 0; }
}

/* ===== Date Checker Section (CAASL-based) ===== */
.date-checker-section {
    position: relative;
    overflow: hidden;
}

.caasl-timeline-info {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.caasl-timeline-info h3 {
    color: var(--accent-2);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.caasl-timeline-info p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.caasl-timeline-info a {
    color: var(--accent-2);
    text-decoration: underline;
}

.caasl-timeline-info .cost-estimator-toggle {
    margin-top: 1rem;
}

/* ===== Cost Estimator: Date & Budget Radar ===== */
.cost-estimator-date-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(12px);
}
.date-input-group {
    margin-bottom: 0.5rem;
}
.date-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.date-input {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}
.date-result {
    font-size: 1.05rem;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.date-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}
.cost-estimator-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.cost-card-single {
    max-width: 640px;
    margin: 0 auto 0;
}

.cost-card-horizontal {
    max-width: 100%;
    margin: 0;
}
.cost-breakdown {
    margin-bottom: 1rem;
}
.cost-breakdown h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
    padding-top: 120px; /* Account for floating header */
    position: relative;
    z-index: 1;
}

.dashboard-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card, .upload-card {
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.profile-card:hover, .upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
}

.profile-pic-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-2);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}

.profile-picture-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-2);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.profile-picture-placeholder i {
    font-size: 3rem;
    color: var(--text);
}

.profile-username {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-shadow: 0 0 10px var(--glow);
}

.stats-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-2);
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: var(--accent);
}

.file-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3rem 0;
}

.my-uploads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.dashboard-image-card {
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.dashboard-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
}

.image-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dashboard-image-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dashboard-image-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.manage-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.caption-section {
    margin-bottom: 0.5rem;
}

.caption-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.caption-text strong {
    color: var(--accent-2);
}

.delete-form {
    margin: 0.5rem 0;
}

.btn-delete-img {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-delete-img:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.comment-manager {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.mini-comment {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mini-comment:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author {
    color: var(--accent-2);
    font-size: 0.9rem;
}

.comment-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.delete-comment-form {
    display: inline;
}

.delete-comment-btn {
    background: transparent;
    border: none;
    color: #ff4757;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.delete-comment-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.1);
}

.no-comments {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.reply-form {
    margin-top: 1rem;
}

.reply-input-group {
    display: flex;
    gap: 0.5rem;
}

.reply-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.reply-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-reply {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: white;
    padding: 0.75rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.95rem;
    color: var(--muted);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding-top: 100px;
    }
    
    .dashboard-header {
        grid-template-columns: 1fr;
    }
    
    .dashboard-image-card {
        grid-template-columns: 1fr;
    }
    
    .image-wrapper {
        height: 250px;
    }
    
    .profile-picture, .profile-picture-placeholder {
        width: 100px;
        height: 100px;
    }
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: #1e1e24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* This crops the image visually to fit nicely */
}

.card-details {
    padding: 15px;
    color: #e0e0e0;
}

.btn-like {
    background: transparent;
    border: 1px solid #555;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-like.liked {
    color: #ff4757;
    border-color: #ff4757;
}

.comments-section {
    margin-top: 10px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.35rem 0;
}

.comment {
    flex: 1;
}

.comment-delete-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.comment-delete-btn:hover {
    transform: translateY(-1px);
    background: rgba(153, 27, 27, 0.35);
    border-color: rgba(248, 113, 113, 0.45);
}

.comment-input-area {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 10px;
}

.comment-input-area input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #333;
    color: white;
}

.comment-input-area input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.gallery-comment-submit {
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.visible {
    display: flex;
}
.modal-content {
    background: #222;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #00d4ff;
}



/* ===================================== */
/* === GLOBAL RESPONSIVE ADJUSTMENTS === */
/* ===================================== */

@media (max-width: 1024px) {
    .header {
        top: 12px;
        width: 96%;
    }

    .navbar {
        padding: 0.5rem 1.25rem;
        gap: 0.75rem;
    }

    .container {
        padding-inline: 1.5rem;
    }

    .hero {
        height: auto;
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    .header {
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 32px;
    }

    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 0.6rem 0.9rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        border-color: rgba(125, 249, 255, 0.22);
        background: linear-gradient(135deg, rgba(11, 20, 38, 0.95), rgba(28, 53, 107, 0.95));
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.35);
    }

    .nav-toggle-bar {
        display: block;
    }

    .nav-toggle::after {
        content: "";
        position: absolute;
        inset: 3px;
        border-radius: 999px;
        background:
            radial-gradient(circle at 30% 30%, rgba(125, 249, 255, 0.28), transparent 55%),
            linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.08));
        border: 1px solid rgba(125, 249, 255, 0.12);
    }

    .nav-toggle::before {
        content: "AF";
        position: relative;
        z-index: 1;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        color: #e0f2fe;
    }

    .nav-toggle[aria-expanded="true"]::before {
        content: "✕";
        font-size: 0.95rem;
        letter-spacing: 0;
    }

    .nav-toggle::before,
    .nav-toggle::after {
        content: none;
        display: none;
    }

    .nav-toggle-bar {
        display: block;
        position: relative;
        z-index: 1;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
        display: none;
    }

    body.nav-open .nav-menu {
        display: flex;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    body.nav-open .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        padding: 0.45rem 0;
        font-size: 0.85rem;
    }

    .nav-user {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.35rem;
        gap: 0.75rem;
        display: none;
    }

    body.nav-open .nav-user {
        display: flex;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .profile-pic {
        width: 32px;
        height: 32px;
    }

    .hero {
        height: auto;
        min-height: 60vh;
    }

    .hero-content {
        padding-top: 120px;
        padding-inline: 1.25rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding-inline: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-card {
        padding: 1.75rem 1.5rem;
        gap: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .about-avatar-wrapper {
        width: 180px;
        height: 180px;
        margin-inline: auto;
    }

    .about-avatar {
        width: 140px;
        height: 140px;
    }

    .timeline-container {
        padding-inline: 1.5rem;
    }

    .timeline-line {
        left: 12px;
        transform: none;
    }

    .timeline-content {
        flex-direction: column !important;
        margin-left: 2.5rem;
    }

    .timeline-dot {
        left: 12px;
        transform: translate(-50%, -50%);
    }

    .timeline-hero,
    .flightradar-hero,
    .schools-hero {
        height: auto;
        min-height: 280px;
        padding-top: 120px;
        padding-inline: 1.25rem;
    }

    .timeline-hero h1,
    .schools-hero-content h1,
    .flightradar-hero-content h1 {
        font-size: 2.2rem;
    }

    .timeline-hero p,
    .schools-hero-content p,
    .flightradar-hero-content p {
        font-size: 1rem;
    }

    .schools-container {
        padding-inline: 1rem;
        gap: 1.25rem;
    }

    .school-card {
        flex: 0 0 85%;
    }

    .dashboard-container {
        padding-top: 110px;
    }

    .dashboard-image-card {
        padding: 1.25rem;
    }

    .footer {
        padding-inline: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .navbar {
        padding-inline: 0.75rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .card-content {
        padding: 1.25rem;
    }

    .timeline-container {
        padding-inline: 1.1rem;
    }

    .school-card {
        flex: 0 0 100%;
    }

    .dashboard-image-card {
        padding: 1rem;
    }

    .image-wrapper {
        height: 210px;
    }

    .footer {
        padding-inline: 1.1rem;
    }
}

/* ===== RESPONSIVE SAFETY NET ===== */
html {
    -webkit-text-size-adjust: 100%;
}

img,
video,
iframe,
canvas {
    max-width: 100%;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .blog-posts-grid {
        gap: 1.25rem;
    }

    .container,
    .timeline-container,
    .predictor-container,
    #aerofusion-learning-hub {
        width: 100%;
    }

    .schools-container,
    .table-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
