/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-color: #f5f5f7;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #bf4800; /* Wisefit Orange */
    --link-blue: #0071e3;
    
    /* Layout */
    --max-width: 980px; /* Kembali ke lebar fix yang rapi */
    --radius-md: 20px;
    --radius-lg: 24px;
    
    /* Animations */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s var(--ease-spring);
    
    /* Shadows */
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover-dark: 0 25px 50px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden; /* Mencegah scroll samping */
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text-main); }

.nav-cta .btn-small {
    background: #000;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 0.3s;
}

.nav-cta .btn-small:hover { opacity: 0.8; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

/* Cari bagian .hero-logo dan timpa dengan yang ini */
.hero-logo {
    width: 250px;
    height: auto;
    
    /* PERBAIKAN: margin: 0 auto agar logo ketarik ke tengah */
    margin: 0 auto 2rem auto; 
    
    mix-blend-mode: multiply; 
    display: block; /* Pastikan tetap block agar margin auto bekerja */
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-buttons .btn-primary {
    background-color: var(--link-blue);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 15px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.hero-buttons .btn-primary:hover { background-color: #005bb5; }

.hero-buttons .btn-text {
    color: var(--link-blue);
    text-decoration: none;
    font-size: 1rem;
}

.hero-buttons .btn-text:hover { text-decoration: underline; }

/* =========================================
   4. SHOWCASE & CARDS (STRUCTURE)
   ========================================= */
.showcase {
    padding: 100px 20px;
    background: white;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 { font-size: 3rem; font-weight: 700; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default 2 Kolom (Desktop) */
    gap: 20px;
    height: 600px;
}

/* Base Card */
.card {
    background: #f5f5f7;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    /* PENTING: Jangan pakai flex-direction column global agar tidak berantakan */
    transition: all var(--transition-smooth);
    z-index: 1;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

/* Card Small (Standard) */
.card-small {
    height: 100%;
    background: #fafafa;
    padding: 40px;
}

/* Card Large (Black/Best Seller) */
.card-large {
    grid-column: 1 / -1; /* Full width */
    height: 100%;
    background: #000;
    color: white;
    display: flex; /* Flex agar teks di kiri, gambar di kanan */
    align-items: center;
    padding: 40px;
}

.card-large:hover { box-shadow: var(--shadow-hover-dark); }

.card-content {
    position: relative;
    z-index: 10;
}

.card-large .card-content { max-width: 40%; }
.card-small .card-content { max-width: 100%; }

.card-content h3 { font-size: 2rem; margin-bottom: 10px; }

/* Effects on Card Large */
.card-large .card-content h3, .card-large .card-content p { transition: all 0.4s ease; }
.card-large:hover .card-content h3 { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); transform: translateX(5px); }
.card-large:hover .card-content p { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

.tag-promo {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.link-arrow {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}
.link-arrow:hover { color: var(--accent-color); }

/* Visuals (Card Large) */
.card-visuals {
    position: absolute;
    top: 0; right: 0;
    width: 65%; height: 100%;
    display: flex;
}

.card-visuals img {
    width: 33.33%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.visual-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, #000 25%, transparent 70%);
    z-index: 5;
    pointer-events: none;
}

/* =========================================
   5. CATALOG SECTION
   ========================================= */
.catalog-section {
    padding: 80px 20px;
    background-color: #fff;
}

.catalog-filters {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Biar aman di HP */
}

.filter-btn {
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-btn:hover { color: var(--text-main); }
.filter-btn.active { background-color: var(--text-main); color: #fff; }

/* Grid Produk */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsif otomatis */
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: transparent;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); }
.product-card.hidden { display: none; }

.product-image {
    width: 100%;
    aspect-ratio: 4 / 6;
    background: #f5f5f7;
    border-radius: 18px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 15px; left: 15px;
    background: #fff; color: #000;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-info { text-align: center; }
.product-cat { font-size: 0.75rem; color: var(--accent-color); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.product-info h3 { font-size: 1.1rem; font-weight: 600; margin: 5px 0; }

.price-container { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 15px; }
.price-original { text-decoration: line-through; color: #86868b; font-size: 0.9rem; }
.price-now { font-size: 1rem; color: var(--text-main); }
.price-now.promo { color: var(--accent-color); font-weight: 600; }

.btn-buy {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--link-blue);
    color: white;
    font-size: 0.85rem;
    border-radius: 15px;
    text-decoration: none;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s ease;
}
.product-card:hover .btn-buy { opacity: 1; transform: translateY(0); }

/* Coming Soon */
.coming-soon-container {
    text-align: center;
    padding: 80px 20px;
    width: 100%;
    animation: fadeIn 0.5s ease;
}
.coming-soon-container h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #1d1d1f, #86868b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.coming-soon-container p { font-size: 1.1rem; color: #86868b; }

/* =========================================
   6. PHILOSOPHY & CONNECT
   ========================================= */
.philosophy {
    padding: 150px 20px;
    background: #000;
    color: #fff;
    text-align: center;
}
.text-container { max-width: 700px; margin: 0 auto; }
.text-container h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-container p { font-size: 1.5rem; color: #86868b; line-height: 1.4; }

.connect-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    border-top: 1px solid #d2d2d7;
}
.connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.connect-item {
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background-color: transparent;
    transition: all var(--transition-smooth);
    position: relative;
    z-index: 1;
}
.connect-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    z-index: 10;
}
.connect-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.connect-item p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }
.connect-link { color: var(--link-blue); text-decoration: none; font-weight: 500; font-size: 1rem; transition: color 0.2s ease; }
.connect-link:hover { text-decoration: underline; color: #005bb5; }

/* =========================================
   7. FOOTER & ANIMATIONS
   ========================================= */
footer {
    padding: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: var(--bg-color);
}
.scroll-trigger { opacity: 0; transform: translateY(30px); transition: all 0.6s var(--ease-spring); }
.scroll-trigger.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =================================================================
   8. MOBILE RESPONSIVE (SAFE AREA)
   Kode di bawah ini HANYA aktif di HP, tidak akan merusak Desktop
   ================================================================= */
@media (max-width: 768px) {
    /* Font Adjustment */
    .hero-title { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .text-container h2 { font-size: 2.2rem; }
    .text-container p { font-size: 1.1rem; }

    /* Layout Stack */
    .grid { grid-template-columns: 1fr; height: auto; }
    .connect-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Card Large di HP (Vertikal) */
    .card-large {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        height: auto;
        min-height: 500px;
    }
    
    .card-large .card-content { 
        max-width: 100%; 
        width: 100%;
        margin-bottom: 30px;
    }

    .card-visuals {
        position: relative;
        width: 100%;
        height: 250px;
        right: auto;
    }

    /* Gradasi dari Atas ke Bawah di HP */
    .visual-gradient {
        background: linear-gradient(to bottom, #000 10%, transparent 100%);
    }

    /* Card Small di HP */
    .card-small { height: 400px; }
    
    /* Tombol Beli selalu muncul di HP */
    .btn-buy { opacity: 1; transform: translateY(0); }
    
    /* Navbar stack sederhana */
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { gap: 20px; }
}
/* =========================================
   EFEK ESTETIK HOVER LOGO UTAMA
   Taruh di bagian paling bawah style.css
   ========================================= */

/* 1. Update keadaan dasar logo agar animasinya halus */
.hero-logo {
    /* Menambahkan transisi halus menggunakan timing function 'spring' khas Apple yang sudah kita buat */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Memastikan titik tumpu pembesaran ada di tengah */
    transform-origin: center;
    
    /* Menyiapkan filter agar tidak kaget saat di-hover */
    filter: brightness(1) drop-shadow(0 0 0 rgba(0,0,0,0));
    
    /* Agar berada di atas elemen lain saat membesar */
    position: relative;
    z-index: 10;
    cursor: pointer; /* Mengubah kursor jadi bentuk tangan */
}

/* 2. Keadaan saat kursor diarahkan (Hover) */
.hero-logo:hover {
    /* MEMBESAR: Skala naik 8% */
    transform: scale(1.08);
    
    /* MENCERAH & BAYANGAN:
       - brightness(1.3): Jadi 30% lebih terang/pudar
       - drop-shadow(...): Bayangan lembut yang mengikuti bentuk logo 'W'
    */
    filter: brightness(1.3) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}
/* =========================================
   EFEK HOVER INTERAKTIF TEKS "OUR MISSION"
   Taruh di bagian paling bawah style.css
   ========================================= */

/* 1. Siapkan transisi halus untuk H2 dan P di section philosophy */
/* Kita targetkan elemen spesifik di dalam .philosophy .text-container */
.philosophy .text-container h2,
.philosophy .text-container p {
    /* Menggunakan timing function 'spring' yang halus sama seperti elemen lain */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Memastikan titik tengah pembesaran ada di pusat teks */
    transform-origin: center;
    
    /* Menunjukkan bahwa ini elemen interaktif (opsional, bisa dihapus jika tidak suka) */
    cursor: default; 
    
    /* Menyiapkan filter agar perubahan tidak kaget */
    filter: brightness(1);
    
    /* Agar saat membesar posisinya di atas elemen lain */
    position: relative;
    z-index: 5;
}

/* 2. Efek Hover untuk Judul "Our Mission" (H2) */
.philosophy .text-container h2:hover {
    /* MEMBESAR: Skala naik 5% */
    transform: scale(1.05);
    
    /* MENCERAH: 
       Karena teks ini pakai gradient, kita cerahkan pakai filter brightness 
       dan tambah drop-shadow putih agar terlihat 'glowing' 
    */
    filter: brightness(1.3) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

/* 3. Efek Hover untuk Paragraf di bawahnya (P) */
.philosophy .text-container p:hover {
    /* MEMBESAR: Skala naik 5% */
    transform: scale(1.05);
    
    /* MENCERAH: 
       Ubah warna dari abu-abu ke putih terang (!important agar menimpa warna lama) 
    */
    color: #ffffff !important;
    
    /* Tambah efek teks bersinar */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
/* =========================================
   FIX: EFEK TIMBUL (POP-UP) KATALOG PRODUK
   Taruh di bagian paling bawah style.css
   ========================================= */

/* 1. Update dasar kartu produk agar animasinya halus */
.product-card {
    /* Menggunakan animasi 'spring' yang sama dengan section lain */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    /* Agar urutan tumpukannya benar */
    position: relative;
    z-index: 1;
    
    /* Kita beri sedikit padding dan radius agar saat 'menyala' backgroundnya bagus */
    border-radius: 20px;
    padding: 15px; /* Memberi ruang napas */
    margin: -15px; /* Kompensasi agar grid tidak berantakan karena padding */
}

/* 2. Efek saat kursor diarahkan (Hover) */
.product-card:hover {
    /* NAIK: Geser ke atas 12px (sama seperti section lain) */
    transform: translateY(-12px) !important;
    
    /* BAYANGAN: Muncul bayangan lembut di bawahnya */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* BACKGROUND: Berubah jadi putih bersih agar kontras dengan latar abu-abu/putih */
    background-color: #ffffff;
    
    /* TUMPUKAN: Pastikan dia di paling atas */
    z-index: 10;
}
/* =========================================
   EFEK HOVER HERO TITLE ("Redefining...")
   Taruh di bagian paling bawah style.css
   ========================================= */

/* 1. Base Transition (Persiapan Animasi) */
.hero-title {
    /* Animasi halus seperti pegas (Apple style) */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Titik tumpu pembesaran di tengah */
    transform-origin: center;
    
    /* Ubah kursor jadi panah biasa (bukan garis teks) biar terasa seperti elemen desain */
    cursor: default; 
}

/* 2. Hover Effect (Saat diarahkan) */
.hero-title:hover {
    /* MEMBESAR: Skala naik 5% */
    transform: scale(1.05);
    
    /* BAYANGAN: 
       Memberikan efek bayangan lembut di belakang teks 
       seolah-olah teksnya terangkat dari layar 
    */
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    
    /* Opsional: Ubah warna sedikit agar lebih tajam */
    /* color: #000; */ 
}