/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --bg:           #080810;
  --surface:      #0d0d18;
  --card:         #11111e;
  --card-hover:   #161626;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(139,92,246,0.45);

  --accent:       #7c6af7;
  --accent-2:     #a78bfa;
  --accent-dim:   rgba(124,106,247,0.12);
  --accent-glow:  rgba(124,106,247,0.35);

  --text:         #eeeef5;
  --text-2:       #8b8ba8;
  --text-3:       #4a4a65;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --radius:       12px;
  --radius-lg:    18px;
  --ease:         0.22s ease;

  --nav-h:        68px;
  --max-w:        1080px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 34px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--ease);
}
.nav-logo-img:hover { opacity: 1; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #a78bfa, #7c6af7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent-2);
  transition: width var(--ease);
}
.nav-link:hover         { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active        { color: var(--text); }

.nav-link-cta {
  color: var(--accent-2);
  border: 1px solid rgba(167,139,250,0.25);
  padding: 0.35rem 1rem;
  border-radius: 6px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover {
  background: var(--accent-dim);
  border-color: rgba(167,139,250,0.5);
  color: #c4b5fd;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-2);
  transition: all 0.3s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Orb background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #5b4fcf 0%, transparent 65%);
  top: -260px; left: -180px;
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 65%);
  bottom: -160px; right: -120px;
  animation: floatOrb 18s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #4338ca 0%, transparent 65%);
  top: 45%; left: 55%;
  animation: floatOrb 11s ease-in-out infinite 3s;
}

/* Subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(28px,-36px) scale(1.04); }
  66%     { transform: translate(-18px,22px) scale(0.97); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 2rem;
  animation: heroIn 0.9s ease 0.1s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  font-size: 1rem;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #f5f5ff 0%, #c4b5fd 35%, #7c6af7 65%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}
.hero-role-pill {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-2);
  background: var(--accent-dim);
  border: 1px solid rgba(167,139,250,0.2);
  padding: 0.375rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 2.75rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  color: var(--text);
  background: var(--accent-dim);
  border-color: rgba(124,106,247,0.4);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  animation: scrollBounce 2.5s ease-in-out infinite;
  transition: color var(--ease);
}
.hero-scroll svg { width: 22px; height: 22px; }
.hero-scroll:hover { color: var(--text-2); }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--ease);
  font-family: var(--font);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

/* ============================================================
   Section shell
   ============================================================ */
.section { padding: 7rem 0; }
.section-alt { background: var(--surface); }

.section-header { margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.65rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Shared tag pill */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  text-align: justify;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.subsection-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}
.education-list { display: flex; flex-direction: column; gap: 1rem; }
.education-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
}
.education-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
}
.edu-left { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.edu-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
}
.edu-info h4 {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.edu-degree {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.2rem;
}
.gpa-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-dim);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.4rem;
}
.edu-meta {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}
.edu-courses {
  font-size: 0.775rem;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   Experience / Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(124,106,247,0.08) 100%);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2.625rem; top: 0.45rem;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(124,106,247,0.12);
  transition: box-shadow var(--ease);
}
.timeline-item:hover .tl-dot {
  box-shadow: 0 0 0 7px rgba(124,106,247,0.22);
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.tl-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateX(5px);
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tl-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.tl-role {
  font-size: 0.875rem;
  color: var(--accent-2);
  font-weight: 500;
}
.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}
.tl-date     { font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; }
.tl-location { font-size: 0.75rem;   color: var(--text-3); }
.tl-bullets { margin-bottom: 1.25rem; }
.tl-bullets li {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.6rem;
}
.tl-bullets li:last-child { margin-bottom: 0; }
.tl-bullets li::before {
  content: '▸';
  position: absolute; left: 0; top: 0.12em;
  color: var(--accent);
  font-size: 0.75rem;
}
.tl-bullets li strong { color: var(--text); font-weight: 600; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   Projects
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.project-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top left, var(--accent-dim) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
}
.project-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(124,106,247,0.1);
}
.project-card:hover::before { opacity: 1; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.project-emoji { font-size: 1.875rem; line-height: 1; }
.project-links { display: flex; gap: 0.875rem; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--ease);
}
.proj-link svg { width: 12px; height: 12px; flex-shrink: 0; }
.proj-link:hover { color: var(--accent-2); }

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  position: relative;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.72;
  flex: 1;
  position: relative;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; position: relative; }

/* ============================================================
   Skills
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--ease);
}
.skill-group:hover { border-color: rgba(124,106,247,0.22); }
.skill-group-wide { grid-column: span 2; }

.skill-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.stag:hover {
  color: var(--accent-2);
  background: var(--accent-dim);
  border-color: rgba(167,139,250,0.3);
}
.stag-cert {
  color: var(--accent-2);
  background: var(--accent-dim);
  border-color: rgba(167,139,250,0.2);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0.75rem 0 1.25rem;
}
.contact-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.contact-socials a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease);
}
.contact-socials a:hover { color: var(--accent-2); }
.contact-dot {
  width: 4px; height: 4px;
  background: var(--text-3);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer .container {
  display: flex;
  justify-content: center;
}
.footer p { font-size: 0.875rem; color: var(--text-3); }
.footer strong { color: var(--text-2); font-weight: 600; }

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .skill-group-wide { grid-column: span 1; }
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 5rem 0; }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,8,16,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
  }
  .nav-link::after { display: none; }
  .nav-link-cta {
    margin: 0.5rem 2rem;
    width: calc(100% - 4rem);
    text-align: center;
    justify-content: center;
  }
  .nav-toggle { display: flex; }

  .hero-tagline { font-size: 1rem; }
  .tl-header    { flex-direction: column; gap: 0.5rem; }
  .tl-meta      { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-name { font-size: clamp(2.4rem, 13vw, 3.5rem); }
}
