/* =========================================
   BALI KITCHEN STAINLESS - MAIN STYLESHEET
   ========================================= */

/* 1. ROOT VARIABLES (Pengaturan Warna & Font) */
:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #888888;
  --accent: #ff6b35;
  --accent-light: #ff8c5a;
  --card: #141414;
  --border: #2a2a2a;
  --steel: #b8c4ce;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
}

/* 2. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 3. LAYOUT UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 4. COMPONENTS */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-med);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #473409, #093f19);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: var(--steel);
  background: rgba(255, 255, 255, 0.05);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 5. NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tambahan untuk gambar logo di dalam class .logo-icon */
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px; /* Samakan dengan border-radius parent */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition-fast);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a.active {
  color: var(--fg);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

/* KODE BARU (Glassmorphism / Model Gelas) */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%; /* Full Width */
    height: 100vh;
    /* Efek Gelas (Glassmorphism) */
    background: rgba(10, 10, 10, 0.85); /* Transparansi 85% */
    backdrop-filter: blur(20px); /* Efak blur kaca */
    -webkit-backdrop-filter: blur(20px); /* Untuk Safari/iOS */
    
    flex-direction: column;
    justify-content: center; /* Posisi tengah vertikal */
    align-items: center;
    gap: 2.5rem;
    
    /* Animasi masuk dari kanan */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: none; /* Hapus border karena full width */
    z-index: 999; /* Di bawah tombol hamburger */
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Memperbesar teks di menu mobile agar enak dilihat */
  .nav-links a {
    font-size: 1.75rem; /* Ukuran font lebih besar */
    font-weight: 600;
    letter-spacing: 1px;
  }
  
  /* Tombol Contact di mobile jadi lebih besar */
  .nav-links .btn {
    margin-top: 1rem;
    padding: 1rem 3rem !important;
    font-size: 1.1rem !important;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001; /* Pastikan tombol di atas overlay */
  }
}

/* 6. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 7. GALLERY (Portfolio & Products) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--card);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-text h3 {
  font-family: var(--font-display);
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-text p {
  color: #ccc;
  font-size: 0.9rem;
}

/* 8. FAQ ACCORDION */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-question h3 {
  font-family: var(--font-display);
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 500;
  padding-right: 1rem;
}

.faq-icon {
  color: var(--accent);
  transition: transform var(--transition-med);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  color: var(--muted);
  padding-bottom: 1.5rem;
  line-height: 1.7;
}

/* Active State for FAQ */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust based on content */
}

/* 9. FOOTER */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer .logo {
    justify-content: center;
  }
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--fg);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col p, .footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* 10. ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Float Animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Utility for hiding scrollbar but keeping functionality */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--bg);
}
body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}