/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: #111;
}


/* =========================
   INDIVIDUAL SLIDE
========================= */

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.12);
    transition:
        opacity 1.2s ease,
        transform 8s ease;
}


/* Active slide */

.slide.active {
    opacity: 1;
    visibility: visible;

    /* Background zooms OUT */
    transform: scale(1);
}


/* =========================
   DARK OVERLAY
========================= */

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

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.48) 45%,
            rgba(0, 0, 0, 0.12) 100%
        );
}


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

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;

    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #fff;

    text-align: center;

    /* Initial hidden state */
    opacity: 0;
    transform: translateY(100px);

    transition:
        opacity 0.8s ease,
        transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

/* Caption slides UP */

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   SMALL LABEL
========================= */

.hero-tag {
    display: inline-block;

    margin-bottom: 20px;

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

    letter-spacing: 3px;

    color: #fff;
}


/* =========================
   BIG TITLE
========================= */

.hero-content h1 {
    margin: 0 0 25px;

    max-width: 800px;

    font-size: clamp(55px, 7vw, 110px);
    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -2px;
}


/* =========================
   DESCRIPTION
========================= */

.hero-content p {
    max-width: 600px;

    margin: 0 0 35px;

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

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


/* =========================
   BUTTON
========================= */

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: max-content;

    padding: 16px 30px;

    text-decoration: none;

    color: #111;
    background: #fff;

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

    transition: 0.3s ease;
}


.hero-btn:hover {
    background: #111;
    color: #fff;
}


/* =========================
   ARROW NAVIGATION
========================= */

.slider-nav {
    position: absolute;
    z-index: 5;

    right: 50px;
    bottom: 50px;

    display: flex;
    gap: 10px;
}


.slider-nav button {
    width: 55px;
    height: 55px;

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

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

    color: #fff;

    font-size: 22px;

    cursor: pointer;

    transition: 0.3s ease;
}


.slider-nav button:hover {
    background: #fff;
    color: #111;
}


/* =========================
   DOT NAVIGATION
========================= */

.slider-dots {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 40px;

    transform: translateX(-50%);

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

    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

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

    cursor: pointer;

    transition: 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}


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

@media (max-width: 768px) {

    .hero-slider {
        min-height: 600px;
    }


    .hero-content {
        padding: 0 30px;
    }


    .hero-content h1 {
        font-size: clamp(42px, 9vw, 65px);
    }


    .hero-content p {
        font-size: 16px;
    }


    .slider-nav {
        right: 25px;
        bottom: 30px;
    }


    .slider-dots {
        left: 30px;
        bottom: 55px;
    }

}


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

@media (max-width: 500px) {

    .hero-slider {
        height: 100svh;
        min-height: 580px;
    }


    .hero-content h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }


    .hero-tag {
        font-size: 11px;
        letter-spacing: 2px;
    }


    .slider-nav button {
        width: 45px;
        height: 45px;
    }


    .dot {
        width: 30px;
    }

}