html {
    scroll-padding-top: 64px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides-container {
    display: flex;
    height: 100%;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide.active .slide-overlay {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide.active .animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-100 {
    transition-delay: 0.1s;
}

.animate-delay-200 {
    transition-delay: 0.2s;
}

.animate-delay-300 {
    transition-delay: 0.3s;
}

.animate-delay-400 {
    transition-delay: 0.4s;
}

.animate-delay-500 {
    transition-delay: 0.5s;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

.pagination-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 9;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #ffa500;
    transform: scale(1.2);
}

@media (min-width: 768px) {
    #prevBtn {
        left: 40px;
    }

    #nextBtn {
        right: 40px;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.popup-overlay.show .popup-container {
    transform: translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease-in-out;
}

.popup-close-btn:hover {
    color: #ef4444;
}

/* Mobile Menu Slider Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

#mobile-menu.is-open {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Mobile Menu Icon Animation (Hamburger to X) */
#mobile-menu-button span {
    display: block;
    width: 1.5rem;
    /* Tailwind's w-6 */
    height: 0.125rem;
    /* Tailwind's h-0.5 */
    background-color: rgb(55 65 81);
    /* Tailwind's gray-800 */
    transition: all 0.3s ease-out;
    transform-origin: center;
}

/* Jab button par 'open' class ho to icon ko X mein transform karein */
#mobile-menu-button.open span:nth-child(1) {
    transform: translateY(0.4rem) rotate(45deg);
}

#mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-100%);
}

#mobile-menu-button.open span:nth-child(3) {
    transform: translateY(-0.4rem) rotate(-45deg);
}