/* =========================
   RESET
========================= */

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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    background: #071d32;
}


/* =========================
   WELCOME PAGE
========================= */

.welcome-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}


/* =========================
   BACKGROUND VIDEO
========================= */

.welcome-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


/* =========================
   VIDEO OVERLAY
========================= */

.welcome-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(5, 24, 43, 0.72) 0%,
            rgba(7, 36, 62, 0.55) 30%,
            rgba(8, 47, 79, 0.25) 52%,
            rgba(8, 47, 79, 0.05) 72%,
            rgba(8, 47, 79, 0) 100%
        );
}


/* =========================
   LOGO
========================= */

.welcome-logo {
    position: absolute;
    top: 38px;
    left: 7%;
    z-index: 3;

    opacity: 0;
    transform: translateY(-10px);

    animation: logoReveal 0.8s ease forwards;
}

.welcome-logo img {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
    top: 28px;
    left: 7%;
}


/* =========================
   CONTENT
========================= */

.welcome-content {
    position: relative;
    z-index: 3;

    width: min(620px, 86%);
    margin-left: 7%;

    color: #ffffff;
}


/* Academy Name */

.welcome-eyebrow {
    margin-bottom: 18px;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: 2.6px;

    color: rgba(255, 255, 255, 0.82);

    opacity: 0;
    transform: translateY(18px);

    animation: fadeUp 0.7s ease 0.25s forwards;
}


/* Main Heading */

.welcome-title {
    margin-bottom: 22px;

    font-size: clamp(48px, 5.4vw, 78px);
    line-height: 0.98;

    font-weight: 700;
    letter-spacing: -2px;
}

.welcome-title span {
    display: block;

    opacity: 0;
    transform: translateY(35px);

    animation: titleReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.welcome-title span:first-child {
    animation-delay: 0.45s;
}

.welcome-title span:last-child {
    animation-delay: 0.62s;
}


/* Description */

.welcome-description {
    max-width: 520px;

    margin-bottom: 30px;

    font-size: 17px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.88);

    opacity: 0;
    transform: translateY(20px);

    animation: fadeUp 0.75s ease 0.82s forwards;
}


/* =========================
   BUTTONS
========================= */

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;

    opacity: 0;
    transform: translateY(18px);

    animation: fadeUp 0.75s ease 1s forwards;
}

.welcome-actions a {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 23px;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


/* Primary Button */

.btn-primary {
    background: #ffffff;
    color: #0a3155;
    border: 1px solid #ffffff;
}

.btn-primary span {
    font-size: 19px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #f4f7fa;
}

.btn-primary:hover span {
    transform: translateX(4px);
}


/* Secondary Button */

.btn-secondary {
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.65);

    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.14);

    border-color: #ffffff;
}


/* =========================
   CREATE ACCOUNT
========================= */

.welcome-signup {
    margin-top: 22px;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.65);

    opacity: 0;
    transform: translateY(12px);

    animation: fadeUp 0.7s ease 1.15s forwards;
}

.welcome-signup a {
    margin-left: 5px;

    color: #ffffff;
    font-weight: 600;

    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.45);

    transition: border-color 0.25s ease;
}

.welcome-signup a:hover {
    border-color: #ffffff;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes logoReveal {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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


@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


@keyframes titleReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

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


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 768px) {

    body {
        overflow: auto;
    }

    .welcome-page {
        min-height: 100svh;
    }

    .welcome-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 24, 43, 0.72),
                rgba(5, 24, 43, 0.48)
            );
    }

    .welcome-logo {
        top: 25px;
        left: 6%;
    }

    .welcome-logo img {
        width: 120px;
    }

    .welcome-content {
        width: 88%;
        margin-left: 6%;
        padding-top: 80px;
    }

    .welcome-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .welcome-title {
        font-size: clamp(42px, 13vw, 62px);
        letter-spacing: -1.5px;
    }

    .welcome-description {
        max-width: 440px;
        font-size: 15px;
    }

    .welcome-actions {
        flex-direction: column;
        align-items: stretch;

        width: min(100%, 340px);
    }

    .welcome-actions a {
        width: 100%;
    }

    .welcome-signup {
        margin-bottom: 30px;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .welcome-logo,
    .welcome-eyebrow,
    .welcome-title span,
    .welcome-description,
    .welcome-actions,
    .welcome-signup {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .welcome-actions a {
        transition: none;
    }
}
/* =========================
   FINAL HERO REFINEMENTS
========================= */

/* Slightly stronger logo presence */
.welcome-logo img {
    width: 175px;
}

/* Better heading proportions */
.welcome-title {
    max-width: 720px;
    font-size: clamp(46px, 4.6vw, 68px);
    line-height: 1.02;
    letter-spacing: -1.8px;
}

/* Keep Reussite International together on desktop */
.welcome-title span:nth-child(2) {
    white-space: nowrap;
}

/* Subtle gold brand accent */
.welcome-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    flex-shrink: 0;
    background: #d5ad63;
}

