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

:root {
  --bg:          #0c0a07;
  --bg-alt:      #141009;
  --surface:     #1c1610;
  --surface-2:   #252018;
  --border:      rgba(255,210,120,0.08);
  --text:        #f0ead8;
  --text-muted:  #9e8f72;
  --text-faint:  #5a4f3a;
  --amber:       #d97706;
  --gold:        #fbbf24;
  --grad:        linear-gradient(135deg, #d97706, #f59e0b);
  --grad-soft:   linear-gradient(135deg, rgba(217,119,6,0.15), rgba(251,191,36,0.12));
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 60px rgba(0,0,0,0.6);
  --nav-h:       68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 600; color: #fff; }

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

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

.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
.nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--surface-2);
  border-color: var(--amber);
  color: #fff;
}
.hamburger { display: none; }

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

/* Animated orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: floatOrb 12s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(217,119,6,0.18);
  top: -120px; left: -100px;
  animation-duration: 14s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(251,191,36,0.10);
  top: 20%; right: -80px;
  animation-duration: 10s;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: rgba(217,119,6,0.10);
  bottom: 60px; left: 30%;
  animation-duration: 18s;
  animation-delay: -8s;
}
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px, -30px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.97); }
}

/* Noise overlay for depth */
.hero::after {
  content: '';
  position: absolute;
  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;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-name {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 44px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  width: 6px;
  height: 40px;
  border-radius: 50px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 50%;
  border-radius: 50px;
  background: var(--grad);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -50%; }
  100% { top: 150%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(217,119,6,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(217,119,6,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover {
  border-color: rgba(217,119,6,0.4);
  transform: translateY(-3px);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 52px 40px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -7px;
  top: 6px;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--amber);
  transition: background 0.2s;
}
.tl-item:hover .tl-dot { background: var(--amber); }

.tl-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.tl-item:hover .tl-body {
  border-color: rgba(217,119,6,0.3);
  transform: translateX(4px);
}

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.tl-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.tl-company {
  font-size: 0.9rem;
  color: var(--amber);
  font-weight: 500;
  margin-top: 3px;
}
.tl-date {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.tl-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.tl-bullets {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.tl-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.tl-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.tl-badge.current {
  background: rgba(251,191,36,0.10);
  color: var(--gold);
  border: 1px solid rgba(34,211,238,0.25);
}

/* ── Education ── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.25s, transform 0.25s;
}
.edu-card:hover {
  border-color: rgba(217,119,6,0.35);
  transform: translateY(-4px);
}
.edu-card.featured {
  border-color: rgba(217,119,6,0.3);
  background: linear-gradient(135deg, var(--surface), rgba(217,119,6,0.06));
}
.edu-year {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.edu-school {
  font-size: 0.92rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 24px;
}
.courses-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.course-tags span {
  font-size: 0.78rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 50px;
}
.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(217,119,6,0.15), rgba(251,191,36,0.12));
  border: 1px solid rgba(217,119,6,0.3);
  color: var(--text);
  margin-top: 20px;
}
.award-icon { color: #f59e0b; }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s;
}
.skill-group:hover { border-color: rgba(217,119,6,0.3); }
.skill-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-pills span {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--grad-soft);
  border: 1px solid rgba(217,119,6,0.2);
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.skill-pills span:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.subsection-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.cert-card:hover {
  border-color: rgba(217,119,6,0.35);
  transform: translateY(-3px);
}
.cert-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}
.cert-provider {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
.cert-provider.coursera {
  background: rgba(217,119,6,0.15);
  color: #fbbf24;
  border: 1px solid rgba(217,119,6,0.25);
}
.cert-provider.nptel {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
}

/* ── Contact ── */
.contact-container { text-align: center; }
.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 48px;
}
.contact-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  transition: border-color 0.25s, transform 0.25s;
  text-align: left;
  min-width: 280px;
}
.contact-card:hover {
  border-color: rgba(217,119,6,0.4);
  transform: translateY(-4px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(217,119,6,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  font-size: 0.76rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── Mobile ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .edu-grid   { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-name { font-size: clamp(3rem, 14vw, 5rem); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .tl-body { padding: 20px; }
  .section { padding: 80px 0; }
  .contact-card { min-width: unset; width: 100%; }
}

/* ── Mobile Menu ── */
.nav-links.open {
  display: flex;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.nav-links.open li a {
  display: block;
  padding: 14px 32px;
  font-size: 1rem;
}
