/* =========================================================
   TAJ PALACE
   LUXURY CINEMATIC INTRO PAGE
   ========================================================= */

/* GLOBAL RESET */

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

html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;

    background: #100910;
    color: #ffffff;

    font-family: 'Montserrat', sans-serif;

    overflow: hidden;
}

/* =========================================================
   INTRO PAGE
   ========================================================= */

.intro-page {
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100svh;

    overflow: hidden;

    background: #100910;

    isolation: isolate;
}

/* =========================================================
   FULL SCREEN KLING VIDEO
   ========================================================= */

.intro-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    /*
       Cover removes the rectangular frame.
       Center top prioritizes the golden ornament.
    */

    object-fit: cover;
    object-position: center top;

    transform: none;

    display: block;

    z-index: 1;
}

/* =========================================================
   CINEMATIC OVERLAY
   ========================================================= */

.video-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 0.00) 40%,
        rgba(0, 0, 0, 0.08) 55%,
        rgba(0, 0, 0, 0.22) 68%,
        rgba(0, 0, 0, 0.40) 82%,
        rgba(0, 0, 0, 0.55) 100%
    );

    pointer-events: none;
    z-index: 2;
}

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

.intro-content {
    position: absolute;

    left: 50%;
    bottom: 12%;

    transform: translateX(-50%);

    width: min(90%, 550px);

    text-align: center;

    z-index: 3;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.4s ease,
        visibility 1.4s ease;
}

/* SHOW CONTENT AFTER VIDEO */

.intro-content.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   FIRST TAGLINE - MOVED UP BY 12PX
   ========================================================= */

.tagline-top {
    position: relative;

    /* Move only this line upward */
    top: -12px;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(13px, 1.35vw, 19px);

    font-weight: 400;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(0, 0, 0, 0.45);

    letter-spacing: 3px;

    line-height: 1.4;

    text-transform: uppercase;

    color: #ffffff;
}

/* =========================================================
   GOLD SCRIPT TAGLINE
   ========================================================= */

.tagline-bottom {
    font-family: 'Great Vibes', cursive;

    font-size: clamp(34px, 3.5vw, 49px);

    font-weight: 400;

    line-height: 1.2;

    color: #e8bd70;

    margin-top: 5px;
    margin-bottom: 4px;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.90),
        0 0 16px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   GOLD DIVIDER
   ========================================================= */

.gold-divider {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 150px;

    margin: 7px auto 15px;
}

.gold-divider::before,
.gold-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #d5aa59;
}

.gold-divider span {
    color: #e8bd70;
    font-size: 12px;
}

/* =========================================================
   BEGIN THE EXPERIENCE BUTTON
   ========================================================= */

.experience-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    min-width: 230px;

    padding: 12px 22px;

    border: 1px solid #e5b65b;
    border-radius: 40px;

    background: rgba(0, 0, 0, 0.32);

    color: #ffffff;

    font-family: 'Montserrat', sans-serif;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2px;

    text-decoration: none;

    cursor: pointer;

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

.experience-btn:hover {
    background: #e5b65b;

    color: #160d08;

    transform: translateY(-2px);
}

.experience-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.button-arrow {
    font-size: 19px;
    line-height: 1;
}

/* =========================================================
   SCROLL INDICATOR
   ========================================================= */

.scroll-indicator {
    position: absolute;

    left: 50%;
    bottom: 2%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 6px;

    color: #ffffff;

    text-decoration: none;

    z-index: 4;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.4s ease,
        visibility 1.4s ease;
}

/* SHOW AFTER VIDEO */

.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   ANIMATED MOUSE ICON
   ========================================================= */

.mouse {
    position: relative;

    width: 18px;
    height: 29px;

    border: 1px solid #ffffff;
    border-radius: 12px;
}

.mouse::before {
    content: "";

    position: absolute;

    top: 5px;
    left: 50%;

    width: 3px;
    height: 6px;

    background: #ffffff;

    border-radius: 3px;

    transform: translateX(-50%);

    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% {
        top: 5px;
        opacity: 1;
    }

    100% {
        top: 16px;
        opacity: 0;
    }
}

.scroll-text {
    font-size: 9px;

    letter-spacing: 2px;

    white-space: nowrap;
}

/* =========================================================
   PAGE TRANSITION
   ========================================================= */

.page-transition {
    position: fixed;

    inset: 0;

    background: #100910;

    z-index: 100;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

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

@media (max-width: 1024px) {

    .intro-content {
        bottom: 13%;
        width: 90%;
    }

    .tagline-top {
        font-size: 16px;
        letter-spacing: 2px;

        /* Maintain upward adjustment */
        top: -12px;
    }

    .tagline-bottom {
        font-size: 42px;
    }

    .experience-btn {
        min-width: 220px;
    }
}

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

@media (max-width: 768px) {

    .intro-page {
        height: 100vh;
        height: 100svh;
    }

    .intro-video {
        width: 100%;
        height: 100%;

        object-fit: cover;

        /*
           Prioritize upper portion of video.
           Some side cropping is unavoidable.
        */

        object-position: center top;
    }

    .intro-content {
        bottom: 15%;
        width: 94%;
    }

    .tagline-top {
        position: relative;

        top: -8px;

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

    .tagline-bottom {
        font-size: 35px;

        margin-top: 6px;
    }

    .gold-divider {
        width: 120px;

        margin-bottom: 12px;
    }

    .experience-btn {
        min-width: 210px;

        padding: 11px 17px;

        font-size: 9px;

        letter-spacing: 1.5px;
    }

    .scroll-indicator {
        bottom: 3%;
    }

    .scroll-text {
        font-size: 8px;
    }
}

/* =========================================================
   SHORT DESKTOP SCREENS
   ========================================================= */

@media (max-height: 650px) {

    .intro-content {
        bottom: 13%;
    }

    .tagline-bottom {
        font-size: 32px;
    }

    .gold-divider {
        margin-bottom: 9px;
    }

    .experience-btn {
        padding: 10px 18px;
    }

    .scroll-indicator {
        bottom: 2%;
    }
}

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

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

    .mouse::before {
        animation: none;
    }

    .intro-content,
    .scroll-indicator,
    .page-transition {
        transition-duration: 0.01ms;
    }

    .experience-btn {
        transition: none;
    }
}
/* ==========================================
   LOGIN NAVIGATION
========================================== */

.main-nav .login-link {
    color: #f2d69a;
}

.main-nav .login-link:hover {
    color: #ffffff;
}

/* Keep all navigation links evenly spaced */

@media (min-width: 1201px) {

    .main-nav {
        gap: 23px;
    }

    .main-nav .nav-link {
        font-size: 13px;
    }

}