/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Radley&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    color: #e5e7eb;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: black;
}

.max-w-6xl {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .max-w-6xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

section {
    min-height: 100vh;
    scroll-snap-align: start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.mask-image-radial {
    position: relative;
    mask-image: radial-gradient(ellipse at 50% 45%, rgb(0, 0, 0) 35%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgb(0, 0, 0) 35%, rgba(0, 0, 0, 0) 100%);

}

.mask-image-radial::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0%) 70%, #000000 100%);
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(90deg, #FBBF24, #F87171);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery img {
    width: 12rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s;
}

@media (min-width: 640px) {
    .gallery img {
        width: 15rem;
        height: 10rem;
    }
}

#sejarah-toggle {
    z-index: 9999;
    position: relative;
}

.gallery img.visible {
    display: block;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.animate-logo {
    animation: logoSpin 8s ease-in-out infinite;
}

#facilityCarousel {
    transition: transform 0.5s ease-out;
}

.fasilitas-container {
    transition: transform 0.5s ease-out;
}

.touch-pan-y {
    touch-action: pan-y;
}

.jadwal-misa-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.jadwal-misa-card ul li {
    display: flex;
    align-items: center;
    color: #e5e7eb;
    font-size: 1.125rem;
    transition: transform 0.2s;
}

@media (min-width: 640px) {
    .jadwal-misa-card ul li {
        font-size: 1.25rem;
    }
}

.jadwal-misa-card ul li:hover {
    transform: translateX(0.5rem);
}

@media (max-width: 1024px) {
    .fasilitas-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .fasilitas-slide {
        grid-template-columns: 1fr !important;
    }
    .fasilitas-slide > div {
        height: 10rem;
    }
    .jadwal-misa-card {
        padding: 1rem;
    }
    .jadwal-misa-card h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    .jadwal-misa-card ul li {
        font-size: 1rem;
    }
}

@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-300px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(300px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes popupFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.visible .text-4xl,
.visible .text-3xl {
    animation: fadeInUp 0.8s ease-out forwards;
    
}

.visible .text-2xl,
.visible .text-xl {
    animation: fadeInUp 1s ease-out forwards 0.2s;
    font-size: 30px;
}

.visible p {
    animation: fadeInUp 1s ease-out forwards 0.4s;
}

.visible .slide-left {
    animation: slideInLeft 1.8s ease-out forwards;
}

.visible .slide-right {
    animation: slideInRight 1.8s ease-out forwards;
}

.visible .gallery img {
    animation: fadeInUp 1s ease-out forwards;
}

#facilityPopup,
#imageModal,
#popupModal {
    animation: popupFadeIn 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .gallery img {
        width: 16rem;
        height: 11rem;
    }
    .text-5xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .text-4xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    .text-3xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    .text-2xl {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    #facilityPopup .p-8 {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .gallery img {
        width: 20rem;
        height: 13rem;
    }
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
