/* ============================================================
   Aproxian Advanced Hero Section – Frontend Styles
   ============================================================ */

/* ── Outer wrapper — scroll tunnel (desktop) ─────────────── */
.aahs-hero-outer {
    position: relative;
    width: 100%;
}

/* ── Sticky container ────────────────────────────────────── */
.aahs-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Desktop video ───────────────────────────────────────── */
.aahs-video-desktop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Mobile video — hidden by default ───────────────────── */
.aahs-video-mobile {
    display: none;
    width: 100%;
    height: auto;
    max-width: 100%;
    pointer-events: none;
}

/* ── Mobile mode ─────────────────────────────────────────── */
/* Applied via JS when viewport < breakpoint */
.aahs-hero-outer.aahs-mobile-mode {
    /* Collapse the tall scroll tunnel — just natural height */
    height: auto !important;
}

.aahs-hero-outer.aahs-mobile-mode .aahs-sticky {
    position: relative;
    height: auto;
    background: transparent;
}

.aahs-hero-outer.aahs-mobile-mode .aahs-video-desktop {
    display: none;
}

.aahs-hero-outer.aahs-mobile-mode .aahs-video-mobile {
    display: block;
    position: relative;
}

/* Hide desktop-only UI on mobile */
.aahs-hero-outer.aahs-mobile-mode .aahs-progress-bar,
.aahs-hero-outer.aahs-mobile-mode .aahs-scroll-hint {
    display: none;
}

/* Overlay still works on mobile */
.aahs-hero-outer.aahs-mobile-mode .aahs-overlay {
    position: absolute;
}

/* ── No-video placeholder ────────────────────────────────── */
.aahs-no-video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #888;
    font-size: 18px;
    font-family: sans-serif;
    letter-spacing: 0.02em;
}

/* ── Overlay ─────────────────────────────────────────────── */
.aahs-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 2;
}

.aahs-heading {
    margin: 0 0 16px;
    font-weight: 700;
    line-height: 1.1;
}

.aahs-subheading {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    max-width: 640px;
}

/* ── Progress bar ────────────────────────────────────────── */
.aahs-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.aahs-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.05s linear;
    will-change: width;
}

/* ── Scroll hint ─────────────────────────────────────────── */
.aahs-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-family: sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: aahs-hint-fade 2.5s ease-in-out infinite;
}

.aahs-scroll-hint-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: aahs-arrow-bounce 1.4s ease-in-out infinite;
}

.aahs-hero-outer.aahs-scrolling .aahs-scroll-hint {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes aahs-hint-fade {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

@keyframes aahs-arrow-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(5px); }
}

@media (max-width: 768px) {
    .aahs-heading    { font-size: 36px !important; }
    .aahs-subheading { font-size: 16px !important; }
}

/* ── Clickable link overlay ──────────────────────────────── */
.aahs-link {
    position: absolute;
    inset: 0;
    z-index: 5;           /* above video, below text overlay */
    display: block;
    cursor: pointer;
}

/* Mobile link only visible in mobile mode */
.aahs-link-mobile {
    display: none;
}

.aahs-hero-outer.aahs-mobile-mode .aahs-link-desktop {
    display: none;
}

.aahs-hero-outer.aahs-mobile-mode .aahs-link-mobile {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
}
