/* --- RESET & GLOBAL --- */
:root {
    --bg-color: #FFF8F0;      /* Warna Cream Background */
    --primary: #008C9E;       /* Warna Tosca/Cyan Tombol */
    --primary-dark: #006D7A;  /* Warna Tosca Gelap (Hover) */
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
	padding-top: 110px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- RESET NAVBAR & LOGO (FIX) --- */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: #FFF8F0;
    min-height: 90px;
    
    /* --- BARIS BARU UNTUK MEMBUATNYA MENEMPEL --- */
    position: fixed;   /* Membuat elemen melayang/tetap */
    top: 0;            /* Menempel di sisi paling atas */
    left: 0;           /* Menempel di sisi paling kiri */
    width: 100%;       /* Memastikan lebar memenuhi layar */
    z-index: 9999;     /* Memastikan navbar selalu di atas elemen lain (seperti gambar hero) */
    
    /* Opsional: Menambah bayangan agar terlihat terpisah dari konten saat di-scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 1. Pengaturan Wadah Logo (DIV) */
.logo {
    display: flex;
    align-items: center;
    height: 75px;        /* Tinggi Logo (Ubah angka ini jika ingin lebih besar/kecil) */
    width: auto;         /* Lebar menyesuaikan otomatis */
    margin-right: auto;  /* Jaga-jaga: Dorong elemen lain ke kanan */
}

/* 2. Pengaturan Gambar Logo (IMG) */
.logo img {
    height: 100%;        /* Gambar akan mengikuti tinggi wadahnya (75px) */
    width: auto;         /* Proporsional (tidak gepeng) */
    object-fit: contain; /* Gambar tampil utuh */
    
    /* Jika masih bandel, paksa ukurannya: */
    max-height: 75px !important; 
}

/* 3. Menu Navigasi (Tetap di Kanan) */
.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto; /* Pastikan menu terdorong ke paling kanan */
	list-style: none;
}

/* --- RESPONSIVE HP --- */
@media screen and (max-width: 768px) {
    nav {
        padding: 15px 20px;
        min-height: 60px;
    }
    .logo {
        height: 50px; /* Di HP logo mengecil sedikit agar rapi */
    }
    .logo img {
        max-height: 50px !important;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto; /* INI KUNCINYA: Mendorong menu ke kanan mentok */
    list-style: none;
}

.nav-links li a {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links li a:hover { color: var(--primary-dark); }

/* Hamburger Menu (Mobile) */
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px; height: 3px; background-color: var(--primary); margin: 5px; transition: 0.3s;
}

/* --- HERO SECTION (KATA PEMBUKA) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    flex-wrap: wrap; /* Agar responsif di HP */
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
    text-align: left; /* Default kiri, nanti diatur media query */
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

.hero-img {
    flex: 1;
    min-width: 300px;
    display: flex; /* Tambahkan ini */
    justify-content: center; /* Agar gambar di tengah area kanannya */
    align-items: center;
}
.hero-img img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Batasi tinggi gambar HP */
}

.hero-anim-img {
    max-width: 100%;  /* Agar responsif di HP */
    height: auto;     /* Menjaga proporsi gambar */
    max-height: 550px; /* Mengatur agar gambar "agak besar" tapi tidak berlebihan */
    
    /* Menerapkan animasi: nama | durasi | jenis gerakan | pengulangan */
    animation: breathing 4s ease-in-out infinite;
    
    /* Opsional: Menambahkan bayangan halus agar gambar lebih 'pop' */
    filter: drop-shadow(0 10px 15px rgba(0, 140, 158, 0.2));
}

@keyframes breathing {
    0% {
        transform: scale(1); /* Ukuran normal */
    }
    50% {
        transform: scale(1.10); /* Membesar sedikit (3%) */
    }
    100% {
        transform: scale(1); /* Kembali normal */
    }
}

/* --- FITUR SECTION (UPDATE SESUAI GAMBAR) --- */
.features {
    padding: 50px 20px;
    text-align: center;
    background-color: transparent; /* Background body tetap cream */
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 15px;         /* Jarak antar kotak */
    flex-wrap: wrap;   /* Agar tetap rapi (turun ke bawah) saat dibuka di HP */
}
.feature-box {
    background-color: #008C9E; 
    color: white;              
    padding: 25px 10px;        /* Padding kiri-kanan dikurangi sedikit agar muat */
    border-radius: 12px;       
    
    /* BAGIAN PENTING DI SINI: */
    /* width: 180px;  <-- HAPUS baris width fixed ini */
    flex: 1;          /* GANTI dengan ini: Agar lebar otomatis membagi rata */
    min-width: 140px; /* Batas lebar minimal agar icon tidak gepeng */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 10px rgba(0, 140, 158, 0.2);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px); /* Efek naik saat di-hover */
}

/* Lingkaran Putih di belakang Ikon */
.icon-circle {
    background-color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 1.8rem;
    color: #008C9E; /* Ikon berwarna tosca */
}

.feature-box p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* --- KATALOG SECTION (TAMPILAN BARU) --- */
.catalog {
    padding: 60px 20px;
    text-align: center;
}

.catalog h2 {
    color: #008C9E;
    font-size: 2rem;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    /* Membuat kolom otomatis, minimal lebar 250px (ukuran HP) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* Jarak antar undangan lebih renggang */
    margin-top: 40px;
}

