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

:root {
  --pink: #f472b6;
  --pink-light: #fce7f3;
  --pink-dark: #be185d;
  --purple: #a78bfa;
  --purple-light: #ede9fe;
  --teal: #2dd4bf;
  --gold: #f59e0b;
  --text: #1e1b2e;
  --text-muted: #6b6880;
  --bg: #fdfcff;
  --card-bg: #ffffff;
  --border: rgba(167, 139, 250, 0.2);
  --radius: 16px;
  --shadow: 0 4px 24px rgba(167, 139, 250, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 252, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--pink-dark); text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--pink-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fdf4ff 0%, #fce7f3 40%, #ede9fe 100%);
  text-align: center;
  padding-top: 60px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute; border-radius: 50% 0 50% 0;
  opacity: 0.18; animation: float 8s ease-in-out infinite;
}
.petal-1 { width: 120px; height: 120px; background: var(--pink); top: 10%; left: 8%; animation-delay: 0s; }
.petal-2 { width: 80px; height: 80px; background: var(--purple); top: 20%; right: 12%; animation-delay: 1.5s; }
.petal-3 { width: 60px; height: 60px; background: var(--teal); bottom: 30%; left: 15%; animation-delay: 3s; }
.petal-4 { width: 100px; height: 100px; background: var(--pink); bottom: 20%; right: 8%; animation-delay: 4.5s; }
.petal-5 { width: 50px; height: 50px; background: var(--purple); top: 50%; left: 50%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

.hero-content { position: relative; z-index: 1; padding: 2rem; }

.avatar-wrap { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.avatar {
  width: 140px; height: 140px; border-radius: 50%;
  overflow: hidden; border: 4px solid white;
  box-shadow: 0 8px 32px rgba(244, 114, 182, 0.3);
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-light);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem; color: var(--pink-dark); font-weight: 700;
}
.avatar-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--pink);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.3rem;
}
.hero-nick {
  font-size: 1.2rem; color: var(--pink-dark);
  letter-spacing: 0.2em; margin-bottom: 0.8rem;
}
.hero-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.hero-tags { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tag {
  background: white; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 1rem;
  font-size: 0.9rem; color: var(--text-muted);
  box-shadow: var(--shadow);
}
.hero-btn {
  display: inline-block; padding: 0.75rem 2.5rem;
  background: var(--pink-dark); color: white;
  border-radius: 999px; text-decoration: none;
  font-size: 1rem; font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(190, 24, 93, 0.3);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(190, 24, 93, 0.4); }

/* ── SECTIONS ── */
.section { padding: 5rem 1rem; }
.container { max-width: 900px; margin: 0 auto; }
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem; font-weight: 700; text-align: center;
  margin-bottom: 0.5rem; color: var(--text);
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--pink); border-radius: 2px;
  margin: 0.6rem auto 0;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }

/* ── ABOUT ── */
.about { background: #fdfcff; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.about-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-4px); }
.about-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.about-card h3 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.about-card p { font-weight: 500; color: var(--text); }

.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.story-text h3, .story-skills h3 {
  font-family: 'Noto Serif SC', serif; font-size: 1.2rem;
  margin-bottom: 1rem; color: var(--text);
}
.story-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }

.skill-item { margin-bottom: 1rem; }
.skill-name { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 0.3rem; }
.skill-bar { background: var(--purple-light); border-radius: 999px; height: 8px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s ease;
}
.skill-fill.animated { transform: scaleX(1); }

/* ── ART ── */
.art { background: linear-gradient(180deg, #fdfcff 0%, #fdf4ff 100%); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
  aspect-ratio: 3/4; background: var(--pink-light);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,27,46,0.7));
  color: white; padding: 1.5rem 0.8rem 0.6rem;
  font-size: 0.85rem; text-align: center;
}
.placeholder-card {
  border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 3rem 1rem;
  text-align: center; color: var(--text-muted);
  transition: border-color 0.2s; aspect-ratio: 3/4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.placeholder-card:hover { border-color: var(--pink); }
.placeholder-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.placeholder-card p { font-size: 0.9rem; }

/* ── PHOTOS ── */
.photos { background: #fdfcff; }
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.photo-item {
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
  aspect-ratio: 4/3; background: var(--purple-light);
  border: 1px solid var(--border);
}
.photo-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s; display: block;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,27,46,0.72));
  color: white; padding: 1.5rem 0.8rem 0.6rem;
  font-size: 0.82rem; text-align: center;
}

/* ── AWARDS ── */
.awards { background: #fdfcff; }
.awards-timeline { position: relative; padding-left: 2rem; }
.awards-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--pink), var(--purple));
  border-radius: 2px;
}
.award-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; position: relative; }
.award-item::before {
  content: ''; position: absolute; left: -2.4rem; top: 1.5rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink); border: 2px solid white;
  box-shadow: 0 0 0 3px var(--pink-light);
}
.award-year {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem; color: var(--text-muted);
  font-weight: 500; min-width: 40px; padding-top: 1.4rem;
}
.award-card {
  flex: 1; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.award-card:hover { transform: translateY(-2px); }
.award-badge {
  display: inline-block; border-radius: 999px;
  padding: 0.2rem 0.9rem; font-size: 0.8rem; font-weight: 500;
  margin-bottom: 0.6rem;
}
.award-badge.gold { background: #fef3c7; color: #92400e; }
.award-badge.silver { background: #f3f4f6; color: #374151; }
.award-badge.blue { background: #dbeafe; color: #1e40af; }
.award-badge.green { background: #d1fae5; color: #065f46; }
.award-badge.purple { background: #ede9fe; color: #5b21b6; }
.award-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.3rem; }
.award-detail { font-size: 0.85rem; color: var(--text-muted); }
.award-event { font-size: 0.9rem; color: var(--pink-dark); margin: 0.2rem 0; font-weight: 500; }
.award-org { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.cert-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 1rem;
  font-size: 0.82rem; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.cert-btn:hover { border-color: var(--pink); color: var(--pink-dark); background: var(--pink-light); }

/* ── CONTACT ── */
.contact { background: linear-gradient(135deg, #fdf4ff, #ede9fe); text-align: center; }
.contact-card {
  display: inline-block; background: white; border-radius: var(--radius);
  padding: 2rem 3rem; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-info { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; }
.contact-info p { font-size: 0.95rem; color: var(--text-muted); }
.contact-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ── FOOTER ── */
.footer {
  text-align: center; padding: 2rem;
  background: var(--text); color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ── MODAL ── */
.cert-modal, .img-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.cert-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.cert-viewer {
  position: relative; z-index: 1; max-width: 90vw; max-height: 90vh;
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cert-viewer img { display: block; max-width: 80vw; max-height: 80vh; object-fit: contain; }
.modal-caption { text-align: center; padding: 0.6rem 1rem; font-size: 0.9rem; color: var(--text-muted); }
.cert-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5); color: white;
  border: none; border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero-name { font-size: 2rem; }
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(253,252,255,0.97); padding: 1rem 2rem;
    border-bottom: 1px solid var(--border); z-index: 99;
  }
  .nav-toggle { display: flex; }
  .contact-info { flex-direction: column; gap: 0.5rem; }
  .awards-timeline { padding-left: 1.5rem; }
  .award-item { flex-direction: column; gap: 0.3rem; }
  .award-year { padding-top: 0; }
}
