/* --- Variables based on BRAND_VISUAL_REFERENCE.md --- */
:root {
    --eagle-navy: #0A1F44;
    --eagle-navy-dark: #051024;
    --eagle-navy-light: #1A3A5C;
    --sonic-blue: #00A8E8;
    --sonic-blue-glow: rgba(0, 168, 232, 0.4);
    --afterburner-orange: #FF6B35;
    --titanium-white: #F8F9FA;
    --tactical-gray: #6C757D;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --mobile-nav-bg: rgba(10, 31, 68, 0.95);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Rajdhani', monospace;

    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--eagle-navy);
    color: var(--titanium-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    /* Force height for snap container */
    overflow-y: scroll;
    /* Enable scrolling */
    scroll-snap-type: y mandatory;
    /* Mandatory snap */
    position: relative;
    scroll-behavior: smooth;
}

/* --- Full Screen Sections --- */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height support */
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    position: relative;
    padding: 80px 20px;
    /* Adjust padding for visual balance */
    overflow: hidden;
    /* Prevent overflow from breaking snap */
}

/* --- Background Grid & Orbs --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -5;
    pointer-events: none;
}

.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -10;
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sonic-blue) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--eagle-navy-light) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--titanium-white);
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 700;
    font-size: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--sonic-blue), #4CC9F0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--sonic-blue);
    position: relative;
    display: inline-block;
}

/* Special effect for ASTB title highlight - Navy Tradition */
.astb-title-refresh .text-highlight {
    background: linear-gradient(135deg,
            #D4AF37 0%,
            #C5A572 50%,
            #D4AF37 100%);
    /* Military Gold gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: highlightGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.astb-title-refresh .text-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            #D4AF37,
            transparent);
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes highlightGlow {
    0% {
        filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.4));
    }

    100% {
        filter: drop-shadow(0 2px 18px rgba(197, 165, 114, 0.6));
    }
}

@keyframes lineExpand {

    0%,
    100% {
        width: 0%;
        left: 50%;
    }

    50% {
        width: 100%;
        left: 0%;
    }
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* --- Components: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 4px;
    /* Military precision */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--sonic-blue);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--sonic-blue-glow);
}

.btn-primary:hover {
    background: #008AC5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--sonic-blue-glow);
}

.btn-primary.lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.btn-sub {
    font-size: 0.7rem;
    opacity: 0.9;
    font-family: var(--font-body);
    margin-top: 4px;
    text-transform: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--titanium-white);
}

.btn-secondary:hover {
    border-color: var(--sonic-blue);
    color: var(--sonic-blue);
}

.full-width {
    width: 100%;
}

/* --- Components: Glass Glass --- */
.glass-nav {
    background: rgba(10, 31, 68, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.glass-card,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* --- Navigation --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--titanium-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-img {
    height: 32px;
}

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

.nav-links a:not(.btn) {
    color: var(--titanium-white);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    opacity: 1;
    color: var(--sonic-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--titanium-white);
    margin: 5px 0;
}

/* --- Hero Section --- */
/* --- UPDATED HOME SECTION (Styles for Video Background) --- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Ensure scroll snap works */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(248, 249, 250, 0.8);
    margin-bottom: 40px;
    max-width: 540px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--sonic-blue);
    font-weight: 600;
    margin-bottom: 24px;
    gap: 8px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 30px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-stat {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--titanium-white);
}

.trust-label {
    font-size: 0.8rem;
    color: var(--tactical-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Hero Visual (3D Phone Tech) --- */
.hero-visual {
    perspective: 2000px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-stack-3d {
    position: relative;
    width: 300px;
    height: 600px;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(15deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    animation: gentleFloat 6s ease-in-out infinite;
}

.phone-stack-3d:hover {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
}

/* Base Phone Frame */
.phone-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 40px;
    border: 8px solid #334155;
    box-shadow:
        50px 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateZ(0px);
    /* Base layer */
    /* Reflection line */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0B1120;
    position: relative;
    overflow: hidden;
}

/* --- Floating Layers (Glass Tech) --- */
.floating-layer {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    /* Let hover pass through to stack */
    transform-style: preserve-3d;
    padding: 15px;
}

.glass-panel-content {
    color: #fff;
    font-family: var(--font-mono);
}

/* Layer 1: Stats (Top Left) */
.layer-stats {
    top: 15%;
    left: -60px;
    width: 160px;
    transform: translateZ(60px);
    /* Float above phone */
    animation: floatLayer1 5s ease-in-out infinite;
}

.stat-val.text-green {
    font-size: 2rem;
    font-weight: 700;
    color: #10B981;
    display: block;
}

.live-graph-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.graph-fill {
    height: 100%;
    width: 0%;
    background: #10B981;
    animation: fillGraph 2s ease-out forwards 1s;
}

/* Layer 2: Sim HUD (Bottom Right) */
.layer-sim {
    bottom: 20%;
    right: -40px;
    width: 180px;
    transform: translateZ(100px);
    /* Highest float */
    border-color: #F59E0B;
    /* Orange for warning/active */
    animation: floatLayer2 7s ease-in-out infinite;
}

.sim-hud {
    border: 1px dashed rgba(245, 158, 11, 0.5);
    height: 80px;
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.target-reticle {
    width: 30px;
    height: 30px;
    border: 2px solid #F59E0B;
    border-radius: 50%;
    position: relative;
}

.target-reticle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #F59E0B;
    transform: translate(-50%, -50%);
}

.sim-tag {
    font-size: 0.7rem;
    color: #F59E0B;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Layer 3: Notification (Top Right) */
.layer-notif {
    top: 8%;
    right: -30px;
    transform: translateZ(80px);
    background: rgba(16, 185, 129, 0.9);
    /* Green dominant */
    border: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatLayer3 6s ease-in-out infinite;
}

.layer-notif .glass-panel-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-check {
    background: #fff;
    color: #10B981;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.text-col {
    display: flex;
    flex-direction: column;
}

.text-col .title {
    font-weight: 700;
    font-size: 0.8rem;
}

.text-col .sub {
    font-size: 0.65rem;
    opacity: 0.9;
}

/* --- Screen Internal Animations (Radar) --- */
.radar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 50%;
}

.map-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(0, 168, 232, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 50%;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 232, 0.8));
    transform-origin: left center;
    animation: radarSpin 3s linear infinite;
}

.waypoint {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10B981;
    opacity: 0;
}

.p1 {
    top: 30%;
    left: 60%;
    animation: blinkPoint 3s infinite 0.5s;
}

.p2 {
    top: 70%;
    left: 30%;
    animation: blinkPoint 3s infinite 1.5s;
}

/* --- Keyframes --- */
@keyframes gentleFloat {

    0%,
    100% {
        transform: rotateY(-25deg) rotateX(15deg) translateY(0);
    }

    50% {
        transform: rotateY(-25deg) rotateX(15deg) translateY(-20px);
    }
}

@keyframes floatLayer1 {

    0%,
    100% {
        transform: translateZ(60px) translateY(0);
    }

    50% {
        transform: translateZ(60px) translateY(-10px);
    }
}

@keyframes floatLayer2 {

    0%,
    100% {
        transform: translateZ(100px) translateY(0);
    }

    50% {
        transform: translateZ(100px) translateY(10px);
    }
}

@keyframes floatLayer3 {

    0%,
    100% {
        transform: translateZ(80px) translateY(0);
    }

    50% {
        transform: translateZ(80px) translateY(-5px);
    }
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blinkPoint {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes fillGraph {
    to {
        width: 98%;
    }
}


/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--sonic-blue);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* --- Products Section --- */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    padding: 40px;
    position: relative;
    transition: var(--transition-fast);
}

.product-card:hover {
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--sonic-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 168, 232, 0.4);
}

.product-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-name {
    color: var(--tactical-gray);
    font-weight: 600;
    margin-top: 5px;
}

.product-features {
    list-style: none;
    margin-bottom: 40px;
}

.product-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.product-features li span {
    color: var(--sonic-blue);
    font-weight: 700;
}

.product-price {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.product-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 4px;
}

.product-price .period {
    display: block;
    font-size: 0.9rem;
    color: var(--tactical-gray);
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: -5px;
}

.border-blue {
    border-top: 4px solid var(--sonic-blue);
}

.border-orange {
    border-top: 4px solid var(--afterburner-orange);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 30px;
}

.stars {
    color: var(--afterburner-orange);
    /* Using orange for contrast or standard gold */
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.author-info strong {
    display: block;
    color: var(--sonic-blue);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--tactical-gray);
}

/* --- Footer --- */
.footer {
    background: var(--eagle-navy-dark);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--tactical-gray);
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--sonic-blue);
    padding-left: 5px;
}

.disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--mobile-nav-bg);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* --- New Layout Additions --- */
.single-product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto 0;
}

.feature-subset {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-section {
    background: var(--eagle-navy-dark);
    margin-top: 0;
    border-top: none;
}

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

/* --- Specific Section Styles --- */
#ourteam {
    /* "Elite Officer Club" Aesthetic - with Navy/Gold Background */
    background: linear-gradient(180deg,
            #0B1120 0%,
            /* Dark bg from hero */
            #060A14 50%,
            /* Darker bg */
            #0A2463 100%);
    /* Primary navy */
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    /* Enable 3D space */
}

/* Gold Ambient Glow */
#ourteam::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* Floating Particles (Stars/Dust) */
#ourteam::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: driftSpace 60s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

#ourteam .container {
    position: relative;
    z-index: 5;
    /* Prevent container from flexing/shifting */
    display: block;

    /* Stabilize container without blocking fixed children */
    transform: translateZ(0);
}

/* Stabilize Section Header - ABSOLUTELY FIXED Position to Prevent Vertical Movement */
#ourteam .section-header {
    /* Completely isolate header from wrapper height changes */
    position: relative;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;

    /* Force hardware acceleration and own compositing layer */
    will-change: contents;

    /* FIXED spacing - never changes regardless of card heights */
    margin-bottom: 60px;
    padding-bottom: 0;

    /* Ensure header is on its own rendering layer */
    isolation: isolate;
}

#ourteam .section-title,
#ourteam .section-subtitle {
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Prevent text reflow */
    will-change: auto;
}

/* Premium Card Upgrade */
#ourteam .testimonial-card {
    background: rgba(10, 20, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Gold border */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    /* Inner gold glow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

#ourteam .testimonial-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.2);
    /* Outer gold glow */
}

#ourteam .stars {
    color: #FFD700;
    /* Real Gold */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes driftSpace {
    from {
        background-position: 0 0, 40px 60px, 130px 270px;
    }

    to {
        background-position: 550px 550px, 390px 410px, 380px 520px;
    }
}

/* --- ASTB PREP Section (Light/Lavender Theme) --- */
#astbprep {
    position: relative;
    overflow: hidden;
    color: #F8F9FA;
    /* Dark slate text for readability */
}

/* Section Title & Highlights */
#astbprep .section-title {
    color: #F8F9FA;
    /* Dark Navy for title */
}

#astbprep .section-subtitle {
    color: #475569;
    /* Slate for subtitle */
}

#astbprep .text-highlight {
    background: linear-gradient(135deg, #0066FF, #00D4FF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Cards (Glassmorphism Light) */
#astbprep .product-card,
#astbprep .feature-card {
    background: rgba(255, 255, 255, 0.6);
    /* White glass */
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#astbprep .product-card:hover,
#astbprep .feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #00A8E8;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 168, 232, 0.15);
}

#astbprep .product-features li {
    color: #334155;
}

#astbprep .product-features li span {
    color: #00A8E8;
}

#astbprep h3 {
    color: #0B1120;
}

#astbprep p.branch-name {
    color: #64748b;
}

#astbprep .product-price {
    color: #0B1120;
}

#astbprep .product-price .period {
    color: #64748b;
}

/* --- ASTB Section Background (Imported from Home) --- */
.astb-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 50%, #DBEAFE 100%);
    overflow: hidden;
}

