/* ============================================
   Sophia Academy Ver2 - Hero (Full Window)
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--color-bg-dark);
}

/* --- Full-screen background image --- */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img,
.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transition: opacity 1.5s ease, transform 8s ease;
}

.hero__bg img.active,
.hero__bg-img.active {
    opacity: 1;
}

.hero.loaded .hero__bg img.active,
.hero.loaded .hero__bg-img.active {
    transform: scale(1.05);
}

/* Dual overlay: top vignette + bottom gradient */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(10, 3, 5, 0.3) 0%,
            rgba(10, 3, 5, 0.1) 40%,
            rgba(10, 3, 5, 0.6) 100%);
}

/* Gold border accent at bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent 0%, var(--color-gold) 30%, var(--color-gold-bright) 50%, var(--color-gold) 70%, transparent 100%);
    z-index: 5;
}

/* --- Content --- */
.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 80px;
    /* header height offset */
}

/* Vertical gold accent line */
.hero__accent-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-gold));
    margin-bottom: var(--sp-xl);
    opacity: 0;
    animation: fadeInDown 1s 0.5s ease forwards;
}

.hero__copy-en {
    display: block;
    font-family: var(--font-en);
    font-size: var(--fs-xl);
    font-weight: var(--fw-regular);
    font-style: italic;
    color: var(--color-gold-light);
    letter-spacing: 0.35em;
    margin-bottom: var(--sp-lg);
    opacity: 0;
    animation: fadeInUp 0.8s 0.7s ease forwards;
}

.hero__copy-main {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: 1.25;
    margin-bottom: var(--sp-xl);
    opacity: 0;
    animation: fadeInUp 0.8s 0.9s ease forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__copy-main em {
    display: block;
    color: var(--color-gold-light);
    font-style: normal;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    margin-top: var(--sp-sm);
}

.hero__copy-sub {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-2xl);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s 1.1s ease forwards;
}

.hero__copy-btns {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 1.3s ease forwards;
}

/* --- Achievement Badge (right side) --- */
.hero__badge {
    position: absolute;
    right: max(var(--sp-3xl), calc((100vw - var(--container-max)) / 2 + var(--sp-2xl)));
    bottom: 15%;
    z-index: 3;
    text-align: center;
    border: 1px solid rgba(184, 146, 42, 0.5);
    padding: var(--sp-xl) var(--sp-2xl);
    background: rgba(10, 3, 5, 0.65);
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeIn 1s 1.5s ease forwards;
}

.hero__badge-num {
    font-family: var(--font-en);
    font-size: 4.5rem;
    font-weight: var(--fw-semibold);
    color: var(--color-gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero__badge-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.12em;
    margin-top: var(--sp-xs);
    display: block;
}

/* --- Scroll Down Arrow --- */
.hero__scroll {
    position: absolute;
    bottom: var(--sp-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    opacity: 0;
    animation: fadeIn 1s 2s ease forwards;
}

.hero__scroll-text {
    font-family: var(--font-en);
    font-size: var(--fs-xs);
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.hero__scroll-arrow {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(184, 146, 42, 0.6), transparent);
    position: relative;
    animation: scrollPulse 2s infinite;
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {

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

    50% {
        transform: scaleY(0.7);
        opacity: 1;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero__badge {
        display: none;
    }

    .hero__content {
        padding-top: 70px;
    }

    .hero__copy-main {
        font-size: 2.2rem;
    }

    .hero__copy-btns {
        flex-direction: column;
    }
}