/* =========================================
   SmartNusa Design System
   ========================================= */

:root {
    --primary: #0D6DFF;
    --primary-dark: #0A52BF;
    --bg-light: #F0F6FF; 
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-grey: #4A5568;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.06);
    --radius-btn: 12px;
    --radius-card: 20px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
    background-color: var(--white); 
    overflow-x: hidden; 
    width: 100%; 
    position: relative;
}

h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text-dark); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius-btn); font-weight: 600; cursor: pointer; transition: all 0.3s ease; gap: 8px; border: none; }
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 15px rgba(13, 109, 255, 0.3); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-dark); color: var(--primary-dark); background: transparent; }
.btn-outline:hover { background: var(--bg-light); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(10, 82, 191, 0.15); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-white { background: white; color: var(--text-dark); border: none; }
.btn-white:hover { background: var(--bg-light); color: var(--primary); }

#navbar { height: 80px; position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 48px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 28px; color: var(--text-dark); }
.mobile-menu { display: none; } 

#hero { padding: 60px 0 100px 0; background: linear-gradient(180deg, var(--bg-light) 0%, #FFFFFF 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tagline-pill { background: rgba(13, 109, 255, 0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; display: inline-block; margin-bottom: 16px; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 24px; font-weight: 800; }
.hero-content p { font-size: 1.15rem; color: var(--text-grey); margin-bottom: 32px; }
.cta-group { display: flex; gap: 16px; margin-top: 24px; }
.hero-visual .image-wrapper { position: relative; }
.hero-visual img { width: 100%; border-radius: 30px; transform: rotate(2deg); box-shadow: var(--shadow-card); transition: 0.5s; }
.hero-visual img:hover { transform: rotate(0deg); }

.logo-watermark { position: absolute; bottom: 20px; right: 20px; background: rgba(255, 255, 255, 0.9); padding: 10px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 2; }
.logo-watermark img { width: 60px !important; height: auto !important; transform: none !important; border-radius: 0; }
.trust-signals { margin-top: 32px; display: flex; gap: 20px; color: var(--text-grey); font-size: 0.9rem; flex-wrap: wrap; }
.trust-signals i { color: var(--primary); font-size: 1.2rem; }

/* --- EXPERIENCE SECTION --- */
#experience { 
    padding: 80px 0; 
    /* Gunakan linear-gradient di atas gambar background agar teks lebih terbaca di desktop */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2000'); 
    background-size: cover; 
    background-position: center; 
    color: white; /* Mengubah warna teks section-header jadi putih di desktop */
}

#experience .section-header h2 {
    color: white; /* Memastikan judul berwarna putih agar kontras di desktop */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Tambahkan shadow agar lebih terbaca */
}

#experience .section-header p {
    color: #eee; /* Mengubah deskripsi jadi putih gading agar lebih halus di desktop */
}

.video-frame { 
    width: 100%; 
    max-width: 1000px; 
    margin: 40px auto 0; /* Tambahkan margin atas agar ada jarak dengan teks header */
    border-radius: 24px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.3); 
    border: 4px solid rgba(255, 255, 255, 0.1); /* Tambahkan border estetis */
}