.astb-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: astbFloat 20s ease-in-out infinite;
}

.astb-orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #0A2463, #1E3A8A);
    /* Navy Blue Orb */
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.astb-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FB8500, #FFB703);
    /* Orange/Gold Orb */
    bottom: -10%;
    left: -5%;
    animation-delay: 5s;
}

.astb-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(#E2E8F0 1px, transparent 1px),
        linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

@keyframes astbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.95);
    }

    75% {
        transform: translate(15px, 20px) scale(1.02);
    }
}

/* --- ADRENALINE UPDATE STYLES --- */

/* Hero Video Carousel Container */
.hero-video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6) contrast(1.2);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
    opacity: 1;
    z-index: 2;
}

.hero-video.video-c130 {
    transform: translate(-50%, -50%) scale(1.03);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(5, 16, 36, 0.4) 0%,
            rgba(5, 16, 36, 0.2) 50%,
            rgba(5, 16, 36, 0.8) 100%);
    z-index: 2;
    /* Extra pattern overlay for texture */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-content-center {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* --- Glitch Text Animation --- */
.hero-title-large {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 10px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 168, 232, 0.6);
    line-height: 0.9;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(12px, 9999px, 52px, 0);
        transform: skew(0.5deg);
    }

    10% {
        clip: rect(81px, 9999px, 21px, 0);
        transform: skew(0.5deg);
    }

    15% {
        clip: rect(3px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(66px, 9999px, 2px, 0);
        transform: skew(0.5deg);
    }

    25% {
        clip: rect(54px, 9999px, 12px, 0);
        transform: skew(0.5deg);
    }

    30% {
        clip: rect(25px, 9999px, 93px, 0);
        transform: skew(0.5deg);
    }

    35% {
        clip: rect(9px, 9999px, 73px, 0);
        transform: skew(0.5deg);
    }

    40% {
        clip: rect(34px, 9999px, 49px, 0);
        transform: skew(0.5deg);
    }

    45% {
        clip: rect(8px, 9999px, 16px, 0);
        transform: skew(0.5deg);
    }

    50% {
        clip: rect(62px, 9999px, 32px, 0);
        transform: skew(0.5deg);
    }

    55% {
        clip: rect(23px, 9999px, 86px, 0);
        transform: skew(0.5deg);
    }

    60% {
        clip: rect(98px, 9999px, 21px, 0);
        transform: skew(0.5deg);
    }

    65% {
        clip: rect(11px, 9999px, 7px, 0);
        transform: skew(0.5deg);
    }

    70% {
        clip: rect(49px, 9999px, 40px, 0);
        transform: skew(0.5deg);
    }

    75% {
        clip: rect(97px, 9999px, 64px, 0);
        transform: skew(0.5deg);
    }

    80% {
        clip: rect(16px, 9999px, 86px, 0);
        transform: skew(0.5deg);
    }

    85% {
        clip: rect(56px, 9999px, 23px, 0);
        transform: skew(0.5deg);
    }

    90% {
        clip: rect(32px, 9999px, 11px, 0);
        transform: skew(0.5deg);
    }

    95% {
        clip: rect(74px, 9999px, 57px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(23px, 9999px, 83px, 0);
        transform: skew(0.5deg);
    }
}

.hero-subtitle-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
    padding: 10px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Pulse Animation for button --- */
.pulse-anim {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 168, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 232, 0);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-top: 60px;
    transition: all 0.3s;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--sonic-blue);
    transform: translateY(5px);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

.arrow {
    width: 16px;
    height: 16px;
    border-right: 3px solid rgba(255, 255, 255, 0.7);
    border-bottom: 3px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: scroll-arrow 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

@keyframes scroll-arrow {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(5px, 5px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-title-large {
        font-size: 2.5rem;
        letter-spacing: 0;
        margin: 0 15px;
    }

    .hero-subtitle-large {
        font-size: 0.9rem;
        letter-spacing: 2px;
        padding: 10px 20px;
    }

    .hero-video {
        width: auto;
        height: 100vh;
    }
}

/* --- ASTB Refresh Section Styles (Clean Layout) --- */
.astb-clean-layout {
    position: relative;
    padding: 0;
    background: #1B3B6F;
    /* Deep Navy Blue */
    /* Navy Tradition: Vivid Primary Blue */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Gradient Orbs - Navy Tradition */
.astb-clean-layout::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2A5496, #162E52);
    /* Brand Blue Orb */
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    /* Subtle glow */
    top: -10%;
    right: 5%;
    animation: floatOrb 20s ease-in-out infinite;
    z-index: 0;
}

.astb-clean-layout::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FFFFFF, #E2E8F0);
    /* Naval Silver/Steel Orb */
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    bottom: -10%;
    left: 5%;
    animation: floatOrb 25s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.95);
    }

    75% {
        transform: translate(15px, 20px) scale(1.02);
    }
}

/* Grid Pattern Overlay - Navy Tradition */
.astb-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 31, 63, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 31, 63, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Container inside ASTB section needs padding */
.astb-clean-layout .container {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* Fix z-index hierarchy */
.astb-clean-layout .container {
    position: relative;
    z-index: 1;
}

.astb-clean-layout .astb-main-content {
    position: relative;
    z-index: 1;
}

/* Wings Insignia - Navy Tradition */
.astb-wings-insignia {
    /* Larger, more commanding size (same as AFOQT) */
    width: min(380px, 50vw);
    max-width: 100%;
    height: auto;

    /* Dramatic shadow with Military Gold glow */
    filter:
        drop-shadow(0 0 40px rgba(135, 174, 255, 0.4)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.4)) drop-shadow(0 20px 50px rgba(46, 46, 46, 0.1)) brightness(1.0) contrast(1.0);
    /* Brand colors shadow */

    opacity: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    margin-bottom: clamp(35px, 5vh, 55px);
    display: block;

    /* Subtle float animation */
    animation: insigniaFloat 6s ease-in-out infinite;
}

.astb-wings-insignia:hover {
    /* Dramatic hover effect */
    transform: scale(1.12) translateY(-12px);
    filter:
        drop-shadow(0 0 60px rgba(212, 175, 55, 0.9)) drop-shadow(0 0 100px rgba(197, 165, 114, 0.5)) drop-shadow(0 25px 60px rgba(0, 31, 63, 0.6)) brightness(1.2) contrast(1.2);
    /* Bright gold + darker navy on hover */
}

/* Main Layout Grid - RESPONSIVE */
/* NOTE: This is overridden by the compact layout below (line ~6268) */

/* Visual Column (Insignia + Laptop) - RESPONSIVE */
.astb-visual-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Comenzar desde arriba */
    align-items: center;
    position: relative;
    gap: 0;
    padding-top: 0;
    /* Sin padding superior */
}

/* Laptop Screen Simulator - Fixed 3D Effect */
.astb-video-container {
    width: 100%;
    max-width: 950px;
    /* Increased laptop screen size for better visibility */
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1500px;
    margin: 0 auto;
}

.video-screen-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    /* Laptop screen ratio */
    border-radius: 8px 8px 4px 4px;
    /* Laptop screen corners */
    overflow: hidden;
    position: relative;
    background: #0a0a0a;

    /* Laptop bezel - Premium dark frame */
    border: 8px solid #1a1a1a;
    border-bottom: 12px solid #1a1a1a;
    /* Thicker bottom bezel like real laptops */

    /* Fixed 3D perspective - Laptop tilted view */
    transform:
        perspective(1500px) rotateX(5deg) rotateY(-3deg) translateZ(0);

    /* Premium laptop shadows */
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 31, 63, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    /* Remove hover transition */
    transition: none;
}

/* Laptop base (keyboard area) - 3D effect */
.video-screen-frame::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 105%;
    height: 15px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border-radius: 0 0 6px 6px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    z-index: -1;
}

/* Screen reflection effect - Premium laptop screen */
.video-screen-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.03) 100%);
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
}

/* Remove hover effect completely */
.astb-video-container:hover .video-screen-frame {
    transform:
        perspective(1500px) rotateX(5deg) rotateY(-3deg) translateZ(0);
}

.astb-simulator-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
    filter: contrast(1.15) saturate(1.1) brightness(0.95);
}

.astb-simulator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
    filter: contrast(1.15) saturate(1.1) brightness(0.95);
}

