/* 
   AIRSPEC, LLC
   High-tech, Navy/Silver Theme
*/

/* --- Variables & Reset --- */
:root {
    --navy-dark: #020c1b;
    --navy: #0a192f;
    --navy-light: #112240;
    --slate-lightest: #ccd6f6;
    --slate-light: #a8b2d1;
    --slate: #8892b0;
    --white: #e6f1ff;
    --silver: #eaeaea;
    --silver-accent: #64ffda;
    --gold-accent: #ffd700;

    /* New Premium Accents */
    --blue-glow: rgba(100, 255, 218, 0.1);
    --card-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --card-hover-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.9);

    --font-main: 'Inter', sans-serif;

    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Scroll Reveal Class */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--navy);
    color: var(--slate);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 18px;
    /* Slightly larger for readability */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--slate-lightest);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 50px 0;
}

.section.advisory {
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Typography Helpers --- */
.highlight {
    color: var(--white);
    border-bottom: 2px solid var(--silver);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--silver), transparent);
    margin: 20px auto 40px;
}

.divider.align-left {
    margin: 20px 0 40px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background-color: transparent;
    border: 1px solid var(--silver-accent);
    color: var(--silver-accent);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(100, 255, 218, 0.1);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    transform: translateY(-3px);
}

.btn-primary:hover::before {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(10, 32, 56, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    /* Increased size for better visibility */
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links li a {
    font-size: 0.9rem;
    color: var(--slate-lightest);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--silver);
    background-color: rgba(234, 234, 234, 0.05);
}

.nav-links li a.active {
    color: var(--silver);
    border-color: var(--silver);
    background-color: rgba(234, 234, 234, 0.1);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.line {
    width: 30px;
    height: 2px;
    background-color: var(--silver);
    margin: 6px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 50vh;
    margin-top: 90px;
    padding: 60px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 25, 47, 0.7) 0%,
            rgba(10, 25, 47, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    animation: fadeUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--slate-light);
}

/* --- Metrics Bar --- */
.metrics-bar {
    background-color: var(--navy-light);
    padding: 40px 0;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
    margin-top: -5px;
    /* Pull up to connect with Hero if needed, or keep separate */
    position: relative;
    z-index: 10;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.metric-item {
    padding: 20px;
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--silver-accent);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 1rem;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- Expertise Section (Redesigned) --- */
.section.expertise {
    position: relative;
    background-color: var(--navy);
    background-image:
        radial-gradient(circle at 50% 10%, rgba(23, 42, 69, 0.8) 0%, transparent 60%),
        linear-gradient(rgba(136, 146, 176, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(136, 146, 176, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--white);
    letter-spacing: -1px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Tech Card Design */
.card {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 146, 176, 0.1);
    border-radius: 4px;
    /* Minimal radius for tech feel */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.strategy-card {
    cursor: default !important;
}

/* Technical Corner Accents */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.4s ease;
    opacity: 0.5;
    pointer-events: none;
}

.card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--silver-accent);
    border-left: 2px solid var(--silver-accent);
}

.card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--silver-accent);
    border-right: 2px solid var(--silver-accent);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(100, 255, 218, 0.15);
    border-color: rgba(100, 255, 218, 0.3);
}

.card:hover::before,
.card:hover::after {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-color: rgba(100, 255, 218, 0.1);
    /* Full border glow hint */
}

/* Card Content Standardizing */
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    transition: padding 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: rgba(136, 146, 176, 0.5) transparent;
    scrollbar-width: thin;
}

/* Custom WebKit Scrollbar to prevent layout shifting and look clean */
.card-content::-webkit-scrollbar {
    width: 6px;
}

.card-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
    background-color: rgba(136, 146, 176, 0.3);
    border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(136, 146, 176, 0.6);
}

.card.expanded .card-content {
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
    /* Use 100% height to trigger overflow-y: auto inside bounded block */
}

