/* ============================================================
   PORTFOLIO IZAAZ ANDIKA A — Neumorphism (Soft UI)
   Semua warna & bayangan memakai CSS variables di :root.
   Untuk ganti warna aksen/latar: cukup ubah variabel di bawah.
   ============================================================ */

:root {
  /* Palet mode terang */
  --bg: #e0e5ec;               /* latar utama (satu warna lembut) */
  --bg-alt: #e6ebf2;           /* variasi sangat mirip untuk section */
  --text: #2d3446;             /* teks utama (kontras > 4.5:1 di atas --bg) */
  --text-muted: #5c6478;       /* teks sekunder */
  --accent: #31AAA9;           /* SATU warna aksen */
  --accent-dark: #5348d6;      /* variasi gelap untuk gradien */
  --shadow-light: #ffffff;     /* bayangan terang (kiri-atas) */
  --shadow-dark: #a3b1c6;      /* bayangan gelap (kanan-bawah) */

  /* Bayangan neumorphic standar */
  --neu-raised: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  --neu-raised-sm: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  --neu-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
  --neu-inset-sm: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);

  --radius: 20px;              /* border-radius kartu (16-30px) */
  --radius-btn: 16px;
  --container: 1100px;
}

/* Palet mode gelap — neumorphism disesuaikan (bayangan lebih pekat) */
[data-theme="dark"] {
  --bg: #2c2f38;
  --bg-alt: #30333d;
  --text: #e8eaf0;
  --text-muted: #a8adba;
  --accent: #31AAA9;
  --accent-dark: #5348d6;
  --shadow-light: #383c47;
  --shadow-dark: #1e2028;
  --neu-raised: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  --neu-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
  --neu-inset-sm: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
  --neu-raised-sm: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

/* ---------- Reset & dasar ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }

/* Judul section dengan aksen kecil di bawahnya */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin: 12px auto 0;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ---------- Animasi fade-in saat scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR — sticky, permukaan timbul
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: background 0.4s ease;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  transition: color 0.25s, box-shadow 0.25s, background 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  box-shadow: var(--neu-inset-sm);
}

/* Tombol toggle tema: bulat timbul */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  cursor: pointer;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.theme-toggle:hover { box-shadow: var(--neu-inset-sm); }
.theme-toggle:active { transform: scale(0.95); }

/* Tombol hamburger (mobile) */
.nav-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-greeting {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.hero-name {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  font-weight: 600;
  min-height: 1.8em;
  margin: 6px 0 14px;
}
/* Kursor kedip untuk efek teks bergantian */
.hero-role .cursor {
  display: inline-block;
  width: 2px;
  background: var(--accent);
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

/* Tombol neumorphic: timbul → cekung saat hover/active */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover {
  box-shadow: var(--neu-inset-sm);
  color: var(--accent);
}
.btn:active { transform: scale(0.97); }
.btn-accent { color: var(--accent); }

/* Foto profil dalam bingkai neumorphic bulat */
.hero-photo-wrap {
  display: grid;
  place-items: center;
}
.hero-photo {
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  border-radius: 50%;
  box-shadow: var(--neu-raised);
  padding: 18px;
  background: var(--bg);
  transition: background 0.4s ease;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   TENTANG — kartu inset
   ============================================================ */
.about-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--neu-inset);
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.02rem;
  transition: background 0.4s ease;
}
.about-card strong { color: var(--accent); }
.about-card p + p { margin-top: 14px; }

/* Judul + kartu usaha (link Instagram): Zesz Store & NataCreative.id */
.biz-title {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text);
}
.about-biz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 20px;
}
.biz-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--neu-raised-sm);
  padding: 14px 18px;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}
.biz-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.biz-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--neu-inset-sm);
  color: var(--accent);
}
.biz-icon svg { width: 22px; height: 22px; }
.biz-card h3 {
  font-size: 0.92rem;
  margin-bottom: 1px;
  color: var(--accent);
}
.biz-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   GALERI — filter + grid + lightbox
   ============================================================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow 0.2s, color 0.2s;
}
.filter-btn:hover { color: var(--accent); }
.filter-btn.active {
  box-shadow: var(--neu-inset-sm);
  color: var(--accent);
}

/* Grid gaya "bento": satu item besar + variasi ukuran, rapat otomatis */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;          /* isi celah saat item difilter */
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--neu-raised);
  padding: 11px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.3s, background 0.4s;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
}

/* Pola ukuran: item pertama besar (2x2), sisanya selang-seling lebar/tinggi */
.gallery-item:nth-child(8n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(8n + 4) { grid-row: span 2; }
.gallery-item:nth-child(8n + 6) { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Caption overlay di atas foto, teks polos tanpa gradasi hitam */
.gallery-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 8px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.hidden { display: none; }

/* Lightbox sederhana */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 22, 28, 0.85);
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--neu-raised-sm);
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover { box-shadow: var(--neu-inset-sm); color: var(--accent); }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
}

/* ============================================================
   KONTAK — input inset + ikon sosial bulat timbul
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--neu-raised);
  padding: 36px;
  transition: background 0.4s ease;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: var(--neu-inset-sm), 0 0 0 2px var(--accent);
}
.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  min-height: 1.4em;
}

.contact-info {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--neu-inset);
  padding: 36px;
  transition: background 0.4s ease;
}
.contact-info h3 { margin-bottom: 18px; font-size: 1.15rem; }
.contact-list { list-style: none; margin-bottom: 28px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text);
}
.contact-list .ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--neu-raised-sm);
  flex-shrink: 0;
  color: var(--accent);
}
.contact-list .ico svg { width: 18px; height: 18px; }

/* Ikon sosial media bulat timbul */
.social-icons { display: flex; gap: 16px; }
.social-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: box-shadow 0.2s, color 0.2s, transform 0.2s;
}
.social-icons a:hover {
  box-shadow: var(--neu-inset-sm);
  color: var(--accent);
  transform: translateY(-3px);
}
.social-icons svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}
.footer span { color: var(--accent); }

/* ============================================================
   RESPONSIF
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrap { order: -1; }           /* foto di atas pada tablet/mobile */
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .about-biz { grid-template-columns: 1fr; }}

@media (max-width: 768px) {
  /* Menu mobile: hamburger + dropdown */
  .nav-hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--neu-raised);
    padding: 12px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .navbar { position: sticky; }
  section { padding: 64px 0; }
  .about-card, .contact-form, .contact-info { padding: 28px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 14px; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}

/* Hormati pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { transition: none; opacity: 1; transform: none; }
}