/* Screen UI Overlay (HUD effect) */
.screen-ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    border: 1px solid rgba(0, 255, 0, 0.1);
    /* Subtle HUD border */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rec-indicator {
    color: #FF0000;
    font-weight: 700;
    font-family: monospace;
    font-size: 0.9rem;
    animation: blink 2s infinite;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.alt-indicator {
    color: #00FF00;
    font-family: monospace;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Screen Glare */
.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 30%,
            transparent 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Hide laptop display since we replaced it */
.astb-laptop-display {
    display: none;
}

/* Info Column - Navy Tradition */
.astb-info-col {
    color: #F8F9FA;
    /* Main text */
    background: rgba(255, 255, 255, 0.1);
    /* Glass Effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(30px, 5vw, 55px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 650px;
    transition: all 0.3s ease;
}

.astb-info-col:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 30px 70px rgba(0, 31, 63, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3);
}

.astb-info-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    /* Silver/White highlight accent */
}

.astb-title-refresh {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    /* Keep title centered */
    position: relative;
    background: linear-gradient(90deg,
            #FFFFFF 0%,
            #FFD700 25%,
            #FFFFFF 50%,
            #D4AF37 75%,
            #FFFFFF 100%);
    /* Refined Gold gradient (White/Gold mix) to match AFOQT style but with ASTB colors */
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    padding-bottom: 15px;
}

/* Hover effect similar to AFOQT (subtle brightness boost) */
.astb-info-col:hover .astb-title-refresh {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

@keyframes titleShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Glow pulse effect on hover - Navy Tradition */


.astb-description {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    /* Secondary Text - Slate */
    margin-bottom: 30px;
    text-align: left;
    max-width: 550px;
}

/* Benefits List - Navy Tradition */
.astb-benefits-list {
    list-style: none;
    margin-bottom: 40px;
    display: grid;
    gap: 14px;
    max-width: 450px;
}

.astb-benefits-list li {
    padding-left: 30px;
    position: relative;
    font-weight: 500;
    text-align: left;
    font-size: 1rem;
    color: #FFFFFF;
    /* Main Text - Navy */
}

.astb-benefits-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #FFFFFF;
    /* Silver/White Original Highlight */
    font-size: 1.3rem;
    line-height: 1;
    top: 0;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

/* Download Area - REFINED & CENTERED */
/* Download Area - REFINED GRID (Unified Cards - Style 2) */
.astb-download-area.refined-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Platform Card - Wrapper with integrated QR */
.platform-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-card:hover::before {
    opacity: 1;
}

/* Store Badge Button (Gray Card Style) */
.store-badge-btn {
    flex: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0A1F44 0%, #051024 100%);
    /* Deep Navy for High Contrast */
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    min-height: 58px;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.2);
}

.store-badge-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-badge-btn:hover::before {
    opacity: 1;
}

.store-badge-btn:hover {
    transform: translateY(-3px);
    background: #1A3A5C;
    /* Lighter Navy hover */
    box-shadow: 0 8px 24px rgba(0, 31, 63, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.store-badge-btn:active {
    transform: translateY(-1px);
}

/* Platform Card hover effect on badge */
.platform-card:hover .store-badge-btn {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Icons */
.badge-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.badge-icon svg {
    width: 100%;
    height: 100%;
    fill: #FFFFFF;
}

/* Platform-specific badge styles */
.apple-style {
    background: linear-gradient(135deg, #0A1F44 0%, #051024 100%);
}

.apple-style .badge-icon svg {
    fill: #FFFFFF;
}

.google-style {
    background: linear-gradient(135deg, #0A1F44 0%, #051024 100%);
}

.google-style .badge-icon svg {
    fill: #FFFFFF;
}

.windows-style {
    background: linear-gradient(135deg, #0A1F44 0%, #051024 100%);
}

.windows-style .badge-icon svg {
    fill: #00A4EF;
}

.mac-style {
    background: linear-gradient(135deg, #0A1F44 0%, #051024 100%);
}

.mac-style .badge-icon svg {
    fill: #FFFFFF;
}

/* Hover effects for different platforms */
.apple-style:hover,
.google-style:hover,
.windows-style:hover,
.mac-style:hover {
    background: #1A3A5C;
}

/* Text Stack */
.badge-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.badge-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-main {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* QR Button - Integrated & Visible */
.qr-btn-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    color: #2E2E2E;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

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

.qr-btn-link:hover::before {
    width: 300px;
    height: 300px;
}

.qr-btn-link svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.qr-btn-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.qr-btn-link span {
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 600;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.qr-btn-link:hover {
    background: rgba(197, 165, 114, 0.12);
    border-color: rgba(197, 165, 114, 0.3);
    color: #C5A572;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(197, 165, 114, 0.2);
}

.qr-btn-link:active {
    transform: translateY(0);
}

/* QR Button Desktop-only hint */
@media (min-width: 769px) {
    .qr-btn-link::after {
        content: '📱';
        position: absolute;
        right: 12px;
        font-size: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .qr-btn-link:hover::after {
        opacity: 0.6;
    }
}

/* Hide QR button on mobile (they can just click the store badge) */
@media (max-width: 480px) {
    .qr-btn-link {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .astb-download-area.refined-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .platform-card {
        padding: 14px;
    }

    .qr-btn-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .store-badge-btn {
        padding: 9px 12px;
        min-height: 50px;
        gap: 10px;
    }

    .badge-icon {
        width: 26px;
        height: 26px;
    }

    .badge-sub {
        font-size: 0.6rem;
    }

    .badge-main {
        font-size: 1.05rem;
    }

    .qr-btn-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .qr-modal-icon {
        width: 75px;
        height: 75px;
        padding: 13px;
    }

    .qr-modal-icon svg {
        width: 40px;
        height: 40px;
    }

    .qr-modal-icon.platform-play {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.15);
    }

    .qr-modal-icon.platform-play svg {
        width: 44px;
        height: 44px;
    }
}

/* QR Modal - Navy Tradition */
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal.active {
    display: flex;
}

.qr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 63, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.qr-modal-content {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(197, 165, 114, 0.2);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 31, 63, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 31, 63, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.qr-modal-close svg {
    fill: #001F3F;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: rgba(197, 165, 114, 0.15);
    transform: rotate(90deg);
}

.qr-modal-close:hover svg {
    fill: #C5A572;
}

.qr-modal-body {
    padding: 50px 40px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.qr-modal-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.12),
        0 0 0 1px rgba(0, 31, 63, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    padding: 16px;
}

.qr-modal-icon svg {
    width: 48px;
    height: 48px;
    fill: #000000;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.qr-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 31, 63, 0.2));
}

/* Legacy img support - currently all platforms use SVG */

/* PlayStore Icon - Black background with white icon */
.qr-modal-icon.platform-play {
    background: linear-gradient(135deg, #1A202C 0%, #0A0A0A 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Subtle glow effect for PlayStore */
.qr-modal-icon.platform-play::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.5;
}

.qr-modal-icon.platform-play svg {
    width: 52px;
    height: 52px;
    fill: #FFFFFF;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.5));
}

.qr-modal-icon.platform-play img {
    filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(255, 255, 255, 0.3));
}

/* iOS/macOS/Windows - Keep white background with black icon */
.qr-modal-icon.platform-ios,
.qr-modal-icon.platform-macos,
.qr-modal-icon.platform-windows {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.12),
        0 0 0 1px rgba(0, 31, 63, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.qr-modal-icon.platform-ios svg,
.qr-modal-icon.platform-macos svg,
.qr-modal-icon.platform-windows svg {
    fill: #000000;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.qr-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #001F3F;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.qr-modal-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #64748B;
    text-align: center;
    margin: -5px 0 0 0;
    line-height: 1.4;
}

.qr-modal-code {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 8px 0 12px;
}

.qr-code-large {
    display: none;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border: 3px solid rgba(0, 31, 63, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 31, 63, 0.15),
        0 0 0 1px rgba(0, 31, 63, 0.05);
}

.qr-code-large.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: qrFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-code-large svg {
    width: 100%;
    height: 100%;
    fill: #001F3F;
}

.qr-code-large img {
    width: 100%;
    height: 100%;
    display: block;
}

/* .qr-modal-link styles removed - element no longer in use */

/* Desktop Downloads - Secondary Links */
.desktop-downloads {
    margin-top: clamp(18px, 2.5vh, 28px);
    padding-top: clamp(18px, 2.5vh, 24px);
    border-top: 1px solid rgba(0, 31, 63, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.desktop-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748B;
    text-align: center;
}

.desktop-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.desktop-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 31, 63, 0.05);
    border: 1px solid rgba(0, 31, 63, 0.1);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #001F3F;
    transition: all 0.3s ease;
}

.desktop-link svg {
    width: 16px;
    height: 16px;
    fill: #001F3F;
    transition: fill 0.3s ease;
}

.desktop-link:hover {
    background: rgba(197, 165, 114, 0.12);
    border-color: rgba(197, 165, 114, 0.3);
    color: #C5A572;
    transform: translateY(-2px);
}

.desktop-link:hover svg {
    fill: #C5A572;
}

.separator {
    font-size: 0.9rem;
    color: rgba(0, 31, 63, 0.2);
    font-weight: 300;
}

/* Screenshots Placeholder - REMOVED */

/* Responsive - FLUID & ADAPTIVE */
@media (max-width: 992px) {
    .astb-clean-layout .container,
    .afoqt-clean-layout .container {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .astb-main-content {
        grid-template-columns: 1fr;
        gap: clamp(40px, 6vh, 60px);
        /* Increased gap for tablet */
    }

    .astb-visual-col {
        order: -1;
        margin-bottom: 0;
    }

    /* AFOQT: Reset order on mobile for consistency */
    .afoqt-clean-layout .astb-visual-col {
        order: -1;
        /* Show visuals first on mobile like ASTB */
    }

    .afoqt-clean-layout .afoqt-info-col {
        order: 0;
        /* Content below visuals on mobile */
    }

    .astb-laptop-display {
        max-width: min(600px, 85vw);
    }

    .astb-info-col,
    .afoqt-info-col {
        max-width: 100%;
        /* Ancho completo en tablets */
    }
}

@media (max-width: 768px) {
    .astb-clean-layout .container,
    .afoqt-clean-layout .container {
        padding-top: 100px;
        /* More top padding for mobile nav */
        padding-bottom: 60px;
    }

    .astb-wings-insignia {
        width: min(280px, 55vw);
    }

    .astb-laptop-display {
        max-width: 95vw;
    }

    /* Laptop screen adjustments for mobile */
    .astb-video-container {
        max-width: 90vw;
    }

    .video-screen-frame {
        /* Reduce 3D effect on smaller screens */
        transform:
            perspective(1200px) rotateX(3deg) rotateY(-2deg) translateZ(0);
        border: 6px solid #1a1a1a;
        border-bottom: 10px solid #1a1a1a;
    }

    .astb-download-area {
        max-width: 100%;
        gap: 14px;
    }

    .badge-wrapper {
        gap: 12px;
    }

    .store-badge {
        padding: 12px 20px;
    }

    .badge-title {
        font-size: 1.3rem;
    }

    .qr-modal-body {
        padding: 40px 30px 30px;
    }

    .qr-modal-code {
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 480px) {
    .astb-clean-layout .container,
    .afoqt-clean-layout .container {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .astb-wings-insignia {
        width: min(220px, 65vw);
        animation: none;
        /* Disable animation on mobile for performance */
    }

    .astb-download-area {
        gap: 12px;
    }

    /* Laptop screen for small mobile */
    .astb-video-container {
        max-width: 95vw;
    }

    .video-screen-frame {
        /* Minimal 3D effect on small screens */
        transform:
            perspective(1000px) rotateX(2deg) rotateY(-1deg) translateZ(0);
        border: 4px solid #1a1a1a;
        border-bottom: 8px solid #1a1a1a;
    }

    .video-screen-frame::after {
        height: 10px;
        bottom: -18px;
    }

    .badge-wrapper {
        gap: 0;
    }

    .store-badge {
        padding: 10px 18px;
        gap: 14px;
    }

    .badge-icon {
        width: 42px;
        height: 42px;
    }

    .badge-icon svg {
        width: 26px;
        height: 26px;
    }

    .badge-subtitle {
        font-size: 0.65rem;
    }

    .badge-title {
        font-size: 1.15rem;
    }

    .qr-trigger {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .qr-modal-body {
        padding: 40px 24px 32px;
        gap: 18px;
    }

    .qr-modal-title {
        font-size: 1.25rem;
    }

    .qr-modal-code {
        width: 190px;
        height: 190px;
    }

    .desktop-downloads {
        margin-top: 16px;
        padding-top: 16px;
    }

    .desktop-links {
        flex-direction: column;
        gap: 8px;
    }

    .desktop-link {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }

    .separator {
        display: none;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .astb-clean-layout .container,
    .afoqt-clean-layout .container {
        padding-top: 85px;
        padding-bottom: 40px;
    }

    .astb-wings-insignia {
        width: min(220px, 65vw);
    }

    .astb-info-col,
    .afoqt-info-col {
        padding: 20px 15px;
    }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {

    /* Reduce title effects on mobile for performance */
    .astb-title-refresh {
        animation: titleShine 6s linear infinite;
        /* Slower on mobile */
    }

    .astb-title-refresh::before {
        animation: energyPulse 4s ease-in-out infinite;
        /* Slower pulse */
    }

    .astb-title-refresh .text-highlight::after {
        display: none;
        /* Remove line effect on mobile */
    }
}

/* Reduce motion for accessibility - Navy Tradition */
@media (prefers-reduced-motion: reduce) {

    .astb-title-refresh,
    .astb-title-refresh::before,
    .astb-title-refresh .text-highlight,
    .astb-info-col:hover .astb-title-refresh,
    .astb-clean-layout::before,
    .astb-clean-layout::after,
    .astb-wings-insignia {
        animation: none;
    }

    .qr-modal-overlay,
    .qr-modal-content,
    .qr-code-large {
        animation: none;
    }

    .platform-card,
    .store-badge-btn,
    .qr-btn-link {
        transition: none;
    }

    .qr-btn-link::before {
        display: none;
    }

    .astb-title-refresh {
        background: #D4AF37;
        /* Military Gold */
        -webkit-text-fill-color: #D4AF37;
    }

    .astb-title-refresh .text-highlight {
        color: #FFD700;
        /* Bright Gold */
        -webkit-text-fill-color: #FFD700;
    }
}


/* Removed: Old download-card, qr-box, and qr-placeholder styles */

.download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sonic-blue);
    text-transform: uppercase;
}

.btn.sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .astb-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .astb-video-col {
        order: -1;
        max-width: 90%;
        margin: 0 auto;
    }

    .astb-text-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .astb-description {
        text-align: left;
    }

    .astb-benefits-list {
        justify-content: flex-start;
    }

    .astb-benefits-list li {
        justify-content: flex-start;
        text-align: left;
    }

    .astb-download-area {
        width: 100%;
        max-width: 420px;
    }

    .store-badge {
        width: 100%;
    }
}

/* Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* --- SECTION 4: OUR TEAM --- */
.team-section {
    position: relative;
    overflow: hidden;
    /* Dynamic height - no restrictions */

    /* CRITICAL: Use block layout to prevent content reflow */
    display: block;

    /* Ensure consistent padding that doesn't shift */
    padding-top: 100px;
    padding-bottom: 100px;
}

.team-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.team-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.team-card {
    display: flex;
    /* Horizontal layout on desktop */
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Only allow hover effects on active cards */
.team-card.active:hover {
    transform: scale(1.02) rotateY(0deg) translateY(-8px) translateZ(20px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 168, 232, 0.4),
        0 0 120px rgba(0, 168, 232, 0.2);
    border-color: rgba(0, 168, 232, 0.6);
}

.team-visual {
    flex: 0 0 40%;
    position: relative;
    min-height: 400px;
    overflow: hidden;
    /* CRITICAL: Contain the scaled photo so overlay stays aligned */
    border-radius: 12px 0 0 12px;
    /* Match parent card border-radius on left side */
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.team-card.active:hover .team-photo {
    transform: scale(1.08);
}

/* Ensure inactive cards don't have hover effects */
.team-card:not(.active) .team-photo {
    transform: scale(1);
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 31, 68, 0) 0%, rgba(10, 31, 68, 0.8) 100%);
    z-index: 1;
    /* Stay above photo but contained within .team-visual */
    pointer-events: none;
    /* Allow clicks to pass through to content */
}

.team-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    /* Use fixed vertical alignment instead of justify-content: center to prevent reflow */
    justify-content: flex-start;
    padding-top: 60px;
    /* Add top padding to visually center content without flex centering */
    position: relative;
    z-index: 2;

    /* Prevent text from shifting during 3D transforms */
    transform-style: flat;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.team-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 24px;
    /* Prevent shifting during 3D transforms */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.team-role {
    color: var(--afterburner-orange);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.team-name {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Prevent text shifting */
    transform: translateZ(0);
}

.team-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.team-bio {
    color: rgba(248, 249, 250, 0.8);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    /* Prevent paragraph reflow */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Prevent grid shifting during 3D transforms */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stat-item {
    text-align: center;
    /* Stabilize individual items */
    transform: translateZ(0);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sonic-blue);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .team-card {
        flex-direction: column;
        max-width: 500px;
    }

    .team-visual {
        flex: none;
        height: 350px;
        min-height: auto;
        overflow: hidden;
        border-radius: 12px 12px 0 0 !important;
        /* In column layout, photo is on top, round top corners only */
    }

    .visual-overlay {
        background: linear-gradient(to top, rgba(10, 31, 68, 1) 10%, rgba(10, 31, 68, 0) 100%);
    }

    .team-name {
        font-size: 1.8rem;
    }
}

/* --- Team Layout Updates --- */
.team-wrapper {
    flex-direction: column !important;
    gap: 60px !important;
    align-items: center !important;
}

.team-card {
    max-width: 1000px !important;
}

/* Reverse layout for alternating cards */
.team-card.reverse {
    flex-direction: row-reverse;
}

.team-card.reverse .team-visual {
    border-radius: 0 12px 12px 0;
    /* Photo on right side, round right corners */
}

.team-card.reverse .visual-overlay {
    background: linear-gradient(to left, rgba(10, 31, 68, 0) 0%, rgba(10, 31, 68, 0.8) 100%);
}

.team-card.reverse .team-content {
    align-items: flex-end;
    text-align: right;
    /* Maintain same vertical structure */
    justify-content: flex-start;
    padding-top: 60px;
}

.team-card.reverse .team-role {
    align-self: flex-end;
}

.team-card.reverse .team-stats-grid {
    direction: rtl;
    /* Keep stats visual balance */
}

.team-card.reverse .stat-item {
    direction: ltr;
    /* Reset text direction for content */
}

/* Ensure mobile stacking remains correct */
@media (max-width: 900px) {
    .team-card.reverse {
        flex-direction: column;
    }

    .team-card.reverse .team-content {
        align-items: center;
        text-align: center;
        /* Maintain fixed vertical alignment */
        justify-content: flex-start;
        padding-top: 40px;
    }

    .team-card.reverse .team-role {
        align-self: center;
    }

    .team-card.reverse .visual-overlay {
        background: linear-gradient(to top, rgba(10, 31, 68, 1) 10%, rgba(10, 31, 68, 0) 100%);
    }
}

/* --- Team 3D Scroll Update --- */
.team-wrapper {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 120px;
    /* Generous gap for isolation */
    /* Keep side-padding always non-negative so the last card can fully center */
    padding: 80px clamp(20px, calc(50vw - 400px), 340px);
    scroll-padding: 0 clamp(20px, calc(50vw - 400px), 340px);
    align-items: center;
    perspective: 2500px;
    /* Strong 3D space */
    width: 100%;
    scroll-behavior: smooth;
    position: relative;

    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.team-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Smooth scroll behavior for team section */
.team-section {
    scroll-behavior: smooth;
}

/* Card Updates */
.team-card {
    min-width: 800px;
    /* Fixed robust width */
    max-width: 800px;
    scroll-snap-align: center;
    /* Center in view */
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.3;
    transform: scale(0.82) rotateY(30deg) translateZ(-120px);
    transform-origin: center center;
    transform-style: preserve-3d;
    margin: 0;
    /* Reset margins */
    background: rgba(10, 31, 68, 0.5);
    /* Slightly darker when inactive */
    border-color: rgba(255, 255, 255, 0.05);
    filter: blur(1.5px) brightness(0.65);
    pointer-events: none;
    /* Prevent interaction with inactive cards */
    will-change: transform, opacity, filter;
    /* Performance optimization */
    backface-visibility: hidden;
    /* Prevent flickering */
    -webkit-font-smoothing: antialiased;
    /* Smooth text rendering */
}

/* Active State (Triggered by JS) */
.team-card.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg) translateZ(0);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 168, 232, 0.3),
        0 0 100px rgba(0, 168, 232, 0.1);
    background: var(--glass-bg);
    z-index: 10;
    filter: blur(0) brightness(1);
    pointer-events: auto;
    /* Re-enable interaction */
    border-color: rgba(0, 168, 232, 0.4);
}

/* Ensure content direction is standard for carousel consistency */
.team-card.reverse {
    flex-direction: row !important;
    /* Force standard matching layout */
}

.team-card.reverse .team-content {
    align-items: flex-start !important;
    text-align: left !important;
    /* Maintain fixed vertical alignment */
    justify-content: flex-start !important;
    padding-top: 60px !important;
}

.team-card.reverse .team-role {
    align-self: flex-start !important;
}

.team-card.reverse .visual-overlay {
    background: linear-gradient(to right, rgba(10, 31, 68, 0) 0%, rgba(10, 31, 68, 0.8) 100%) !important;
}

.team-card.reverse .team-stats-grid {
    direction: ltr !important;
}

.team-card.reverse .stat-item {
    direction: ltr !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .team-wrapper {
        padding: 40px 20px;
        gap: 30px;
        perspective: 1000px;
        /* Reduced perspective for mobile */
        display: flex;
        flex-direction: row !important;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10vw;
    }

    .team-card {
        min-width: 85vw;
        max-width: 85vw;
        transition:
            opacity 0.6s ease,
            transform 0.6s ease,
            filter 0.6s ease;
        transform: scale(0.88) rotateY(15deg) translateZ(-50px);
        /* Less dramatic 3D on mobile */
        opacity: 0.4;
        filter: blur(0.5px) brightness(0.8);
    }

    .team-card.active {
        transform: scale(1) rotateY(0deg) translateZ(0);
        opacity: 1;
        filter: blur(0) brightness(1);
    }

    #ourteam .team-card.active:hover {
        transform: translate(-50%, -50%) rotateY(0deg) scale(1);
        /* Disable dramatic hover on mobile but maintain centering */
    }

    .team-card {
        flex-direction: column !important;
    }

    .team-visual {
        height: 280px;
        min-height: 280px;
        overflow: hidden;
        border-radius: 12px 12px 0 0 !important;
        /* In column layout, photo is on top */
    }

    .team-content {
        padding: 30px 25px;
        padding-top: 40px;
        /* Maintain fixed vertical alignment on mobile */
    }

    .team-name {
        font-size: 1.8rem;
    }

    .team-stats-grid {
        gap: 15px;
        padding: 18px;
    }
}

/* --- Team Navigation Controls --- */
.team-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 20;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.team-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 168, 232, 0.3);
    color: var(--titanium-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.team-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--sonic-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-nav-btn svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.team-nav-btn:hover {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--sonic-blue);
    transform: scale(1.15);
    box-shadow: 0 0 25px var(--sonic-blue-glow), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.team-nav-btn:hover::before {
    opacity: 0.3;
}

.team-nav-btn:hover svg {
    transform: scale(1.1);
}

.team-nav-btn:active {
    transform: scale(1.05);
}

.prev-btn svg {
    transform: translateX(-2px);
}

.next-btn svg {
    transform: translateX(2px);
}

/* Position controls absolute on desktop for better composition */
@media (min-width: 900px) {
    .team-controls {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        justify-content: space-between;
        padding: 0 20px;
        pointer-events: none;
        transform: translateY(-50%);
        max-width: 100%;
        margin: 0;
    }

    .team-nav-btn {
        pointer-events: auto;
        width: 64px;
        height: 64px;
    }

    .team-nav-btn svg {
        width: 32px;
        height: 32px;
    }
}

/* Mobile improvements */
@media (max-width: 900px) {
    .team-controls {
        gap: 30px;
        margin-bottom: 25px;
    }

    .team-nav-btn {
        width: 52px;
        height: 52px;
    }

    .team-nav-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* --- Team Progress Indicators --- */
.team-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    /* FIXED margin to prevent header from shifting */
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    z-index: 15;

    /* Stabilize indicators */
    transform: translateZ(0);
}

.team-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0;
}

.team-indicator::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.team-indicator:hover {
    background: rgba(0, 168, 232, 0.3);
    border-color: rgba(0, 168, 232, 0.5);
    transform: scale(1.2);
}

.team-indicator.active {
    width: 14px;
    height: 14px;
    background: var(--sonic-blue);
    border-color: var(--sonic-blue);
    box-shadow: 0 0 20px var(--sonic-blue-glow), 0 0 40px rgba(0, 168, 232, 0.3);
}

.team-indicator.active::before {
    border-color: rgba(0, 168, 232, 0.4);
    animation: indicatorPulse 2s infinite;
}

@keyframes indicatorPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .team-indicators {
        /* FIXED: Keep margin consistent - no top margin */
        margin-top: 0;
        margin-bottom: 30px;
        gap: 10px;
    }

    .team-indicator {
        width: 10px;
        height: 10px;
    }

    .team-indicator.active {
        width: 12px;
        height: 12px;
    }
}

/* =========================================================
   Team 3D FLIP CAROUSEL OVERRIDES (single centered card)
   This overrides earlier scroll-based carousel attempts.
   ========================================================= */

#ourteam .team-wrapper {
    display: block !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    scroll-padding: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100%;
    max-width: 1100px;
    /* DYNAMIC HEIGHT - Min-height prevents title jump, but allows expansion */
    min-height: 600px;
    height: auto;

    /* CRITICAL: Zero margins - all spacing handled by header's margin-bottom and indicators' margin-bottom */
    margin: 0 auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    position: relative;
    perspective: 1400px;
    transform-style: preserve-3d;

    /* Smooth height transitions - contained within wrapper, doesn't affect header */
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* CRITICAL: Isolate wrapper from affecting parent layout - height changes stay contained */
    contain: layout size;
    will-change: height;
}

#ourteam .team-card {
    /* Ensure card has full width needed */
    width: 100% !important;
    max-width: 1000px !important;

    /* Center horizontally and vertically - FIXED position */
    left: 50%;
    top: 50%;

    /* Default transform includes vertical centering */
    transform: translate(-50%, -50%) rotateY(90deg) scale(0.9);

    /* Ensure text doesn't flow out */
    box-sizing: border-box;

    height: auto;
    /* Consistent min-height to prevent vertical jumps */
    min-height: 500px;

    position: absolute;
    transform-style: preserve-3d;
    transform-origin: center center;

    opacity: 0;
    pointer-events: none;
    filter: blur(0) brightness(1);
    transition:
        transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Active card: fully visible and centered - MAINTAIN VERTICAL CENTER */
#ourteam .team-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotateY(0deg) scale(1);
    z-index: 10;
}

/* Hover effect WITHOUT vertical movement */
#ourteam .team-card.active:hover {
    transform: translate(-50%, -50%) rotateY(0deg) scale(1.02) translateZ(20px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 168, 232, 0.4),
        0 0 120px rgba(0, 168, 232, 0.2);
    border-color: rgba(0, 168, 232, 0.6);
}

/* Incoming start positions - MAINTAIN VERTICAL CENTER */
#ourteam .team-card.from-right {
    opacity: 0;
    transform: translate(50%, -50%) rotateY(60deg) scale(0.8);
    z-index: 5;
}

#ourteam .team-card.from-left {
    opacity: 0;
    transform: translate(-150%, -50%) rotateY(-60deg) scale(0.8);
    z-index: 5;
}

/* Outgoing end positions - MAINTAIN VERTICAL CENTER */
#ourteam .team-card.to-left {
    opacity: 0;
    transform: translate(-150%, -50%) rotateY(-60deg) scale(0.8);
    z-index: 5;
}

#ourteam .team-card.to-right {
    opacity: 0;
    transform: translate(50%, -50%) rotateY(60deg) scale(0.8);
    z-index: 5;
}

/* --- Team Navigation Controls (FIXED TO VIEWPORT - No Movement) --- */
#ourteam .team-controls {
    /* CRITICAL: Fixed to viewport, not to container */
    position: fixed;
    /* Center vertically in viewport */
    top: 50vh;
    left: 50%;
    width: 100%;
    max-width: 1100px;
    /* Zero height - buttons positioned relative to this line */
    height: 0;
    z-index: 1000;
    pointer-events: none;

    /* Center horizontally */
    transform: translateX(-50%);

    /* CRITICAL: Break 3D transform inheritance and prevent any shifts */
    transform-style: flat;
    perspective: none;
    backface-visibility: hidden;
}

#ourteam .team-nav-btn {
    pointer-events: auto;
    position: absolute;
    /* FIXED vertical position - centered vertically within control container */
    top: 0;
    margin-top: -32px;
    /* Center the 64px button: -32px offset */

    /* Ensure buttons are always on top */
    z-index: 1000;

    /* Styling */
    width: 64px;
    height: 64px;
    background: rgba(10, 31, 68, 0.75);
    border-color: rgba(0, 168, 232, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* CRITICAL: No transforms that could inherit or shift */
    transform: translateZ(0);
    transform-style: flat;
    backface-visibility: hidden;
}

/* Preserve centering on hover using translateZ to avoid vertical shift */
#ourteam .team-nav-btn:hover {
    /* Scale from center without affecting vertical position */
    transform: translateZ(0) scale(1.12);
    background: rgba(0, 168, 232, 0.25);
    border-color: var(--sonic-blue);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.3);
}

#ourteam .team-nav-btn:active {
    transform: translateZ(0) scale(1.05);
}

/* Card is max 1000px centered, buttons well outside the card */
#ourteam .prev-btn {
    /* Card is 1000px max (500px from center) + button (64px) + gap (50px) = 614px from center */
    left: calc(50% - 620px);
}

#ourteam .next-btn {
    /* Card is 1000px max (500px from center) + button (64px) + gap (50px) = 614px from center */
    right: calc(50% - 620px);
}

