/* ============================================================
   HERO.CSS — BAB Dynamics
   Zone 1: Arrival Zone (#arrival .hero-section)
   Elements: glass overlay, brand title, headline,
             subheading, CTAs, floating nodes, scroll indicator
   ============================================================ */

/* ── SECTION WRAPPER ────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 130px 24px 90px;
    overflow: hidden;
}

/* ── GLASS OVERLAY ──────────────────────────────────────────── */
/* Sits between the Three.js canvas and hero content.
   Adds depth + readability without hiding the 3D scene. */
.hero-glass-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 70% 55% at 50% 45%,
        rgba(5, 10, 20, 0.0) 0%,
        rgba(5, 10, 20, 0.35) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Radial brand glow behind the title */
.hero-section::before {
    content: '';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, 90vw);
    height: min(760px, 90vw);
    background: radial-gradient(
        ellipse at center,
        rgba(0, 210, 255, 0.07) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── CONTENT ────────────────────────────────────────────────── */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── LOCATION TAG ───────────────────────────────────────────── */
.hero-tag {
    position: relative;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--primary);
    text-transform: uppercase;
    padding: 0 18px;
    margin-bottom: 30px;
    opacity: 0.85;
}

.hero-tag::before,
.hero-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
    opacity: 0.5;
}

.hero-tag::before { right: 100%; }
.hero-tag::after  {
    left: 100%;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* ── BRAND TITLE (H1) ───────────────────────────────────────── */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 26px;
    line-height: 0.92;
    user-select: none;
}

.title-bab {
    font-family: var(--font-display);
    font-size: clamp(84px, 16vw, 168px);
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(180deg, #ffffff 8%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 44px rgba(0, 210, 255, 0.32));
    animation: heroFloat 6.5s ease-in-out infinite;
    cursor: pointer;
    transition: filter var(--transition-base);
}

.title-bab:hover {
    filter: drop-shadow(0 0 70px rgba(0, 210, 255, 0.55));
}

.title-dynamics {
    font-family: var(--font-display);
    font-size: clamp(26px, 5.5vw, 64px);
    font-weight: 900;
    letter-spacing: clamp(8px, 2.4vw, 22px);
    color: var(--primary);
    text-shadow: 0 0 34px rgba(0, 210, 255, 0.4);
    margin-top: 8px;
    /* Optical centering — letter-spacing adds trailing space */
    padding-left: clamp(8px, 2.4vw, 22px);
}

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

/* ── HEADLINE (H2) — "Architecting the Future" ─────────────── */
.hero-headline {
    font-family: var(--font-body);
    font-size: clamp(19px, 3.2vw, 30px);
    font-weight: 700;
    letter-spacing: clamp(4px, 1vw, 9px);
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ── SUBHEADING ─────────────────────────────────────────────── */
.hero-subheading {
    font-family: var(--font-body);
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ── CTA BUTTONS ────────────────────────────────────────────── */
.hero-ctas {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
    z-index: 1;
    transition:
        color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-fast);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -101%;
    width: 101%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: left var(--transition-base);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before { left: 0; }

.btn-primary:hover,
.btn-primary:focus-visible {
    color: var(--dark);
    box-shadow: 0 0 34px rgba(0, 210, 255, 0.38);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    border: 1.5px solid var(--border-dim);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
    transition:
        border-color var(--transition-base),
        color var(--transition-base),
        background var(--transition-base),
        transform var(--transition-fast);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ── FLOATING NODES (decorative) ────────────────────────────── */
.hero-node {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 14px var(--primary-glow);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.node-1 {
    width: 5px; height: 5px;
    top: 24%; left: 14%;
    animation: nodeDrift1 11s ease-in-out infinite;
}

.node-2 {
    width: 3px; height: 3px;
    top: 38%; right: 12%;
    animation: nodeDrift2 14s ease-in-out infinite;
}

.node-3 {
    width: 4px; height: 4px;
    bottom: 26%; left: 22%;
    animation: nodeDrift3 12.5s ease-in-out infinite;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(245, 166, 35, 0.4);
}

@keyframes nodeDrift1 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(26px, -34px); }
}

@keyframes nodeDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-32px, 24px); }
}

@keyframes nodeDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(20px, 28px); }
}

/* ── SCROLL INDICATOR ───────────────────────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    z-index: 2;
    animation: scrollNudge 2.6s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--primary), transparent);
}

@keyframes scrollNudge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(9px); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    .hero-section { padding: 110px 20px 84px; }

    .hero-tag::before,
    .hero-tag::after { width: 18px; }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
    }

    /* Decorative nodes off on mobile — saves paint, reduces clutter */
    .hero-node { display: none; }

}

@media (max-width: 480px) {

    .hero-tag {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .hero-headline { letter-spacing: 3px; }

    .scroll-indicator { bottom: 22px; }

}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    .title-bab,
    .hero-node,
    .scroll-indicator {
        animation: none;
    }

}