/* HERO SECTION */
.heroSection {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 100vh;
    margin-top: -20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    overflow: visible; /* <!-- HERE --> */
    border-radius: 15px; /* <!-- HERE --> */
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    background-color: #b9b9b9;
}

/* VIDEO BACKGROUND */
.heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    padding-left: 1px;
    padding-bottom: 1px;
    padding-right: 1px;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 15px; /* <!-- HERE --> */
}

/* OVERLAY */
.heroOverlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTENT WRAPPER */
.heroContent {
    text-align: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* TEXT COLOR + SHADOW */
.heroContent h1,
.heroContent h2,
.heroSubLineSt1,
.heroSubLines {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(88, 88, 88, 0.7);
}

/* FONT SIZES */
.heroContent h1 {
    font-size: clamp(5rem, 10vw, 12rem); /* <!-- HERE --> */
    letter-spacing: 5px; /* <!-- HERE --> */
    font-weight: 600; /* <!-- HERE --> */
    text-transform: none; /* <!-- HERE --> */
}

.heroSubLineSt1 {
    font-size: clamp(3rem, 4vw, 4rem);
}

.heroContent h2 {
    font-size: clamp(3rem, 5vw, 6rem);
    letter-spacing: 5px;
    font-style: italic;
}

.heroSubLines {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 2;
}

.heroSubLineRow {
    display: block;
}

/* HERO STAGE VISIBILITY CONTROL */

/* All stages hidden by default */
.heroStage {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

/* Only the active stage is visible */
.heroStage.active {
    display: block;
    opacity: 1;
}

/* When returning to top: show all stages at once */
.heroSection.showAllStages .heroStage {
    display: block;
    opacity: 1;
}

/* Disable animations when showing all stages */
.heroSection.showAllStages .heroChar {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* --------------------------------------------- */
/* CSS‑ONLY TEXT ANIMATION (no JS needed)        */
/* --------------------------------------------- */

.heroStage.active h1,
.heroStage.active h2,
.heroStage.active .heroSubLineSt1,
.heroStage.active .heroSubLines {
    opacity: 0;
    transform: translateY(10px);
    animation: heroLineIn 0.6s ease-out forwards; /* <!-- HERE --> */
}

@keyframes heroLineIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO EXIT ANIMATION */
.heroSection.heroExit {
    animation-name: heroExitUp;
    animation-duration: 0.7s;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}


/* MOBILE FULL VIEWPORT VIDEO */
@media (max-width: 800px) {
    .heroSection {
        width: 100%;
        max-width: 90%;
        margin-top: -20px;
        height: 100vh;
        border-radius: 20px; /* <!-- HERE --> */
        overflow: hidden; /* <!-- HERE --> */
    }

    .heroVideo {
        width: 100%;
        height: 100%;
        border-radius: 20px; /* <!-- HERE --> */
        box-shadow: none; /* <!-- HERE --> */
        margin-bottom: 0; /* <!-- HERE --> */
    }

    .heroContent h1 {
        font-size: clamp(4.5rem, 6vw, 6.5rem); /* <!-- HERE --> */
        letter-spacing: 2px; /* <!-- HERE --> */
        font-weight: 600; /* <!-- HERE --> */
    }

    .heroSubLineSt1 {
        font-size: clamp(2rem, 3vw, 3rem);
    }

    .heroContent h2 {
        font-size: clamp(2rem, 3vw, 3.5rem);
        letter-spacing: 5px;
        font-style: italic;
    }

    .heroSubLines {
        font-size: clamp(1rem, 1vw, 1rem);
        line-height: 2;
    }




}
