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

:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.2);
  --purple: #7c3aed;
  --blue: #2563eb;
  --grad: linear-gradient(135deg, #7c3aed, #2563eb);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08));
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Floating gradient orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: #7c3aed; top: -200px; right: -200px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: #2563eb; bottom: -150px; left: -150px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: #06b6d4; top: 50%; left: 50%; animation-delay: -14s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -30px) scale(1.05); }
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(248,250,252,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-weight: 700;
  font-size: 15px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
  text-decoration: none;
}
nav .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
nav .nav-toggle:hover {
  background: var(--grad-soft);
  border-color: rgba(124,58,237,0.3);
}
nav .nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.25s, opacity 0.25s;
}
nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
nav .nav-menu {
  display: flex;
  align-items: center;
}
nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav .links .nav-icon {
  display: inline-flex;
  align-items: center;
}
nav .nav-label {
  display: none;
}
nav .links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
nav .links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-soft);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.ai-badge .dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 12px;
  color: var(--text);
}

.hero h1 .highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

.typed-wrapper {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
  margin-bottom: 48px;
  min-width: 340px;
}
.typed-wrapper .prompt { color: var(--purple); margin-right: 8px; }
#typed-text { color: var(--text); }
.cursor-blink {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--purple);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.45); }
.btn-secondary {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(124,58,237,0.3); }

/* ── Section ── */
section { padding: 80px 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 40px;
  color: var(--text);
}

/* ── Glass card ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── AI Stack ── */
.ai-stack {
  background: var(--grad-soft);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 60px;
}
.ai-stack-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 24px;
}
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ai-tool {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}
.ai-tool:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.1); }
.ai-tool .tool-icon { font-size: 22px; }
.ai-tool .tool-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ai-tool .tool-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline-item {
  position: relative;
  padding-left: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--grad);
  border-radius: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 3px; top: 20px;
  width: 2px;
  height: calc(100% + 12px);
  background: linear-gradient(to bottom, rgba(124,58,237,0.3), transparent);
}
.timeline-item:last-child::after { display: none; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.job-company { font-size: 16px; font-weight: 700; color: var(--text); }
.job-role { font-size: 13px; font-weight: 500; color: var(--purple); }
.job-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
}
.job-bullets { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.job-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.job-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 12px;
}

/* ── Job skill tags ── */
.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.job-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  transition: all 0.15s;
}
.job-tag:hover { border-color: rgba(124,58,237,0.35); color: var(--purple); }

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(37,99,235,0.1));
  border: 1px dashed rgba(124,58,237,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  margin-top: 10px;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.skill-card .skill-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}
.tag:hover { border-color: rgba(124,58,237,0.4); color: var(--purple); }
.tag.ai-tag {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08));
  border-color: rgba(124,58,237,0.25);
  color: var(--purple);
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.project-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.project-card .project-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.project-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.project-highlight {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.project-card-cta {
  text-decoration: none;
  color: inherit;
  border: 2px dashed rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: border-color 0.2s, background 0.2s;
}
.project-card-cta:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
}
.project-card-cta-inner {
  text-align: center;
  padding: 12px;
}
.project-card-cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple);
  display: block;
  margin-bottom: 8px;
}
.project-card-cta-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.project-card-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

/* ── Education ── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edu-card {
  border-left: 3px solid var(--purple);
  padding-left: 16px;
}
.edu-year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.edu-card .degree { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.edu-card .school { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.edu-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0.7;
}

/* ── Footer ── */
footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
footer .contact-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
footer .contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer .contact-link:hover { color: var(--purple); }
footer .made-with {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
footer .made-with span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav .inner {
    flex-wrap: wrap;
  }
  nav .logo {
    font-size: 13px;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  nav .nav-toggle {
    display: flex;
  }
  nav .nav-menu {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }
  nav.is-open .nav-menu {
    max-height: 320px;
    opacity: 1;
  }
  nav .nav-menu .links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    width: 100%;
  }
  nav .nav-menu .links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  nav .nav-menu .links a:last-child {
    border-bottom: none;
  }
  nav .nav-menu .links .nav-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  nav .nav-menu .links .nav-icon .nav-label {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .edu-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .typed-wrapper { min-width: unset; width: 100%; }
}
