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

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --accent:        #1D4ED8;
  --accent-hover:  #1E40AF;
  --accent-light:  #EFF6FF;
  --text:          #0F172A;
  --text-2:        #334155;
  --text-muted:    #64748B;
  --text-faint:    #94A3B8;
  --border:        #E2E8F0;
  --border-light:  #F1F5F9;
  --bg:            #FFFFFF;
  --bg-alt:        #F8FAFC;
  --radius-sm:     6px;
  --radius:        14px;
  --radius-lg:     20px;
}

/* ── Base ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ── Layout ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 32px;
}

.section     { padding: 100px 0; }
.section-alt { padding: 100px 0; background: var(--bg-alt); }

/* ── Labels & headings ────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 52px;
}

/* ── Scroll reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible        { opacity: 1; transform: none; }
.reveal-delay-1        { transition-delay: .12s; }
.reveal-delay-2        { transition-delay: .22s; }
.reveal-delay-3        { transition-delay: .32s; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,78,216,.3);
}

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
}
.btn-ghost:hover {
  border-color: #94A3B8;
  background: var(--bg-alt);
}

/* Contact section buttons (on dark bg) */
.btn-primary-light {
  background: #fff;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: all .18s ease;
}
.btn-primary-light:hover {
  background: #F0F4FF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: all .18s ease;
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 24px rgba(0,0,0,.07);
}

.nav-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  background: var(--text);
  color: #fff;
  padding: 5px 10px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background: #fff;
}

/* Multi-layer gradient background */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, #E0EAFF 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, #F0F4FF 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp .5s ease both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.1); }
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 26px;
  animation: fadeUp .55s .08s ease both;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 44px;
  animation: fadeUp .55s .16s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp .55s .24s ease both;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── About ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.about-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 22px;
  color: var(--text);
}

.about-body {
  color: var(--text-muted);
  font-size: .97rem;
  margin-bottom: 16px;
  line-height: 1.85;
}

.skills-block { margin-top: 36px; }

.block-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  background: var(--accent-light);
  color: #1E3A8A;
  font-size: .77rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .01em;
  transition: background .15s;
}
.pill:hover { background: #DBEAFE; }

/* Interests card */
.interests-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

.interests-list { list-style: none; }

.interests-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color .15s;
}
.interests-list li:hover { color: var(--text); }
.interests-list li:last-child { border-bottom: none; padding-bottom: 0; }
.interests-list li:first-child { padding-top: 0; }

.interest-icon { font-size: 1.2rem; width: 26px; text-align: center; }

/* ── Timeline ─────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-items: start;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.timeline-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

/* Logo */
.tl-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.tl-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tl-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: var(--accent-light);
  color: var(--accent);
}

/* Content */
.tl-body { padding-top: 2px; }

.tl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.tl-role {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 4px;
  color: var(--text);
}

.tl-company {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .01em;
}

.tl-date {
  font-size: .76rem;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

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

/* ── Projects ─────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  background: var(--bg);
}
.project-card:not(.project-card--empty):hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  border-color: transparent;
}

.project-card--empty { opacity: .4; pointer-events: none; }

.project-card-header {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card-header--empty {
  background: var(--bg-alt);
}

/* Subtle sheen overlay */
.project-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 30% 30%, rgba(255,255,255,.18) 0%, transparent 70%);
  pointer-events: none;
}

.project-card-icon { font-size: 2.4rem; position: relative; z-index: 1; }

.project-card-body { padding: 22px 24px; flex: 1; }

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

.project-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .2s, transform .2s;
}
.project-card:hover .project-arrow { opacity: 1; transform: none; }

.project-desc {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ── Contact ──────────────────────────────────────────── */
.contact-section {
  background: #0F172A !important;
  padding: 110px 0;
}

.contact-label { color: #818CF8 !important; }

.contact-wrap { max-width: 560px; }

.contact-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
}

.contact-sub {
  color: #94A3B8;
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 460px;
}

.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-faint);
}

.footer-logo { font-weight: 700; color: var(--text-2); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-aside { order: -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .section, .section-alt, .contact-section { padding: 72px 0; }
  .hero { padding: 88px 0 68px; }

  .timeline-card { grid-template-columns: 1fr; gap: 18px; }
  .tl-header { flex-direction: column; gap: 8px; }

  .nav-links a:not(:last-child) { display: none; }
  .hero-headline { font-size: 2.8rem; }
  .contact-headline { font-size: 2.6rem; }
}
