/* Reset Basic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Container */
.gelato-header {
    position: relative;
    background-color: #f9f1ca; /* Warna Cream untuk Header */
    z-index: 10; 
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    text-decoration: none;
    color: #325374; /* Warna Biru Gelap untuk Logo */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #325374; /* Warna Biru Gelap untuk Teks Menu */
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #febe4b; /* Warna Kuning untuk efek Hover */
}

/* Melted SVG Effect (Pola Gelombang) */
.melt-divider {
    position: absolute;
    bottom: -39px; /* Tarik ke bawah sebesar tinggi minus 1px untuk mencegah celah putih */
    left: 0;
    width: 100%;
    height: 40px; /* Anda bisa memperbesar angka ini jika ingin gelombang lebih panjang/dalam */
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 60px; /* Ukuran logo yang lebih proporsional */
    width: auto;
    display: block;
}

.melt-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
}

/* Hero Section & Slider Container */
.hero-section {
    position: relative;
    height: 600px; /* Sesuaikan dengan tinggi banner yang diinginkan */
    background-color: #325374; /* Warna dasar fallback */
    overflow: hidden;
    z-index: 1;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Efek transisi halus (fade) */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* Efek Overlay "Tidak Terlalu Jelas" */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Tingkat kegelapan overlay (0.5 = 50%) */
    z-index: 2;
}

/* Konten di Atas Slider */
.hero-content {
    position: relative;
    z-index: 3; /* Pastikan berada di atas overlay dan gambar */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- GLOBAL UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.sub-heading {
    display: block;
    color: #febe4b;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.section-title-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-center h2 {
    color: #325374;
    font-size: 36px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #325374;
    color: #325374;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-outline:hover {
    background-color: #325374;
    color: #ffffff;
}

/* --- FEATURES SECTION --- */
.features-section {
    background-color: #ffffff;
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-box h3 {
    color: #325374;
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-box p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* --- STORY SECTION --- */
.story-section {
    background-color: #f9f1ca; /* Warna background header agar menyatu */
}

.story-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: #febe4b;
    color: #325374;
    padding: 25px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100px;
    height: 100px;
    box-shadow: 0 10px 20px rgba(254, 190, 75, 0.3);
}

.experience-badge span { font-size: 12px; }
.experience-badge strong { font-size: 24px; }

.story-content h2 {
    color: #325374;
    font-size: 40px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.story-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

/* --- MENU SECTION --- */
.menu-section {
    background-color: #ffffff;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
}

.menu-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-info {
    flex: 1;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.menu-header h4 {
    color: #325374;
    font-size: 18px;
    margin: 0;
}

.price {
    color: #febe4b;
    font-weight: 700;
    font-size: 16px;
}

.menu-info p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .features-grid, .story-wrapper, .menu-grid {
        grid-template-columns: 1fr;
    }
    .story-image {
        margin-bottom: 30px;
    }
    .experience-badge {
        right: 10px;
    }
}

/* --- EVENTS SECTION --- */
.events-section {
    background-color: #fcfcfc; /* Warna background abu-abu sangat terang agar kontras dengan section lain */
    padding-bottom: 80px; /* Memberikan ruang ekstra di bawah */
}

.section-description {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    font-size: 16px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.event-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.event-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.08); /* Efek zoom elegan pada gambar saat disorot */
}

.event-info {
    padding: 30px;
    text-align: center;
}

.event-info h3 {
    color: #325374;
    font-size: 22px;
    margin-bottom: 12px;
    }

.event-info p {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.event-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- RESPONSIVE MOBILE UNTUK EVENTS --- */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.floating-wa:hover {
    transform: scale(1.1);
}
.floating-wa svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* =========================================
   MAGIC TOUCH: BIKIN HALAMAN LEBIH ASIK
   ========================================= */

/* --- 1. Efek Ikon Melayang (Biar Playful) --- */
@keyframes floatAnim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.feature-icon {
    display: inline-block;
    animation: floatAnim 3s ease-in-out infinite;
}

/* Bikin tiap ikon melayangnya gantian (nggak barengan) */
.feature-box:nth-child(2) .feature-icon { animation-delay: 1s; }
.feature-box:nth-child(3) .feature-icon { animation-delay: 2s; }

/* --- 2. Efek Kilap (Shine) pada Tombol --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.btn-primary:hover::after {
    left: 200%; /* Kilapan bergerak dari kiri ke kanan saat di-hover */
}

/* --- 3. Kelas Persiapan untuk Animasi Scroll --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px); /* Posisi awal sedikit di bawah */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0); /* Kembali ke posisi asli */
}