/* On screens where calculated position would overlap card or go off-screen */
@media (max-width: 1400px) {
    #ourteam .prev-btn {
        /* Fixed distance from screen edge for safety */
        left: 40px;
    }

    #ourteam .next-btn {
        /* Fixed distance from screen edge for safety */
        right: 40px;
    }
}

@media (max-width: 1024px) {
    #ourteam .prev-btn {
        left: 30px;
    }

    #ourteam .next-btn {
        right: 30px;
    }
}

@media (max-width: 768px) {
    #ourteam .prev-btn {
        left: 20px;
    }

    #ourteam .next-btn {
        right: 20px;
    }
}

/* Mobile: reduce rotation angle a bit for comfort */
@media (max-width: 900px) {
    #ourteam .team-wrapper {
        /* DYNAMIC HEIGHT for mobile - min-height prevents title jump, allows expansion */
        min-height: 850px;
        height: auto;
    }

    #ourteam .team-card {
        width: 90% !important;
        max-width: 90% !important;
    }

    #ourteam .team-nav-btn {
        width: 48px;
        height: 48px;
        /* Adjust margin for smaller button size: -24px to center 48px button */
        margin-top: -24px;
        background: rgba(10, 31, 68, 0.85);
    }

    #ourteam .team-nav-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Keep buttons visible on mobile but closer to edges */
    #ourteam .prev-btn {
        left: 10px;
    }

    #ourteam .next-btn {
        right: 10px;
    }
}