/* Container per item */
.catalog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-10px); /* Efek naik sedikit saat di-hover */
}

/* Judul Tema (Font Latin/Sambung) */
.theme-name {
    font-family: 'Great Vibes', cursive; /* Pastikan load font ini di index */
    font-size: 1.8rem;
    color: #008C9E; /* Warna Tosca */
    margin-bottom: 15px;
    font-weight: normal;
}

/* Gambar HP (Full Portrait) */
.phone-frame {
    width: 100%;
    max-width: 280px; /* Batasi lebar agar mirip ukuran HP asli */
    height: auto;     /* Tinggi menyesuaikan gambar (tidak dicrop) */
    border-radius: 25px; /* Sudut melengkung seperti HP */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Bayangan agar terlihat 3D */
    margin-bottom: 20px;
    object-fit: cover;
}

.btn-demo-katalog {
    background-color: transparent;
    color: #008C9E;
    border: 2px solid #008C9E;
    padding: 8px 15px;
	margin-bottom: 15px;
    border-radius: 50px; /* Tombol membulat */
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-demo-katalog:hover {
    background-color: #008C9E;
    color: white;
}

/* Tombol Pesan */
.btn-order {
    background-color: #008C9E;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak ikon dan teks */
    transition: background 0.3s;
    box-shadow: 0 5px 15px rgba(0, 140, 158, 0.3);
}

.btn-order:hover {
    background-color: #006D7A;
}
/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background: var(--primary);
    color: white;
    margin-top: 50px;
}

/* --- RESPONSIVE (MOBILE) --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 70px;
        background: white;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transform: translateY(-150%); /* Sembunyikan ke atas */
        transition: transform 0.4s ease-in;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .nav-links.nav-active {
        transform: translateY(0%);
    }
    .burger { display: block; }
    
    .hero { text-align: center; flex-direction: column-reverse; } /* Gambar di atas teks di HP */
    .hero-text { padding-right: 0; margin-top: 20px; }
}



/* --- SECTION GARANSI & FOOTER --- */

/* 1. Area Garansi */
.guarantee-section {
    padding: 60px 20px;
    text-align: center;
    background-color: transparent; /* Mengikuti warna background body (cream) */
    margin-bottom: 20px;
}

/* Gambar Badge 100% */
.badge-img {
    width: 120px; /* Ukuran badge */
    margin-bottom: 20px;
}

.guarantee-section h3 {
    color: #444; /* Warna abu gelap */
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.guarantee-section p {
    color: #666;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto 40px auto; /* Margin bawah 40px memberi jarak ke ikon */
    line-height: 1.6;
}

/* 3 Ikon Kepercayaan (Secure, Satisfaction, Privacy) */
.trust-icons {
    display: flex;
    justify-content: center;
    gap: 40px; /* Jarak antar ikon */
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #222;
    font-size: 0.95rem;
}

.trust-item i {
    font-size: 1.8rem; /* Ukuran ikon */
    color: #222;       /* Warna ikon hitam sesuai gambar */
    
    /* --- LOADING SCREEN --- */
        #loader-overlay {
    position: fixed !important; /* Paksa Fixed */
    top: 0;
    left: 0;
    width: 100%;  /* Pastikan lebar penuh */
    height: 100%; /* Pastikan tinggi penuh */
    z-index: 999999 !important; /* Layer paling atas (di atas navbar) */
    
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Transisi Halus */
    transition: opacity 1s ease-out, visibility 1s;
    opacity: 1;
    visibility: visible;
}

        /* Animasi Icon (Detak Jantung) */
        .loader-heart {
            width: 60px;
            height: 60px;
            background-color: #8B0000; /* Merah Maroon */
            transform: rotate(45deg);
            animation: heart-beat 0.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
            position: relative;
            box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
        }
        .loader-heart::before,
        .loader-heart::after {
            content: "";
            width: 60px;
            height: 60px;
            background-color: #8B0000;
            border-radius: 50%;
            position: absolute;
        }
        .loader-heart::before { top: -30px; left: 0; }
        .loader-heart::after { top: 0; left: -30px; }

        @keyframes heart-beat {
            0% { transform: rotate(45deg) scale(0.8); }
            5% { transform: rotate(45deg) scale(0.9); }
            10% { transform: rotate(45deg) scale(0.8); }
            15% { transform: rotate(45deg) scale(1); }
            50% { transform: rotate(45deg) scale(0.8); }
            100% { transform: rotate(45deg) scale(0.8); }
        }

        .loader-text {
            margin-top: 40px;
            color: #FFD700; /* Warna Emas */
            font-family: 'Montserrat', sans-serif;
            font-size: 10px;
            font-weight: bold;
            text-transform: uppercase;
            
            /* Animasi Bernafas & Glowing */
            animation: cinematic-pulse 2s ease-in-out infinite;
        }

        @keyframes cinematic-pulse {
            0% {
                letter-spacing: 2px;
                opacity: 0.5;
                text-shadow: none;
            }
            50% {
                letter-spacing: 6px; /* Huruf Melebar */
                opacity: 1;
                text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5); /* Efek Bersinar */
            }
            100% {
                letter-spacing: 2px;
                opacity: 0.5;
                text-shadow: none;
            }
        }
        
        /* Class untuk menghilangkan loader */
        .loader-finish {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important; /* Agar bisa klik website di belakangnya */
}

