/* ============================================================
   PORTFOLIO STYLESHEET
   Tema: Hangat & Elegan — terinspirasi karya Tere Liye
   Palet: Cream, Coklat Muda, Putih, Dark Accent
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Warna Utama — Light Mode */
  --cream:        #f5f0e8;
  --cream-dark:   #ede4d4;
  --cream-deeper: #e0d5c0;
  --brown-light:  #c4a882;
  --brown-mid:    #a0835a;
  --brown-dark:   #7a5c38;
  --dark:         #2c1f0f;
  --dark-mid:     #3d2d17;
  --white:        #fffdf9;
  --text-main:    #2c1f0f;
  --text-muted:   #7a6a55;
  --text-light:   #a89882;

  /* Background */
  --bg-primary:   #fffdf9;
  --bg-secondary: #f5f0e8;
  --bg-card:      #ffffff;
  --bg-alt:       #faf6ee;

  /* Border */
  --border:       #e0d5c0;
  --border-light: #ede8de;

  /* Accent */
  --accent:       #c7845e;
  --accent-hover: #b06a47;
  --accent-soft:  #f0e4d8;

  /* Navbar */
  --nav-bg:       rgba(255, 253, 249, 0.92);
  --nav-shadow:   0 2px 24px rgba(44, 31, 15, 0.08);

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(122, 92, 56, 0.08);
  --shadow-md:    0 6px 28px rgba(122, 92, 56, 0.12);
  --shadow-lg:    0 16px 48px rgba(122, 92, 56, 0.14);

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Lato', system-ui, sans-serif;

  /* Spacing */
  --section-py:   6rem;
  --container-w:  1100px;

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;

  /* Transitions */
  --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== DARK MODE VARIABLES ===== */
[data-theme="dark"] {
  --cream:        #1a1410;
  --cream-dark:   #231c14;
  --cream-deeper: #2c2318;
  --brown-light:  #6b543c;
  --brown-mid:    #8a6d4e;
  --brown-dark:   #c4a882;
  --dark:         #f0e8d8;
  --dark-mid:     #d4c4a8;
  --white:        #1a1410;
  --text-main:    #f0e8d8;
  --text-muted:   #b8a888;
  --text-light:   #8a7a65;

  --bg-primary:   #120e08;
  --bg-secondary: #1a1410;
  --bg-card:      #211a12;
  --bg-alt:       #1e1810;

  --border:       #3a2e20;
  --border-light: #2e2418;

  --accent:       #d4926c;
  --accent-hover: #e0a880;
  --accent-soft:  #2e1e14;

  --nav-bg:       rgba(18, 14, 8, 0.94);
  --nav-shadow:   0 2px 24px rgba(0, 0, 0, 0.3);

  --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md:    0 6px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.45);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.75;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION DEFAULTS ===== */
.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brown-light));
  border-radius: 2px;
  margin: 0 auto;
}

.section-desc {
  margin-top: 1.25rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199, 132, 94, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== ANIMATIONS ===== */
/* Fade-in untuk hero elements */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal on scroll (ditambahkan via JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger untuk children .reveal */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

/* Saat scroll — navbar mendapat shadow */
.navbar.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--nav-shadow);
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.nav-brand:hover { color: var(--accent); }

.brand-dot {
  color: var(--accent);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Dark mode toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-left: 0.5rem;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 2rem 4rem;
  max-width: var(--container-w);
  margin: 0 auto;
  gap: 3rem;
  position: relative;
}

/* Dekorasi lingkaran latar */
.hero-decor {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}
.hero-decor-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  top: -120px;
  right: -160px;
}
.hero-decor-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--cream-dark), transparent 70%);
  bottom: 40px;
  left: -100px;
}

/* Teks hero */
.hero-container {
  flex: 1;
  max-width: 560px;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.role-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  transition: var(--transition);
}
.role-tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.role-sep {
  color: var(--text-light);
  font-size: 1.1rem;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Foto hero */
.hero-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-frame {
  width: 320px;
  height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--cream-deeper);
  box-shadow: var(--shadow-lg);
  position: relative;
  /* Efek double border dekoratif */
  outline: 8px solid var(--bg-primary);
  outline-offset: -3px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-photo-frame:hover .hero-photo {
  transform: scale(1.04);
}

/* Badge status online */
.status-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5cb85c;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(92, 184, 92, 0); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: start;
}

/* Kartu fakta kecil */
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.fact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.fact-icon {
  font-size: 1.4rem;
  color: var(--accent);
}
.fact-card h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.fact-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Teks deskripsi */
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.about-intro {
  font-size: 1.12rem !important;
  color: var(--text-main) !important;
  line-height: 1.8;
}
.about-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.skills-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.skills-group-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skills-group-title i {
  color: var(--accent);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item {}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.skill-bar {
  height: 6px;
  background: var(--cream-deeper);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0; /* diisi JS saat masuk viewport */
  background: linear-gradient(90deg, var(--accent), var(--brown-light));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pills / badge teknologi */
.skills-pills {
  text-align: center;
}

.skills-pills-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.75rem;
}

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.pill-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
}
.pill-card i {
  font-size: 1.15rem;
  color: var(--accent);
}
.pill-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   CERTIFICATES SECTION
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Gambar sertifikat */
.cert-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cert-card:hover .cert-img {
  transform: scale(1.06);
}

/* Overlay tombol lihat */
.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 31, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.cert-card:hover .cert-overlay {
  opacity: 1;
}
.cert-view-btn {
  background: var(--white);
  color: var(--accent);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}
.cert-view-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Info bawah kartu */
.cert-body {
  padding: 1.1rem 1.25rem 1.35rem;
}
.cert-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.cert-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 12, 4, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-content {
  text-align: center;
  max-width: 860px;
  width: 100%;
}
.lightbox-content img {
  border-radius: var(--radius-md);
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#lightboxCaption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Kartu kontak */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* Ikon kontak bulat */
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.email-icon { background: #fff3f0; color: #e05c40; }
.wa-icon    { background: #e8f5e9; color: #2e7d32; }
.ig-icon    { background: #fce4ec; color: #c2185b; }
.gh-icon    { background: #f3e8ff; color: #6a1b9a; }

[data-theme="dark"] .email-icon { background: #2c1a14; }
[data-theme="dark"] .wa-icon    { background: #142c14; }
[data-theme="dark"] .ig-icon    { background: #2c1424; }
[data-theme="dark"] .gh-icon    { background: #1e142c; }

.contact-details {
  flex: 1;
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.contact-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-arrow {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}
.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Form kontak */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  resize: none;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(199, 132, 94, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-mid);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 0;
}
[data-theme="dark"] .footer {
  background: #0d0a07;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.25rem;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-nav a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.25rem;
  flex-wrap: wrap;
  align-content: flex-start;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(199, 132, 94, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Hero */
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 110px;
    padding-bottom: 3rem;
    gap: 2.5rem;
  }
  .hero-role { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-quote { text-align: left; }
  .hero-photo-frame { width: 260px; height: 320px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Certs */
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --section-py: 4rem; }

  /* Navbar mobile */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    align-items: flex-start;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
  }
  .theme-toggle { margin-left: 0; margin-top: 0.5rem; }

  /* Hero */
  .hero { padding: 100px 1.25rem 3rem; }
  .hero-photo-frame { width: 220px; height: 270px; }
  .hero-decor { display: none; }

  /* About */
  .about-facts { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .fact-card { padding: 1rem; }

  /* Certs */
  .cert-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-form-wrap { padding: 1.5rem; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }

  /* Container padding */
  .container { padding: 0 1.25rem; }
}
