/* =========================================================
   Splash Slideshow — Frontend Styles
   Aesthetic: Cinematic luxury, editorial, refined
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@200;300;400&display=swap');

/* ---- Overlay shell ---- */
#splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

/* ---- Slides container ---- */
#splash-slides-container {
    position: absolute;
    inset: 0;
}

.splash-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: opacity, transform;
}

.splash-slide.active {
    opacity: 1;
}

/* ---- Transition: FADE ---- */
.splash-transition-fade .splash-slide {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Transition: SLIDE ---- */
.splash-transition-slide .splash-slide {
    transform: translateX(100%);
    opacity: 1;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.splash-transition-slide .splash-slide.active {
    transform: translateX(0);
}
.splash-transition-slide .splash-slide.exiting {
    transform: translateX(-100%);
}

/* ---- Transition: ZOOM ---- */
.splash-transition-zoom .splash-slide {
    transition: opacity 1.4s ease, transform 7s linear;
    transform: scale(1.08);
}
.splash-transition-zoom .splash-slide.active {
    opacity: 1;
    transform: scale(1.0);
}

/* ---- Dark tint overlay ---- */
#splash-overlay-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Subtle gradient to enhance readability at bottom */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.2) 60%,
        rgba(0,0,0,0.55) 100%
    ) !important;
}

/* ---- Text content ---- */
#splash-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    animation: splashContentIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

.splash-align-left  #splash-content { text-align: left; }
.splash-align-center #splash-content { text-align: center; }
.splash-align-right  #splash-content { text-align: right; }

/* Default center when class is on content itself */
#splash-content.splash-align-left  { text-align: left; align-self: flex-end; margin-left: 6vw; }
#splash-content.splash-align-center { text-align: center; }
#splash-content.splash-align-right { text-align: right; align-self: flex-end; margin-right: 6vw; }

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

/* ---- Headline ---- */
#splash-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 0.3em;
    text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

/* ---- Sub-headline ---- */
#splash-subheadline {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    margin: 0 0 2.5em;
    text-shadow: 0 1px 20px rgba(0,0,0,0.5);
}

/* ---- Enter button ---- */
#splash-enter-btn {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 1em 2.8em;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    /* Shimmer layer */
    background: transparent;
}

#splash-enter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

#splash-enter-btn:hover {
    color: #111;
    border-color: #fff;
}
#splash-enter-btn:hover::before {
    transform: scaleX(1);
}

/* ---- Dots navigation ---- */
#splash-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.splash-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.splash-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* ---- Progress bar ---- */
#splash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255,255,255,0.7);
    z-index: 4;
    transform-origin: left;
    animation: splashProgress linear forwards;
}

@keyframes splashProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---- Dismiss animation ---- */
#splash-overlay.dismissing {
    animation: splashDismiss 0.9s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes splashDismiss {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.03); pointer-events: none; }
}

/* ---- Removed state ---- */
#splash-overlay.removed {
    display: none;
}
