/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0a0f1e;
  --bg-card:      #111827;
  --bg-light:     #ffffff;
  --bg-light-alt: #f8fafc;

  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dark:    #0f172a;
  --text-dark-muted: #64748b;

  --accent:       #3b82f6;
  --accent-dark:  #2563eb;
  --accent-glow:  rgba(59,130,246,.35);
  --accent-soft:  rgba(59,130,246,.1);

  --border-dark:  rgba(255,255,255,.08);
  --border-light: #e2e8f0;

  --radius-sm:    0.4rem;
  --radius:       1rem;
  --radius-lg:    1.5rem;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ===== NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 4rem;
  gap: 1rem;
}

/* Transparent over hero, opaque once scrolled — CSS-only via scroll-driven */
.nav-inner {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-logo {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  list-style: none;
  gap: 0.125rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(241,245,249,.65);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: #fff;
  background: var(--accent-soft);
}

/* ===== HERO ===== */
.hero {
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

/* Ambient glow blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero::before {
  width: 700px; height: 700px;
  right: -10%; top: -20%;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
}

.hero::after {
  width: 400px; height: 400px;
  left: 5%; bottom: 0;
  background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-role {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-role strong {
  color: rgba(241,245,249,.85);
  font-weight: 600;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-location svg {
  width: 14px; height: 14px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #818cf8, #3b82f6, transparent 60%);
  animation: spin 8s linear infinite;
  opacity: .5;
}

@supports (-moz-appearance: none) {
  .hero-photo-wrap::before { display: none; }
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin {
  from { transform: rotate(0deg) translateZ(0); }
  to   { transform: rotate(360deg) translateZ(0); }
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 270px; height: 270px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(59,130,246,.25);
}

.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all .18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}

/* ===== Divider wave ===== */
.wave-divider {
  display: block;
  background: var(--bg);
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-light-alt);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  max-width: 52ch;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ===== About — Bento grid ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}

.bento-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }

.bento-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.bento-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dark-muted);
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

.bento-card .big-number {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.bento-card .big-label {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

/* ===== Timeline ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem 2rem;
  position: relative;
}

.tl-item + .tl-item::before {
  content: '';
  position: absolute;
  left: 120px;
  top: -1.25rem;
  width: 1px;
  height: 1.25rem;
  background: var(--border-light);
  margin-left: 2rem;
}

.tl-period {
  text-align: right;
  padding-top: 0.2rem;
}

.tl-period-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  line-height: 1.4;
}

.tl-period-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-top: 0.4rem;
}

.tl-body {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}

.tl-body:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.tl-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.tl-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.tl-company a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37,99,235,.35);
  transition: text-decoration-color .15s;
}

.tl-company a:hover {
  text-decoration-color: var(--accent-dark);
}

.tl-desc {
  font-size: 0.925rem;
  color: var(--text-dark-muted);
  line-height: 1.75;
}

.tl-achievements {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-achievements li {
  font-size: 0.925rem;
  color: var(--text-dark-muted);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.tl-achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ===== Skills ===== */
.skills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: all .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  transition: all .18s;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,.04);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(59,130,246,.1);
}

.contact-link svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  opacity: .7;
}

.contact-link:hover svg {
  opacity: 1;
}

.contact-link-meta {
  display: flex;
  flex-direction: column;
}

.contact-link-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dark-muted);
  margin-bottom: 0.1rem;
}

.contact-link-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-cta-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
}

.contact-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 0.75rem;
}

.contact-cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-dark);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-photo-wrap { order: -1; }
  .hero-location, .hero-actions { justify-content: center; }
  .hero-badge { margin-inline: auto; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.span-3 { grid-column: span 2; }

  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-period { text-align: left; }
  .tl-item + .tl-item::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2,
  .bento-card.span-3 { grid-column: span 1; }
  .container { padding-inline: 1.25rem; }
  .hero-photo { width: 220px; height: 220px; }
}