.card.expanded .card-content>* {
    flex-shrink: 0;
    /* Prevent flex engine from crushing content instead of scrolling */
}

.card-content h3 {
    color: var(--slate-lightest);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Ensure strategy cards align perfectly under varying window sizes */
.strategy-card .card-content h3 {
    min-height: 4.5rem;
}

.card-content h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--silver-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--silver-accent);
    flex-shrink: 0;
    margin-top: 14px;
    /* Centers dot with the first line of text */
}

.card-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(100, 255, 218, 0.5), transparent);
    margin: 0 0 25px 0;
    opacity: 0.5;
}

.capability-list {
    margin: 0 0 10px 0;
    list-style: none;
    /* Removed flex-grow to prevent empty space */
}

.capability-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--slate-light);
    line-height: 1.5;
    transition: color 0.3s;
}

.capability-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--silver-accent);
    font-family: monospace;
    font-weight: bold;
}

.card:hover .capability-list li {
    color: var(--white);
}

/* Expandable Logic */
.expertise-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    /* Prevent interaction when closed */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Elegant ease */
}

.card.expanded .expertise-details {
    max-height: 2000px;
    /* Arbitrary large number */
    opacity: 1;
    pointer-events: auto;
    margin-top: 10px;
    border-top: 1px dashed rgba(136, 146, 176, 0.3);
    padding-top: 10px;
}

