/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */


:root {
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --accent-gold: #f4a261;
    --accent-hover: #e76f51;
    --text-primary: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-cursive: 'Great Vibes', cursive;
    
    /* VARIABEL BARU (Sebelumnya Hilang/Belum Dideklarasikan) */
    --navbar-height: 70px;
    --nav-bg: rgba(22, 22, 22, 0.75);
    --text-dim: #bbbbbb;
    --text-white: #ffffff;
    --text-gold: #f4a261;
    --accent: #e76f51;
    --accent-glow: rgba(231, 111, 81, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
.cursive-text {
    font-family: var(--font-cursive);
    font-size: 2.5rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: -10px;
}

.highlight {
    color: var(--accent-gold);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.6);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-login.nav-link {
    display: flex;          /* Memastikan ikon dan teks sejajar */
    align-items: center;
    cursor: pointer;        /* Mengubah kursor menjadi icon tangan saat diarahkan */
    position: relative;
    z-index: 9999;          /* Memaksa elemen berada di lapisan paling depan */
    pointer-events: auto !important; /* Memastikan event klik tidak dimatikan oleh CSS lain */
}

/* ==========================================================================
   NAVBAR & NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0px;
    width: 100%;
    max-width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;                     
}

/* Mengatur isi kelompok kanan agar berjejer ke samping */
.nav-right {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 20px;                      
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand-name {
    font-family: var(--font-cursive);
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    height: 45px;
    min-width: 45px;
    /* Perfect circle initially */
    padding: 0 12px;
    border-radius: 25px;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid transparent;
}
/* Icon Styling */
.icon {
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Text Label (Hidden by default) */
.label {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.7s;
    padding-left: 0;
}

.btn-pesan {
    background: linear-gradient(135deg, #7b2cbf, #e63946); /* Gradasi warna ungu ke pink/merah */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Hover Animations (Slide Out) */
.nav-link:hover {
    min-width: 110px;
    /* Expands width */
    background-color: var(--accent);
    color: var(--text-white);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-link:hover .label {
    max-width: 150px;
    /* Reveal text */
    opacity: 1;
    padding-left: 10px;
}
/* Specialized CTA (Optional: Last item looks different) */
.nav-item:last-child .nav-link {
    background: linear-gradient(135deg, #6366f1, var(--accent));
    color: white;
    min-width: 45px;
}
.nav-item:last-child .label {
    max-width: 150px;
    opacity: 1;
    padding-left: 10px;
}

/* Hilangkan elemen yang tidak aktif */
.hidden { display: none !important; }
 
  /* ---- Profile button + dropdown ---- */
  .user-profile {
    position: relative;
  }
  .profile-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    transition: filter 0.15s ease;
  }
  .profile-icon:hover { filter: brightness(1.1); }
 
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 160px;
    background: #2a3040;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    z-index: 20;
  }
  .dropdown-menu.show { display: block; }
  .dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 4px 0 8px;
  }
  .logout-link {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
  }
  .logout-link:hover { background: rgba(255,255,255,0.08); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-image {
    margin-right: 0px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: memutar 10s linear infinite;
}

@keyframes memutar {
    from {
        transform: rotate(0deg); /* Posisi awal: 0 derajat */
    }
    to {
        transform: rotate(360deg); /* Posisi akhir: putaran penuh 360 derajat */
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244,162,97,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.main-bowl {
    width: 100%;
    max-width: 500px;
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */
.promo-container {
    padding: 50px 10%;
}

.promo-banner {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.promo-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.promo-divider {
    width: 2px;
    height: 80px;
    background: rgba(255,255,255,0.1);
}

.promo-discount p {
    font-size: 1.2rem;
    line-height: 1.4;
}

.promo-discount strong {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.promo-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   FEATURED MENU SECTION
   ========================================================================== */
.featured-section {
    padding: 50px 10% 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.section-title span:not(.highlight) {
    color: var(--accent-gold);
    opacity: 0.5;
    font-size: 3rem;
    vertical-align: middle;
}

.menu-scroll-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-dark);
}

.menu-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.menu-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
.menu-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold);
    border-radius: 20px;
}

.menu-card {
    min-width: 300px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    scroll-snap-align: start;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.02);
}

.menu-card:hover {
    transform: translateY(-10px);
    background: #1a1a1a;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.card-content .cursive-text {
    font-size: 1.8rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.card-footer .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
}


/* =========================================
   LAYOUT UTAMA & CONTAINER
========================================= */
.booking-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-dark);
    padding: 40px 20px;
}

.booking-container {
    position: relative;
    width: 950px; /* Lebar optimal untuk 2 kolom bersandingan */
    max-width: 100%;
    padding: 40px;
    background-color: var(--bg-card);
    border: 1px solid rgba(244, 162, 97, 0.15); /* Border emas tipis */
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 162, 97, 0.05);
}

.booking-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 5px;
    font-weight: 700;
}

.booking-container > p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.title-underline {
    width: 80px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto 30px auto;
}

/* Wrapper Grid 2 Kolom Sesuai Gambar */
.booking-content-wrapper {
    display: flex;
    gap: 35px;
    align-items: stretch; /* Membuat tinggi kotak kanan sama dengan form kiri */
}

/* =========================================
   KOLOM KIRI: STRUKTUR FORM & INPUT
========================================= */
.booking-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px; /* Jarak konstan antar baris form */
}

/* Pembagi 2 Kolom Kecil (Baris 1 & Baris 3) */
.form-row-twin {
    display: flex;
    gap: 15px;
}

.form-row-twin .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Style Label Baru dari HTML Anda */
.input-label {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    padding-left: 5px;
}

/* Efek Seragam untuk Input, Select, dan Textarea */
.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Fokus Glow Emas */
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-glow);
    background-color: rgba(255, 255, 255, 0.06);
}