/* Extra small screens - adjust heights for very compact devices */
@media (max-width: 480px) {
    #ourteam .team-wrapper {
        /* DYNAMIC HEIGHT for extra small - min-height prevents title jump, allows expansion */
        min-height: 900px;
        height: auto;
    }
}

/* Ensure Section Overflow doesn't clip shadows */
.team-section {
    overflow: visible !important;
}

@media (prefers-reduced-motion: reduce) {
    #ourteam .team-card {
        transition: opacity 0.2s ease !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    #ourteam .team-card.from-right,
    #ourteam .team-card.from-left,
    #ourteam .team-card.to-left,
    #ourteam .team-card.to-right {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* --- AFOQT Dark Section Styles --- */
.afoqt-clean-layout {
    position: relative;
    padding: 0;
    /* Dark Theme maintained (Eagle Navy) */
    background: radial-gradient(circle at 70% 30%, #1A3A5C 0%, #0A1F44 70%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Reusing grid generic overlay or adding specific one */
.afoqt-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Container padding - Same as ASTB for vertical consistency */
.afoqt-clean-layout .container {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* Info Column Dark Override - AFOQT Premium Glass Card */
.afoqt-info-col {
    /* Dark glass morphism with Air Force theme */
    background: linear-gradient(135deg,
            rgba(10, 31, 68, 0.65) 0%,
            rgba(26, 58, 92, 0.45) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);

    /* Premium borders with sonic blue accent */
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 20px;

    /* Same spacing as ASTB */
    padding: clamp(30px, 5vw, 55px);
    width: 100%;
    max-width: 650px;

    /* Depth & shadow */
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(0, 168, 232, 0.1);

    position: relative;
    overflow: hidden;
}

/* Top accent line - Sonic blue glow */
.afoqt-info-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--sonic-blue) 30%,
            var(--sonic-blue) 70%,
            transparent);
    box-shadow: 0 0 15px var(--sonic-blue-glow);
    animation: accentPulse 3s ease-in-out infinite;
}

/* Subtle hover effect */
.afoqt-info-col:hover {
    border-color: rgba(0, 168, 232, 0.4);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(0, 168, 232, 0.2);
}

@keyframes accentPulse {

    0%,
    100% {
        opacity: 0.7;
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

.afoqt-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(90deg,
            #FFFFFF 0%,
            #00A8E8 25%,
            #FFFFFF 50%,
            #44C4F2 75%,
            #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(0, 168, 232, 0.4));
    padding-bottom: 15px;
}

.afoqt-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

.afoqt-benefits-list {
    list-style: none;
    margin-bottom: 40px;
    display: grid;
    gap: 14px;
}

.afoqt-benefits-list li {
    padding-left: 30px;
    position: relative;
    font-weight: 500;
    text-align: left;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.afoqt-benefits-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--sonic-blue);
    font-size: 1.3rem;
    line-height: 1;
    top: 0;
    text-shadow: 0 0 10px var(--sonic-blue-glow);
}

/* Platform Cards Enhancement for AFOQT Dark Theme */
.afoqt-clean-layout .platform-card {
    background: rgba(0, 168, 232, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.afoqt-clean-layout .platform-card:hover {
    background: rgba(0, 168, 232, 0.12);
    border-color: rgba(0, 168, 232, 0.3);
    box-shadow: 0 8px 24px rgba(0, 168, 232, 0.2);
}

.afoqt-clean-layout .platform-card::before {
    background: linear-gradient(90deg, transparent, var(--sonic-blue), transparent);
}

/* QR Button Override for AFOQT Dark Theme */
.afoqt-clean-layout .qr-btn-link {
    /* Light container with strong contrast */
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.afoqt-clean-layout .qr-btn-link::before {
    background: rgba(0, 168, 232, 0.25);
}

.afoqt-clean-layout .qr-btn-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--sonic-blue);
    color: var(--sonic-blue);
    box-shadow: 0 4px 16px rgba(0, 168, 232, 0.3);
}

.afoqt-clean-layout .qr-btn-link svg {
    fill: currentColor;
}

/* AFOQT Layout - REVERSE column order for visual variety */
.afoqt-clean-layout .astb-main-content {
    /* Flip the grid columns - content left (wider), visuals right (narrower) */
    grid-template-columns: 1.1fr 0.9fr;
    /* Reversed from ASTB (55% - 45%) */
    gap: 60px;
    /* Same increased gap as ASTB for consistency */
}

.afoqt-clean-layout .astb-visual-col {
    /* Move visual column to the right */
    order: 2;
}

.afoqt-clean-layout .afoqt-info-col {
    /* Move content column to the left */
    order: 1;
}

/* Ensure AFOQT visual column has same gap as ASTB */
.afoqt-clean-layout .astb-visual-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    gap: 0;
    padding-top: 0;
}

/* AFOQT Laptop Screen - Positioned on RIGHT side */
.afoqt-clean-layout .astb-video-container {
    width: 100%;
    max-width: 950px;
    /* Same max-width as ASTB for consistency */
    position: relative;
    z-index: 2;
    /* No margin-top to maintain vertical alignment with ASTB */
}

.afoqt-clean-layout .video-screen-frame {
    /* 3D laptop perspective - facing left (since it's on the right side) */
    transform:
        perspective(1500px) rotateX(5deg) rotateY(-8deg) translateZ(0);
    /* Stronger rotation to face the content card on left */
}

/* Screen reflection adjusted for right-side position */
.afoqt-clean-layout .video-screen-frame::before {
    background: linear-gradient(225deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.03) 100%);
    /* Gradient from top-right to match right-side laptop */
}

/* Glare effect adjusted for right-side position */
.afoqt-clean-layout .screen-glare {
    background: linear-gradient(225deg,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 30%,
            transparent 100%);
    /* Glare from top-right corner */
}

.afoqt-clean-layout .astb-video-container:hover .video-screen-frame {
    /* No hover effect - keep fixed 3D facing left */
    transform:
        perspective(1500px) rotateX(5deg) rotateY(-8deg) translateZ(0);
}

/* AFOQT Insignia - More Imposing & Dramatic */
.afoqt-clean-layout .astb-wings-insignia {
    /* Larger, more commanding size */
    width: min(380px, 50vw);
    max-width: 100%;

    /* Dramatic shadow with Sonic Blue glow */
    filter:
        drop-shadow(0 0 40px rgba(0, 168, 232, 0.6)) drop-shadow(0 0 80px rgba(0, 168, 232, 0.3)) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) brightness(1.1) contrast(1.15);

    /* Spacing for prominence */
    margin-bottom: clamp(35px, 5vh, 55px);

    /* Smooth animation */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27);

    /* Subtle float animation */
    animation: insigniaFloat 6s ease-in-out infinite;
}

.afoqt-clean-layout .astb-wings-insignia:hover {
    /* Dramatic hover effect */
    transform: scale(1.12) translateY(-12px);
    filter:
        drop-shadow(0 0 60px rgba(0, 168, 232, 0.9)) drop-shadow(0 0 100px rgba(0, 168, 232, 0.5)) drop-shadow(0 25px 60px rgba(0, 0, 0, 0.6)) brightness(1.2) contrast(1.2);
}

