/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0c0c1e;
  color: rgba(240,240,255,0.7);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { color: #f0f0ff; font-weight: 600; }

.container {
  max-width: 1040px; /* Widened from 820px to fill empty space */
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  font-size: 0.9375rem; font-weight: 600;
  color: #f0f0ff; letter-spacing: -0.01em;
}
.nav-center { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.875rem; color: rgba(240,240,255,0.5);
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: #f0f0ff; }
.nav-resume {
  font-size: 0.8125rem; font-weight: 500;
  color: #111114; background: #f0f0ff;
  padding: 0.4rem 1rem; border-radius: 6px;
  transition: background 0.15s, transform 0.15s;
}
.nav-resume:hover { background: #ffffff; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: rgba(240,240,255,0.5); border-radius: 2px; }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  flex-direction: column;
  background: #0e0e1e; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0;
}
.nav-drawer.open { display: flex; }
.drawer-link {
  padding: 0.875rem 2rem;
  font-size: 0.9375rem; color: rgba(240,240,255,0.55);
  transition: color 0.15s, background 0.15s;
}
.drawer-link:hover { color: #f0f0ff; background: rgba(255,255,255,0.04); }
.drawer-resume { color: #818cf8; font-weight: 500; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: #0c0c1e;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 60%);
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

/* Left */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(240,240,255,0.45);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping {
  0%  { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-name {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #f0f0ff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.name-dim { color: rgba(240,240,255,0.5); }

.hero-bio {
  font-size: 1.125rem; color: rgba(240,240,255,0.5);
  line-height: 1.7; max-width: 520px;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.9375rem; font-weight: 600;
  color: #ffffff; background: #6366f1;
  padding: 0.7rem 1.5rem; border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.cta-primary:hover { background: #5457e8; transform: translateY(-2px); }
.cta-ghost {
  display: inline-flex; align-items: center;
  font-size: 0.9375rem; font-weight: 500;
  color: rgba(240,240,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.7rem 1.5rem; border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.cta-ghost:hover { color: #f0f0ff; border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

.hero-metrics { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hm-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hm-num {
  font-size: 1.5rem; font-weight: 700;
  color: #f0f0ff; letter-spacing: -0.02em; line-height: 1;
}
.hm-label { font-size: 0.75rem; color: rgba(240,240,255,0.35); line-height: 1.3; }
.hm-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.08); }

/* Right — Photo */
.hero-photo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  position: relative;
}
.hero-photo-ring {
  width: 300px; height: 300px; border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  box-shadow: 0 0 60px rgba(99,102,241,0.25);
}
.hero-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #0c0c1e;
  display: block;
}
.hero-photo-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 500;
  color: rgba(240,240,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.375rem 0.875rem; border-radius: 100px;
}
.badge-dot-green {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 6rem 0; }
.section-alt { background: #111124; }

.section-header {
  margin-bottom: 3.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f0ff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: #818cf8;
}

/* ============================================================
   EXPERIENCE (Card Layout)
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.exp-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex; flex-direction: column;
}
.exp-card:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 40px rgba(99,102,241,0.1);
}

.exp-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.exp-card-title-group { display: flex; flex-direction: column; gap: 0.2rem; }
.exp-role { font-size: 1.25rem; font-weight: 700; color: #f0f0ff; }
.exp-co { font-size: 0.9375rem; color: rgba(240,240,255,0.5); }
.exp-date {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(240,240,255,0.5);
  background: rgba(255,255,255,0.05);
  padding: 0.35rem 0.875rem; border-radius: 100px;
}

.exp-card-body { margin-bottom: 2rem; }
.exp-desc { font-size: 1rem; color: rgba(240,240,255,0.7); line-height: 1.6; margin-bottom: 1.5rem; }

.exp-highlights { display: flex; flex-direction: column; gap: 1rem; }
.highlight-item { display: flex; gap: 1rem; align-items: flex-start; }
.hl-icon { 
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(99,102,241,0.1); flex-shrink: 0;
  font-size: 0.875rem;
}
.hl-text { font-size: 0.9375rem; color: rgba(240,240,255,0.6); line-height: 1.6; padding-top: 5px; }
.hl-text strong { color: rgba(240,240,255,0.9); }

.exp-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: auto; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.exp-tags span {
  font-size: 0.75rem; font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px; color: #818cf8;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-list { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.project-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.project-card:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 40px rgba(99,102,241,0.1);
}

.proj-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.proj-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(99,102,241,0.1); color: #818cf8;
  display: flex; align-items: center; justify-content: center;
}
.proj-github-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 500; color: #818cf8;
  transition: opacity 0.15s;
}
.proj-github-link:hover { opacity: 0.7; }

.proj-name { font-size: 1.5rem; font-weight: 700; color: #f0f0ff; margin-bottom: 1rem; }

.proj-desc { font-size: 1rem; color: rgba(240,240,255,0.7); line-height: 1.7; margin-bottom: 1.5rem; }
.proj-desc strong { color: #f0f0ff; }

.proj-stack {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.proj-stack span {
  font-size: 0.75rem; font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px; color: #818cf8;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.skill-block {
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.skill-block:hover { border-color: rgba(99,102,241,0.4); background: rgba(255,255,255,0.04); }

.sb-title {
  font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #818cf8; margin-bottom: 1rem;
}
.sb-list { font-size: 1rem; color: rgba(240,240,255,0.7); line-height: 1.7; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-list { display: flex; flex-direction: column; }
.edu-item { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.edu-item:last-child { border-bottom: none; }
.edu-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.edu-degree { font-size: 1.125rem; font-weight: 700; color: #f0f0ff; margin-bottom: 0.35rem; }
.edu-school { font-size: 0.9375rem; color: rgba(240,240,255,0.5); display: block; }
.edu-right { text-align: right; flex-shrink: 0; }
.edu-date { font-size: 0.875rem; color: rgba(240,240,255,0.5); display: block; }
.edu-gpa { font-size: 1rem; color: #818cf8; font-weight: 600; display: block; margin-top: 0.35rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-lead { font-size: 1.125rem; color: rgba(240,240,255,0.5); margin-bottom: 2.5rem; }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.contact-card {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
  color: rgba(240,240,255,0.7);
}
.contact-card:hover { border-color: rgba(99,102,241,0.4); background: rgba(255,255,255,0.04); }
.contact-card:hover .cc-val { color: #818cf8; }
.contact-card svg { color: #818cf8; flex-shrink: 0; }
.cc-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(240,240,255,0.4); margin-bottom: 0.25rem; }
.cc-val { display: block; font-size: 1rem; font-weight: 500; color: #f0f0ff; transition: color 0.2s; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0c0c1e; padding: 2.5rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-text { font-size: 0.875rem; color: rgba(240,240,255,0.3); }
.footer-resume { font-size: 0.875rem; font-weight: 500; color: rgba(240,240,255,0.4); transition: color 0.2s; }
.footer-resume:hover { color: #818cf8; }

/* ============================================================
   RESPONSIVE — tablet ≤ 960px
   ============================================================ */
@media (max-width: 960px) {
  .nav-center { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 8rem 0 5rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-photo-wrap {
    order: -1;
  }
  .hero-photo-ring { width: 220px; height: 220px; }
  .hero-name { font-size: 3.5rem; }
  .section { padding: 4.5rem 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — phone ≤ 540px
   ============================================================ */
@media (max-width: 540px) {
  .container { padding: 0 1.25rem; }
  .nav-container { padding: 0 1.25rem; }
  .hero { padding: 6.5rem 0 3.5rem; }
  .hero-name { font-size: 2.5rem; }
  .hero-metrics { gap: 1.25rem; }
  .hm-sep { display: none; }
  .exp-card-header { flex-direction: column; gap: 0.5rem; }
  .edu-row { flex-direction: column; gap: 0.375rem; }
  .edu-right { text-align: left; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }
  .exp-card { padding: 1.5rem; }
  .project-card { padding: 1.5rem; }
}