.expertise-details p {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 12px;
    line-height: 1.5;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.expertise-details p:last-child {
    margin-bottom: 0;
}

/* Staggered text reveal */
.card.expanded .expertise-details p:nth-child(1) {
    transition-delay: 0.1s;
    transform: translateY(0);
    opacity: 1;
}

.card.expanded .expertise-details p:nth-child(2) {
    transition-delay: 0.2s;
    transform: translateY(0);
    opacity: 1;
}

.card.expanded .expertise-details p:nth-child(3) {
    transition-delay: 0.3s;
    transform: translateY(0);
    opacity: 1;
}


/* Read More Button */
.read-more-btn {
    background: transparent;
    border: 1px solid rgba(136, 146, 176, 0.3);
    color: var(--silver-accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border-radius: 4px;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--silver-accent);
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.card.expanded .arrow {
    transform: rotate(180deg);
}

/* Active State Styling */
.card.expanded {
    background: rgba(23, 42, 69, 0.95);
    border-color: var(--silver-accent);
    box-shadow: 0 25px 50px -12px rgba(2, 12, 27, 0.9);
    z-index: 10;
    /* Pop above */
}

.card.expanded::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    border: none;
    background: var(--silver-accent);
    box-shadow: 0 0 15px var(--silver-accent);
}

.card.expanded::after {
    display: none;
}


/* --- Approach & Founder Sections --- */
.flex-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.founder-img {
    border-radius: 4px;
    box-shadow: 20px 20px 0 0 var(--navy-light);
    /* Offset border effect */
    border: 1px solid var(--silver);
}

/* --- Approach & Founder Sections --- */
.flex-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.approach {
    background-color: var(--navy-light);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(100, 255, 218, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(100, 255, 218, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.approach-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.approach-text {
    flex: 1.2;
}

.approach-visual {
    flex: 0.8;
}

.section-tag {
    display: inline-block;
    color: var(--silver-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background-color: var(--silver-accent);
}

.approach-quote {
    position: relative;
    padding: 30px 40px;
    background: rgba(2, 12, 27, 0.3);
    border-left: 2px solid var(--silver-accent);
    margin-top: 40px;
    font-style: italic;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
}

.approach-quote::after {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: var(--silver-accent);
    opacity: 0.1;
    font-family: serif;
}

/* Curiosity Framework Card */
.visual-card {
    position: relative;
    background: var(--navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(2, 12, 27, 0.5);
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--silver-accent);
}

.visual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--white);
    text-align: center;
}

.pillar-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pillar-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pillar-icon {
    background: rgba(100, 255, 218, 0.1);
    color: var(--silver-accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.pillar-content h4 {
    font-size: 1.1rem;
    color: var(--slate-lightest);
    margin-bottom: 5px;
}

.pillar-content p {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.4;
    margin-bottom: 0;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.lead {
    font-size: 1.35rem;
    color: var(--slate-light);
    margin-bottom: 20px;
}

/* --- Contact Section --- */
.contact {
    text-align: center;
    background-color: var(--navy-dark);
}

.contact-content {
    max-width: 600px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.contact p {
    margin-bottom: 40px;
    font-size: 1.25rem;
}

.contact .btn-primary {
    text-transform: lowercase;
    font-size: 1.25rem;
    padding: 20px 40px;
}

.social-links {
    margin-top: 40px;
}

.linkedin-link {
    color: var(--slate-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.linkedin-link:hover {
    color: var(--silver);
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    background-color: var(--navy);
    text-align: center;
    color: var(--slate-light);
    border-top: 1px solid rgba(136, 146, 176, 0.1);
}

.acronym {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    .hero {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .flex-container,
    .approach-wrapper {
        flex-direction: column;
        text-align: left;
    }

    .approach-wrapper {
        gap: 40px;
    }

    .approach-text,
    .approach-visual {
        flex: none;
        width: 100%;
    }

    .reverse-mobile {
        flex-direction: column-reverse;
        /* Founder grid stack reverse */
    }

    .founder-img {
        max-width: 400px;
        margin: 0 auto;
        box-shadow: 15px 15px 0 0 var(--navy-light);
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background-color: var(--navy-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -10px 0 30px -10px rgba(2, 12, 27, 0.7);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* --- Overlay Expansion Logic --- */
    .card.expanded {
        /* Enforcement for mobile just in case JS lags */
        max-width: 100vw;
        max-height: 100vh;
    }

    .close-btn {
        top: 15px;
        right: 15px;
        width: 44px;
        /* Larger touch target */
        height: 44px;
        background: rgba(17, 34, 64, 0.9);
        /* More contrast */
    }

    .nav-easter-egg {
        display: none !important;
    }
}

.card {
    cursor: pointer;
    /* Ensure z-index allows it to pop but sit in grid normally */
    position: relative;
    z-index: 1;
    background: rgba(17, 34, 64, 0.7);
    will-change: transform, top, left, width, height;
}

/* Placeholder to hold space in grid when card goes fixed */
.card-placeholder {
    visibility: hidden;
    opacity: 0;
}

/* The fixed expanded state */
.card.expanded {
    position: fixed;
    z-index: 9999;
    margin: 0;
    /* Multi-layered shadow for extreme depth */
    box-shadow:
        0 20px 50px -10px rgba(2, 12, 27, 0.7),
        0 50px 100px -20px rgba(2, 12, 27, 1);
    border: 1px solid var(--silver-accent);
    background: rgba(17, 34, 64, 0.98);
    overflow: hidden;
    /* Disable flex stretching for proper content sizing */
    display: block;
}


/* Content Fade In */
.expertise-details {
    display: block;
    /* Always display but hide with opacity */
    opacity: 0;
    max-height: 0;
    transition: opacity 0.4s ease 0.2s;
    /* Delay for card expansion */
    overflow: hidden;
    margin-top: 0;
}

.card.expanded .expertise-details {
    opacity: 1;
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
    /* remove constraint */
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(136, 146, 176, 0.2);
    /* No transitions on height here to avoid lag, just fade in */
}

/* Close Button (Dynamic) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--silver-accent);
    color: var(--silver-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.3s ease 0.3s;
    pointer-events: none;
}

.card.expanded .close-btn {
    opacity: 1;
    transform: rotate(0deg);
    pointer-events: auto;
}

.close-btn:hover {
    background: var(--silver-accent);
    color: var(--navy);
}

/* Backdrop */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 27, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9990;
    /* Just below card */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.read-more-btn {
    transition: opacity 0.2s;
}

.card.expanded .read-more-btn {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* --- Spotlight Hover Effect --- */
.spotlight {
    position: absolute;
    top: var(--spotlight-y, 0px);
    left: var(--spotlight-x, 0px);
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(100, 255, 218, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover .spotlight {
    opacity: 1;
}

/* --- Typewriter Effect --- */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--silver-accent);
    vertical-align: bottom;
    margin-left: 2px;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- ATC SIM Game --- */
.easter-egg-radar {
    display: inline-block;
    margin-left: 15px;
    opacity: 0.35;
    cursor: crosshair;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
    color: var(--silver-accent);
    font-size: 24px;
    vertical-align: middle;
}

.easter-egg-radar:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--white);
}

.easter-egg-radar:hover {
    opacity: 1;
    color: var(--silver-accent);
}

#radar-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020C1B;
    z-index: 999999;
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease;
    cursor: crosshair;
}

#radar-game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    display: none;
}

#radar-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#radar-ui {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--silver-accent);
    font-family: monospace;
    pointer-events: none;
}

#radar-ui h2 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 5px;
}

#radar-ui-inner {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    background: rgba(10, 25, 47, 0.95);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(136, 146, 176, 0.2);
    backdrop-filter: blur(5px);
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.7);
    pointer-events: auto;
}

#radar-ui.collapsed #radar-ui-inner {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
}

.radar-hamburger {
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 15px;
}

.radar-hamburger .line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    margin: 0;
}

#radar-status {
    font-size: 14px;
    opacity: 0.8;
}

#close-radar {
    display: inline-block;
    margin-top: 15px;
    margin-right: 15px;
    background: transparent;
    border: 1px solid var(--silver-accent);
    color: var(--silver-accent);
    padding: 8px 16px;
    cursor: pointer;
    font-family: monospace;
    pointer-events: auto;
    transition: background 0.3s ease, color 0.3s ease;
}

#close-radar:hover {
    background: var(--silver-accent);
    color: #020C1B;
}

#restart-radar {
    display: inline-block;
    margin-top: 15px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--silver-accent);
    color: var(--silver-accent);
    padding: 8px 16px;
    cursor: pointer;
    font-family: monospace;
    pointer-events: auto;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 10;
}