/* Floating animation for insignia */
@keyframes insigniaFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive adjustments for AFOQT insignia */
@media (max-width: 768px) {
    .afoqt-clean-layout .astb-wings-insignia {
        width: min(280px, 55vw);
    }

    /* Laptop screen adjustments for tablet */
    .afoqt-clean-layout .astb-video-container {
        max-width: 90vw;
        /* No margin-top for alignment */
    }

    .afoqt-clean-layout .video-screen-frame {
        /* Adjusted perspective for tablet - facing left */
        transform:
            perspective(1200px) rotateX(3deg) rotateY(-5deg) translateZ(0);
    }
}

@media (max-width: 480px) {
    .afoqt-clean-layout .astb-wings-insignia {
        width: min(220px, 65vw);
        animation: none;
        /* Disable animation on mobile for performance */
    }

    /* Laptop screen for small mobile */
    .afoqt-clean-layout .astb-video-container {
        max-width: 95vw;
        /* No margin-top for alignment */
    }

    .afoqt-clean-layout .video-screen-frame {
        /* Neutral perspective on mobile (stacked layout) */
        transform:
            perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(0);
    }
}

/* Visual Column - Both ASTB & AFOQT share .astb-visual-col class */
/* No additional overrides needed - unified positioning */
/* --- NEW MISSION SELECTOR MODAL --- */
.mission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(0px);
}

.mission-modal.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(15px);
}

.mission-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 16, 36, 0.85);
}

.mission-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: rgba(10, 31, 68, 0.5);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 168, 232, 0.1);
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mission-modal.active .mission-container {
    transform: scale(1) translateY(0);
}

.mission-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.mission-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mission-close:hover {
    color: var(--sonic-blue);
}

/* Mission Grid Split */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.mission-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.mission-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: transform 0.8s ease, opacity 0.4s ease;
    z-index: 0;
}

.navy-card .mission-bg {
    background-image: linear-gradient(rgba(10, 31, 68, 0.2), rgba(10, 31, 68, 0.8));
    /* Image placeholder handling via CSS gradients for now if no image */
    background-color: #0A2463;
}

.airforce-card .mission-bg {
    background-image: linear-gradient(rgba(10, 31, 68, 0.2), rgba(10, 31, 68, 0.8));
    background-color: #1A3A5C;
}

.mission-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    transition: transform 0.4s ease;
}

.mission-icon img {
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: filter 0.3s ease;
}

.mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 900;
}

.mission-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.mission-card .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Hover States */
.mission-card:hover {
    border-color: var(--sonic-blue);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mission-card:hover .mission-bg {
    transform: scale(1.1);
    opacity: 0.5;
}

.mission-card:hover .mission-icon img {
    filter: drop-shadow(0 0 20px var(--sonic-blue));
    transform: scale(1.05);
    /* Smooth growth */
}

.mission-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.mission-note {
    font-size: 0.85rem;
    color: var(--tactical-gray);
    margin-top: 20px;
}

/* Responsive Mission Modal */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .mission-card {
        height: 250px;
    }

    .mission-card .btn {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- NAVBAR NEW CTA --- */
.btn.btn-primary.sm.btn-mission-trigger {
    padding: 10px 24px;
    font-size: 0.8rem;
    background: rgba(0, 168, 232, 0.15);
    border: 1px solid rgba(0, 168, 232, 0.4);
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.1);
    animation: pulseNav 3s infinite;
}

.btn.btn-primary.sm.btn-mission-trigger:hover {
    background: rgba(0, 168, 232, 0.9);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.4);
}

@keyframes pulseNav {
    0% {
        border-color: rgba(0, 168, 232, 0.4);
    }

    50% {
        border-color: rgba(0, 168, 232, 0.9);
        box-shadow: 0 0 15px rgba(0, 168, 232, 0.2);
    }

    100% {
        border-color: rgba(0, 168, 232, 0.4);
    }
}


/* --- CTA & Badge Styles (Premium Upgrade) --- */

/* Download Area Grid */
.astb-download-area.refined-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 50px;
    width: 100%;
}

/* Platform Card Container */
.platform-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

/* Badge Button Structure */
.store-badge-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

/* Base Badge Style (Glassy) */
.store-badge-btn {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.store-badge-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--sonic-blue);
    background: rgba(15, 23, 42, 1);
}

/* Active/Focus State */
.store-badge-btn:active {
    transform: translateY(-1px);
}

/* Badge Icon */
.badge-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.store-badge-btn:hover .badge-icon svg {
    transform: scale(1.1);
}

/* Badge Text */
.badge-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #fff;
}

.badge-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.badge-main {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

/* --- Brand Specific Styles --- */

/* Apple App Store */
.store-badge-btn.apple-style {
    color: #fff;
}

.store-badge-btn.apple-style:hover .badge-icon {
    color: #fff;
}

/* Google Play Store */
.store-badge-btn.google-style .badge-icon {
    color: #fff;
    /* White icon for consistency */
}

/* Optional: Google colors on hover if requested, but clean is better */

/* Windows */
.store-badge-btn.windows-style:hover .badge-icon {
    color: #00A8E8;
    /* Windows Blue */
}

/* macOS */
.store-badge-btn.mac-style:hover .badge-icon {
    color: #A3AAAE;
    /* Silver */
}


/* --- QR Code Link Button --- */
.qr-btn-link {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    /* Subtle dashed border */
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-btn-link:hover {
    background: rgba(0, 168, 232, 0.1);
    border-style: solid;
    border-color: var(--sonic-blue);
    color: var(--sonic-blue);
}

.qr-btn-link svg {
    opacity: 0.8;
}

.qr-btn-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Context Overrides (Light vs Dark Sections) --- */

/* ASTB (Light Theme) Overrides */
.astb-clean-layout .store-badge-btn {
    background: #0B1120;
    /* Dark button on light bg */
    border-color: rgba(11, 17, 32, 0.1);
}

.astb-clean-layout .store-badge-btn:hover {
    background: #000;
    border-color: var(--sonic-blue);
}

.astb-clean-layout .qr-btn-link {
    border-color: rgba(11, 17, 32, 0.2);
    color: rgba(11, 17, 32, 0.6);
}

.astb-clean-layout .qr-btn-link:hover {
    background: rgba(0, 168, 232, 0.1);
    border-color: var(--sonic-blue);
    color: var(--sonic-blue);
}

/* AFOQT (Dark Theme) Overrides */
.afoqt-clean-layout .store-badge-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.afoqt-clean-layout .store-badge-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 168, 232, 0.2);
}


/* --- Responsive Details --- */
@media (max-width: 600px) {
    .astb-download-area.refined-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .store-badge-btn {
        justify-content: center;
        padding: 15px;
    }
}

/* --- NEW LOGO STYLES (Military Scope) --- */

:root {
    --font-tech: 'Space Grotesk', sans-serif;
}

.logo {
    gap: 15px;
    /* Increased gap for better visual separation */
}

.logo-text {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.35rem;
    /* Slightly larger */
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback handles in line 114 but this ensures gradient */
    text-transform: uppercase;
}

/* The Scope Container */
.logo-scope-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* The outer ring */
    border: 1px solid rgba(0, 168, 232, 0.3);
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.1);
}

/* Scope Crosshairs (Top/Bottom/Left/Right ticks) */
.logo-scope-wrapper::before,
.logo-scope-wrapper::after {
    content: '';
    position: absolute;
    background: var(--sonic-blue);
    z-index: 10;
}

/* Horizontal Ticks (Left/Right) */
.logo-scope-wrapper::before {
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
            var(--sonic-blue) 0%, var(--sonic-blue) 15%,
            transparent 15%, transparent 85%,
            var(--sonic-blue) 85%, var(--sonic-blue) 100%);
    pointer-events: none;
}

/* Vertical Ticks (Top/Bottom) */
.logo-scope-wrapper::after {
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
            var(--sonic-blue) 0%, var(--sonic-blue) 15%,
            transparent 15%, transparent 85%,
            var(--sonic-blue) 85%, var(--sonic-blue) 100%);
    pointer-events: none;
}

/* Inner Rotating Ring (Subtle activity) */
.logo-scope-wrapper .logo-img {
    height: 28px;
    /* Adjusted size to fit in scope */
    width: auto;
    z-index: 5;
    /* Optional: Subtle pulse on the bird itself */
    filter: drop-shadow(0 0 5px rgba(0, 168, 232, 0.4));
}

/* Revolving Tick (Radar effect) */
.logo-scope-wrapper .radar-sweep-effect {
    /* If we wanted JS injection, but doing CSS only for now */
}

/* Hover Effect: Scope tightens/glows */
.logo:hover .logo-scope-wrapper {
    border-color: var(--sonic-blue);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.logo:hover .logo-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- CIRCULAR LOGO FIX --- */
.logo-scope-wrapper {
    overflow: hidden !important;
    border-radius: 50% !important;
    mask-image: radial-gradient(white, black);
    /* Webkit fix ensures clipping */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.logo-scope-wrapper img {
    border-radius: 50%;
    /* Double safety */
}

/* --- LOGO SIZE BOOST --- */
.logo-scope-wrapper {
    width: 60px !important;
    /* Increased from 48px */
    height: 60px !important;
    /* Increased from 48px */
}

.logo-scope-wrapper .logo-img {
    height: 36px !important;
    /* Increased from 28px */
}

.logo-text {
    font-size: 1.6rem !important;
    /* Increased from 1.35rem */
    letter-spacing: 1px !important;
}

/* --- HOLOGRAPHIC SCREEN FX --- */

/* Wrapper to establish context */
.hologram-wrapper {
    position: relative;
    z-index: 10;
    /* Ensure it floats above the projector light */
}

/* The Screen Content itself - Holographitized */
.hologram-screen {
    position: relative;
    overflow: hidden;
    /* Subtle pulsing opacity for "live signal" feel */
    animation: signalPulse 4s infinite alternate;
}

/* 1. Scanlines Overlay */
.hologram-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    z-index: 20;
    pointer-events: none;
    background-size: 100% 3px;
    /* Determine tone based on section (default blue) */
    box-shadow: inset 0 0 40px rgba(0, 168, 232, 0.3);
}

/* 2. RGB Shift / Chromatic Aberration (Simulated via text shadow or border, 
   but for a container we use a box-shadow or duplicate pseudo if needed. 
   Keeping it simple with a heavy glow for now to save performance) */

/* 3. The "Projector Beam" Light */
.projector-beam {
    position: absolute;
    bottom: -20%;
    /* Start from below the screen */
    left: 50%;
    transform: translateX(-50%) perspective(500px) rotateX(60deg);
    width: 120%;
    /* Wider than screen */
    height: 200px;
    background: linear-gradient(0deg,
            rgba(0, 168, 232, 0) 0%,
            rgba(0, 168, 232, 0.15) 20%,
            rgba(0, 168, 232, 0.05) 60%,
            transparent 100%);
    filter: blur(20px);
    z-index: -1;
    /* Behind the screen */
    pointer-events: none;
    transform-origin: bottom center;
    animation: beamFluctuate 3s infinite alternate;
}

/* 4. Tech Border / Frame override */
.hologram-screen {
    border: 1px solid rgba(0, 168, 232, 0.4);
    box-shadow: 0 0 25px rgba(0, 168, 232, 0.25);
    border-radius: 4px;
    /* Slight tech curve */
}

/* --- ANIMATIONS --- */

@keyframes signalPulse {
    0% {
        opacity: 0.95;
        filter: brightness(1);
    }

    100% {
        opacity: 1;
        filter: brightness(1.15) contrast(1.1);
    }
}

@keyframes beamFluctuate {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) perspective(500px) rotateX(60deg) scaleY(1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) perspective(500px) rotateX(60deg) scaleY(1.1);
    }
}

/* --- CONTEXT SPECIFICS --- */

/* ASTB (Navy - Cyan/Blue) */
#astbprep .hologram-screen {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

#astbprep .projector-beam {
    background: linear-gradient(0deg, rgba(0, 255, 255, 0) 0%, rgba(0, 255, 255, 0.2) 20%, transparent 100%);
}

