/* ==========================================================================
   CSS VARIABLES & SETUP
   ========================================================================== */
   :root {
    /* Color Palette */
    --bg-main: #FAFAFA;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    
    --accent-primary: #0F172A; /* Deep Navy */
    --accent-secondary: #065F46; /* Dark Emerald for WA/Actions */
    --accent-soft: #F3F4F6; /* Warm off-white */
    
    --card-bg: #FFFFFF;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Layout */
    --nav-height: 72px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
/* 1. Mengaktifkan smooth scroll pada seluruh halaman */
html {
  scroll-behavior: smooth;
  
  /* 2. ANTI-BUG HEADER: 
     Memberikan jarak aman di bagian atas agar saat scroll ke ID tertentu, 
     kontennya tidak tertutup oleh navbar/header yang posisinya 'fixed' atau 'sticky'.
     (Ganti 80px dengan tinggi navbar web kamu) */
  scroll-padding-top: 80px; 
  
  /* Opsional: Mencegah efek "memantul" (bounce) di browser mobile 
     saat scroll mentok di paling atas atau bawah */
  overscroll-behavior-y: none;
}

/* 3. ANTI-BUG AKSESIBILITAS: 
   Mendeteksi jika pengguna mematikan animasi di sistem operasi mereka 
   (misalnya karena alasan kesehatan/pusing). Ini adalah standar web yang baik. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   UTILITY & TYPOGRAPHY
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #FFF;
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-main);
    color: var(--accent-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-soft);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-soft);
}

.btn-whatsapp {
    background-color: var(--accent-secondary);
    color: #FFF;
}

.btn-whatsapp:hover {
    background-color: #044131;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   NAVBAR (HEADER)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--accent-primary);
}

.btn-nav-contact {
    background-color: var(--accent-primary);
    color: #FFF;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
}

.btn-nav-contact:hover {
    background-color: #1e293b;
    color: #FFF;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 9px; }
.hamburger .bar:nth-child(3) { top: 18px; }

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge span {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Floating Visuals */
.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    background: var(--card-bg);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}

.fc-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.fc-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fc-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.fc-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(212, 175, 55, 0.15); /* Soft gold tint */
    color: #9A7B4F;
    border-radius: 4px;
    width: max-content;
}

.fc-badge.green {
    background: rgba(6, 95, 70, 0.1);
    color: var(--accent-secondary);
}

.fc-badge.off-white {
    background: var(--bg-main);
    color: var(--text-muted);
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

.card-3 {
    top: 45%;
    left: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   WHY SECTION
   ========================================================================== */
.why-section {
    padding: 4rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: #FFF;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   KATEGORI UTAMA SECTION
   ========================================================================== */
.categories-container {
    padding: 5rem 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    background: var(--card-bg);
}

.cat-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   FEATURED / PILIHAN MENARIK SECTION
   ========================================================================== */
.featured-section {
    padding: 5rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.featured-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feat-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feat-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feat-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   KONTAK SECTION
   ========================================================================== */
.contact-section {
    padding: 2rem 0 6rem 0;
}

.contact-card {
    background: linear-gradient(145deg, var(--accent-primary), #1e293b);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: #FFF;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   REVEAL ANIMATION (SCROLL)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE (MOBILE FIRST APPROACH OVERRIDES)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2rem auto;
    }
    
    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        height: 350px;
    }
    
    .card-1 { top: 0; left: 0; }
    .card-2 { bottom: 10%; right: 0; }
    .card-3 { top: 40%; left: 50%; transform: translateX(-50%); animation-name: none; }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        gap: 2rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .why-grid, 
    .categories-grid, 
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0.5rem auto;
    }
}