/* Small gold detail on primary CTA */
.btn-primary span {
    color: #b88a3b;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .welcome-logo img {
        width: 145px;
    }

    .welcome-title {
        font-size: clamp(39px, 11vw, 56px);
        line-height: 1.03;
    }

    .welcome-title span:nth-child(2) {
        white-space: normal;
    }
}
.welcome-signup {
    font-size: 15px;
}

.welcome-signup a {
    font-size: 15px;
    font-weight: 700;
}
.welcome-logo img {
    width: 250px !important;
    max-width: none !important;
    height: auto !important;
}
.welcome-title span:first-child {
    font-size: 0.72em;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.welcome-title span:nth-child(2),
.welcome-title span:nth-child(3) {
    font-weight: 700;
}
/* ========================================
   SMALL / SHORT LAPTOP
   1366x768, 1280x720 type screens
======================================== */

@media (min-width: 769px) and (max-height: 800px) {

    .welcome-logo {
        top: 18px;
        left: 7%;
    }

    .welcome-logo img {
        width: 230px !important;
        height: auto !important;
    }

    .welcome-content {
        margin-left: 7%;
        width: min(590px, 48%);
        transform: translateY(28px);
    }

    .welcome-eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .welcome-title {
        font-size: clamp(40px, 4vw, 56px);
        line-height: 0.98;
        margin-bottom: 16px;
    }

    .welcome-title span:first-child {
        margin-bottom: 4px;
    }

    .welcome-description {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 20px;
        max-width: 470px;
    }

    .welcome-actions a {
        min-height: 44px;
        padding: 0 19px;
        font-size: 13px;
    }

    .welcome-signup {
        margin-top: 15px;
        font-size: 14px;
    }

    .welcome-signup a {
        font-size: 14px;
    }
}
/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .welcome-page {
        min-height: 100svh;
        align-items: center;
    }

    /* Video positioning for portrait screen */
    .welcome-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 65% center;
    }

    /* Stronger overlay for readability */
    .welcome-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 24, 43, 0.82) 0%,
                rgba(5, 24, 43, 0.62) 55%,
                rgba(5, 24, 43, 0.28) 100%
            );
    }

    /* Logo */
    .welcome-logo {
        top: 22px;
        left: 6%;
    }

    .welcome-logo img {
        width: 185px !important;
        height: auto !important;
    }

    /* Main content */
    .welcome-content {
        width: 88%;
        margin-left: 6%;
        padding-top: 90px;
        transform: none;
    }

    .welcome-eyebrow {
        margin-bottom: 13px;
        gap: 9px;

        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .welcome-eyebrow::before {
        width: 22px;
    }

    /* Heading */
    .welcome-title {
        max-width: 100%;
        margin-bottom: 17px;

        font-size: clamp(37px, 10.5vw, 48px);
        line-height: 1.02;
        letter-spacing: -1px;
    }

    .welcome-title span:first-child {
        font-size: 0.68em;
        margin-bottom: 6px;
    }

    .welcome-title span:nth-child(2) {
        white-space: normal;
    }

    /* Description */
    .welcome-description {
        max-width: 94%;
        margin-bottom: 23px;

        font-size: 14px;
        line-height: 1.55;
    }

    /* Buttons */
    .welcome-actions {
        width: 100%;
        max-width: 320px;

        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .welcome-actions a {
        width: 100%;
        min-height: 47px;
        padding: 0 18px;

        font-size: 13px;
    }

    /* Signup */
    .welcome-signup {
        margin-top: 17px;
        margin-bottom: 25px;

        font-size: 14px;
    }

    .welcome-signup a {
        font-size: 14px;
    }
}
/* ===== Student Portal card ===== */

.portal-card {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 22px;
    padding: 14px 16px 14px 18px;

    border-radius: 16px;
    background: rgba(11, 31, 58, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.portal-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #C9A227;

    font-size: 22px;
}

.portal-text b {
    display: block;
    color: #ffffff;
    font-size: 15px;
}

.portal-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.portal-actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.portal-btn {
    padding: 11px 22px;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.portal-login {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.portal-login:hover {
    background: #ffffff;
    color: #0B1F3A;
}

.portal-signup {
    background: #C9A227;
    color: #0B1F3A;
    border: 1.5px solid #C9A227;
}

.portal-signup:hover {
    background: #B48F1F;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
    .portal-card {
        display: flex;
        flex-wrap: wrap;
    }

    .portal-actions {
        width: 100%;
        margin-left: 0;
    }

    .portal-btn {
        flex: 1;
        text-align: center;
    }
}
/* ===== Student Portal — entry animation ===== */

.portal-card {
    opacity: 0;
    animation: portalIn 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes portalIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== Sign up hint ===== */
.welcome-content .signup-hint {
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    animation: signupFadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.welcome-content .signup-hint a {
    color: #d4a72c;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.3s ease;
}

.welcome-content .signup-hint a:hover {
    color: #f0c541;
    text-decoration: underline;
}

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