/* AFOQT (Air Force - Deep Blue/HUD Green or pure Tech Blue) 
   Let's go with a "Tactical Amber" option if requested, but sticking to "Deep Sky Blue" for consistency 
   unless user asks. I'll make it slightly more "Electric" to differ from ASTB. */
#afoqtbprep .hologram-screen {
    border-color: rgba(64, 224, 208, 0.5);
    /* Turquoise */
    box-shadow: 0 0 30px rgba(64, 224, 208, 0.2);
}

#afoqtbprep .projector-beam {
    background: linear-gradient(0deg, rgba(64, 224, 208, 0) 0%, rgba(64, 224, 208, 0.2) 20%, transparent 100%);
}

/* Glitch overlay on hover */
.hologram-wrapper:hover .hologram-screen {
    animation: signalGlitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes signalGlitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(-1px, -1px);
    }

    60% {
        transform: translate(1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

/* --- CAROUSEL HOLOGRAPHIC TRANSITIONS --- */

/* The class we add when changing slides */
.glitch-transition {
    animation: holo-refresh 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes holo-refresh {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }

    10% {
        opacity: 0.8;
        transform: scale(1.02) skewX(2deg);
        filter: brightness(2) blur(2px) hue-rotate(90deg);
        /* Flash color */
    }

    40% {
        opacity: 0.1;
        transform: scaleX(0.1) scaleY(0.01);
        /* Collapse like a CRT turn off */
        filter: brightness(0.5) blur(10px);
    }

    50% {
        /* SWAP POINT - VISUALLY BLANK */
        opacity: 0;
        transform: scale(0);
    }

    60% {
        opacity: 0.1;
        transform: scaleX(1.5) scaleY(0.01);
        /* Expand horizontal line */
        filter: brightness(2) blur(5px);
    }

    90% {
        opacity: 0.8;
        transform: scale(1) skewX(-2deg);
        filter: brightness(1.2) blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
}

/* Optional: Scanline vertical jump during glitch */
.glitch-transition::before {
    animation: scan-jump 0.8s ease forwards;
}

@keyframes scan-jump {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

/* --- SMOOTH HOLOGRAPHIC REFRESH (Override) --- */
@keyframes holo-refresh {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }

    30% {
        opacity: 0.7;
        transform: scale(1.005);
        filter: brightness(1.2) blur(2px);
    }

    50% {
        opacity: 0;
        /* Clean swap point */
        transform: scale(0.98);
        filter: brightness(1.3) blur(4px);
    }

    70% {
        opacity: 0.7;
        transform: scale(1.005);
        filter: brightness(1.2) blur(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
}

/* Disable the jump for smoother feel */
.glitch-transition::before {
    animation: none !important;
}

/* --- HOLOGRAM REFINEMENTS: FLAT & VERTICAL ASSEMBLY --- */

/* 1. FLATTEN SCREENS (Override 3D transforms) */
.afoqt-clean-layout .video-screen-frame,
.video-screen-frame,
.hologram-screen {
    transform: none !important;
    perspective: none !important;
    rotate: 0deg !important;
}

/* Ensure container also loses perspective if set */
.afoqt-clean-layout .video-screen-frame::before {
    /* Adjust reflection/glare if needed for flat screen */
    /* Usually fine to leave, acts as flat overlay */
}


/* 2. VERTICAL ASSEMBLY TRANSITION (5-Part Shutter) */
@keyframes holo-shutter-reveal {
    0% {
        opacity: 0;
        /* Start with thin vertical slivers in the centers of the 5 zones (0-20, 20-40, etc) */
        clip-path: polygon(10% 0%, 10% 0%, 10% 100%, 10% 100%,
                30% 0%, 30% 0%, 30% 100%, 30% 100%,
                50% 0%, 50% 0%, 50% 100%, 50% 100%,
                70% 0%, 70% 0%, 70% 100%, 70% 100%,
                90% 0%, 90% 0%, 90% 100%, 90% 100%);
        filter: brightness(2) blur(5px);
    }

    50% {
        opacity: 1;
        /* Bars expand but have gaps */
        clip-path: polygon(5% 0%, 15% 0%, 15% 100%, 5% 100%,
                25% 0%, 35% 0%, 35% 100%, 25% 100%,
                45% 0%, 55% 0%, 55% 100%, 45% 100%,
                65% 0%, 75% 0%, 75% 100%, 65% 100%,
                85% 0%, 95% 0%, 95% 100%, 85% 100%);
        filter: brightness(1.5) blur(2px);
    }

    100% {
        opacity: 1;
        /* Full reveal - bars touch */
        clip-path: polygon(0% 0%, 20% 0%, 20% 100%, 0% 100%,
                20% 0%, 40% 0%, 40% 100%, 20% 100%,
                40% 0%, 60% 0%, 60% 100%, 40% 100%,
                60% 0%, 80% 0%, 80% 100%, 60% 100%,
                80% 0%, 100% 0%, 100% 100%, 80% 100%);
        filter: brightness(1) blur(0);
    }
}


/* Override the previous transition animation */
/* We keep the timeline: 
   0-50%: Glitch out (Dissolve)
   50%: Swap
   50-100%: Reveal (Assembly)
*/
@keyframes holo-refresh-assembly {

    /* PHASE 1: DISINTEGRATE (0% to 45%) */
    0% {
        opacity: 1;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        filter: brightness(1);
    }

    20% {
        opacity: 0.8;
        /* Glitch Slice */
        clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 98% 45%, 100% 50%, 100% 100%, 0% 100%);
        filter: brightness(1.2) blur(1px);
    }

    45% {
        opacity: 0;
        /* Collapsed */
        clip-path: polygon(10% 0%, 10% 0%, 10% 100%, 10% 100%,
                30% 0%, 30% 0%, 30% 100%, 30% 100%,
                50% 0%, 50% 0%, 50% 100%, 50% 100%,
                70% 0%, 70% 0%, 70% 100%, 70% 100%,
                90% 0%, 90% 0%, 90% 100%, 90% 100%);
    }

    /* SWAP POINT (50%) */
    50% {
        opacity: 0;
    }

    /* PHASE 2: RE-ASSEMBLE (55% to 100%) */

    55% {
        opacity: 0.5;
        /* Thin slivers appear */
        clip-path: polygon(9% 0%, 11% 0%, 11% 100%, 9% 100%,
                29% 0%, 31% 0%, 31% 100%, 29% 100%,
                49% 0%, 51% 0%, 51% 100%, 49% 100%,
                69% 0%, 71% 0%, 71% 100%, 69% 100%,
                89% 0%, 91% 0%, 91% 100%, 89% 100%);
        filter: brightness(2) blur(3px) drop-shadow(0 0 10px var(--sonic-blue));
    }

    80% {
        opacity: 0.9;
        /* Gaps closing */
        clip-path: polygon(2% 0%, 18% 0%, 18% 100%, 2% 100%,
                22% 0%, 38% 0%, 38% 100%, 22% 100%,
                42% 0%, 58% 0%, 58% 100%, 42% 100%,
                62% 0%, 78% 0%, 78% 100%, 62% 100%,
                82% 0%, 98% 0%, 98% 100%, 82% 100%);
        filter: brightness(1.2) blur(1px);
    }

    100% {
        opacity: 1;
        /* Sealed */
        clip-path: polygon(0% 0%, 20% 0%, 20% 100%, 0% 100%,
                20% 0%, 40% 0%, 40% 100%, 20% 100%,
                40% 0%, 60% 0%, 60% 100%, 40% 100%,
                60% 0%, 80% 0%, 80% 100%, 60% 100%,
                80% 0%, 100% 0%, 100% 100%, 80% 100%);
        filter: brightness(1) blur(0);
    }
}

.glitch-transition {
    animation: holo-refresh-assembly 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
}

/* --- TACTICAL MISSION SCAN TRANSITION --- */

@keyframes tactical-scan-wipe {

    /* 0% - 45%: OLD IMAGE EXIT (Scan down to clear) */
    0% {
        opacity: 1;
        /* Full view */
        clip-path: inset(0 0 0 0);
        filter: grayscale(0) contrast(1);
    }

    10% {
        /* Turn into "Night Vision/Thermal" before wiping */
        filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(1.2);
    }

    45% {
        /* Scanline moves down, hiding the image */
        clip-path: inset(100% 0 0 0);
        filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(1.2);
    }

    /* 50%: SWAP POINT (content changes while hidden) */
    50% {
        clip-path: inset(0 0 100% 0);
        /* Reset to top, but hidden */
    }

    /* 55% - 100%: NEW IMAGE ENTRY (Scan down to reveal) */
    55% {
        opacity: 1;
        clip-path: inset(0 0 90% 0);
        /* Start revealing top */
        /* Incoming data look: Green tint + Pixelated/Blur */
        filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) invert(0);
    }

    90% {
        clip-path: inset(0 0 0 0);
        /* Fully revealed */
        filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3);
        /* Still thermal */
    }

    100% {
        clip-path: inset(0 0 0 0);
        filter: grayscale(0) contrast(1);
        /* Restore color */
    }
}

/* SCANLINE BEAM OVERLAY */
/* We'll use the ::after on the transition class to draw the bright line */
.glitch-transition::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    background: #00ff00;
    /* Radar Green */
    box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
    z-index: 50;
    opacity: 0;
    animation: scan-beam-move 1.2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes scan-beam-move {

    /* Synced with the clip-path wipes */
    0% {
        top: 0;
        opacity: 1;
    }

    45% {
        top: 100%;
        opacity: 1;
    }

    /* Wipe old down */
    46% {
        opacity: 0;
    }

    /* Hide during swap */
    54% {
        top: 0;
        opacity: 0;
    }

    /* Reset to top */
    55% {
        top: 0;
        opacity: 1;
    }

    /* Reappear */
    90% {
        top: 100%;
        opacity: 1;
    }

    /* Reveal new down */
    100% {
        top: 100%;
        opacity: 0;
    }

    /* Fade out */
}

/* Override previous animations */
.glitch-transition {
    animation: tactical-scan-wipe 1.2s cubic-bezier(0.45, 0, 0.55, 1) forwards !important;
}

/* Ensure flat perspective from previous step is maintained */
.afoqt-clean-layout .video-screen-frame,
.video-screen-frame,
.hologram-screen {
    transform: none !important;
    perspective: none !important;
    rotate: 0deg !important;
}

/* --- SCREEN UPSIZE (Larger Holograms) --- */

/* 1. Base Container Limit Release */
.astb-video-container {
    max-width: 900px !important;
    /* Was likely constrained to ~600px */
    width: 100% !important;
}

/* 2. Screen Dimensions */
.video-screen-frame,
.hologram-screen {
    /* Set a taller Aspect Ratio or min-height */
    height: 48vh !important;
    /* Relative to viewport for impact */
    min-height: 400px !important;
    max-height: 600px !important;
}

/* 3. Image/Video Fit */
.video-screen-frame img,
.video-screen-frame video,
.hologram-screen img,
.hologram-screen video {
    object-fit: cover !important;
    /* Ensure they fill the taller frame */
}

/* 4. Projector Beam adjust */
.projector-beam {
    bottom: -15% !important;
    /* Adjust for taller screen */
    width: 110% !important;
}

/* Responsive constraints so it doesn't break mobile */
@media (max-width: 768px) {

    .video-screen-frame,
    .hologram-screen {
        height: 35vh !important;
        min-height: 250px !important;
    }
}

/* --- SCREEN SIZE CORRECTION (Balanced) --- */

/* 1. Container Limit */
.astb-video-container {
    max-width: 650px !important;
    /* Dialed back from 900px */
    margin: 0 auto;
    /* Ensure centering */
}

/* 2. Screen Dimensions */
.video-screen-frame,
.hologram-screen {
    height: 350px !important;
    /* Dialed back from 48vh */
    min-height: 300px !important;
    max-height: 400px !important;
}

/* 3. Projector Beam adjustment for new size */
.projector-beam {
    bottom: -25px !important;
    width: 600px !important;
    /* Proportional to container */
    max-width: 100% !important;
}


/* ============================================
   TESTIMONIAL CAROUSEL - ENHANCED MILITARY EDITION
   ============================================ */

.testimonial-carousel-wrapper {
    width: 100%;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    /* No fixed height - adapts to content naturally */
}

/* Decorative Scanlines */
.testimonial-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--sonic-blue) 20%,
            var(--sonic-blue) 80%,
            transparent);
    box-shadow: 0 0 10px var(--sonic-blue-glow);
}

