/* Base Variables */
:root {
    --primary: #00a1d6; 
    --primary-dark: #0087b3;
    --primary-light: #5cc2e6;
    --secondary: #fb7299; 
    --bg-main: #f0f9ff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    
    /* Extreme Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15); /* Lebih transparan */
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-hover-bg: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 161, 214, 0.15);
    --glass-blur: 20px; /* Blur lebih kuat untuk frosted effect */
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Shapes Floating Animation */
@keyframes floatAnim {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.7;
    animation: floatAnim 10s infinite ease-in-out alternate;
}
.shape-1 { width: 500px; height: 500px; background: #93c5fd; top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 450px; height: 450px; background: #e0f2fe; bottom: -50px; right: -100px; animation-delay: -3s; }
.shape-3 { width: 350px; height: 350px; background: #fbcfe8; top: 40%; left: 50%; transform: translate(-50%, -50%); opacity: 0.6; animation-delay: -6s; }

/* Glassmorphism Classes (With Background Shine instead of pseudo-element) */
.glass-card {
    /* Latar belakang gradient yang bisa bergerak untuk efek kilap */
    background: linear-gradient(
        105deg,
        var(--glass-bg) 0%,
        var(--glass-bg) 40%,
        rgba(255, 255, 255, 0.9) 50%, /* Garis kilat putih tebal */
        var(--glass-bg) 60%,
        var(--glass-bg) 100%
    );
    background-size: 300% 100%;
    background-position: 100% 0; /* Mulai dari kanan (sembunyi) */
    
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-position 0.6s ease;
    position: relative;
}
.glass-card:hover, .glass-card.simulate-hover {
    transform: translateY(-8px) scale(1.02);
    background-position: 0 0; /* Efek kilat berjalan ke kiri */
    box-shadow: 0 15px 45px 0 rgba(0, 161, 214, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Tombol Berdenyut (Pulse) */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 161, 214, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 161, 214, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 161, 214, 0); }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    backdrop-filter: blur(5px);
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); 
    color: white; 
    box-shadow: 0 6px 20px rgba(0, 161, 214, 0.3); 
    animation: pulse 2.5s infinite; 
}
.btn-primary:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 10px 25px rgba(0, 161, 214, 0.6); 
    animation: none; /* Matikan denyut saat di-hover */
}
.btn-secondary { background: rgba(255, 255, 255, 0.5); color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: white; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); padding: 15px 32px; font-size: 1.05rem; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); text-decoration: none; z-index: 1001; }
.logo span { color: var(--secondary); }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { text-decoration: none; color: var(--text-main); font-size: 0.95rem; font-weight: 600; transition: 0.3s; position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background: var(--primary); transition: 0.3s; }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }
.nav-btn { padding: 10px 22px; font-size: 0.9rem; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-dark); z-index: 1001; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 70px 20px; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Hero Slider */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Slider container */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Setiap slide: gambar penuh, transisi silang */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    /* Ken Burns subtle zoom */
    animation: kenBurns 6s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }

@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* Dark gradient overlay agar teks terbaca */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 50, 100, 0.45) 0%,
        rgba(0, 30, 80, 0.55) 60%,
        rgba(0, 10, 50, 0.7) 100%
    );
}

/* Konten di atas slider */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 140px 20px 80px;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero h1 span { color: var(--primary-light); }

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }

/* Slider Dots */
.slider-dots { display: flex; justify-content: center; gap: 10px; }
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: white;
    transform: scale(1.3);
}

/* Grid */
.grid-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.grid-container > * { width: 320px; max-width: 100%; }

/* Tips */
.tip-card { padding: 25px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.tip-number { font-size: 2.2rem; font-weight: 900; color: rgba(0, 161, 214, 0.2); line-height: 1; margin-bottom: 15px; }
.tip-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-dark); }
.tip-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }

/* Tutorial */
.tutorial-video { padding: 15px; border-radius: 16px; margin: 0 auto; max-width: 1000px; }
.tutorial-video iframe { border-radius: 12px; display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Hadiah */
.prize-card { padding: 40px 25px 30px; text-align: center; position: relative; margin-top: 15px; }
.badge-top { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 6px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,161,214,0.3); z-index: 2; white-space: nowrap; }
.prize-card h2 { font-size: 2.2rem; color: var(--primary-dark); margin: 10px 0 5px; }
.prize-card h4 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.divider { width: 40px; height: 3px; background: var(--primary-light); margin: 15px auto; border-radius: 3px; }
.prize-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; color: var(--text-muted); }
.ig-link { display: inline-block; font-weight: 600; font-size: 0.9rem; color: var(--secondary); text-decoration: none; padding: 8px 18px; background: rgba(251, 114, 153, 0.1); border-radius: 12px; transition: 0.3s; }
.ig-link:hover { background: var(--secondary); color: white; }

