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

:root {
  --navy:    #1a2332;
  --navy2:   #243044;
  --accent:  #2563eb;
  --accent2: #1d4ed8;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --bg:      #f8fafc;
  --white:   #ffffff;
  --tag-bg:  #eff6ff;
  --tag-txt: #1d4ed8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-brand { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #cbd5e1; text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  padding: 90px 5% 80px;
  display: flex; align-items: center; gap: 4rem;
}
.hero-avatar {
  flex-shrink: 0;
  width: 150px; height: 150px; border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.25);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}
.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-content h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -.5px; }
.hero-content .subtitle {
  font-size: 1.15rem; color: #93c5fd; margin: .4rem 0 1rem;
}
.hero-content p { color: #cbd5e1; max-width: 640px; font-size: .97rem; line-height: 1.7; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #e0f2fe;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
}
.hero-links { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.4rem; border-radius: 6px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.35); color: #fff;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── SECTIONS ── */
section { padding: 70px 5%; }
section:nth-child(even) { background: var(--white); }

.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .4rem;
}
h2 {
  font-size: 1.8rem; font-weight: 700; color: var(--navy);
  margin-bottom: .5rem;
}
.section-divider {
  width: 48px; height: 3px;
  background: var(--accent); border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.info-list li { display: flex; align-items: center; gap: .8rem; font-size: .95rem; color: var(--muted); }
.info-list li strong { color: var(--text); }
.info-icon { font-size: 1.1rem; width: 24px; text-align: center; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.skill-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem;
}
.skill-card h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  background: var(--tag-bg); color: var(--tag-txt);
  border: 1px solid #bfdbfe;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
}

/* ── EXPERIENCE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 1.5rem;
  padding-bottom: 2.5rem; position: relative;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: 19px; top: 36px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; z-index: 1;
  box-shadow: 0 0 0 4px #dbeafe;
}
.timeline-content { flex: 1; }
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.timeline-content .company { color: var(--accent); font-weight: 600; font-size: .93rem; }
.timeline-content .meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted); margin: .3rem 0 .8rem;
}
.timeline-content ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.timeline-content ul li {
  font-size: .9rem; color: #475569;
  padding-left: 1.1rem; position: relative;
}
.timeline-content ul li::before {
  content: '▸'; position: absolute; left: 0; color: var(--accent);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.6rem;
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-3px); }
.project-card .proj-tag {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: .5rem;
}
.project-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.project-card .period { font-size: .8rem; color: var(--muted); margin-bottom: .8rem; }
.project-card ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.project-card ul li {
  font-size: .88rem; color: #475569;
  padding-left: 1rem; position: relative;
}
.project-card ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.project-tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ── CONTACT ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem;
}
.contact-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem 1.6rem;
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--text);
  transition: all .2s;
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--tag-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-info .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.contact-info .value { font-weight: 600; font-size: .9rem; color: var(--navy); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: #94a3b8;
  text-align: center; padding: 1.6rem 5%;
  font-size: .85rem;
}
footer span { color: #60a5fa; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #hero { flex-direction: column; gap: 2rem; padding: 60px 5% 50px; }
  .hero-content h1 { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  nav { padding: 0 4%; }
  .nav-links { gap: 1.2rem; }
}
