/* =========================================
   GENERAL STYLES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #ffffff;

    overflow-x: hidden;
}


/* =========================================
   FLOATING HEADER
========================================= */

body.home-page #mainHeader {

    position: fixed;

    top: 12px;
    left: 50%;
    right: auto;

    transform: translateX(-50%);

    margin: 0;

    z-index: 1050;

}


/* =========================================
   HERO SECTION
========================================= */

.hero-section {

    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

}


/* =========================================
   HERO SLIDER
========================================= */

#heroSlider {

    position: relative;

    width: 100%;
    height: 600px;

    margin: 0;
    padding: 0;

    overflow: hidden;

}

#heroSlider .carousel-inner,
#heroSlider .carousel-item {

    width: 100%;
    height: 100%;

}

#heroSlider .carousel-item {

    position: relative;

}

#heroSlider.carousel-fade .carousel-item {

    transition: opacity 1s ease-in-out;

}


/* =========================================
   IMAGE AND VIDEO
========================================= */

#heroSlider .slide-media {

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

}


/* =========================================
   VIDEO OVERLAY
========================================= */

.slide-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.15);

    z-index: 1;

    pointer-events: none;

}


/* =========================================
   SLIDE CONTENT
========================================= */

.slide-content {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: calc(100% - 200px);

    text-align: center;

    z-index: 2;

    pointer-events: none;

}

.slide-content h1 {

    margin: 0;

    font-family: 'Poppins', sans-serif;

    font-size: clamp(30px, 5vw, 75px);

    font-weight: 800;

    text-transform: uppercase;

    line-height: 1.3;

}


/* WHITE TEXT */

.slide-content .hero-text-white {

    color: #ffffff;

}


/* BLACK TEXT */

.slide-content .hero-text-black {

    color: #000000;

}


/* =========================================
   TEXT ANIMATION
========================================= */

#heroSlider .carousel-item.active .slide-content h1 {

    animation: textAnimation 1.2s ease forwards;

}

@keyframes textAnimation {

    from {

        opacity: 0;

        transform: translateY(35px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================
   PREVIOUS AND NEXT BUTTONS
========================================= */

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {

    width: 70px;
    height: 70px;

    top: 50%;
    bottom: auto;

    transform: translateY(-50%);

    opacity: 1;

    z-index: 5;

}

#heroSlider .carousel-control-prev {

    left: 30px;

}

#heroSlider .carousel-control-next {

    right: 30px;

}


/* SLIDER ARROWS */

.slider-arrow {

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.10);

    color: #ffffff;

    border-radius: 50%;

    font-size: 20px;

    transition:

        background 0.3s ease,

        transform 0.3s ease;

}

.slider-arrow:hover {

    background: rgba(0, 0, 0, 0.45);

    transform: scale(1.05);

}


/* =========================================
   CIRCULAR THUMBNAILS
========================================= */

#heroSlider .custom-indicators {

    position: absolute;

    bottom: 25px;

    left: 50%;
    right: auto;

    transform: translateX(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    z-index: 6;

}

#heroSlider .custom-indicators [data-bs-target] {

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 0;

    border: 3px solid transparent;

    border-radius: 50%;

    background: transparent;

    opacity: 0.75;

    overflow: hidden;

    text-indent: 0;

    box-sizing: border-box;

    transition:

        opacity 0.3s ease,

        transform 0.3s ease,

        border-color 0.3s ease,

        box-shadow 0.3s ease;

}


/* THUMBNAIL IMAGES */

#heroSlider .custom-indicators button img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}


/* ACTIVE THUMBNAIL */

#heroSlider .custom-indicators button.active {

    opacity: 1;

    border: 3px solid #ffffff;

    transform: scale(1.12);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

}

#heroSlider .custom-indicators button:hover {

    opacity: 1;

}


/* =========================================
   SLIDER PROGRESS BAR
========================================= */

.slider-progress {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 7px;

    background: rgba(255, 255, 255, 0.12);

    z-index: 10;

    pointer-events: none;

}

#progressBar {

    height: 100%;
    width: 0;

    background: rgba(255, 255, 255, 0.5);

}

#progressBar.running {

    animation: progressAnimation 5s linear forwards;

}

#progressBar.paused {

    animation-play-state: paused;

}

@keyframes progressAnimation {

    from {

        width: 0;

    }

    to {

        width: 100%;

    }

}


/* =========================================
   PAUSE AND PLAY BUTTON
========================================= */

.slider-toggle {

    position: absolute;

    right: 25px;
    bottom: 25px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.35);

    color: #ffffff;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    z-index: 10;

    transition:

        background 0.3s ease,

        transform 0.3s ease;

}

.slider-toggle:hover {

    background: rgba(0, 0, 0, 0.65);

    transform: scale(1.05);

}


/* =========================================
   ABOUT SECTION
========================================= */

.about-section {

    position: relative;

    width: 100%;

    background: #ffffff;

}

.about-section h2 {

    font-size: 32px;

    font-weight: 700;

    color: #222222;

}

.about-section p {

    max-width: 750px;

    margin: 0 auto;

    font-size: 16px;

    line-height: 1.8;

}


/* =========================================
   HEADER TABLET RESPONSIVE
========================================= */

@media (max-width: 1199px) {

    body.home-page #mainHeader {

        top: 8px;

        left: 50%;

        transform: translateX(-50%);

        margin: 0;

    }

}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1024px) {

    #heroSlider {

        height: 500px;

    }

    .slide-content h1 {

        font-size: 45px;

    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .hero-section {

        width: 100%;

        margin: 0;
        padding: 0;

    }

    #heroSlider {

        height: 450px;

    }

    .slide-content {

        top: 55%;

        width: calc(100% - 110px);

    }

    .slide-content h1 {

        font-size: 35px;

    }


    /* MOBILE ARROWS */

    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next,
    .slider-arrow {

        width: 45px;
        height: 45px;

    }

    #heroSlider .carousel-control-prev {

        left: 10px;

    }

    #heroSlider .carousel-control-next {

        right: 10px;

    }

    .slider-arrow {

        font-size: 15px;

    }


    /* MOBILE THUMBNAILS */

    #heroSlider .custom-indicators {

        bottom: 20px;

        gap: 6px;

    }

    #heroSlider .custom-indicators [data-bs-target] {

        width: 38px;
        height: 38px;

    }


    /* MOBILE PAUSE BUTTON */

    .slider-toggle {

        width: 35px;
        height: 35px;

        bottom: 15px;
        right: 15px;

    }


    /* ABOUT SECTION */

    .about-section h2 {

        font-size: 25px;

    }

}


/* =========================================
   SMALL MOBILE RESPONSIVE
========================================= */

@media (max-width: 480px) {

    #heroSlider {

        height: 350px;

    }

    .slide-content h1 {

        font-size: 26px;

    }

    .about-section p {

        font-size: 14px;

    }

    body.home-page #mainHeader {

        top: 8px;

        margin: 0;

    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

#heroSlider button:focus-visible {

    outline: 2px solid #efbd32;

    outline-offset: 3px;

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }

    #heroSlider.carousel-fade .carousel-item {

        transition: none;

    }

    #heroSlider .carousel-item.active .slide-content h1 {

        animation: none;

    }

    .slider-arrow,
    .slider-toggle,
    #heroSlider .custom-indicators button {

        transition: none;

    }

}