.physical-prize { margin-top: 40px; padding: 25px; text-align: center; background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(224,242,254,0.7)); border: 1px solid rgba(92,194,230,0.5); }
.physical-prize h3 { color: var(--primary-dark); margin-bottom: 8px; font-size: 1.2rem; }
.physical-prize p { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text-main); }
.physical-prize span { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Kategori Tabs */
.cat-tabs { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 35px; }
.cat-tab { padding: 10px 24px; border-radius: 30px; border: 2px solid var(--primary); background: transparent; color: var(--primary-dark); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.cat-tab:hover, .cat-tab.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(0,161,214,0.3); transform: translateY(-2px); }

.cat-panel { display: none; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cat-panel.active { display: flex; animation: fadeInTab 0.4s ease; }
.cat-panel > * { width: 300px; max-width: 100%; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.cat-item { padding: 20px 20px; }
.cat-item h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; }
.cat-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Register */
.register-section { padding: 50px 30px; text-align: center; border-top: 4px solid var(--primary); margin-top: 20px; }
.register-section h2 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 10px; }
.requirements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 45px 0 30px; text-align: left; }
.req-card { padding: 30px 20px 20px; position: relative; }
.req-badge { position: absolute; top: -16px; left: 20px; background: var(--primary-dark); color: white; padding: 6px 16px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.req-card ul { list-style: none; margin-top: 10px; }
.req-card li { margin-bottom: 10px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.req-card li i { color: var(--primary); }
.hashtag-box { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.hashtag-box span { background: rgba(0,161,214,0.1); color: var(--primary-dark); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(0,161,214,0.2); }

.info-universal { padding: 15px; margin-bottom: 30px; text-align: center; background: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.9rem; color: var(--primary-dark); border-radius: 12px; }

.cta-text { font-size: 1.05rem; margin-bottom: 15px; }
.ref-code { display: inline-block; padding: 12px 25px; font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; color: var(--primary-dark); margin: 0 auto 30px; border: 2px dashed var(--primary); }
.ref-code span { color: var(--secondary); }

/* Footer */
footer { padding: 35px 20px; text-align: center; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.6); }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.footer-bottom { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   MOBILE RESPONSIVE — Menyeluruh & Proporsional
   ============================================= */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .section { padding: 60px 20px; }
    .section-header h2 { font-size: 1.8rem; }
    .grid-container > * { width: 280px; }
    .cat-panel > * { width: 260px; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {

    /* --- Navbar ---  */
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 78%; max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255,255,255,0.5);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 90px 25px 40px;
        gap: 5px;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    }
    .nav-menu.active { right: 0; }
    .nav-link {
        width: 100%;
        padding: 12px 5px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        font-size: 1rem;
    }
    .nav-btn {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    /* --- Hero Slider --- */
    .hero { min-height: 100svh; }
    .hero-content { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
    .badge { font-size: 0.78rem; padding: 7px 14px; }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .dot { width: 8px; height: 8px; }

    /* --- Sections --- */
    .section { padding: 50px 16px; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 0.95rem; }

    /* --- Grid: 1 kolom, kartu melebar penuh --- */
    .grid-container { gap: 15px; }
    .grid-container > * { width: 100%; max-width: 100%; }

    /* --- Tips Card Mobile --- */
    .tip-card { padding: 20px; }
    .tip-number { font-size: 1.8rem; margin-bottom: 8px; }
    .tip-card h3 { font-size: 1rem; }
    .tip-card p { font-size: 0.875rem; }

    /* --- Hadiah Card Mobile --- */
    .prize-card { padding: 38px 20px 24px; }
    .prize-card h2 { font-size: 1.8rem; }
    .prize-card h4 { font-size: 0.8rem; }
    .prize-card p { font-size: 0.875rem; }
    .ig-link { font-size: 0.85rem; }
    .physical-prize { padding: 20px 16px; }
    .physical-prize h3 { font-size: 1.05rem; }
    .physical-prize p { font-size: 0.9rem; }

    /* --- Kategori Tabs Mobile --- */
    .cat-tabs { gap: 8px; flex-wrap: wrap; }
    .cat-tab { padding: 8px 14px; font-size: 0.82rem; gap: 5px; }
    .cat-panel { gap: 12px; }
    .cat-panel > * { width: 100%; max-width: 100%; }
    .cat-item { padding: 18px 16px; }
    .cat-item h3 { font-size: 0.95rem; }
    .cat-item p { font-size: 0.82rem; }

    /* --- Tutorial Video --- */
    .tutorial-video { padding: 10px; }

    /* --- Register Section Mobile --- */
    .register-section { padding: 35px 16px; }
    .register-section h2 { font-size: 1.5rem; }
    .register-section > p { font-size: 0.9rem; }

    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 40px;
    }
    .req-card { padding: 30px 16px 18px; }
    .req-card li { font-size: 0.85rem; }
    .hashtag-box span { font-size: 0.75rem; }

    .info-universal { font-size: 0.85rem; padding: 12px; }
    .cta-text { font-size: 0.95rem; }
    .ref-code { font-size: 0.95rem; padding: 10px 16px; letter-spacing: 1px; }

    /* Tombol di register section: stack ke bawah */
    .register-section [style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .btn-whatsapp { width: 100%; max-width: 340px; font-size: 0.95rem; padding: 14px 20px; }
    .btn-primary[style] { width: 100%; max-width: 340px; font-size: 0.95rem !important; padding: 14px 20px !important; }

    /* --- Footer --- */
    footer { padding: 28px 16px; }
    .footer-logo { font-size: 1.1rem; }
    footer p { font-size: 0.85rem; }
}

/* Small Mobile (max 420px) */
@media (max-width: 420px) {
    .hero h1 { font-size: 1.7rem; }
    .nav-container { padding: 14px 16px; }
    .logo { font-size: 1.2rem; }
    .section { padding: 40px 12px; }
    .section-header h2 { font-size: 1.4rem; }
}

