:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #15141a;
  --text-dim: #63616f;
  --border: #ece9f4;

  --violet: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --teal: #0891b2;

  --violet-bg: rgba(124, 58, 237, 0.1);
  --pink-bg: rgba(236, 72, 153, 0.1);
  --orange-bg: rgba(249, 115, 22, 0.1);
  --teal-bg: rgba(8, 145, 178, 0.1);

  --gradient: linear-gradient(135deg, var(--violet), var(--pink) 55%, var(--orange));
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-display); }

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.nav-links a:hover { text-decoration: none; background: var(--violet-bg); color: var(--violet); }
.nav-links a.active { background: var(--gradient); color: #fff; }

/* ---------- VIEW SWITCH ---------- */
.view-switch {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(20, 10, 40, 0.12);
}
.view-switch a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text-dim);
}
.view-switch a:hover { text-decoration: none; }
.view-switch a.active { background: var(--gradient); color: #fff; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.18;
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
}
.hero-text { flex: 1; min-width: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.hero-name {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-name .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-dim);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.badge.pink { background: var(--pink-bg); color: var(--pink); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.teal { background: var(--teal-bg); color: var(--teal); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  display: inline-block;
}
.btn-grad { background: var(--gradient); color: #fff; }
.btn-grad:hover { text-decoration: none; opacity: 0.92; }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { text-decoration: none; background: var(--text); color: #fff; }

.hero-photo { flex-shrink: 0; text-align: center; }
.hero-photo .frame {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  padding: 6px;
  background: var(--gradient);
  transform: rotate(-3deg);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.25);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  background: var(--surface);
}

/* ---------- SECTIONS ---------- */
.section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}
.section-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- ABOUT ---------- */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--violet);
  border-radius: 20px;
  padding: 2rem;
}
.about-card p { font-size: 1.1rem; margin: 0 0 1.25rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- EXPERIENCE TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  border-left: 5px solid var(--violet);
}
.entry:nth-child(4n+2) { border-left-color: var(--pink); }
.entry:nth-child(4n+3) { border-left-color: var(--orange); }
.entry:nth-child(4n+4) { border-left-color: var(--teal); }

.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.entry-head h3 { margin: 0; font-size: 1.15rem; }
.entry-dates { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.entry-company { margin: 0.35rem 0 0.9rem; font-weight: 600; color: var(--violet); font-size: 0.9rem; }
.entry-bullets { margin: 0; padding-left: 1.2rem; color: var(--text-dim); }
.entry-bullets li { margin-bottom: 0.4rem; }

/* ---------- SKILLS / CERTIFICATIONS ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
}
.skill-group h3 { margin: 0 0 1rem; font-size: 1rem; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px; }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.pink { background: var(--pink-bg); color: var(--pink); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.teal { background: var(--teal-bg); color: var(--teal); }

.cert-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- INITIATIVES ---------- */
.initiative-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.initiative-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.initiative-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20, 10, 40, 0.1); }
.initiative-top { height: 8px; background: var(--gradient); }
.initiative-body { padding: 1.5rem; }
.initiative-body h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.initiative-body p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 1rem; }
.initiative-tag { font-size: 0.78rem; font-weight: 700; color: var(--violet); }

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 0.5rem 0.5rem 1.5rem;
}
.gallery-card {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  padding: 6px;
  background: var(--gradient);
  box-shadow: 0 16px 32px rgba(20, 10, 40, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  background: var(--surface);
}
.gallery-card.r1 { transform: rotate(-3deg); }
.gallery-card.r2 { transform: rotate(2deg); }
.gallery-card.r3 { transform: rotate(-2deg); }
.gallery-card.r4 { transform: rotate(3deg); }
.gallery-card.r5 { transform: rotate(-2.5deg); }
.gallery-card.r6 { transform: rotate(2.5deg); }
.gallery-card.r7 { transform: rotate(-1.5deg); }
.gallery-card:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 22px 44px rgba(20, 10, 40, 0.22);
  z-index: 2;
}

/* ---------- CONTACT ---------- */
.contact-panel {
  background: var(--gradient);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  text-align: center;
  color: #fff;
}
.contact-panel h2 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.contact-panel p { margin: 0 0 2rem; opacity: 0.92; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact-actions a {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
}
.contact-actions a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.28); }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 2.5rem 1.5rem 6rem; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
    order: 3;
    padding-top: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-headline { max-width: none; }
  .badge-row, .hero-actions { justify-content: center; }
  .entry-head { flex-direction: column; align-items: flex-start; }
  .view-switch { right: 0.75rem; bottom: 0.75rem; }
}
