/* --- 1. SETUP & VARIABLES --- */
:root {
    --primary: #134e4a;       /* Teal Tua */
    --primary-light: #2dd4bf; 
    --accent: #f0fdf4;        /* Hijau Pucat */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--primary); }

/* --- 2. HERO SECTION --- */
.hero {
    position: relative; height: 85vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    border-radius: 0 0 40px 40px;
}

.hero-bg-parallax {
    position: absolute; top: 0; left: 0; width: 100%; height: 110%;
    
    /* UBAH BAGIAN INI */
    /* center 70% artinya: Tengah secara horizontal, dan turun ke 70% secara vertikal */
    background: url('assets/gunung bintan.png') center 100% / cover no-repeat;
    
    z-index: 0; animation: scaleIn 20s infinite alternate;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(19, 78, 74, 0.3), rgba(19, 78, 74, 0.8));
}

.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 600px; }
.badge-hero {
    background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 50px;
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 { 
    font-size: 3rem; color: var(--white); margin: 20px 0 10px; line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Tombol Hero */
.hero-buttons {
    display: flex; gap: 15px; justify-content: center; margin-top: 25px; flex-wrap: wrap;
}
.btn-cta {
    padding: 12px 28px; font-size: 1rem; font-weight: 600; border-radius: 50px;
    cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center;
}
.btn-cta.primary {
    background: var(--white); color: var(--primary); border: 2px solid var(--white);
}
.btn-cta.outline {
    background: rgba(255, 255, 255, 0.1); color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px);
}
.btn-cta:active { transform: scale(0.95); }

/* --- 3. STICKY NAV --- */
.sticky-nav {
    position: sticky; top: 20px; z-index: 100;
    display: flex; justify-content: center; margin-top: -30px;
}
.nav-grid {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    padding: 8px; border-radius: 50px; display: flex; gap: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.5);
}
.nav-btn {
    padding: 10px 24px; border-radius: 40px; border: none; background: transparent;
    font-weight: 600; font-family: 'Outfit', sans-serif; color: var(--text-muted);
    cursor: pointer; transition: all 0.3s;
}
.nav-btn.active { background: var(--primary); color: var(--white); }

/* --- 4. GRID LAYOUT & CARD --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content { padding-top: 40px; padding-bottom: 80px; }

.filter-bar { margin-bottom: 30px; position: relative; max-width: 300px; margin-left: auto; }
select {
    width: 100%; padding: 12px 15px; appearance: none;
    background: var(--white); border: 1px solid #e5e7eb; border-radius: 12px;
    font-family: inherit; color: var(--text-main); font-weight: 500; cursor: pointer;
}
.filter-icon {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none;
}

.grid-wrapper {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; min-height: 50vh;
}

.card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease; cursor: pointer;
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-8px); }
.card-img-wrapper { height: 220px; overflow: hidden; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.05); }

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.category-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    color: var(--primary); background: var(--accent);
    padding: 6px 12px; border-radius: 8px; margin-bottom: 12px;
    text-transform: uppercase; align-self: flex-start;
}
.card-footer {
    padding-top: 15px; border-top: 1px solid #f3f4f6; font-size: 0.9rem;
    font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 8px;
}

/* --- 5. MODALS --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s; padding: 20px;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-card {
    background: var(--white); width: 100%; max-width: 650px; max-height: 90vh;
    border-radius: 24px; overflow-y: auto; position: relative;
    transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.active .modal-card { transform: scale(1); }

/* Khusus Modal Video */
.modal-card.video-card { max-width: 800px; background: black; overflow: hidden; }

.btn-close-floating {
    position: absolute; top: 15px; right: 15px; z-index: 10;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.9); font-size: 1.5rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.video-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.modal-body { padding: 30px; }
.btn-action {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; border-radius: 12px; text-decoration: none; font-weight: 600; margin-top: 10px;
}
.btn-maps { background: #f3f4f6; color: var(--text-main); }
.btn-wa { background: #25D366; color: white; }

/* Animation Utils */
@keyframes scaleIn { from {transform: scale(1);} to {transform: scale(1.1);} }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
@keyframes fadeInUp { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- TEAM SECTION --- */
.team-section {
    background-color: var(--white); /* Bisa ganti var(--accent) kalau mau agak hijau */
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Jarak antar anggota */
}

.team-card {
    width: 160px; /* Ukuran kartu */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-photo-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent); /* Ring hijau di sekeliling foto */
    padding: 3px; /* Jarak antara foto dan ring */
    background: white;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card:hover .team-photo-wrapper {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--primary);
}

.team-card h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif; /* Pakai font modern, bukan serif */
    font-weight: 700;
}

.role {
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .sticky-nav { top: 10px; }
    .grid-wrapper { grid-template-columns: 1fr; }
}

/* --- FOOTER (Versi Ramping) --- */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 15px 20px; /* Jarak atas-bawah dikurangi drastis (dari 40px jadi 15px) */
    margin-top: 40px;
    font-size: 0.85rem; /* Ukuran font dasar diperkecil */
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Jarak antar teks judul dan deskripsi dirapatkan */
}

footer h3 {
    font-size: 1rem; /* Judul tidak terlalu besar */
    margin: 0;
    font-weight: 600;
}

footer p {
    margin: 0;
    opacity: 0.8; /* Sedikit transparan agar tidak mendominasi */
    font-size: 0.75rem; /* Teks copyright lebih kecil lagi */
    line-height: 1.4;
}

/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 768px) {
    
    /* 1. Atur Posisi Foto Khusus HP */
    .hero-bg-parallax {
        /* Format: posisi-horizontal posisi-vertikal */
        /* Coba ganti 50% (horizontal) dan 100% (vertikal/bawah) */
        background-position: 50% 100% !important; 
    }

    /* 2. (Opsional) Kurangi Tinggi Hero di HP */
    /* Kadang 85vh terlalu tinggi di HP, membuat gambar makin ter-zoom */
    .hero {
        height: 60vh; /* Turunkan dari 85vh ke 60vh atau 70vh */
        border-radius: 0 0 25px 25px; /* Lengkungan diperkecil sedikit */
    }
    
    .hero h1 {
        font-size: 2rem; /* Memperkecil font judul agar proporsional */
    }
}