:root {
  --base-color: white;
  --base-variant: #e8e9ed;
  --text-color: #111528;
  --secondary-text: #232738;
  --primary-color: #3a435d;
  --accent-color: #0071ff;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--base-color); /* Mode Terang Default */
  color: var(--text-color); /* Mode Terang Default */
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mode Gelap */
.dark-mode {
  --base-color: #070b1d;
  --base-variant: #101425;
  --text-color: #f8f8f2;
  --secondary-text: #a4a5b8;
  --primary-color: #3a435d;
  --accent-color: #0071ff;
}

.dark-mode header {
  background-color: #282a36;
  color: #f8f8f2;
}

.dark-mode header nav ul li a {
  color: #f8f8f2;
}

.dark-mode header nav ul li a:hover {
  color: #ddd;
}

.dark-mode .hero {
  background-color: #282a36;
  color: #f8f8f2;
}

.dark-mode .hero h1,
.dark-mode .hero .lead {
  color: #f8f8f2;
}

.dark-mode .section {
  color: #f8f8f2;
}

.dark-mode .section.bg-light {
  background-color: #343746;
}

.dark-mode .section h2 {
  color: #f8f8f2;
}

.dark-mode .feature {
  background-color: #343746;
  color: #f8f8f2;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.dark-mode .feature h3 {
  color: #00bcd4;
}

.dark-mode .service {
  background-color: #343746;
  color: #f8f8f2;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.dark-mode .service h3 {
  color: #00bcd4;
}

.dark-mode footer {
  color: #f8f8f2;
}

/* Tombol Mode */
#theme-toggle {
  background: none;
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  font-size: 1em;
  transition: color 0.3s ease;
}

#theme-toggle .tombol {
  fill: var(--primary-color);
}

#theme-toggle .tombol:last-child {
  display: none;
}

.dark-mode #theme-toggle .tombol:first-child {
  display: none;
}

.dark-mode #theme-toggle .tombol:last-child {
  display: block;
}

#theme-toggle:hover {
  color: #ddd;
}

.dark-mode #theme-toggle {
  color: #f8f8f2;
}

.dark-mode #theme-toggle:hover {
  color: #ccc;
}

/* === Gaya yang sudah ada sebelumnya === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background-color: #333;
  color: white;
  padding: 1em 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background-image: url();
  mask-repeat: no-repeat;
  background-size: cover;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  align-items: center;
}

header nav {
  display: flex;
  align-items: center;
}

/* Dropdown Button */
.dropbtn {
  background-color: transparent;
  color: white;
  padding: 0.5em 1em;
  font-size: 1em;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropbtn:hover,
.dropbtn:focus {
  color: #ddd;
}

.dark-mode .dropbtn {
  color: #f8f8f2;
}

.dark-mode .dropbtn:hover,
.dark-mode .dropbtn:focus {
  color: #ccc;
}

/* Dropdown Content (Hidden by Default) */
.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 1.5em; /* Add some spacing between dropdown and theme toggle */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  list-style: none;
}

.dark-mode .dropdown-content {
  background-color: #343746;
  box-shadow: 0px 8px 16px 0px rgba(255, 255, 255, 0.1);
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

.dark-mode .dropdown-content a {
  color: #f8f8f2;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dark-mode .dropdown-content a:hover {
  background-color: #50597b;
  color: #f8f8f2;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hide the original navigation list */
header nav ul {
  display: none;
}

/* Hero Section */
.hero {
  background-color: #e0f7fa;
  padding: 4em 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #263238;
}

.hero .lead {
  font-size: 1.2em;
  color: #455a64;
  margin-bottom: 1.5em;
}

.button {
  display: inline-block;
  background-color: #00bcd4;
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 1000px;
  transition: background-color 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;

  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* .button::after {
  content: "";
  display: inline-block;
  position: absolute;
  border-radius: 1000px;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(to bottom right, #008cff, #e100ff);
  z-index: 1;
  top: 0;
  left: 0;
} */

.button:hover::after {
  background-color: #00acc1;
  z-index: 5;
  box-shadow: 40px 0 100px #008cff, -40px 0 100px #e100ff;
} 

/* Sections */
.section {
  padding: 3em 0;
  text-align: center;
}

.section h2 {
  font-size: 2em;
  color: #263238;
  margin-bottom: 1em;
}

.bg-light {
  background-color: #f9f9f9;
}

/* Feature Grid (Tentang Kami) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 2em;
}

.feature .fade-in#card::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(red);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 1;
  padding: 3px;
  border-radius: 1000px;
}

.feature {
  background-color: rgb(255, 255, 255);
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  margin: 0 auto;
  position: relative;
}

/* .feature h3 {
  color: #00bcd4;
  margin-bottom: 0.5em;
} */

/* Service Grid (Layanan) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 2em;
}

.service {
  background-color: white;
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service h3 {
  color: #00bcd4;
  margin-bottom: 0.5em;
}

/* Kontak */
#kontak address {
  margin-top: 1em;
  font-style: normal;
}

.link {
  color: #00bcd4;
  text-decoration: none;
  background-color: transparent;
  padding: 0.5em 0em;
  font-size: 1em;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.link:hover {
  color: #ccc;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  mask-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: space-between;
}

/* CSS Animations */

/* Fade In */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Up */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
