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

:root {
  --bg:        #07101F;
  --bg2:       #0D1A2D;
  --bg3:       #0A1525;
  --accent:    #2563EB;
  --accent-lo: rgba(37,99,235,0.12);
  --accent-md: rgba(37,99,235,0.25);
  --text:      #E8EDF5;
  --text-mid:  #8A97AA;
  --text-dim:  #4B5A6E;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(37,99,235,0.35);
  --radius:    12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── NAV ───────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(7,16,31,0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-links .nav-cta:hover { opacity: 0.85; color: #fff; }

.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 0.3s;
}

/* ─── MOBILE MENU ───────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 20px 32px 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a {
  font-size: 16px;
  color: var(--text-mid);
  font-weight: 400;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }

/* ─── HERO ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 32px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  animation: driftA 12s ease-in-out infinite alternate;
}
.glow-2 {
  width: 400px; height: 400px;
  bottom: 0; right: -50px;
  background: radial-gradient(circle, rgba(37,99,235,0.10) 0%, transparent 70%);
  animation: driftB 10s ease-in-out infinite alternate;
}
@keyframes driftA {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes driftB {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, -30px) scale(1.08); }
}

.hero-content {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.hero-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 110px);
  line-height: 0.92;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #E8EDF5 60%, #6B9BF4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.amp {
  color: var(--accent);
  font-style: normal;
}
.hero-sub {
  max-width: 520px;
  font-size: 17px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}
.scroll-hint span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── SECTIONS ──────────────────────────────────────────── */
section {
  padding: 100px 0;
}
section:nth-child(even) {
  background: var(--bg3);
}
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  display: inline-block;
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--accent);
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 56px;
}

/* ─── ABOUT ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-left .section-heading {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 0;
  line-height: 1.25;
  color: var(--text);
}
.about-right p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 300;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tag {
  background: var(--accent-lo);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.tag:hover { background: var(--accent-md); }

/* ─── EXPERIENCE ────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -40px;
  top: 6px;
}
.marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--bg);
  position: relative;
  z-index: 1;
}
.active-role .marker-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lo);
}
.marker-pulse {
  position: absolute;
  top: -4px; left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.8); opacity: 0; }
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.timeline-period {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.timeline-badge {
  background: var(--accent-lo);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.timeline-company {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.timeline-role {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}
.timeline-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.timeline-points li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
  font-weight: 300;
}
.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 4px;
}
.timeline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-tools span {
  font-size: 11px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ─── PROJECTS ──────────────────────────────────────────── */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.project-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.project-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg2) 60%, rgba(37,99,235,0.06));
}
.project-card-inner {
  padding: 32px;
}
.project-icon {
  margin-bottom: 16px;
}
.project-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.project-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.project-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-stack span {
  font-size: 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.project-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.7; }

/* ─── SKILLS ────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill-group h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-list span {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 300;
  transition: border-color 0.2s, color 0.2s;
}
.skill-list span:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

/* ─── EDUCATION ─────────────────────────────────────────── */
#education { background: var(--bg); }
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.edu-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.3s;
}
.edu-card:hover { border-color: var(--border-hi); }
.edu-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-lo);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.edu-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.edu-degree {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}
.edu-period {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.edu-note {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
}

/* ─── CONTACT ───────────────────────────────────────────── */
#contact {
  background: var(--bg3);
  padding: 120px 0;
}
.contact-inner {
  max-width: 640px;
}
.contact-heading {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 64px);
}
.contact-sub {
  font-size: 17px;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 48px;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 300;
  transition: color 0.2s;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.contact-item:hover {
  color: var(--text);
  border-color: var(--border-hi);
}
.contact-item svg { color: var(--accent); flex-shrink: 0; }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
footer p {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.3px;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }
.reveal:nth-child(6) { transition-delay: 0.55s; }

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  #hero { padding: 100px 20px 60px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; gap: 16px; }
  .timeline { padding-left: 20px; }
  .timeline-item { padding-left: 24px; }
  .timeline-marker { left: -28px; }
  section { padding: 72px 0; }
  .scroll-hint { display: none; }
}
