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

:root {
  --red: #a8233c;
  --red-dark: #821a2e;
  --red-light: #ffccd5;
  --pink-bg: #fff5f6;
  --pink-mid: #ffe0e6;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-muted: #666;
  --shadow-sm: 0 2px 12px rgba(168,35,60,0.08);
  --shadow-md: 0 8px 30px rgba(168,35,60,0.12);
  --shadow-lg: 0 20px 60px rgba(168,35,60,0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--pink-bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--red); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-mid);
  padding: 0;
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.navbar-brand:hover { color: var(--red); opacity: 0.8; }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  border: 1.5px solid transparent;
  letter-spacing: 0.3px;
}
.nav-links a:hover {
  background: var(--pink-bg);
  color: var(--red);
  border-color: var(--red-light);
  transform: translateY(-1px);
}
.nav-links li:last-child a {
  background: var(--red);
  color: white;
  border-color: var(--red);
  padding: 8px 20px;
}
.nav-links li:last-child a:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168,35,60,0.3);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--red);
  font-size: 1.5rem;
}
.mobile-menu {
  display: none;
  background: white;
  border-bottom: 1px solid var(--pink-mid);
  padding: 12px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--pink-bg);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--red); padding-left: 8px; }

/* ===== HERO ===== */
.hero {
  background: var(--white);
  border-radius: 0 0 60px 60px;
  padding: 44px 0 48px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--pink-mid);
  border-radius: 50%;
  opacity: 0.5;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-name {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red);
  color: white;
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--red);
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--red);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { background: var(--red); color: white; transform: translateY(-2px); }

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo {
  width: 270px;
  height: 270px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  border: 5px solid var(--red);
  box-shadow: var(--shadow-lg);
  animation: morphBorder 8s ease-in-out infinite;
  background: var(--pink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo.photo-fallback::after {
  content: 'BA';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--red);
  font-weight: 700;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes morphBorder {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%       { border-radius: 50% 50% 40% 60% / 40% 50% 60% 50%; }
  75%       { border-radius: 40% 60% 50% 50% / 60% 40% 50% 50%; }
}

/* ===== SKILLS ===== */
.skills-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.skill-badge {
  background: var(--red-light);
  color: var(--red-dark);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}
.skill-badge:hover { background: var(--red); color: white; transform: scale(1.05); }

/* ===== SECTION WRAPPER ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }
.section-title {
  font-size: 1.7rem;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 40px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.section-title:hover::after { width: 100%; }

/* ===== MAIN LAYOUT ===== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== EXPERIENCE CARDS ===== */
.exp-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink-bg), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.exp-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-width: 6px;
}
.exp-card:hover::before { opacity: 1; }

.exp-card-content { position: relative; }
.exp-card h5 { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.exp-card .year { font-size: 0.8rem; color: var(--text-muted); }
.exp-card-arrow {
  color: var(--red);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}
.exp-card:hover .exp-card-arrow { opacity: 1; transform: translateX(0); }

.exp-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.tag-org { background: #e8f4fd; color: #1a6fa8; }
.tag-vol { background: #e8fdf0; color: #1a7a45; }
.tag-kepem { background: #fdf3e8; color: #a06010; }
.tag-mil { background: #f0e8fd; color: #6a1aaa; }

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border-top: 4px solid var(--red);
}
.sidebar-card h2 { font-size: 1.3rem; margin-bottom: 20px; }

/* Pendidikan */
.edu-item { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--pink-mid); }
.edu-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.edu-school { font-weight: 700; color: var(--red); font-size: 0.95rem; }
.edu-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* Kontak */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pink-mid);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { padding-left: 6px; }
.contact-item:hover .contact-icon { background: var(--red); color: white; }
.contact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--pink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
  transition: var(--transition);
}
.contact-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 0.85rem; font-weight: 600; color: var(--text); word-break: break-word; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--pink-mid);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--red);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--red); color: white; }
.modal-tag { margin-bottom: 12px; }
.modal-title { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-year { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.modal-divider { height: 2px; background: var(--pink-mid); border-radius: 2px; margin: 20px 0; }
.modal-intro { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.modal-highlights { list-style: none; margin-top: 16px; }
.modal-highlights li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--pink-bg);
}
.modal-highlights li:last-child { border-bottom: none; }
.modal-highlights li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.7rem;
  top: 10px;
}
.modal-photo-placeholder {
  background: var(--pink-bg);
  border: 2px dashed var(--red-light);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.modal-photo-placeholder i { font-size: 2.5rem; color: var(--red-light); display: block; margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  border-top: 1px solid var(--pink-mid);
  padding: 32px 24px;
  text-align: center;
}
footer .footer-name {
  font-family: 'Playfair Display', serif;
  color: var(--red);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
footer .footer-sub { font-size: 0.82rem; color: var(--text-muted); }

/* ===== FADE-IN ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: 200px; height: 200px; }
  .main-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  .hero { border-radius: 0 0 32px 32px; padding: 48px 0 40px; }
  .section-title { font-size: 1.4rem; }
  .modal-box { padding: 24px; }
}
