﻿:root {
  --bg: #fffaf7;
  --bg-alt: #fff3ee;
  --surface: #ffffff;
  --border: #f0e0d6;
  --text: #241b2e;
  --text-dim: #6b6070;
  --text-faint: #9b91a0;
  --accent: #ff6f5e;
  --accent-2: #7c5cff;
  --accent-soft: #ffe4d9;
  --header-bg: rgba(255, 250, 247, 0.85);
  --footer-bg: #1c1521;
  --footer-text: #b8adc0;
  --shadow: 0 16px 40px rgba(124, 60, 40, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
}

:root[data-theme="dark"] {
  --bg: #17121c;
  --bg-alt: #1e1826;
  --surface: #211a29;
  --border: #332a3d;
  --text: #f5f0f8;
  --text-dim: #b3a8bd;
  --text-faint: #786e83;
  --accent: #ff8a7a;
  --accent-2: #9d84ff;
  --accent-soft: #3a2530;
  --header-bg: rgba(23, 18, 28, 0.85);
  --footer-bg: #0f0b13;
  --footer-text: #9084a0;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { color: var(--text-dim); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* CURSOR GLOW */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin-left: -230px; margin-top: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 94, 0.20), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
  transform: translate(-1000px, -1000px);
  transition: transform 140ms ease-out;
}

:root[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(157, 132, 255, 0.28), transparent 65%);
  mix-blend-mode: screen;
}

