/* ============================================================
   AMC Athena — Agentic AI for Aviation & Defense
   Stylesheet
   ============================================================ */

:root {
    --bg: #05070d;
    --bg-2: #0a0f1c;
    --bg-3: #0e1426;
    --panel: rgba(255, 255, 255, 0.03);
    --panel-border: rgba(120, 160, 255, 0.12);
    --text: #e8eef9;
    --text-dim: #9aa7c2;
    --text-mute: #6b7794;
    --accent: #2f7bff;
    --accent-2: #00d4ff;
    --accent-3: #7c5cff;
    --gold: #ffb547;
    --grad: linear-gradient(135deg, #2f7bff 0%, #00d4ff 50%, #7c5cff 100%);
    --grad-soft: linear-gradient(135deg, rgba(47,123,255,.15), rgba(0,212,255,.08));
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(47, 123, 255, 0.25);
    --maxw: 1200px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Preloader ===== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-ring {
    position: absolute;
    width: 120px; height: 120px;
    border: 2px solid rgba(47,123,255,.15);
    border-top-color: var(--accent-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.preloader-logo {
    width: 54px; height: 54px;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 18px 0;
}
.nav.scrolled {
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--panel-border);
    padding: 12px 0;
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 38px; height: 38px; }
.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.05rem; letter-spacing: 1px; color: var(--text);
}
.nav-brand-text strong { color: var(--accent-2); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-size: .92rem; font-weight: 500; color: var(--text-dim);
    position: relative; transition: color .25s ease;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--grad);
    transition: width .3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 9px 20px; border: 1px solid var(--accent);
    border-radius: 50px; color: var(--text) !important;
    background: rgba(47,123,255,.12);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px; background: var(--text);
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #0d1a3a 0%, var(--bg) 60%);
}
.hero-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-grid {
    position: absolute; inset: 0; z-index: 2;
    background-image:
        linear-gradient(rgba(47,123,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,123,255,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 3; padding: 120px 24px 80px; max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; border-radius: 50px;
    background: rgba(47,123,255,.1); border: 1px solid var(--panel-border);
    font-size: .82rem; font-weight: 500; color: var(--accent-2);
    margin-bottom: 28px; letter-spacing: .5px;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(0,212,255,.6);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(0,212,255,.6); }
    70% { box-shadow: 0 0 0 12px rgba(0,212,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 900; line-height: .95; letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-title-accent {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0,212,255,.4));
}
.hero-logo {
    margin: 20px auto 24px;
    max-width: 200px;
}
.hero-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-dim); max-width: 680px; margin: 0 auto 36px;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
    display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
    padding-top: 32px; border-top: 1px solid var(--panel-border);
}
.hero-stat { text-align: center; }
.hero-stat strong {
    display: block; font-family: var(--font-display);
    font-size: 1.6rem; color: var(--accent-2);
}
.hero-stat span { font-size: .8rem; color: var(--text-mute); }
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 3; width: 24px; height: 40px;
    border: 2px solid var(--text-mute); border-radius: 14px;
}
.hero-scroll span {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--accent-2); border-radius: 2px;
    animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
    0% { opacity: 0; top: 8px; }
    50% { opacity: 1; }
    100% { opacity: 0; top: 24px; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 30px; border-radius: 50px;
    font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    border: none; font-family: var(--font);
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 30px rgba(47,123,255,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(47,123,255,.5); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--panel-border);
}
.btn-ghost:hover { border-color: var(--accent-2); background: rgba(0,212,255,.06); }
.btn-block { width: 100%; }

/* ===== Marquee ===== */
.marquee-section { background: var(--bg-2); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 18px 0; }
.marquee-track {
    display: flex; gap: 28px; white-space: nowrap;
    animation: marquee 40s linear infinite;
    font-family: var(--font-display); font-size: .85rem;
    color: var(--text-mute); letter-spacing: 2px; text-transform: uppercase;
}
.marquee-track span:nth-child(odd) { color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
    line-height: 1.1; margin-bottom: 20px;
}
.accent {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-lead { color: var(--text-dim); font-size: 1.08rem; }

/* ===== Athena Cards ===== */
.athena-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.athena-card {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); padding: 36px 28px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    position: relative; overflow: hidden;
}
.athena-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad); transform: scaleX(0); transform-origin: left;
    transition: transform .4s ease;
}
.athena-card:hover { transform: translateY(-8px); border-color: rgba(0,212,255,.3); box-shadow: var(--shadow-glow); }
.athena-card:hover::before { transform: scaleX(1); }
.athena-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--grad-soft); border: 1px solid var(--panel-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-2); margin-bottom: 22px;
}
.athena-icon svg { width: 28px; height: 28px; }
.athena-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.athena-card p { color: var(--text-dim); font-size: .92rem; }

