/* CSS Variables untuk Tema Warna */
:root {
    --primary-orange: #f59e0b;
    --primary-dark: #1f2937;
    --text-main: #374151;
    --bg-light: #fffdf5;
    --card-bg: #ffffff;
    --brown-btn: #795548; 
    --heading-brown: #5d4037; 
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reusable Components */
.btn {
    font-size: 1.2rem;
    display: inline-block;
    background-color: white;
    color: var(--primary-dark);
    padding: 17px 27px;
    border-radius: 100px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-orange { background-color: var(--primary-orange); color: white; }
.btn-brown { background-color: var(--brown-btn); color: white; font-weight: normal; padding: 8px 24px; }
.btn-white { background-color: white; color: black; }
.btn-outline { background: transparent; border: 1px solid white; color: white; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Hero Section */
.hero {
    background-image: url('images/bg.png'); 
    background-size: cover; 
    background-position: top center; 
    background-repeat: no-repeat;
    padding-bottom: 120px; 
    min-height: 800px; 
}

/* ========================================================
   NAVBAR UTAMA (Kondisi Awal: Transparan Tanpa Background)
   ======================================================== */
nav { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 5%; 
    z-index: 999; 
    background: transparent; 
    backdrop-filter: blur(0px); 
    -webkit-backdrop-filter: blur(0px);
    box-shadow: none; 
    transition: all 0.4s ease-in-out; 
}

/* KONDISI NAVBAR KETIKKA DI-SCROLL (Muncul Background & Efek Fade) */
nav.scrolled {
    padding: 12px 5%; 
    background: linear-gradient(to bottom, rgba(31, 41, 55, 0.95) 0%, rgba(31, 41, 55, 0.85) 75%, rgba(31, 41, 55, 0) 100%);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
}

.logo-img { 
    height: 65px; 
    object-fit: contain; 
    margin-left: 0; 
}
.nav-links { display: flex; gap: 30px; color: #FDA827; font-weight: bold; }

/* Hero Content */
.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    color: white; 
    padding-top: 160px; 
    margin-bottom: 25px; 
}
.hero-content h1 { font-size: 5.5rem; margin-bottom: 15px; line-height: 1.2; }
.hero-content p { margin-bottom: 25px; }

/* Main White Content Area */
.main-content-wrapper {
    background-color: transparent; 
    margin-top: -80px; 
    position: relative;
    z-index: 5;
    display: flow-root; 
    padding-bottom: 150px; 
    margin-bottom: -100px; 
}

.bg-blobs-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--card-bg);
    border-radius: 60px; 
    overflow: hidden; 
    z-index: -1; 
    border: 1px solid #f3f4f6; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); 
}

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: -1; }
.blob-1 { background: #FAD89C; width: 400px; height: 400px; top: 10%; right: -50px; }
.blob-2 { background: #f59e0b; width: 350px; height: 350px; top: 40%; left: -100px; opacity: 0.3; }
.blob-3 { background: #ffedd5; width: 500px; height: 500px; bottom: 5%; right: 20%; }
.blob-4 { background: #fed7aa; width: 300px; height: 300px; top: 60%; right: -50px; }

/* Floating Card Styling */
.floating-card-container { display: flex; justify-content: center; transform: translateY(-50%); }
.floating-card {
    background-color: #6B471C; border-radius: 20px; padding: 20px 30px;
    display: flex; align-items: center; gap: 20px; color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); max-width: 600px;
}
.floating-card img.hero-card-img { width: 130px; height: 130px; border-radius: 15px; object-fit: cover; }
.floating-card-text h4 { font-size: 1.3rem; margin-bottom: 5px; letter-spacing: 0.5px; }
.floating-card-text p { font-size: 0.95rem; line-height: 1.4; margin-bottom: 15px; }
.btn-join {
    background-color: white; color: #6B471C; padding: 6px 18px; border-radius: 20px;
    font-size: 0.9rem; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; border: none;
}

/* Collaborated With */
.collaborated-section { text-align: center; padding: 0 20px 50px 20px; margin-top: -30px; }
.collaborated-section p { font-size: 1rem; color: #4b5563; margin-bottom: 30px; }
.collaborated-logos { display: flex; justify-content: center; align-items: center; gap: 40px; }
.collaborated-logos img { height: 70px; object-fit: contain; }

/* Who Are We */
.who-we-are { text-align: center; padding: 20px 20px 60px 20px; }
.who-we-are h2 { 
    font-size: 2rem; 
    color: var(--heading-brown); 
    margin-bottom: 20px; 
}
.who-we-are p { max-width: 700px; margin: 0 auto; color: var(--heading-brown); font-size: 1.1rem; line-height: 1.6; }

/* Features */
.features { position: relative; padding: 80px 0; margin: 40px 0; }
.features-shape { position: absolute; left: -10%; top: 0; bottom: 0; width: 45%; background-color: #fce8bd; border-top-right-radius: 60px; border-bottom-right-radius: 60px; z-index: 0; }
.features-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.features-image-wrapper { flex: 1; display: flex; justify-content: center; }
.features-image-wrapper img { max-width: 320px; width: 100%; border-radius: 30px; box-shadow: 0 20px 40px rgba(252, 165, 2, 0.326); }
.features-text { flex: 1; padding-right: 40px; }
.features-text h2 { font-size: 3rem; color: var(--heading-brown); margin-bottom: 20px; line-height: 1.2; }
.features-text h2 span { color: var(--primary-orange); }
.features-text .sub-title { color: #d97706; font-size: 1.2rem; margin-bottom: 20px; font-weight: 500; }
.features-text .desc { font-size: 0.95rem; color: #6b7280; margin-bottom: 20px; }

/* Advantages */
.advantages { background-color: #D59629; border-radius: 30px; padding: 60px; color: white; margin: 60px auto; max-width: 1000px; }
.adv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.adv-header h2 { font-size: 3rem; line-height: 1.2; }
.adv-mascot { width: 250px; height: auto; }
.adv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.adv-card { background: #fce8bd; padding: 30px; border-radius: 20px; }
.adv-icon { width: 45px; margin-bottom: 15px; }
.adv-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--heading-brown); }
.adv-card p { font-size: 1rem; color: var(--heading-brown); line-height: 1.5; }

/* Home Blog */
.home-blog { padding: 80px 20px; }
.home-blog-header { text-align: center; margin-bottom: 50px; }
.home-blog-header h2 { font-size: 2.5rem; color: #6B471C; margin-bottom: 10px; }
.home-blog-header h2 span { color: var(--primary-orange); }
.home-blog-header p { color: #6B471C; font-size: 1rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: var(--card-bg); border-radius: 20px; overflow: hidden; border: 1px solid #f3f4f6; }
.blog-img-wrapper { position: relative; height: 200px; background-color: #fce8bd; }
.blog-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.blog-badge { position: absolute; top: 15px; left: 15px; background-color: var(--primary-orange); color: white; padding: 5px 12px; border-radius: 10px; font-size: 0.8rem; font-weight: bold; z-index: 2; }
.blog-content { padding: 25px; }
.blog-date { font-size: 0.85rem; color: #9ca3af; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.2rem; color: var(--heading-brown); margin-bottom: 15px; }
.blog-content p { font-size: 0.95rem; color: #6b7280; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-btn-container { text-align: center; margin-top: 50px; }

/* AMA Section */
.ama-section { text-align: center; }
.ama-section h2 { color: #6B471C; font-size: 2.5rem; line-height: 1.2; }
.ama-section p { color: #6B471C; font-size: 1rem; margin-top: 10px; }
.ama-partnership { display: flex; justify-content: center; gap: 30px; padding: 50px 20px; }
.ama-partnership img { max-width: 45%; border-radius: 15px; }

/* Logos Grid */
.logos-grid { padding: 60px 20px 80px 20px; max-width: 1000px; margin: 0 auto; }
.logos-header { text-align: left; margin-bottom: 50px; }
.logos-header h2 { font-size: 2.5rem; color: var(--heading-brown); margin-bottom: 10px; }
.logos-header p { color: #6b7280; font-size: 1rem; }
.grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 40px; align-items: center; justify-items: center; }
.grid-container img { max-width: 240px; max-height: 90px; width: auto; height: auto; object-fit: contain; }

/* CTA Banner */
.cta-banner { background-color: #fce8bd; border-radius: 20px; max-width: 1000px; margin: 120px auto 0 auto; padding: 40px 60px; display: flex; justify-content: flex-start; align-items: center; position: relative; }
.cta-banner-text { position: relative; z-index: 2; }
.cta-banner h2 { font-size: 3rem; color: var(--heading-brown); line-height: 1.2; }
.cta-banner h2 span { color: var(--primary-orange); }
.cta-mascot { position: absolute; bottom: 0; right: 50px; width: 380px; height: auto; z-index: 1; }

/* Footer */
footer { background-image: url('images/bg-bottom.png'); background-color: #2b253b; color: white; padding: 260px 20px 20px 20px; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }
.footer-mascot { height: 100px; }
.footer-desc { color: #9ca3af; font-size: 1rem; }
.footer-buttons { display: flex; gap: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; max-width: 1200px; margin: 0 auto; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.footer-logo { height: 100px; width: auto; object-fit: contain; }
.footer-copyright { text-align: left; font-size: 0.8rem; color: #9ca3af; }
.social-icons { display: flex; gap: 15px; align-items: center; justify-content: center; }
.social-icon { height: 24px; }

/* --- HAMBURGER MENU & OVERLAY --- */
.hamburger-menu {
    display: none; 
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100; 
}

.hamburger-menu span {
    width: 35px; 
    height: 4px;
    background-color: var(--primary-orange); 
    border-radius: 4px;
    transition: 0.3s;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; 
    height: 60vh; 
    border-bottom-left-radius: 40px; 
    border-bottom-right-radius: 40px; 
    background-image: url('images/nav-bg.png'); 
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    transform: translateY(-100%); 
    opacity: 0; /* KUNCI PERBAIKAN: Membuat menu transparan saat ditutup */
    visibility: hidden; /* KUNCI PERBAIKAN: Menyembunyikan elemen sepenuhnya */
    transition: all 0.5s ease-in-out; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
}

.mobile-nav-overlay.active {
    transform: translateY(0); 
    opacity: 1; /* Mengembalikan transparansi */
    visibility: visible; /* Memunculkan elemen kembali */
}

.close-menu {
    position: absolute;
    top: 30px; right: 30px;
    font-size: 50px;
    color: white; 
    background: none; border: none; cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.mobile-nav-links a {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================================================================
   SCALING RESPONSIF 
   ========================================================================= */
@media (max-width: 992px) {
    .container { padding: 0 3vw; }
    /* Mengubah lengkungan background putih utama di HP */
    .bg-blobs-container {
        border-radius: 30px; 
    }
    
    h1 { font-size: 11vw !important; }
    h2, .ama-section h2 { font-size: 8vw !important; }
    h3, .floating-card-text h4 { font-size: 3.5vw !important; }
    p, a, .nav-links, .desc, .sub-title { font-size: 3.4vw !important; }
    
    /* Navbar Mobile Initial */
    nav { padding: 5vw 5vw; }
    /* Navbar Mobile saat discroll */
    nav.scrolled { padding: 3vw 5vw; }
    
    .logo-img { height: 12vw; margin-left: 0; }
    .nav-links { display: none !important; }
    
    .hero { min-height: 60vw; padding-bottom: 50vw; }
    .btn { padding: 2vw 3vw; font-size: 3.3vw; }
    
    .floating-card { padding: 2vw 3vw; max-width: 90vw; gap: 3vw; }
    .floating-card img.hero-card-img { width: 15vw; height: 15vw; border-radius: 2vw; }
    .btn-join { font-size: 3.2vw; padding: 1vw 2vw; }
    .btn-join svg { width: 3.5vw; height: 3.5vw; }
    
    .collaborated-logos { gap: 3vw; }
    .collaborated-logos img { height: 6vw; }
    .who-we-are { padding: 3vw 2vw 6vw 2vw; }

    .features { padding: 6vw 0; margin: 4vw 0; }
    .features-content { gap: 4vw; }
    .features-text { padding-right: 0; }
    .features-image-wrapper img { max-width: 40vw; border-radius: 3vw; }
    .features-shape { border-top-right-radius: 5vw; border-bottom-right-radius: 5vw; }
    
    .advantages { padding: 4vw; border-radius: 3vw; margin: 15vw auto; width: 94%; }
    .adv-header { margin-bottom: 4vw; }
    .adv-cards { grid-template-columns: repeat(3, 1fr); gap: 2vw; }
    .adv-card { padding: 3vw; border-radius: 2vw; }
    .adv-icon { width: 5vw; margin-bottom: 1.5vw; }
    .adv-mascot { width: 35vw; }
    
    .home-blog { padding: 10vw 8vw; }
    .home-blog-header { margin-bottom: 6vw; }
    .blog-grid { grid-template-columns: 1fr; gap: 5vw; } 
    .blog-card { border-radius: 4vw; }
    .blog-img-wrapper { height: 25vw; } 
    .blog-badge { font-size: 2.5vw; padding: 1.5vw 3vw; top: 3vw; left: 3vw; border-radius: 2vw; }
    .blog-content { padding: 2vw; }
    .blog-date { font-size: 5.5vw; margin-bottom: 1vw; }
    .blog-content h3 { font-size: 5vw !important; margin-bottom: 1vw; }
    .blog-content p { font-size: 2.9vw !important; margin-bottom: 1vw; -webkit-line-clamp: 2; }
    .blog-btn-container { margin-top: 5vw; }
    
    .logos-grid { padding: 6vw 3vw; }
    .logos-header { margin-bottom: 4vw; }
    .grid-container { grid-template-columns: repeat(4, 1fr); gap: 1vw 1vw; }
    .grid-container img { max-height: 6vw; }
    
    .ama-partnership { gap: 2vw; padding: 4vw 3vw; }
    .ama-partnership img { max-width: 48%; border-radius: 2vw; }
    
    /* CTA Banner HP */
    .cta-banner { 
        padding: 6vw 5vw; 
        margin: 15vw auto 0 auto; 
        width: 94%; 
        border-radius: 3vw; 
    }
    .cta-banner-text {
        width: 55%; 
    }
    .cta-banner h2 {
        font-size: 5.5vw !important; 
        margin-bottom: 3vw;
    }
    .cta-banner .btn {
        font-size: 3vw;
        padding: 2vw 4vw;
    }
    .cta-mascot { 
        width: 48vw; 
        right: 2vw; 
        bottom: 0;
    }
    
    footer { padding: 40vw 3vw 3vw 3vw; }
    .footer-content { gap: 2vw; margin-bottom: 3vw; }
    .footer-mascot { height: 19vw; }
    .footer-logo { height: 8vw; margin-bottom: 1vw; }
    .social-icons { gap: 2vw; }
    .social-icon { height: 3vw; }
    .footer-copyright { font-size: 1.5vw !important; }

    .hamburger-menu { 
        display: flex; 
        margin-left: auto; 
        position: relative;
        z-index: 100;
    }
}