#restart-radar:hover {
    background: var(--silver-accent);
    color: #020C1B;
}

.diff-btn {
    background: transparent;
    border: 1px solid var(--silver-accent);
    color: var(--silver-accent);
    padding: 4px 8px;
    margin-right: 5px;
    cursor: pointer;
    font-family: monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.diff-btn.active {
    background: var(--silver-accent);
    color: #020C1B;
}

.diff-btn:hover {
    background: rgba(100, 255, 218, 0.2);
}

/* --- Settings Panel (Advanced Options) --- */
.settings-panel {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(100, 255, 218, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.3s ease;
    padding-bottom: 0;
}

#radar-ui:not(.collapsed) .settings-panel {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 4px;
}

.settings-section {
    margin-bottom: 16px;
}

.settings-section.collapsed .collapsible-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

.settings-section .collapsible-content {
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    overflow: hidden;
    margin-top: 10px;
}

.settings-heading {
    color: rgba(100, 255, 218, 0.6);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: monospace;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.settings-heading:hover {
    color: var(--silver-accent);
}

.toggle-symbol {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.settings-section:not(.collapsed) .toggle-symbol {
    transform: rotate(45deg);
}

.settings-presets {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.settings-preset-btn {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.25);
    color: rgba(100, 255, 218, 0.6);
    padding: 3px 8px;
    cursor: pointer;
    font-family: monospace;
    font-size: 10px;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.settings-preset-btn.active {
    background: rgba(100, 255, 218, 0.15);
    color: var(--silver-accent);
    border-color: var(--silver-accent);
}

.settings-preset-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-row {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.slider-row label {
    font-size: 11px;
    color: rgba(204, 214, 246, 0.7);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.slider-val {
    font-size: 11px;
    color: var(--silver-accent);
    text-align: right;
    font-family: monospace;
    min-width: 35px;
}

/* Custom range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(100, 255, 218, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--silver-accent);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(100, 255, 218, 0.4);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.7);
    transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--silver-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(100, 255, 218, 0.4);
}

input[type="range"]::-moz-range-track {
    height: 3px;
    background: rgba(100, 255, 218, 0.15);
    border-radius: 2px;
}

/* Airport selector */
.airport-select {
    width: 100%;
    padding: 6px 10px;
    background: rgba(2, 12, 27, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.25);
    color: var(--silver-accent);
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    transition: border-color 0.2s ease;
}

.airport-select:hover,
.airport-select:focus {
    border-color: var(--silver-accent);
}

.airport-select option {
    background: #0a192f;
    color: var(--silver-accent);
}

/* Pause indicator overlay */
.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(100, 255, 218, 0.3);
    font-family: monospace;
    font-size: 24px;
    letter-spacing: 8px;
    pointer-events: none;
    animation: pausePulse 2s ease-in-out infinite;
}

@keyframes pausePulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

/* Radar Intro Overlay */
#radar-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#radar-intro-overlay.hidden {
    display: none;
}

.radar-intro-content {
    background: rgba(10, 25, 47, 0.95);
    /* Navy main */
    border: 1px solid rgba(100, 255, 218, 0.4);
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 800px;
    /* Wider to accommodate columns */
    width: 90%;
    text-align: center;
    color: var(--slate-lightest);
    box-shadow: 0 30px 60px rgba(2, 12, 27, 0.9);
    position: relative;
    overflow: hidden;
}

.radar-intro-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--silver-accent), transparent);
}

.radar-intro-content h2 {
    color: var(--silver-accent);
    margin-bottom: 20px;
    font-family: monospace;
    letter-spacing: 2px;
}

/* Grid Layout */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 30px 0;
    text-align: left;
}

