/* ─── CSS VARIABLES ─── */
:root {
  --cream: #fdf8f3;
  --blush: #f4b8c1;
  --rose: #e88fa0;
  --mauve: #c97a92;
  --mint: #b8e4d8;
  --sage: #8ec4b4;
  --butter: #f9e4a0;
  --peach: #f9cba0;
  --lavender: #d4c0e8;
  --ink: #2d2235;
  --ink-soft: #5a4a65;
  --ink-muted: #9a8aaa;
  --card-bg: #fffbf8;
  --shadow: rgba(180, 120, 150, 0.15);
}

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

/* ─── BASE ─── */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── BACKGROUND BLOBS ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 15%, rgba(244,184,193,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 90% 80%, rgba(184,228,216,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 30%, rgba(212,192,232,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 350px 350px at 20% 75%, rgba(249,228,160,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── FLOATING DECO ─── */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  font-size: 1.4rem;
  opacity: 0.18;
  animation: floatDeco 6s ease-in-out infinite;
}
.deco:nth-child(1) { top: 8%;  left: 5%;  animation-delay: 0s;   font-size: 1.8rem; }
.deco:nth-child(2) { top: 20%; right: 7%; animation-delay: 1.2s; font-size: 1.2rem; }
.deco:nth-child(3) { top: 60%; left: 3%;  animation-delay: 2.4s; font-size: 1rem; }
.deco:nth-child(4) { bottom: 20%; right: 5%; animation-delay: 0.8s; font-size: 2rem; }
.deco:nth-child(5) { top: 45%; right: 3%; animation-delay: 3s;   font-size: 1.4rem; }
.deco:nth-child(6) { bottom: 5%; left: 10%; animation-delay: 1.8s; font-size: 1.6rem; }

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

/* ─── WRAPPER ─── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ─── CARD BASE ─── */
.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2rem 2.2rem;
  box-shadow: 0 4px 24px var(--shadow), 0 0 0 1.5px rgba(200,150,170,0.1);
  margin-bottom: 1.5rem;
  animation: slideUp 0.7s ease both;
}
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.24s; }
.card:nth-child(5) { animation-delay: 0.32s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO ─── */
.hero {
  border-radius: 28px;
  padding: 2.5rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.8rem;
  align-items: center;
}

/* Avatar */
.avatar-wrap { position: relative; }
.avatar-ring {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--lavender), var(--mint));
  padding: 3px;
  box-shadow: 0 4px 20px rgba(200,130,160,0.35);
  animation: spinRing 8s linear infinite;
}
@keyframes spinRing {
  0%   { background: linear-gradient(135deg, var(--blush), var(--lavender), var(--mint)); }
  33%  { background: linear-gradient(135deg, var(--mint), var(--blush), var(--butter)); }
  66%  { background: linear-gradient(135deg, var(--lavender), var(--mint), var(--blush)); }
  100% { background: linear-gradient(135deg, var(--blush), var(--lavender), var(--mint)); }
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--butter);
  border: 2px solid white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Hero Info */
.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.hero-name span {
  font-style: italic;
  color: var(--mauve);
}
.hero-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(244,184,193,0.35), rgba(212,192,232,0.3));
  border: 1px solid rgba(200,150,170,0.25);
  border-radius: 20px;
  padding: 0.22rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mauve);
}

/* Hero Contact */
.hero-contact {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  color: var(--ink-soft);
  font-weight: 600;
  background: rgba(200,150,170,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(200,150,170,0.15);
  min-width: 200px;
  justify-content: flex-start;
}
.contact-icon { font-size: 0.9rem; }
.hero-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.link-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 14px var(--shadow); }
.link-pill.github   { background: var(--ink); color: white; }
.link-pill.portfolio { background: linear-gradient(135deg, var(--blush), var(--rose)); color: white; }

/* ─── SECTION HEAD ─── */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}
.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.icon-about  { background: linear-gradient(135deg, rgba(249,228,160,0.6), rgba(249,203,160,0.6)); }
.icon-exp    { background: linear-gradient(135deg, rgba(184,228,216,0.6), rgba(142,196,180,0.5)); }
.icon-skills { background: linear-gradient(135deg, rgba(212,192,232,0.6), rgba(180,150,220,0.4)); }
.icon-edu    { background: linear-gradient(135deg, rgba(244,184,193,0.6), rgba(232,143,160,0.4)); }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--ink);
}

/* ─── ABOUT ─── */
.about-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
}

/* ─── EXPERIENCE ─── */
.exp-item {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}
.exp-item:last-child { margin-bottom: 0; }
.exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--blush), transparent);
}
.exp-item:last-child::before { display: none; }
.exp-dot {
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--mauve));
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(200,130,160,0.4);
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.exp-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.3;
}
.exp-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--mauve));
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
}
.exp-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.exp-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.65;
  text-align: justify;
}

/* ─── BOTTOM ROW ─── */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ─── SKILLS ─── */
.skill-group { margin-bottom: 1rem; }
.skill-group:last-child { margin-bottom: 0; }
.skill-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.skill-tag {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  transition: transform 0.2s;
  cursor: default;
}
.skill-tag:hover { transform: scale(1.05); }
.skill-tag.tools  { background: rgba(184,228,216,0.35); color: #3a7a70; border: 1px solid rgba(142,196,180,0.4); }
.skill-tag.design { background: rgba(212,192,232,0.35); color: #7050a0; border: 1px solid rgba(180,150,220,0.4); }
.skill-tag.office { background: rgba(249,228,160,0.4);  color: #8a6e10; border: 1px solid rgba(220,180,80,0.35); }
.skill-tag.google { background: rgba(249,203,160,0.4);  color: #9a5a20; border: 1px solid rgba(230,160,100,0.35); }

/* ─── EDUCATION ─── */
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.edu-item:last-child { margin-bottom: 0; }
.edu-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.edu-level {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.edu-school {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0.1rem;
}

/* ─── FOOTER ─── */
.footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 1rem;
  padding: 1rem;
  animation: slideUp 0.7s 0.4s ease both;
}
.footer span { color: var(--rose); }

/* ─── DARK MODE BUTTON ─── */
.theme-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.3rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.theme-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }

/* ─── DARK THEME ─── */
body.dark {
  --cream: #1a1320;
  --card-bg: #231929;
  --ink: #f0e8f8;
  --ink-soft: #c8b8d8;
  --ink-muted: #8a7a9a;
  --shadow: rgba(0,0,0,0.35);
}
body.dark .avatar-ring { box-shadow: 0 4px 20px rgba(220,130,160,0.5); }
body.dark .contact-chip { background: rgba(200,150,170,0.12); border-color: rgba(200,150,170,0.2); }
body.dark .tag { background: rgba(244,184,193,0.12); border-color: rgba(200,150,170,0.2); }
body.dark .link-pill.github { background: #3d2f4a; }
body.dark .theme-btn { background: var(--blush); color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-contact { align-items: center; }
  .hero-links { justify-content: center; }
  .hero-tags { justify-content: center; }
  .bottom-row { grid-template-columns: 1fr; }
  .hero-name { font-size: 2rem; }
}