.testimonial-track {
    width: 100%;
    max-width: 600px;
    /* Fixed max width for consistent card size */
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
    /* Height adapts to active card content */
}

/* Enhanced Card Design - In Document Flow */
.store-rating-card {
    width: 100%;
    max-width: 600px;
    /* Fixed width for consistency */
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 0;
    
    /* Glassmorphism with depth - Default for AFOQT (dark theme) */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    
    /* Hidden state - stays in flow but invisible */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    display: none;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    margin-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Border animations removed */

/* Holographic overlay removed */

.store-rating-card.active {
    max-height: none;
    opacity: 1;
    visibility: visible;
    display: flex;
    padding-top: 25px;
    padding-bottom: 25px;
    border-width: 1px;
    gap: 15px;
    margin-bottom: 0;
    pointer-events: auto;
}

.store-rating-card.active:hover {
    border-color: rgba(0, 168, 232, 0.4);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 30px var(--sonic-blue-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Avatar removed - keeping code structure for potential future use */

/* Header Section */
.rating-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-score {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px var(--sonic-blue-glow);
    position: relative;
}

.rating-score::after {
    content: '/5';
    font-size: 0.5em;
    opacity: 0.5;
    margin-left: 2px;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    display: inline-block;
}

.rating-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-metadata::before {
    content: '▸';
    color: var(--sonic-blue);
    font-size: 0.9rem;
}

/* Content Section */
.rating-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

/* Author Section */
.rating-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    flex-direction: row;
    /* Changed from column to row for same-line layout */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
    /* Increased gap for breathing room */
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sonic-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    flex-shrink: 0;
    /* Prevent name from shrinking */
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    /* Prevent badge from shrinking */
    margin-left: auto;
    /* Push badge to the right */
}

.author-badge::before {
    content: '✓';
    font-weight: 900;
    font-size: 0.9rem;
}

/* Navigation Controls */
.testimonial-nav {
    position: absolute;
    top: 100px;
    /* Fixed position from top for consistency */
    display: flex;
    gap: 10px;
    z-index: 10;
}

.testimonial-nav.prev {
    left: -60px;
}

.testimonial-nav.next {
    right: -60px;
}

.testimonial-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 168, 232, 0.1);
    border: 2px solid rgba(0, 168, 232, 0.3);
    color: var(--sonic-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.testimonial-nav-btn:hover {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--sonic-blue);
}

.testimonial-nav-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* Progress Indicators */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.testimonial-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-indicator::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--sonic-blue);
    opacity: 0;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    width: 14px;
    height: 14px;
    background: var(--sonic-blue);
    border-color: var(--sonic-blue);
    box-shadow: 0 0 15px var(--sonic-blue-glow);
}

.testimonial-indicator.active::before {
    opacity: 1;
}

/* ASTB Light Theme Overrides */
#astbprep .testimonial-carousel-wrapper::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 31, 63, 0.3) 20%,
            rgba(0, 31, 63, 0.3) 80%,
            transparent);
    box-shadow: none;
}

#astbprep .store-rating-card,
#astbprep .store-rating-card.active {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 255, 255, 0.75) 100%) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(0, 31, 63, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 31, 63, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#astbprep .store-rating-card::before {
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(0, 168, 232, 0.3) 50%,
            transparent 70%);
}

#astbprep .store-rating-card:hover {
    box-shadow:
        0 15px 50px rgba(0, 31, 63, 0.25),
        0 0 30px rgba(0, 168, 232, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#astbprep .rating-score {
    color: #0A1F44;
    text-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
}

#astbprep .rating-text {
    color: rgba(0, 0, 0, 0.85);
}

#astbprep .rating-metadata {
    color: rgba(0, 31, 63, 0.6);
}

#astbprep .rating-metadata::before {
    color: var(--sonic-blue);
}

#astbprep .rating-author {
    border-top-color: rgba(0, 31, 63, 0.15);
}

/* Avatar styles removed for ASTB theme */

/* AFOQT Dark Theme Enhancements */
#afoqtbprep .store-rating-card,
#afoqtbprep .store-rating-card.active {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#afoqtbprep .store-rating-card:hover {
    border-color: rgba(0, 168, 232, 0.5);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--sonic-blue-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#afoqtbprep .rating-score {
    color: #FFFFFF;
    text-shadow: 0 0 20px var(--sonic-blue-glow);
}

#afoqtbprep .rating-text {
    color: rgba(255, 255, 255, 0.95);
}

#afoqtbprep .rating-metadata {
    color: rgba(255, 255, 255, 0.6);
}

#astbprep .testimonial-nav-btn {
    background: rgba(0, 168, 232, 0.08);
    border-color: rgba(0, 168, 232, 0.25);
}

#astbprep .testimonial-nav-btn:hover {
    background: rgba(0, 168, 232, 0.15);
}

/* Mobile Responsive Design */
@media (max-width: 900px) {
    .testimonial-carousel-wrapper {
        margin-top: 30px;
        padding-top: 25px;
    }

    .testimonial-track {
        max-width: 95%;
        padding: 0 15px;
    }

    .store-rating-card {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .store-rating-card.active {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 12px;
    }

    .testimonial-nav {
        top: 80px;
    }

    .rating-score {
        font-size: 1.8rem;
    }

    .rating-text {
        font-size: 0.95rem;
        padding-left: 12px;
    }

    .testimonial-nav {
        top: 60px;
    }

    .testimonial-nav.prev {
        left: 10px;
    }

    .testimonial-nav.next {
        right: 10px;
    }

    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .testimonial-track {
        max-width: 100%;
    }

    .store-rating-card {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .store-rating-card.active {
        padding-top: 18px;
        padding-bottom: 18px;
        gap: 10px;
    }

    .rating-score {
        font-size: 1.6rem;
    }

    .rating-stars {
        font-size: 0.9rem;
    }

    .rating-text {
        font-size: 0.9rem;
    }

    .testimonial-nav {
        top: 50px;
    }

    .testimonial-nav-btn {
        width: 35px;
        height: 35px;
    }

    .testimonial-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   COMPANY LEGAL INFORMATION STYLING
   ============================================ */

/* Company Legal Info Container */
.company-legal-info {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    border-bottom: 1px solid rgba(248, 249, 250, 0.1);
}

.company-legal-info .legal-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #F8F9FA;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.company-legal-info .legal-designation {
    font-size: 0.85rem;
    color: rgba(248, 249, 250, 0.7);
    font-style: italic;
    margin: 0;
}

/* Enhanced Copyright Styling */
.footer-brand .copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(248, 249, 250, 0.8);
    letter-spacing: 0.3px;
}

/* Enhanced Disclaimer Styling */
.disclaimer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(248, 249, 250, 0.1);
}

.disclaimer p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(248, 249, 250, 0.6);
    margin-bottom: 0.75rem;
    text-align: center;
}

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

.disclaimer strong {
    color: rgba(248, 249, 250, 0.8);
    font-weight: 600;
}

/* Responsive Adjustments for Legal Information */
@media (max-width: 768px) {
    .company-legal-info {
        margin: 1.25rem 0;
        padding: 0.75rem 0;
    }

    .company-legal-info .legal-name {
        font-size: 0.9rem;
    }

    .company-legal-info .legal-designation {
        font-size: 0.8rem;
    }

    .footer-brand .copyright {
        font-size: 0.85rem;
    }

    .disclaimer {
        margin-top: 2rem;
        padding: 1.5rem 0.75rem;
    }

    .disclaimer p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .company-legal-info .legal-name {
        font-size: 0.85rem;
    }

    .company-legal-info .legal-designation {
        font-size: 0.75rem;
    }

    .disclaimer p {
        font-size: 0.75rem;
    }
}

/* --- COMPACT LAYOUT RECOVERY (Step 4 Fix) --- */
/* Restoring the section size configuration by compacting the layout */

.astb-main-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Left column narrower, right column wider */
    gap: 60px;
    /* Increased gap for better separation */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
    /* Added bottom margin but kept it small */
}

/* Adjust visual column to be more compact */
.astb-visual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Make insignia smaller to save vertical space */
.astb-wings-insignia {
    width: min(280px, 40vw) !important;
    /* Force smaller size */
    margin-bottom: 20px !important;
}

/* Adjust typography for better fit */
.astb-title-refresh {
    font-size: 3rem;
    /* Slightly reduced from 3.5rem */
    margin-bottom: 10px;
}

.astb-description {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.astb-benefits-list {
    margin-bottom: 25px;
}

.astb-benefits-list li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    /* Tighter list */
}

/* Compact Download Area */
.astb-download-area.refined-grid {
    margin-top: 30px;
    /* Reduced from 50px */
}

/* --- COMPACT TESTIMONIALS --- */
/* Integrating testimonials without blowing up section height */
.testimonial-carousel-wrapper {
    margin-top: 20px !important;
    /* Reduced from 40px */
    padding-top: 20px !important;
    /* Reduced from 30px */
    width: 100%;
}

.store-rating-card.active {
    padding: 20px 25px !important;
    /* Tighter padding */
    gap: 10px !important;
}

.rating-score {
    font-size: 1.8rem !important;
    /* Smaller score */
}

.rating-stars {
    font-size: 1rem !important;
}

.rating-text {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.rating-metadata {
    font-size: 0.7rem !important;
}

/* NAV CONTROLS POSITIONING */
/* Adjust nav buttons to be closer to content */
/* Ensure testimonial nav is positioned relative to the wrapper */
.testimonial-carousel-wrapper {
    position: relative;
    /* Ensure height adapts */
    height: auto;
    min-height: 180px;
    /* Force minimum height for transitions */
}

.testimonial-nav {
    top: 50% !important;
    /* Center vertically relative to carousel */
    transform: translateY(-50%);
    /* Adjust Z-index to be above cards */
    z-index: 100;
}

.testimonial-nav.prev {
    left: -50px;
}

.testimonial-nav.next {
    right: -50px;
}

/* AFOQT layout already defined above - no duplication needed */

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .astb-main-content {
        grid-template-columns: 1fr;
        gap: 50px;
        /* Increased gap for mobile/tablet */
        text-align: center;
    }

    .astb-visual-col {
        order: -1;
        /* Visuals on top */
    }

    .testimonial-nav {
        /* Keep them close on mobile */
        top: auto !important;
        bottom: -40px;
        transform: none;
    }

    .testimonial-nav.prev {
        left: 20px;
    }

    .testimonial-nav.next {
        right: 20px;
    }


    .testimonial-carousel-wrapper {
        margin-bottom: 40px;
        /* Add space for nav buttons */
        padding-bottom: 20px;
    }
}

/* Indicators hidden for cleaner design */
.testimonial-indicators {
    display: none !important;
}

/* 3. Disable "Busy" Animations */

/* Hide the "border scan" animation */
.store-rating-card::before {
    animation: none !important;
    opacity: 0 !important;
    display: none !important;
}

/* Removes hover movement */
.store-rating-card:hover {
    transform: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    /* Static subtle shadow */
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Stop star pulse */
.rating-stars {
    animation: none !important;
}

/* Stop logo/nav pulse/scale */
.testimonial-nav-btn {
    transition: background 0.3s ease, border-color 0.3s ease !important;
}

.testimonial-nav-btn:hover {
    transform: none !important;
    background: rgba(0, 168, 232, 0.15);
}

/* Remove Pulse on Active Cards if any */
.store-rating-card::after {
    display: none !important;
}