:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #1f2937;
  --muted: #1d1e1f;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #dfe7f1;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Variabel Dark Mode */
html.dark-mode {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-soft: #2a2a2a;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --primary-dark: #60a5fa;
  --border: #374151;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Adaptasi Elemen Khusus saat Dark Mode */
html.dark-mode .site-header {
  background: rgba(18, 18, 18, 0.9);
}

html.dark-mode .profile-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 1.3rem;
  color: var(--text);
}

.dark-mode-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.hero {
  padding: 88px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  color: var(--muted);
}

.stats strong {
  display: block;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.2;
}

.profile-card {
  background: linear-gradient(135deg, #e0ebff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 340px;
  margin: 0 auto;
}

.profile-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

.floating-badge {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
}

section {
  padding: 26px 0 18px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.about-grid,
.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.02);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  font-weight: 700;
  text-align: center;
}

.project-card {
  overflow: hidden;
}

.project-thumb {
  min-height: 200px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--primary-dark);
  font-size: 2.4rem;
  font-weight: 700;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: var(--surface-soft);
  color: var(--primary-dark);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.experience-list {
  display: grid;
  gap: 20px;
}

.experience-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
}

.year {
  color: var(--primary-dark);
  font-weight: 700;
}

.experience-item h3 {
  margin: 0 0 6px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--primary-dark);
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.footer {
  padding: 20px 0 42px;
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero-grid,
  .about-grid,
  .project-grid,
  .contact-grid,
  .skill-list {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   FIX WARNA ELEMEN SAAT DARK MODE
   ========================================== */

html.dark-mode .btn.secondary {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

html.dark-mode .btn.secondary:hover {
  background: var(--border);
}

html.dark-mode .floating-badge {
  background: rgba(30, 30, 30, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
}

html.dark-mode input,
html.dark-mode textarea {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

/* Menyesuaikan ukuran dan jarak input agar rapi */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #333333;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 15px;
  box-sizing: border-box;
}

/* Warna teks petunjuk (placeholder) */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777777;
}

/* Styling Tombol Kirim Pesan agar tinggi & tebal */
.btn-submit {
  width: 100%;
  padding: 14px 20px;
  background-color: #2563eb; /* Warna biru modern */
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 5px;
}

/* Efek saat tombol di-hover mouse */
.btn-submit:hover {
  background-color: #1d4ed8;
}

/* Styling Tombol Kirim Pesan Agar Besar & Proporsional */
/* Styling Tombol Kirim Pesan Agar Besar & Proporsional (Dipaksa) */
.btn-submit {
    width: 100% !important;
    padding: 18px 25px !important;  /* PAKSA TINGGI JADI BESAR */
    
    background-color: #2563eb !important; /* PAKSA WARNA JADI SOLID */
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !important;
    
    border: none !important;
    border-radius: 12px !important;
    
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    box-sizing: border-box !important;
    margin-top: 20px !important;
    display: block !important; /* Pastikan dia solid, bukan inline */
}

/* Hover effect tetap sama */
.btn-submit:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
}
/* Efek saat tombol diklik (Active) */
.btn-submit:active {
    transform: translateY(1px); /* Tombol sedikit turun saat ditekan */
}