.video-frame video { 
    width: 100%; 
    display: block; 
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) {
    .app-features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .app-features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* 1. HERO & GENERAL FIXES */
    html, body { overflow-x: hidden; position: relative; width: 100%; } /* <-- Kunci layar bocor khusus di HP */
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.3; }
    .hero-visual img { max-height: 350px; }
    .hero-grid, .demo-form, .collections-grid, .team-grid, .app-features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; margin-top: 40px; line-height: 1.2; }
    
    /* 2. NAVBAR & MOBILE MENU FIXES */
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu { 
        position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        padding: 30px 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        display: none; flex-direction: column; gap: 20px; z-index: 1001; overflow-y: auto; 
    }
    .mobile-menu.active { display: flex; }
    .mobile-menu a { font-size: 1.2rem; font-weight: 600; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 15px; }

    /* 3. EXPERIENCE SECTION FIXES */
    #experience {
        background: var(--bg-light);
        padding: 50px 0;
        color: var(--text-dark);
    }
    #experience .section-header h2 {
        color: var(--text-dark);
        text-shadow: none;
        font-size: 2.2rem;
    }
    #experience .section-header p {
        color: var(--text-grey);
        font-size: 1rem;
    }
    .video-frame {
        margin-top: 20px;
        border: none;
        border-radius: 16px;
    }

    /* 4. URUTAN BENTO GRID MOBILE FIXES (Why Choose SmartNusa) */
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-grid .main-value { order: 1; } /* AI + Human Touch */
    .bento-grid .ecosystem  { order: 2; } /* The Complete Ecosystem */
    .bento-grid .impact     { order: 3; } /* Empowering Locals */
    .bento-grid .safety     { order: 4; } /* Nusa Guard */
    .bento-grid .eco        { order: 5; } /* NusaGreen */
    
    .ecosystem li { font-size: 0.85rem; gap: 5px; } /* <-- Tambahan agar teks muat 1 baris di HP */

    /* 5. FOOTER & OTHERS */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links a:hover { transform: translateY(-2px); } 
    .legality-info { justify-content: center; margin-top: 15px; }
    .copyright { flex-direction: column; gap: 16px; text-align: center; }
    .social-icons { justify-content: center; }
    .scroll-card-sm, .scroll-card-md { flex: 0 0 85%; }
    .demo-badge { top: 10px; right: 10px; font-size: 0.75rem; padding: 4px 12px; }
    .demo-header { text-align: center; }
    .team-card-container { height: 450px; }

    /* === PERBAIKAN KOLEKSI HP: DARI KOTAK JADI PERSEGI PANJANG === */
    .collection-card {
        height: 250px; /* Atur tinggi persegi panjang di mobile agar gambar tidak terpotong */
        aspect-ratio: auto;
    }
}

/* =========================================
   Image Popup (Lightbox) 
   ========================================= */
