/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --white:      #FFFFFF;
  --off-white:  #F7F8FA;
  --indigo:     #6366F1;
  --indigo-dk:  #4F46E5;
  --indigo-lt:  #A5B4FC;
  --indigo-bg:  #EEF2FF;
  --text:       #111827;
  --text-2:     #374151;
  --text-3:     #6B7280;
  --border:     #E5E7EB;
  --border-dk:  #D1D5DB;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

.container {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: 60px;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav-wrap.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--text);
}
.nav-logo .dot { color: var(--indigo); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-nav a:hover { color: var(--indigo); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--indigo);
  color: #fff;
  padding: 12px 26px;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover {
  background: var(--indigo-dk);
  box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 12px 26px;
  border: 1.5px solid var(--border-dk);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-bg); }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ══════════════════════════════════════════
   SECTION BASE
══════════════════════════════════════════ */
.section { padding: 100px 0; }
.section-alt { background: var(--off-white); }
.section-head { margin-bottom: 56px; }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-bg);
  color: var(--indigo-dk);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 6px;
}
.hero-highlight {
  color: var(--indigo);
  display: inline-block;
}
.cursor {
  display: inline-block;
  color: var(--indigo);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-role {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-tagline em { color: var(--indigo-dk); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  letter-spacing: .03em;
}
.social-pill:hover { color: var(--indigo); border-color: var(--indigo); background: var(--indigo-bg); }

/* Photo block */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-ring {
  width: 340px; height: 340px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-lt) 100%);
  box-shadow: 0 0 0 16px rgba(99,102,241,.08), var(--shadow-lg);
  animation: ring-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ring-pulse {
  0%,100% { box-shadow: 0 0 0 16px rgba(99,102,241,.08), var(--shadow-lg); }
  50%      { box-shadow: 0 0 0 24px rgba(99,102,241,.05), var(--shadow-lg); }
}
.photo-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--off-white);
  position: relative;
}
.photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  gap: 10px;
  color: var(--text-3);
  text-align: center;
  padding: 24px;
}
.photo-placeholder span { font-weight: 600; font-size: .9rem; color: var(--text-2); }
.photo-placeholder small { font-size: .75rem; color: var(--text-3); line-height: 1.4; }

/* Deco shapes */
.photo-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.photo-deco-1 {
  width: 200px; height: 200px;
  background: var(--indigo-bg);
  top: -20px; right: -30px;
}
.photo-deco-2 {
  width: 120px; height: 120px;
  background: #FEF3C7;
  bottom: 10px; left: -20px;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-badge-top { top: 24px; right: -16px; }
.float-badge-bot { bottom: 32px; left: -16px; }
.badge-icon { font-size: 1.2rem; }
.badge-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1;
}
.badge-label { font-size: .72rem; color: var(--text-3); margin-top: 2px; }

/* Hero blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.blob-1 {
  width: 500px; height: 500px;
  background: rgba(99,102,241,.07);
  top: -100px; right: 0;
}
.blob-2 {
  width: 360px; height: 360px;
  background: rgba(99,102,241,.05);
  bottom: 0; left: 10%;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-photo {
  width: 260px; height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.about-photo-ph {
  display: none;
  width: 260px; height: 320px;
  border-radius: var(--radius);
  border: 2px dashed var(--border-dk);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-3);
  background: var(--off-white);
}
.about-photo-badge {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.about-p {
  color: var(--text-2);
  line-height: 1.8;
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.about-p:last-of-type { margin-bottom: 28px; }
.about-p strong { color: var(--text); font-weight: 600; }
.about-p em { color: var(--indigo-dk); font-style: italic; }
.about-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-num sup { font-size: 1rem; color: var(--indigo); }
.stat-label { font-size: .8rem; color: var(--text-3); margin-top: 4px; }

/* ══════════════════════════════════════════
   EXPERIENCE TIMELINE
══════════════════════════════════════════ */
.exp-timeline {
  display: flex;
  flex-direction: column;
}
.exp-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
}
.exp-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.exp-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--indigo);
  background: var(--white);
  flex-shrink: 0;
  transition: background var(--transition);
}
.exp-item:hover .exp-dot { background: var(--indigo); }
.exp-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 8px 0;
  min-height: 40px;
}
.exp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.exp-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-lt);
  transform: translateX(4px);
}
.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.exp-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.exp-company {
  font-size: .85rem;
  color: var(--indigo);
  font-weight: 600;
  margin-top: 3px;
}
.exp-period {
  font-size: .8rem;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}
.exp-desc {
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--indigo-bg);
  color: var(--indigo-dk);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .02em;
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-featured { grid-column: span 2; }
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-lt);
  transform: translateY(-4px);
}
.project-featured { flex-direction: row; }
.project-featured .project-thumb {
  width: 45%;
  flex-shrink: 0;
  min-height: 240px;
  border-radius: 0;
  height: auto;
}
.project-thumb {
  background: var(--thumb-bg, var(--indigo-bg));
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-emoji { font-size: 3.5rem; }
.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-cat {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.project-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.project-desc { color: var(--text-2); font-size: .9rem; line-height: 1.7; flex: 1; }
.project-links { display: flex; gap: 20px; margin-top: 6px; }
.link-arrow {
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--indigo);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-arrow:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.skill-category:hover { box-shadow: var(--shadow-md); border-color: var(--indigo-lt); }
.skill-cat-icon { font-size: 1.6rem; margin-bottom: 12px; }
.skill-cat-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.skill-list { display: flex; flex-direction: column; gap: 0; }
.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text-2);
}
.skill-row:last-child { border-bottom: none; }
.skill-level {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.skill-level-expert   { background: #DCFCE7; color: #15803D; }
.skill-level-advanced { background: var(--indigo-bg); color: var(--indigo-dk); }
.skill-level-mid      { background: #FEF9C3; color: #854D0E; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--text);
  color: #fff;
  padding: 80px 0 0;
}
.footer-inner { }
.footer-cta {
  text-align: center;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-cta .eyebrow { color: var(--indigo-lt); }
.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: #fff;
  margin: 12px 0 32px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: .875rem; color: #9CA3AF; }
.footer-copy strong { color: #fff; }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  color: #9CA3AF;
  transition: color var(--transition);
}
.footer-socials a:hover { color: #fff; }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding-inline: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-wrap { order: -1; }
  .photo-ring { width: 260px; height: 260px; }
  .float-badge-top { right: 0; }
  .float-badge-bot { left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { flex-direction: row; gap: 20px; align-items: center; }
  .about-photo, .about-photo-ph { width: 200px; height: 260px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { flex-direction: column; }
  .project-featured .project-thumb { width: 100%; min-height: 180px; }
}
@media (max-width: 768px) {
  .container { padding-inline: 24px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-name { font-size: 2.4rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .skills-grid { grid-template-columns: 1fr; }
  .exp-head { flex-direction: column; gap: 8px; }
  .about-photo-wrap { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-name { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
