/* GAYA DASAR */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Mencegah scrollbar horizontal */
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER DAN NAVIGASI */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    color: #4a5c9a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #3b4e85;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-menu a:hover {
    color: #4a5c9a;
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('IMG-20250812-WA0011.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    background-color: #4a5c9a;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #3b4e85;
    transform: translateY(-3px);
}

/* KONTEN UTAMA */
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #4a5c9a;
    margin: 10px auto 0;
    border-radius: 2px;
}

.profil-card, .card, .app-container, .contact-info, .video-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profil-card:hover, .card:hover, .app-container:hover, .contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.profil-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profil-image {
    width: 300px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

.profil-text p {
    margin-bottom: 15px;
}

.vision-mission-grid, .content-grid, .app-links {
    display: grid;
    gap: 30px;
}

.vision-mission-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-grid {
    grid-template-columns: 1fr 1fr;
}

.card h3 {
    color: #4a5c9a;
    display: flex;
    align-items: center;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.prestasi-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.prestasi-list li i {
    color: #f1c40f;
    margin-right: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* APLIKASI DAN KONTAK */
.app-links {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.app-link {
    display: block;
    text-align: center;
    background-color: #4a5c9a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.app-link:hover {
    background-color: #3b4e85;
    transform: translateY(-5px);
}

.app-link i {
    margin-right: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    color: #4a5c9a;
    margin-right: 15px;
    font-size: 1.2em;
}

.map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.youtube-responsive-container {
    position: relative;
    padding-bottom: 56.25%; /* Rasio aspek 16:9 */
    height: 0;
    overflow: hidden;
}

.youtube-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FOOTER */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* ANIMASI - pastikan .animate ditambahkan oleh JS */
.fade-in,
.slide-in,
.slide-in-left,
.slide-in-right,
.slide-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Tambahan untuk staggered animation */
.profil-card.animate { transition-delay: 0.2s; }
.card.animate:nth-child(1) { transition-delay: 0.4s; }
.card.animate:nth-child(2) { transition-delay: 0.6s; }
.card.animate:nth-child(3) { transition-delay: 0.8s; }
.content-grid .animate { transition-delay: 1s; }
.video-container.animate { transition-delay: 1.2s; }
.app-container.animate { transition-delay: 1.4s; }
.contact-info.animate { transition-delay: 1.6s; }


/* MEDIA QUERIES UNTUK RESPONSIVITAS */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px;
    }

    .nav-menu {
        margin-top: 15px;
        text-align: center;
    }

    .nav-menu a {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .profil-card, .content-grid {
        flex-direction: column;
        gap: 20px;
    }

    .profil-image {
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}