.image-popup-overlay {
    display: none; 
    position: fixed;
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(3, 7, 18, 0.9); 
    backdrop-filter: blur(10px); 
}
.popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    border: 3px solid white;
    box-shadow: 0 20px 50px rgba(13, 109, 255, 0.3);
    animation-name: zoomInPopup;
    animation-duration: 0.5s;
}
.popup-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}
.popup-close:hover {
    color: var(--primary);
}
@keyframes zoomInPopup {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
body.popup-open {
    overflow: hidden;
}

#how-it-works { padding: 80px 0; background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; }
.step-card { background: var(--white); padding: 30px; border-radius: var(--radius-card); border: 1px solid #e2e8f0; text-align: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; z-index: 1; }
.step-card:hover { transform: translateY(-10px) scale(1.05) !important; box-shadow: 0 15px 35px rgba(13, 109, 255, 0.15); border-color: var(--primary); transition-delay: 0s !important; transition-duration: 0.3s !important; z-index: 10; }
.icon-box { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 32px; }
.step-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step-card p { font-size: 0.95rem; color: var(--text-grey); }

#impact { padding: 80px 0; background: var(--bg-light); }
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 40px; }
.bento-item { background: white; padding: 30px; border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; position: relative; z-index: 1; }
.bento-item:hover { transform: translate(-5px, -10px) scale(1.02) rotate(-1deg) !important; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition-delay: 0s !important; transition-duration: 0.3s !important; z-index: 10; }
.bento-item h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.bento-item p { color: var(--text-grey); font-size: 0.95rem; }
.bento-item i { color: var(--primary); font-size: 1.8rem; margin-bottom: 15px; display: block; }
.main-value { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.main-value img { width: 100%; border-radius: 16px; margin-top: 20px; height: 250px; object-fit: cover; }
.safety { background: #fff5f5; border: 1px solid #ffcccc; }
.safety i { color: #e53e3e; }
.ecosystem ul { margin-top: 15px; }
.ecosystem li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ecosystem i { margin: 0; font-size: 1.2rem; display: inline; }
.eco { background: #f0fff4; border: 1px solid #c6f6d5; }
.eco i { color: #27ae60; }

#collections { padding: 80px 0; background: white; }
.collections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.collection-card { position: relative; height: 350px; border-radius: 24px; overflow: hidden; cursor: pointer; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.collection-card:hover img { transform: scale(1.1); }
.col-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; }
.col-overlay h3 { color: white; font-size: 1.8rem; margin-bottom: 5px; }
.col-overlay p { margin-bottom: 15px; opacity: 0.9; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; color: #000; }
.section-header p { font-size: 1.2rem; color: var(--text-grey); }
.slider-nav-center { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ddd; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; font-size: 1.2rem; z-index: 10; position: relative; }
.nav-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.scrolling-wrapper { 
    display: flex; 
    overflow-x: auto; 
    gap: 30px; 
    padding-bottom: 20px; 
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory; /* Tambahan agar ada efek magnet/snap horizontal */
}
.scrolling-wrapper::-webkit-scrollbar { height: 8px; }
.scrolling-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.scrolling-wrapper::-webkit-scrollbar-track { background: transparent; }
.scroll-card-sm { 
    flex: 0 0 280px; 
    scroll-snap-align: start; /* Pastikan kartu berhenti pas di ujung kiri */
}
.scroll-card-md { 
    flex: 0 0 380px; 
    scroll-snap-align: start; /* Pastikan kartu berhenti pas di ujung kiri */
}

.dest-card, .story-card { background: white; border: 1px solid #eee; border-radius: 20px; overflow: hidden; transition: 0.3s; height: 100%; display: flex; flex-direction: column;}
.dest-card:hover, .story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.dest-card img, .story-img img { width: 100%; height: 240px; object-fit: cover; }
.dest-info, .story-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.dest-meta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--primary); }
.user-profile { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.user-profile img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stars { color: #f1c40f; font-size: 0.9rem; }

#app-showcase { padding: 80px 0; background: var(--bg-light); }
.app-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.feature-card { padding: 30px; background: white; border-radius: 16px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(0,0,0,0.04); display: flex; flex-direction: column; border: 1px solid #e2e8f0; z-index: 1; position: relative; }
.feature-card:hover { transform: translateY(-10px) scale(1.04) rotate(2deg) !important; box-shadow: 0 15px 35px rgba(13, 109, 255, 0.15); border-color: var(--primary); transition-delay: 0s !important; transition-duration: 0.3s !important; z-index: 10; }
.feat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feat-head i { font-size: 36px; color: var(--primary); }
.feat-head h3 { font-size: 1.2rem; margin: 0; }
.feature-card p { font-size: 0.9rem; color: var(--text-grey); margin: 0; line-height: 1.5; }

.demo-section { padding: 80px 0; background: var(--white); }
.demo-wrapper { position: relative; background: white; padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1px solid #eee; max-width: 900px; margin: 0 auto; }
.demo-badge { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(13, 109, 255, 0.1); }
.demo-header { margin-bottom: 30px; }

.btn-ai-chat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #00D4FF 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(13, 109, 255, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
}
.btn-ai-chat:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 212, 255, 0.5);
    color: white;
}
.btn-ai-chat i {
    font-size: 1.2rem;
    animation: pulse-icon 2s infinite;
}
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); text-shadow: 0 0 10px rgba(255,255,255,0.8); }
    100% { transform: scale(1); }
}

.demo-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; margin-top: 30px; align-items: end; }
.form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; display: block; }
.form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px; }
.itinerary-preview { margin-top: 30px; border-top: 1px solid #eee; padding-top: 30px; }
.hidden { display: none; }
.timeline { border-left: 2px solid var(--primary); padding-left: 24px; margin-left: 10px; }
.day-item { margin-bottom: 24px; position: relative; }
.day-item::before { content: ''; position: absolute; left: -31px; top: 12px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 1px var(--primary); }
.day-label { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; display: inline-block; background: #e7f0ff; padding: 6px 16px; border-radius: 8px; }
.schedule-list { margin-top: 8px; background: #f8fafc; border-radius: 12px; padding: 16px; border: 1px solid #e2e8f0; }
.schedule-item { display: flex; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #cbd5e0; }
.schedule-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.time-slot { font-size: 0.85rem; font-weight: 700; color: var(--primary); min-width: 60px; text-align: right; padding-top: 2px; }
.activity-desc { font-size: 0.95rem; color: var(--text-dark); line-height: 1.4; }

#prototype-section { 
    padding: 80px 0; 
    background: var(--bg-light); 
    text-align: center; 
}
.prototype-wrapper { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 30px; 
}
.poster-img { 
    width: 100%; 
    height: auto; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    border: 1px solid #e2e8f0; 
    transition: transform 0.4s ease; 
    display: block;
}
.poster-img:hover { 
    transform: scale(1.02); 
}

.btn-figma {
    background-color: #1E1E1E; 
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}
.btn-figma:hover {
    background-color: #000000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: #FFFFFF;
}
.btn-figma i { 
    font-size: 1.5rem; 
    color: #0ACF83; 
}

#team { padding: 80px 0; background: var(--white); overflow: hidden; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; perspective: 1000px; }
.team-card-container { width: 100%; height: 480px; cursor: pointer; } 
.team-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.team-card-container.flipped .team-card-inner { transform: rotateY(180deg); }
.team-card-front, .team-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform: translateZ(1px); transform: translateZ(1px); border-radius: 24px; overflow: hidden; }
.team-card-front { background: #f8fafc; color: var(--text-dark); display: flex; flex-direction: column; }
.team-img-wrapper { width: 100%; height: 380px; overflow: hidden; background: #e3f2fd; } 
.team-img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transition: transform 0.5s ease; }
.team-card-container:hover .team-img { transform: scale(1.05); } 
.team-info { padding: 20px; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); flex-grow: 1; display: flex; flex-direction: column; justify-content: center; z-index: 2; position: relative; box-shadow: 0 -10px 20px rgba(0,0,0,0.03); }
.team-info h4 { margin-bottom: 5px; font-size: 1.3rem; }
.team-info .role { font-size: 0.95rem; color: var(--primary-dark); font-weight: 700; }
.team-card-back { background: var(--primary); color: white; -webkit-transform: rotateY(180deg) translateZ(1px); transform: rotateY(180deg) translateZ(1px); display: flex; align-items: center; justify-content: center; padding: 30px; text-align: left; }
.back-content h4 { color: white; font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; line-height: 1.4; }
.back-content p { font-size: 1rem; line-height: 1.6; opacity: 0.9; }

.highlight-trio {
    font-weight: 800; 
    color: var(--primary); 
    cursor: pointer; 
    transition: all 0.3s ease;
    padding: 4px 10px; 
    border-radius: 8px;
    display: inline-block; 
}
.highlight-trio:hover {
    background-color: var(--primary);
    color: white !important; 
    box-shadow: 0 5px 15px rgba(13, 109, 255, 0.4); 
    transform: translateY(-2px); 
}

#stories { padding: 100px 0 80px 0; background: linear-gradient(rgba(0, 10, 30, 0.4), rgba(0, 10, 30, 0.4)), url('../assets/NusaPenida.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
#stories .section-header h2 { color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
#stories .section-header p { color: #f0f0f0; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
#stories .nav-btn { background: rgba(255, 255, 255, 0.9); border: none; }
#stories .nav-btn:hover { background: var(--primary); color: white; }

footer { background: #081020; padding: 60px 0 20px; color: #ffffff; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h4, .footer-links h5, .footer-newsletter h5 { color: #ffffff !important; font-weight: 700; margin-bottom: 20px; }
.footer-brand p, .copyright p { color: #cbd5e0; font-size: 0.95rem; }

.footer-links a { display: block; margin-bottom: 12px; color: #cbd5e0; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.copyright { border-top: 1px solid #2d3748; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

.legality-info { display: flex; align-items: center; gap: 8px; color: #cbd5e0; font-size: 0.95rem; }
.legality-info i { color: var(--primary); font-size: 1.8rem; display: flex; align-items: center; line-height: 0; transform: translateY(-2px); }

.social-icons { display: flex; gap: 16px; font-size: 24px; color: var(--primary); }
.social-icons a { display: inline-block; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.social-icons a:hover { 
    color: #00D4FF; 
    transform: translateY(-4px) scale(1.1); 
    filter: drop-shadow(0 5px 10px rgba(0, 212, 255, 0.4)); 
}

.footer-newsletter p { 
    color: #cbd5e0; 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
}
.btn-contact { 
    background-color: var(--primary); 
    color: #fff; 
    padding: 10px 24px; 
    border-radius: 50px; 
    font-size: 0.95rem; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.3s ease; 
    border: 1px solid var(--primary); 
    width: auto; 
    margin-top: 0; 
}
.btn-contact:hover { 
    background-color: transparent; 
    color: var(--primary); 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(13, 109, 255, 0.2); 
}

@media (max-width: 1200px) {
    .app-features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .app-features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) {
    .app-features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .app-features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* 1. HERO & GENERAL MOBILE FIXES */
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.3; }
    .hero-visual img { max-height: 350px; }
    .hero-grid, .demo-form, .collections-grid, .team-grid, .app-features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; margin-top: 40px; line-height: 1.2; }
    
    /* 2. NAVBAR & MOBILE MENU FIXES */
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu { 
        position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        padding: 30px 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        display: none; flex-direction: column; gap: 20px; z-index: 1001; overflow-y: auto; 
    }
    .mobile-menu.active { display: flex; }
    .mobile-menu a { font-size: 1.2rem; font-weight: 600; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 15px; }

    /* 3. EXPERIENCE SECTION MOBILE FIXES (Gambar Pantai di HP jadi Terang) */
    #experience {
        background: var(--bg-light);
        padding: 50px 0;
        color: var(--text-dark);
    }
    #experience .section-header h2 {
        color: var(--text-dark);
        text-shadow: none;
        font-size: 2.2rem;
    }
    #experience .section-header p {
        color: var(--text-grey);
        font-size: 1rem;
    }
    .video-frame {
        margin-top: 20px;
        border: none;
        border-radius: 16px;
    }

    /* 4. URUTAN BENTO GRID MOBILE FIXES (Why Choose SmartNusa) */
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-grid .main-value { order: 1; } /* AI + Human Touch */
    .bento-grid .ecosystem  { order: 2; } /* The Complete Ecosystem */
    .bento-grid .impact     { order: 3; } /* Empowering Locals */
    .bento-grid .safety     { order: 4; } /* Nusa Guard */
    .bento-grid .eco        { order: 5; } /* NusaGreen */
    .ecosystem li           { font-size: 0.85rem; gap: 5px; } /* <-- TAMBAHAN FIX NUSA BUDDY 1 BARIS */

    /* === 5. FIX CURATED COLLECTIONS MOBILE (Ubah Kotak JADI Persegi Panjang) === */
    .bento-grid.collections-grid {
        grid-template-rows: auto; /* Hilangkan rasio baris desktop */
        gap: 20px;
    }
    .collection-card, .collection-card img {
        height: 250px; /* Paksa tinggi persegi panjang horizontal */
        aspect-ratio: auto; /* Mematikan rasio kotak di desktop */
    }
    /* ========================================================================= */

    /* === 6. FIX POP-UP MOBILE TABRAKAN (Geser Gambar ke Tengah Bawah) === */
    .image-popup-overlay {
        padding: 80px 10px 20px; /* Jarak atas tebal untuk Close Button */
    }
    .popup-content {
        max-height: calc(100vh - 120px); /* Batasi tinggi total gambar di HP */
    }
    .popup-close {
        top: 20px;
        right: 20px;
        font-size: 50px; /* Tombol silang sedikit mengecil di HP */
    }
    /* ========================================================================= */

    /* 7. OTHERS (Footer, Slider, Badge, Team) */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links a:hover { transform: translateY(-2px); } 
    .legality-info { justify-content: center; margin-top: 15px; }
    .copyright { flex-direction: column; gap: 16px; text-align: center; }
    .social-icons { justify-content: center; }
    .scroll-card-sm, .scroll-card-md { flex: 0 0 85%; }
    .demo-badge { top: 10px; right: 10px; font-size: 0.75rem; padding: 4px 12px; }
    .demo-header { text-align: center; margin-top: 35px; } /* <-- TAMBAHAN FIX JARAK TRY IT NOW */
    
    /* FIX KARTU TEAM NABRAK & TEXT KEPOTONG DI HP */
    .team-grid { 
        gap: 80px; /* Jarak antar kartu diperbesar agar Nada tidak menyenggol Nadhif saat berputar */
        margin-top: 80px; /* Jarak ke atas diperbesar agar kartu Nadhif tidak menyenggol teks */
    } 
    .team-card-container { height: 500px; } 
}

/* =========================================
   Image Popup (Lightbox) - General Update (Global Style)
   ========================================= */
.image-popup-overlay {
    display: none; /* JS merubah jadi 'flex' */
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow-y: auto; /* Memungkinkan scroll jika gambar sangat panjang di HP */
    background-color: rgba(3, 7, 18, 0.9); 
    backdrop-filter: blur(10px); 
    box-sizing: border-box;
    padding: 100px 20px 20px; /* Padding atas tebal menampung tombol close */
    flex-direction: column; /* Menggunakan Flexbox untuk centering kuat */
    justify-content: center; /* Centering vertikal gambar di antara padding */
    align-items: center; /* Centering horizontal gambar */
}

/* Gambar Pop-up */
.popup-content {
    display: block;
    max-width: 100%; /* Gambar full width dalam padding */
    max-height: calc(100vh - 140px); /* Gambar full height dalam padding */
    border-radius: 20px;
    border: 3px solid white;
    box-shadow: 0 20px 50px rgba(13, 109, 255, 0.3);
    animation: zoomInPopup 0.5s ease-out;
    object-fit: contain; /* Don't stretch image */
    box-sizing: border-box;
    z-index: 2001;
}

/* Tombol Silang (Close) */
.popup-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    line-height: 1;
    z-index: 2002; /* Di atas image border */
}

.popup-close:hover {
    color: var(--primary);
}

@keyframes zoomInPopup {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Lock scroll halaman utama saat pop up terbuka */
body.popup-open {
    overflow: hidden;
}