/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:           #0A0F0A;
  --bg-alt:       #0D140D;
  --surface:      #111A14;
  --surface-2:    #172112;
  --border:       #1E2F1E;
  --border-hover: #10B981;
  --emerald:      #10B981;
  --emerald-dim:  #059669;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --emerald-ring: rgba(16, 185, 129, 0.35);
  --text:         #F0FDF4;
  --text-muted:   #6B7280;
  --text-soft:    #9CA3AF;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            200ms;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glow-text {
  color: var(--emerald);
  text-shadow: 0 0 32px rgba(16, 185, 129, 0.45);
}

.accent { color: var(--emerald); }

/* ── FADE-UP ANIMATION ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--t) var(--ease);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--emerald);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  background: #34D399;
  box-shadow: 0 0 24px var(--emerald-ring);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.btn-full { width: 100%; text-align: center; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 10, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--emerald) !important;
  border-color: var(--emerald) !important;
  transition: background var(--t), box-shadow var(--t) !important;
}
.nav-cta:hover {
  background: var(--emerald-glow) !important;
  box-shadow: 0 0 16px var(--emerald-ring) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 2rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.mobile-menu a:hover { color: var(--emerald); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
}
.hero-bg-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 48ch;
  margin-bottom: 2.25rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  flex: 0 0 280px;
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.avatar-ring {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  box-shadow: 0 0 32px var(--emerald-ring), inset 0 0 32px rgba(16,185,129,0.04);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-placeholder {
  width: 80%;
  padding-bottom: 0.5rem;
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 3.5rem;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
  max-width: 55ch;
}
.about-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: all var(--t);
}
.pill-link:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-glow);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.stat-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 16px var(--emerald-glow);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.skill-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-soft);
  transition: all var(--t);
  cursor: default;
}
.tag:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-glow);
  box-shadow: 0 0 10px rgba(16,185,129,0.1);
}

/* ── STATUS BADGES ───────────────────────────────────────── */
.status-badge {
  font-size: 0.72rem;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.status-badge.live {
  background: rgba(16,185,129,0.1);
  color: var(--emerald);
  border-color: rgba(16,185,129,0.3);
}

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.project-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 28px var(--emerald-glow);
  transform: translateY(-3px);
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.project-tag-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(16,185,129,0.1);
  color: #34D399;
  border: 1px solid rgba(16,185,129,0.2);
}
.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.project-desc {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.75;
  flex: 1;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-stack span {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.project-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.proj-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  transition: all var(--t);
}
.proj-link:hover {
  color: var(--text);
  border-color: var(--emerald);
}
.proj-link-primary {
  background: var(--emerald);
  color: #000 !important;
  border-color: transparent !important;
  font-weight: 600;
}
.proj-link-primary:hover {
  background: #34D399 !important;
  box-shadow: 0 0 16px var(--emerald-ring);
}

/* ── TIMELINE (Experience & Education) ───────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--emerald), transparent);
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 1.4rem;
  width: 9px;
  height: 9px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-ring);
  transform: translateX(-4px);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.timeline-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
}
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.timeline-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.timeline-org {
  font-size: 0.85rem;
  color: var(--emerald);
}
.timeline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
}
.timeline-bullets {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.timeline-bullets li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding-left: 1rem;
  position: relative;
}
.timeline-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--emerald);
}
.timeline-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.cert-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
  transform: translateX(4px);
}
.cert-icon {
  flex: 0 0 44px;
  height: 44px;
  background: var(--emerald-glow);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}
.cert-body { flex: 1; }
.cert-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.cert-org {
  font-size: 0.82rem;
  color: var(--text-soft);
}
.cert-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-container { max-width: 860px; }
.contact-sub {
  color: var(--text-soft);
  margin-top: -2.5rem;
  margin-bottom: 3rem;
  font-size: 0.97rem;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3.5rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #374151; }
.field-error {
  font-size: 0.76rem;
  color: #F87171;
  min-height: 1rem;
}
.form-status {
  font-size: 0.86rem;
  text-align: center;
  min-height: 1.2rem;
}
.form-status.success { color: var(--emerald); }
.form-status.error   { color: #F87171; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: all var(--t);
  word-break: break-all;
}
.contact-pill:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-glow);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .contact-links { flex-direction: row; flex-wrap: wrap; }
  .contact-links .contact-pill { flex: 1 1 200px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column-reverse;
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 5rem;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-visual { flex: none; width: 100%; height: 220px; }
  .avatar-ring { width: 160px; height: 160px; }
  .hero-content { max-width: 100%; }

  .section { padding: 5rem 0; }
  .section-title { margin-bottom: 2.5rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .timeline-header { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .container { padding: 0 1.25rem; }
  .cert-card { flex-wrap: wrap; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