.booking-form select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Khusus Textarea (Kotak Besar Paling Bawah) */
.booking-form textarea {
    resize: none;
    min-height: 120px;
}

/* Kalender */
.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
}

/* Tombol Kirim */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold), #e76f51);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.3);
}

/* =========================================
   KOLOM KANAN: PREVIEW BOX (PNG)
========================================= */
.booking-preview-side {
    width: 320px; /* Lebar proporsional kotak kanan */
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(244, 162, 97, 0.15);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.preview-content {
    text-align: center;
}

.preview-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.preview-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 400;
}


/* =========================================
   CONTACT SECTION (TEMA GELAP & LEBIH KECIL)
========================================= */

.contact-section {
    padding: 50px 20px; /* Diperkecil dari 80px 10% agar tidak terlalu memakan ruang */
    background-color: var(--bg-dark); /* Menggunakan background paling gelap */
}

.contact-container {
    max-width: 900px; /* Diperkecil dari 1200px */
    margin: auto;
    text-align: center;
}

.contact-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem; /* Diperkecil dari 2.5rem */
    color: var(--accent-gold); /* Diubah menjadi warna emas tema kita */
    margin-bottom: 10px; /* Jarak diperkecil */
    font-weight: 700;
}

.contact-container > p {
    color: var(--text-muted); /* Warna teks abu-abu terang */
    font-size: 0.9rem; /* Ukuran font lebih kecil */
    margin-bottom: 30px; /* Jarak diperkecil dari 40px */
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px; /* Jarak antar kartu diperkecil dari 30px */
    flex-wrap: wrap;
}

/* Styling Kotak Info Kontak */
.contact-item {
    background-color: var(--bg-card); /* Menggunakan warna card gelap */
    border: 1px solid rgba(244, 162, 97, 0.15); /* Border emas tipis agar elegan */
    padding: 20px; /* Diperkecil dari 25px */
    width: 220px; /* Lebar kartu diperkecil dari 280px */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); /* Shadow digelapkan agar cocok dengan background hitam */
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(244, 162, 97, 0.1); /* Efek glow emas tipis saat di-hover */
}

.contact-item h3 {
    font-size: 1.1rem; /* Tulisan judul di dalam kotak diperkecil */
    margin-bottom: 8px;
    color: var(--accent-gold); /* Warna teks menjadi emas */
}

/* Menambahkan styling untuk teks/link di dalam kotak kontak */
.contact-item p,
.contact-item a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--accent-hover); /* Berubah menjadi oranye terang jika berupa link */
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
/* ==========================================================================
   TAMPILAN TABLET & HP KECIL (Maksimal 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        justify-content: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Dikecilkan sedikit dari 3.5rem agar tidak pecah di HP */
    }
    
    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .promo-divider {
        width: 100%;
        height: 1px;
    }
    
    .avatars {
        justify-content: center;
        margin-top: 10px;
    }
}

/* ==========================================================================
   TAMPILAN STANDARD HP / MOBILE (Maksimal 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- HEADER & NAVBAR --- */
    .header {
        padding: 0 15px;
    }

    .brand-name, .label {
        display: none; /* Menyembunyikan teks brand dan label menu di HP agar hemat ruang */
    }

    .navbar {
        align-items: flex-start;
        padding: 15px 20px;
        gap: 15px;
    }

    /* Pembungkus scroll horizontal menu */
    .nav-scroll-container {
        width: 100%; 
        overflow-x: auto; 
        white-space: nowrap;
        scrollbar-width: none; /* Hilangkan scrollbar Firefox */
        -webkit-overflow-scrolling: touch; /* Scroll lebih mulus di iPhone/iOS */
    }

    .nav-scroll-container::-webkit-scrollbar {
        display: none; /* Hilangkan scrollbar Chrome, Safari, Opera */
    }

    .nav-items {
        display: flex;
        flex-wrap: nowrap; 
        gap: 20px;
        padding-bottom: 5px; 
    }

    .nav-list {
        display: flex;
        gap: 12px;
    }

    .nav-link:hover,
    .nav-item:last-child .nav-link {
        min-width: 45px;
    }

    /* --- FORM & PREVIEW BOOKING --- */
    .booking-content-wrapper {
        flex-direction: column;
    }
    
    .booking-preview-side {
        width: 100%;
        min-height: 200px;
        order: -1; /* Kotak gambar/PNG otomatis pindah ke atas Form saat di HP */
    }
    
    .form-row-twin {
        flex-direction: column;
        gap: 18px;
    }
}

/* ==========================================================================
   TAMPILAN HP SANGAT KECIL (Maksimal 432px)
   ========================================================================== */
@media (max-width: 432px) {
    .nav-item {
        flex: 1; /* Membagi ukuran tombol menu sama rata di layar super kecil */
        text-align: center;
    }

    .nav-link .icon svg {
        width: 18px; /* Disesuaikan agar tetap nyaman ditekan jari */
        height: 18px;
    }

    .nav-list {
        gap: 15px; /* Jarak disesuaikan agar tidak terlalu renggang/meluber keluar layar */
        width: 100%;
        justify-content: space-around;
    }
    
    .hero-content h1 {
        font-size: 2rem; /* Ukuran judul makin dikecilkan agar pas di layar hp mini */
    }
}