* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode */
  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --bg-alt: #e9ecef;
  --text-title: #111111;
  --text-body: #495057;
  --primary: #000000;
  --primary-hover: #343a40;
  --border-color: #dee2e6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1080px;
}

body.dark-theme {
  /* Dark Mode */
  --bg-main: #121212;
  --bg-card: #1e1e1e;
  --bg-alt: #2b2b2b;
  --text-title: #ffffff;
  --text-body: #adb5bd;
  --primary: #ffffff;
  --primary-hover: #e9ecef;
  --border-color: #343a40;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header, .skill-card, .project-card, .about-card, .stat, .pendidikan-card, .pendidikan-item {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
} 

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

/* Navigasi */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 8%;
  background-color: var(--bg-main);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-title);
}

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

.navbar a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar a:hover {
  color: var(--text-title);
  transform: translateY(-2px);
}

.btn-nav {
  background-color: var(--primary);
  color: var(--bg-main) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: var(--primary-hover);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5% 4rem;
  text-align: center;
}

.gambar {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto 20px auto;
}

.gambar img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.status-gua {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-alt);
  color: var(--text-title);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.bola-hijau {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--text-title);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.Nama {
  color: var(--text-title);
}

.profesigua {
  font-size: 1.25rem;
  color: var(--text-body);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.deskripsi {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tombol {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tombol Global */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-1 {
  background-color: var(--primary);
  color: var(--bg-main);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow);
}

.btn-1:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
}

.btn-2 {
  background-color: transparent;
  color: var(--text-title);
  border: 1px solid var(--border-color);
}

.btn-2:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-title);
  transform: translateY(-3px);
}

/* Statistik */
.stat {
  max-width: var(--max-width);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: grid;
  text-align: center;
  box-shadow: var(--shadow);
  padding: 2rem;
  background-color: var(--bg-card);
  grid-template-columns: 1fr 1fr;
  margin: 0 auto 4rem;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--text-title);
  font-weight: 800;
}

.stat-item p {
  font-size: 1rem;
  color: var(--text-body);
  font-weight: 500;
}

/* Section Wrapper */
.aboutgua,
.skills-section,
.projects-section,
.contact-section {
  padding: 5rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-title,
.section-title {
  font-size: 2rem;
  color: var(--text-title);
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-card {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* Pendidikan */
.pendidikan-section {
  padding: 0 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pendidikan-card {
  background-color: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  box-shadow: var(--shadow);
}

.pendidikan-title {
  font-size: 1.5rem;
  color: var(--text-title);
  margin-bottom: 2rem;
}

.container-pendidikan {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pendidikan-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.pendidikan-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.pendidikan-img:hover {
  filter: grayscale(0%);
  transform: translateY(-5px);
}

.pendidikan-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-title);
}

.pendidikan-tahun {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Grid Skills & Projects */
.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card,
.project-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.skill-card {
  align-items: center;
  text-align: center;
}

.skill-card h3 {
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-5px);
}

.skill-icon-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-title);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1.5rem;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* Kontak & Footer */
.contact-section {
  text-align: center;
}

.contact-section p {
  margin-bottom: 2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-body);
  background-color: var(--bg-main);
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .navbar {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stat {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}