@media (max-width: 760px), (hover: none) {
  .cursor-glow { display: none; }
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.nav { display: flex; gap: 30px; }
.nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.theme-toggle:hover { transform: translateY(-2px); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 8px;
}

.nav-mobile {
  display: none; flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.nav-mobile a {
  padding: 12px 0; font-weight: 600; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 15% 10%, rgba(255, 143, 110, 0.55), transparent 55%),
    radial-gradient(100% 90% at 85% 15%, rgba(124, 92, 255, 0.45), transparent 55%),
    linear-gradient(160deg, #ffe8d6 0%, #ffd3c4 30%, #e9c6e0 60%, #c9b6f0 100%);
  z-index: -2;
}

:root[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(120% 100% at 15% 10%, rgba(255, 111, 94, 0.28), transparent 55%),
    radial-gradient(100% 90% at 85% 15%, rgba(157, 132, 255, 0.32), transparent 55%),
    linear-gradient(160deg, #1c1526 0%, #241a2e 40%, #1a1420 100%);
}

.hero-pattern {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(rgba(36, 27, 46, 0.12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

:root[data-theme="dark"] .hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
}

/* CLOUD SCENE */
.cloud-scene {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #eaf7ff 45%, #9fdcff 85%, #4db8ff 100%);
  border-radius: 100px;
  filter: blur(3px);
  opacity: 0.6;
  box-shadow: 0 0 24px rgba(27, 150, 255, 0.25);
  animation: drift-cloud linear infinite;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud::before { width: 60%; height: 100%; top: -45%; left: 8%; }
.cloud::after { width: 42%; height: 78%; top: -32%; right: 12%; }

:root[data-theme="dark"] .cloud {
  background: radial-gradient(circle at 32% 28%, #bfe4ff 0%, #6fc3ff 45%, #4d8fff 85%, #7c5cff 100%);
  opacity: 0.18;
  box-shadow: 0 0 30px rgba(77, 143, 255, 0.3);
  filter: blur(6px);
}

.c1 { width: 220px; height: 60px; top: 14%; left: -10%; animation-duration: 70s; }
.c2 { width: 160px; height: 44px; top: 28%; left: 60%; opacity: 0.4; animation-duration: 90s; animation-delay: -20s; }
.c3 { width: 280px; height: 70px; top: 55%; left: -20%; opacity: 0.35; animation-duration: 110s; animation-delay: -40s; }
.c4 { width: 130px; height: 38px; top: 68%; left: 70%; opacity: 0.3; animation-duration: 80s; animation-delay: -10s; }
.c5 { width: 190px; height: 50px; top: 8%; left: 75%; opacity: 0.3; animation-duration: 95s; animation-delay: -55s; }

@keyframes drift-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
}

.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--text);
  margin-bottom: 14px;
}

.hero-role {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.hero-type {
  font-family: 'Manrope', monospace;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 32px;
  min-height: 1.6em;
}
.hero-type span:first-child { color: var(--text-faint); }
.typewriter-text { color: var(--accent); font-weight: 700; }
.caret { color: var(--accent); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 36px;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 0.98rem;
  box-shadow: 0 10px 28px rgba(255, 111, 94, 0.35);
  transition: transform 0.2s ease;
}
.btn-hero:hover { transform: translateY(-3px); }
.btn-hero span { transition: transform 0.2s ease; }
.btn-hero:hover span { transform: translateX(4px); }

/* LOGO ROW */
.logo-row {
  padding: 40px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.logo-row-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px;
}
.logo-item {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-faint);
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s, opacity 0.25s, color 0.25s;
}
.logo-item:hover { filter: grayscale(0); opacity: 1; color: var(--accent); }

/* SECTIONS */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.kicker {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  font-size: 1rem;
}

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.wave { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 16px; font-family: 'Sora', sans-serif; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.about-card {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-photo {
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--surface);
  box-shadow: 0 12px 30px rgba(255, 111, 94, 0.25);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }

.about-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.about-card p { margin: 0; font-size: 0.92rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* CURRENTLY EXPLORING */
.explore-section { text-align: center; }
.explore-title { font-size: clamp(1.7rem, 4vw, 2.3rem); max-width: 20ch; margin: 0 auto 16px; }
.explore-sub { max-width: 620px; margin: 0 auto 40px; }

.signet-row {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 28px 14px 14px;
  box-shadow: var(--shadow);
}
.signet {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.signet-row p { margin: 0; font-size: 0.92rem; color: var(--text); font-weight: 600; text-align: left; }

/* TIMELINE */
.timeline {
  position: relative; max-width: 780px; margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 28px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}
.timeline-date {
  display: inline-block; color: var(--accent); font-weight: 700;
  font-size: 0.82rem; margin-bottom: 8px; font-family: 'Sora', sans-serif;
}
.timeline-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.timeline-card h3 span { color: var(--text-dim); font-weight: 400; font-size: 0.9rem; }
.timeline-org { font-weight: 700; color: var(--text); margin-bottom: 12px; }
.timeline-card ul { margin: 0 0 16px; padding-left: 20px; }
.timeline-card li { margin-bottom: 6px; font-size: 0.92rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.76rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; margin-bottom: 40px;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}
.skill-category h3 {
  font-size: 1.02rem; display: flex; align-items: center; gap: 8px; margin-bottom: 22px;
}
.skill-bar { margin-bottom: 16px; }
.skill-bar:last-child { margin-bottom: 0; }
.skill-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.84rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px;
}
.bar { height: 7px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0; transition: width 1.2s ease;
}

.stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stack-chip {
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  box-shadow: var(--shadow);
}

/* CERTIFICATIONS */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.cert-card:hover { transform: translateY(-4px); }
.cert-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cert-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; font-family: 'Sora', sans-serif;
}
.status-active {
  font-size: 0.72rem; font-weight: 700; color: #2f9e5c;
  background: rgba(47, 158, 92, 0.12); padding: 4px 10px; border-radius: 999px;
}
.cert-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cert-date { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.cert-card > p:not(.cert-date) { font-size: 0.9rem; }

/* CONTACT */
.contact-section { position: relative; overflow: hidden; text-align: center; }
.contact-bg { opacity: 0.6; }
.contact-inner { position: relative; z-index: 1; }
.contact-title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 14px; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.contact-pill:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-pill .icon { color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }

/* FOOTER */
.site-footer { background: var(--footer-bg); padding: 44px 0 40px; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; font-size: 0.85rem;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--footer-text);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-copy { margin: 0; color: var(--footer-text); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: transform 0.2s, background 0.2s, opacity 0.25s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }
}
