@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

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

body,
html {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

.slider-container {
    position: relative;
    width: 100vw;
    height: 81vh; /* Adjust as needed */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Ensure image covers the entire area */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure the image is behind the content */
}

.slide-content {
    background-color: rgba(245, 230, 230, 0.6);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    z-index: 2; /* Ensure the content is above the image */
}

.slide h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 100;
}

.nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-btn.active {
    background-color: #fff;
    transform: scale(1.3);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 97;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 0;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .slide h2 {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .arrow {
        font-size: 1.5rem;
        padding: 8px 16px;
    }
}
