/* --- 1. CONFIGURATION (Provided Variables) --- */
:root {
  --background: 0 0% 8%;
  --foreground: 0 0% 100%;
  --card: 0 0% 12%;
  --card-foreground: 0 0% 100%;
  --popover: 0 0% 12%;
  --popover-foreground: 0 0% 100%;
  --primary: 15 97% 58%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 15 97% 50%;
  --secondary: 100 45% 50%;
  --secondary-foreground: 0 0% 100%;
  --secondary-hover: 100 45% 45%;
  --muted: 0 0% 18%;
  --muted-foreground: 0 0% 65%;
  --accent: 0 0% 20%;
  --accent-foreground: 15 97% 58%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 20%;
  --input: 0 0% 18%;
  --ring: 15 97% 58%;
  --radius: 0.75rem;
  --gradient-hero: linear-gradient(135deg, hsl(0 0% 10%) 0%, hsl(0 0% 6%) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(0 0% 12%) 0%, hsl(0 0% 8%) 100%);
  --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.2);
  --shadow-md: 0 4px 16px hsla(0, 0%, 0%, 0.3);
  --shadow-lg: 0 8px 32px hsla(0, 0%, 0%, 0.4);
  --shadow-glow: 0 0 40px hsla(15, 97%, 58%, 0.25);
  --transition-base: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* --- 3. COMPONENTS & UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Colors */
.text-primary {
  color: hsl(var(--primary));
}
.text-muted {
  color: hsl(var(--muted-foreground));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 99px; /* Pill shape */
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: hsl(var(--primary-hover));
  transform: translateY(-2px);
  box-shadow: 0 0 60px hsla(15, 97%, 58%, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background-color: hsl(var(--accent));
}

/* Section Styling */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

/* --- 4. SPLASH SCREEN --- */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--background));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-logo {
  font-size: 3.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  text-shadow: var(--shadow-glow);
}

.splash-logo-img {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.lang-selection {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --- 5. NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: hsla(0, 0%, 8%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
  transition: var(--transition-base);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo-img {
  height: 81px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--primary));
}

.nav-lang-switcher {
  display: flex;
  align-items: center;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 99px;
  padding: 4px;
}

.lang-switch-btn {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  margin-left: 1rem;
}

/* Wrapper for language switcher and appointment button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* --- 6. HERO SECTION --- */
#home {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Glow effect background */
#home::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(15, 97%, 58%, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-buttons a {
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow-glow);
  border: 1px solid hsl(var(--border));
  filter: brightness(0.9);
}

/* --- 7. CARDS (Services & Stats) --- */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: hsl(var(--card));
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-top: -80px;
  position: relative;
  z-index: 10;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}
.stat-item p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: hsla(15, 97%, 58%, 0.1);
  color: hsl(var(--primary));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- 8. DOCTORS --- */
.doctor-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: var(--transition-smooth);
}

.doctor-card:hover {
  border-color: hsl(var(--border));
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.doc-img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: var(--transition-base);
}

.doctor-card:hover .doc-img {
  filter: grayscale(0%);
}

.doc-info {
  padding: 1.5rem;
}
.doc-spec {
  color: hsl(var(--primary));
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Styling for Main Doctor Cards */
.doctor-card--main {
  background: var(--gradient-subtle);
}

.doctor-card--main:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

/* --- 8.5 ABOUT US --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid hsl(var(--border));
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content p {
  font-size: 1.05rem;
}

/* --- 8.7 VISION & MISSION --- */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.vision-card,
.mission-card {
  background-color: hsl(var(--card));
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  height: 100%;
}

.vision-card h3,
.mission-card h3 {
  font-size: 1.75rem;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

.vision-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.mission-list li {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
}
.mission-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: hsl(var(--primary));
}

/* --- 8.8 INSURANCE PARTNERS --- */
.insurance-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.insurance-images img {
  width: 100%;
  border-radius: var(--radius);
  background: hsl(var(--card));
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
}

/* Make insurance image section wider */
#insurance .about-grid {
  grid-template-columns: 1fr 4.563fr;
}
/* --- 9. APPOINTMENT FORM --- */
#appointment {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-attachment: fixed;
}

#appointment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(0 0% 8% / 0.9), hsl(0 0% 8% / 0.95));
}

.form-container {
  position: relative;
  z-index: 2;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 3rem;
  border-radius: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  transition: var(--transition-base);
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsla(15, 97%, 58%, 0.2);
}

/* --- 10. FOOTER & EXTRAS --- */
footer {
  background-color: hsl(0, 0%, 5%);
  border-top: 1px solid hsl(var(--border));
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a:hover {
  color: hsl(var(--primary));
  padding-left: 5px;
}

.map-container {
  margin-top: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}

.map-container iframe {
  width: 100%;
  height: 300px;
  display: block;
}

.floating-socials {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-icon {
  color: hsl(var(--secondary-foreground));
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px hsla(0, 0%, 0%, 0.3);
  transition: var(--transition-smooth);
}

.floating-wa {
  background: hsl(var(--secondary));
  box-shadow: 0 4px 20px hsla(100, 45%, 50%, 0.4);
}

.floating-ig {
  background: #d62976; /* Instagram Gradient Fallback */
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d62976 60%, #962fbf 90%);
}

.floating-icon:hover {
  background: hsl(var(--secondary-hover));
  transform: scale(1.1);
}

/* --- 11. RESPONSIVE DESIGN --- */
@media (max-width: 1199px) {
  #insurance .about-grid {
    grid-template-columns: 1fr 2fr;
  }
}
/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .insurance-images {
    margin-top: 2rem;
  }
  #insurance .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsl(var(--card));
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid hsl(var(--border));
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-actions {
    margin-left: auto; /* Pindahkan grup aksi ke kanan */
  }
  .nav-menu li:last-child {
    display: none; /* Sembunyikan tombol janji di dalam menu hamburger */
  }
  .nav-appointment-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  .nav-menu {
    gap: 1.5rem;
    padding: 2rem 2rem 1rem; /* Kurangi padding bawah */
  }
  #home {
    padding-top: 120px;
  }
  .hero-image-wrapper {
    margin-top: 2rem;
    max-width: 500px;
    justify-self: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}