/* ===== Capabilities ===== */
.cap-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cap-item {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); padding: 36px 30px;
    transition: transform .35s ease, border-color .35s ease;
    position: relative;
}
.cap-item:hover { transform: translateY(-6px); border-color: rgba(124,92,255,.35); }
.cap-num {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; opacity: .5; display: block; margin-bottom: 14px;
}
.cap-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cap-item p { color: var(--text-dim); font-size: .92rem; }

/* ===== Split Sections ===== */
.split {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 560px;
    padding: 0; align-items: stretch;
}
.split-reverse .split-visual { order: 2; }
.split-visual {
    position: relative; overflow: hidden; min-height: 400px;
}
.aviation-visual {
    background: url('engg_future_flight_lh_bg.png') center/cover no-repeat;
}
.defense-visual {
    background: url('engg_defense_rh_bg.png') center/cover no-repeat;
}
.split-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(47,123,255,.25), transparent 60%);
}
.split-tag {
    position: absolute; bottom: 30px; left: 30px;
    padding: 10px 20px; border-radius: 50px;
    background: rgba(5,7,13,.7); backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border); font-size: .82rem; font-weight: 600;
    color: var(--accent-2); letter-spacing: 1px;
}
.split-content {
    padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.split-content .section-title { margin-bottom: 8px; }
.split-content p { color: var(--text-dim); }
.feature-list { list-style: none; margin: 8px 0 20px; }
.feature-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; color: var(--text); font-size: .95rem;
}
.check {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad-soft); border: 1px solid var(--accent);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check::after {
    content: ''; width: 8px; height: 4px;
    border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
    transform: rotate(-45deg); margin-top: -2px;
}

/* ===== Athena Way Layout (image left + timeline right) ===== */
.athena-way-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.athena-way-image {
    position: sticky;
    top: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.athena-way-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Timeline ===== */
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(var(--accent), var(--accent-3));
    opacity: .4;
}
.tl-item {
    display: flex; gap: 28px; padding: 22px 0; position: relative;
}
.tl-dot {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--bg-2); border: 2px solid var(--accent);
    flex-shrink: 0; position: relative; z-index: 2;
    box-shadow: 0 0 20px rgba(47,123,255,.3);
}
.tl-dot::after {
    content: ''; position: absolute; inset: 8px; border-radius: 50%;
    background: var(--grad);
}
.tl-body { padding-top: 6px; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--accent-2); }
.tl-body p { color: var(--text-dim); }

/* ===== Stats Band ===== */
.stats-band {
    background: var(--grad); padding: 70px 0; position: relative;
}
.stats-band::before {
    content: ''; position: absolute; inset: 0;
    background: var(--bg); opacity: .88;
}
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    position: relative; z-index: 2;
}
.stat-block { text-align: center; }
.stat-block strong {
    display: block; font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-block span { color: var(--text-dim); font-size: .9rem; }

/* ===== Contact ===== */
.contact-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-info p { color: var(--text-dim); margin: 16px 0 24px; }
.contact-detail { margin-bottom: 18px; color: var(--text-dim); line-height: 1.7; }
.contact-logo { max-width: 240px; margin-bottom: 20px; }
.contact-link { color: var(--accent-2); font-weight: 600; }
.contact-link:hover { text-decoration: underline; }
.contact-form {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); padding: 36px;
}
.field { margin-bottom: 20px; }
.field label {
    display: block; font-size: .85rem; font-weight: 500;
    color: var(--text-dim); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px;
    background: rgba(0,0,0,.25); border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm); color: var(--text); font-family: var(--font);
    font-size: .95rem; transition: border-color .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent-2);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 16px; color: var(--accent-2); font-size: .9rem; }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--panel-border); padding: 60px 0 30px; }
.footer-inner { display: flex; flex-direction: column; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo { width: 56px; height: 56px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.05rem; }
.footer-brand p { color: var(--text-mute); font-size: .9rem; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; transition: color .25s ease; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding-top: 24px; border-top: 1px solid var(--panel-border);
}
.footer-bottom p { color: var(--text-mute); font-size: .82rem; }
.footer-tag { color: var(--text-mute); }

/* ===== Reveal Animations ===== */
.reveal, .reveal-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible, .reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .athena-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .athena-way-layout { grid-template-columns: 1fr; }
    .athena-way-image { position: static; }
    .split { grid-template-columns: 1fr; }
    .split-reverse .split-visual { order: 0; }
    .split-visual { min-height: 280px; }
    .split-content { padding: 60px 32px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 760px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh;
        width: 75%; max-width: 320px; flex-direction: column;
        background: var(--bg-2); padding: 90px 30px 30px; gap: 22px;
        transition: right .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,.5);
        align-items: flex-start;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .section { padding: 80px 0; }
    .athena-grid, .cap-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}