.intro-section {
    background: rgba(2, 12, 27, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(136, 146, 176, 0.1);
}

.intro-section.objective {
    grid-column: 1 / -1;
    text-align: center;
    border-color: rgba(100, 255, 218, 0.2);
    background: rgba(100, 255, 218, 0.05);
}

.intro-section.objective p {
    margin: 0;
    font-size: 1.1rem;
}

.intro-section h3 {
    color: var(--silver-accent);
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 5px;
    display: inline-block;
}

/* Controls List */
.controls ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.controls li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--slate-light);
}

.controls li:last-child {
    margin-bottom: 0;
}

.controls li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--silver-accent);
    font-family: monospace;
    font-weight: bold;
}

.controls li strong {
    color: var(--white);
}

/* Datablock Guide */
.db-example-box {
    display: flex;
    justify-content: flex-start;
}

.db-example {
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

.db-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.db-line:last-child {
    margin-bottom: 0;
}

.db-field {
    width: 140px;
    color: #64ffda;
    /* bright accent */
    font-weight: bold;
}

.db-label {
    color: var(--slate-light);
    font-size: 0.9rem;
    font-family: var(--font-main);
}

.muted-text {
    opacity: 0.7;
    font-size: 0.85em;
    font-style: italic;
    display: inline-block;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .radar-intro-content {
        padding: 20px;
    }
}

#start-radar-game {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 12px 40px;
    background: transparent;
    color: var(--silver-accent);
    border: 1px solid var(--silver-accent);
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#start-radar-game:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
}

#start-radar-train {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 12px 40px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--slate-light);
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#start-radar-train:hover {
    background: rgba(136, 146, 176, 0.2);
    border-color: var(--silver-accent);
    color: var(--silver-accent);
}

#radar-training-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--silver-accent);
    border-radius: 6px;
    padding: 25px 35px;
    z-index: 2000;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    font-family: monospace;
}

#radar-training-overlay.hidden {
    display: none;
}