/* Efek beruntun (cascade) untuk grid */
.features-grid .feature-box:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-box:nth-child(3) { transition-delay: 0.2s; }
.menu-grid .menu-item:nth-child(odd) { transition-delay: 0.1s; }
.menu-grid .menu-item:nth-child(even) { transition-delay: 0.2s; }
.events-grid .event-card:nth-child(2) { transition-delay: 0.1s; }
.events-grid .event-card:nth-child(3) { transition-delay: 0.2s; }

/* --- FOOTER MODULAR --- */
.gelato-footer {
    background-color: #325374; /* Biru Gelap */
    color: #ffffff;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #febe4b;
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #d1e0ed;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1e0ed;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #febe4b;
}

.footer-contact p {
    color: #d1e0ed;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: left;
    padding: 20px;
    background-color: #26405a; /* Biru lebih gelap untuk area copyright */
    color: #a4bccc;
    font-size: 14px;
}

.footer-brand .main-logo {
    height: 100px; /* Silakan naikkan angkanya jika masih kurang besar */
    width: auto;
    filter: brightness(0) invert(1); /* Efek filter ini akan mengubah gambar menjadi warna putih murni */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .hero-text-box h1 { font-size: 36px; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px;}
    .footer-brand p { margin: 0 auto; }
}

/* =========================================================================
   TAMBAHAN BARU (APPEND-ONLY): PELENGKAP RESPONSIVE MOBILE UNTUK INDEX.PHP
   ========================================================================= */
@media (max-width: 768px) {
    /* Header & Navigasi */
    .nav-container { 
        flex-direction: column; 
        gap: 15px; 
        padding: 15px; 
    }
    .nav-menu ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 15px; 
    }
    
    /* Global Container Padding */
    .container { 
        padding: 50px 20px; 
    }
    
    /* Penyesuaian Ukuran Font Judul */
    .section-title-center h2 { 
        font-size: 28px; 
    }
    .story-content h2 { 
        font-size: 30px; 
    }
    
    /* Layout Menu List */
    .menu-item { 
        flex-direction: column; 
        text-align: center; 
    }
    .menu-header { 
        flex-direction: column; 
        gap: 10px; 
    }
}

/* =========================================================================
   TAMBAHAN BARU (APPEND-ONLY): UPDATE DESAIN FITUR (FEATURES SECTION)
   ========================================================================= */
.features-section {
    background-color: #fafafa !important;
}

.feature-box {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #e8e8e8;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #fef0f0;
    border-radius: 50%;
    margin: 0 auto 20px auto !important;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}/* =========================================================================
   TAMBAHAN BARU (APPEND-ONLY): DIVIDER KOTAK-KOTAK GELOMBANG
   ========================================================================= */
.wavy-checkerboard {
    width: 100%;
    position: relative;
    z-index: 15;
    margin-top: -60px; /* Angka minus ini yang menarik gelombang ke atas gambar Hero */
    line-height: 0;
}

.wavy-checkerboard svg {
    display: block;
    width: 100%;
    height: 40px; /* Tinggi lekukan gelombang */
}

.wavy-checkerboard .pattern-box {
    width: 100%;
    height: 60px; /* Tinggi area pola kotak-kotak */
    background-color: #f9f1ca; /* Warna Cream bawaan tema */
    background-image: conic-gradient(
        #febe4b 90deg, 
        transparent 90deg 180deg, 
        #febe4b 180deg 270deg, 
        transparent 270deg
    );
    background-size: 60px 60px; /* Ukuran per kotak adalah 30px x 30px */
}