/* ============================================================
   1. RESET & ASAS
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.nav-open {
    overflow: hidden; /* Lock skrin bila menu buka */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;

    position: relative;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden; /* Biar kat sini saja */
    position: relative;
    width: 100%;
}

/* ============================================================
   GAYA NAV-LINKS (DESKTOP DEFAULT)
   ============================================================ */



/* ============================================================
   2. NAVIGASI UTAMA
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 8%;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;       /* Susun melintang di desktop */
    list-style: none;
    position: static;    /* Kedudukan normal dalam navbar */
    transform: none;     /* Pastikan tiada anjakan */
    width: auto;         /* Lebar ikut kandungan */
    height: auto;        /* Tinggi ikut kandungan */
    background: transparent; /* Tiada warna latar putih */
    box-shadow: none;    /* Tiada bayang di desktop */
    padding-top: 0;      /* Tiada padding tambahan */
    transition: right 0.5s ease-in-out;
}

.nav-links li {
    padding: 0 15px;
}

/* Bila menu aktif, tarik balik ke 'right: 0' */
.nav-active {
    right: 0; 
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #333;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #6222eb;
}

/* BURGER MENU */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* ============================================================
   3. LAYOUT UMUM & SETTING 100VH
   ============================================================ */
.section-container, 
.hero-section, 
.testimoni-section, 
.hubungi-section {
    min-height: 100vh; /* Semua section skrin penuh */
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Kandungan sentiasa di tengah secara menegak */
}

.bg-light { background-color: #f7f4ee; }
.center { text-align: center; }
.title { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 1px; }
.subtitle { margin-bottom: 40px; color: #666; }

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-2-alt {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

/* ============================================================
   4. HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    padding: 0;
    background: url('data_teratakbakery/teratak-bg.webp') no-repeat center center/cover;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5); 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding:100px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn-primary, .btn-secondary {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary { background-color: #d4a373; color: white; }
.btn-secondary { border: 2px solid white; color: white; }
.btn-primary:hover { background-color: #bc8a5f; }
.btn-secondary:hover { background-color: white; color: #333; }

/* ============================================================
   5. TENTANG KAMI (3 KOLUM)
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text { text-align: left; }
.about-image { display: flex; justify-content: center; align-items: center; }

.img-circle {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 5px solid #fff;
}

/* ============================================================
   6. CARDS SYSTEM (PRODUK)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 2fr));
    gap: 10px;
}

.card {
    background: transparent;
    text-align: center;
    transition: 0.3s;
}

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ============================================================
   7. TESTIMONI (LATAR HITAM)
   ============================================================ */
.testimoni-section {
    background-color: #000;
    color: #fff;
}

.white-text {
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.quote-icon {
    font-size: 40px;
    font-family: 'Georgia', serif;
    display: block;
    margin-bottom: 10px;
    color: #d4a373;
}

.customer-name {
    margin-top: 20px;
    font-weight: bold;
    color: #fff !important;
}

/* ============================================================
   8. HUBUNGI (LATAR CERAH)
   ============================================================ */
.hubungi-section {
    background-color: #fdfbf7;
}

.hubungi-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.img-pemilik {
    width: 100%;
    max-width: 450px;
    display: block;
    border-radius: 10px;
}

.info-box { padding-bottom: 40px; }
.title-large { font-size: 2.5rem; font-weight: bold; margin-bottom: 40px; }
.contact-item { margin-bottom: 30px; }
.label { font-size: 0.75rem; font-weight: bold; color: #555; letter-spacing: 1px; margin-bottom: 5px; }
.detail { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; }

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn-purple {
    display: inline-block;
    background-color: #6222eb;
    color: #fff;
    text-decoration: none;
    padding: 10px 40px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-orange {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.btn-green {
    display: inline-block;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-green:hover { background: #218838; }

/* ============================================================
   10. RESPONSIVE (MOBILE & TABLET)
   ============================================================ */
@media screen and (max-width: 968px) {
    /* Elakkan skrin boleh drag ke kanan */
    html, body {
        width: 100%;
        position: relative;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh; /* Guna 100vh supaya dia fix satu skrin sahaja */
        width: 100%;   /* Buat 100% supaya senang kawal fokus user */
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        transition: right 0.5s ease-in-out;
        z-index: 2001;
        /* Tambah ini: */
        overflow-y: hidden; /* Halang menu ni daripada boleh diskrol panjang */
    }

    .nav-links.nav-active {
        right: 0 !important;
    }

    .burger {
        display: block;
        z-index: 2005; /* Tingkatkan z-index supaya dia sentiasa nampak di atas menu putih */
        position: fixed; /* Tukar dari absolute/static ke fixed */
        top: 25px;      /* Adjust kedudukan ikut kesesuaian */
        right: 8%;
    }
    
    /* Animasi Burger jadi X (Jika anda mahu) */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .grid-2, .grid-2-alt, .hubungi-container, .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text { text-align: center; }
    .img-pemilik, .img-circle { margin: 0 auto; }
    
    .hero-content h1 { font-size: 2.2rem; }
}

@media screen and (max-width: 480px) {
    .logo-img { height: 35px; }
    .logo-text { font-size: 1rem; }
}

/* ============================================================
   11. FOOTER SECTION (TERATAK STYLE)
   ============================================================ */
.footer-section {
    background-color: #1a1a1a; /* Warna gelap supaya nampak elegan */
    color: #ffffff;
    padding: 60px 10%;
    text-align: center;
    min-height: auto !important; /* Footer tak perlu 100vh */
}

.logo-footer {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #d4a373; /* Warna tema bakery */
    margin-bottom: 10px;
}

.subtitle-footer {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 30px;
}

.share-container {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
}

.legal-info {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* Responsif Footer */
@media screen and (max-width: 768px) {
    .footer-section {
        padding: 40px 5%;
    }
    .logo-footer {
        font-size: 1.4rem;
    }
}