/* ============================================
   Hyejung Kim — Portfolio
   Warm, vibrant, professional
   ============================================ */

:root {
  --cream: #FFF9F2;
  --cream-alt: #FDF1E6;
  --ink: #2E2019;
  --ink-soft: #5B4A3F;
  --coral: #F1653F;
  --coral-dark: #D74F2C;
  --coral-light: #FFB088;
  --teal: #1F8A82;
  --teal-light: #E4F4F1;
  --gold: #E8A93B;
  --white: #FFFFFF;
  --border: rgba(46, 32, 25, 0.08);
  --shadow: 0 10px 30px rgba(46, 20, 10, 0.08);
  --shadow-lg: 0 20px 50px rgba(46, 20, 10, 0.12);
  --radius: 20px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle grain texture overlay for warmth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

.accent-text {
  color: var(--coral);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--coral-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--coral); }

.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.5;
}

.blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--coral-light), transparent 70%);
  top: -140px; right: -100px;
}

.blob-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--teal-light), transparent 70%);
  bottom: -160px; left: -80px;
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(241, 101, 63, 0.35);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-ring {
  position: relative;
  width: 300px;
  height: 300px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--coral) 0%, var(--gold) 55%, var(--teal) 130%);
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 0 8px var(--white), 0 0 0 9px var(--border);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.badge-float {
  position: absolute;
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}

.badge-1 { top: -6px; left: -30px; animation-delay: 0s; color: var(--coral-dark); }
.badge-2 { bottom: 30px; right: -36px; animation-delay: 1.2s; color: var(--teal); }
.badge-3 { bottom: -18px; left: 10px; animation-delay: 2.4s; color: var(--gold); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.about-strengths h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 138, 130, 0.15);
}

/* ---------- Timeline (Education) ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--coral-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--cream-alt);
  box-shadow: 0 0 0 3px var(--coral-light);
}

.timeline-card, .info-card, .feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral-dark);
  background: rgba(241, 101, 63, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.card-role {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.card-detail {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Feature card (Research) ---------- */
.feature-card {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-body ul {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.feature-body li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

/* ---------- Card grid (Volunteer / Leadership) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-card ul {
  padding-left: 20px;
  color: var(--ink-soft);
}

.info-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.info-card h3 { color: var(--coral-dark); }

/* ---------- Certifications ---------- */
.cert-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.cert-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cert-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-section {
  background: linear-gradient(160deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--white);
  text-align: center;
  border-radius: 40px 40px 0 0;
  margin-top: 20px;
}

.contact-section .eyebrow { color: var(--cream); opacity: 0.85; }
.contact-section h2 { color: var(--white); }

.contact-sub {
  max-width: 500px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.contact-links {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--coral-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .avatar-ring { width: 220px; height: 220px; }
  .avatar { font-size: 3.4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 70px; }
  .section { padding: 70px 0; }
  .badge-float { display: none; }
}
