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

:root {
  --bg: #050508;
  --bg-alt: #0a0a10;
  --surface: rgba(20, 20, 30, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-dim: rgba(139, 92, 246, 0.15);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --text: #f8fafc;
  --muted: #94a3b8;
  --radius: 16px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
strong { color: #fff; font-weight: 600; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 1.1rem;
  color: var(--accent);
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: grid; place-items: center;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent-dim); color: var(--accent) !important;
  padding: 0.4rem 1rem; border-radius: 6px;
  border: 1px solid rgba(124,108,252,0.3);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: rgba(124,108,252,0.25) !important; }

.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(--muted); border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-link { font-size: 1rem; color: var(--muted); font-weight: 500; }
.mobile-link:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 40%, var(--accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, var(--cyan-glow) 0%, transparent 45%);
  filter: blur(80px);
  opacity: 0.6;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.8; }
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.hero-content {
  padding: 4rem 1.5rem;
  flex: 1;
  width: 100%;
}
.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent); font-size: 0.95rem; font-weight: 500;
  margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero-titles {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.hero-title-item {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: 24px;
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.hero-title-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.hero-title-item.active {
  background: var(--accent-dim);
  border-color: rgba(139, 92, 246, 0.4);
  color: #d8b4fe;
  box-shadow: 0 0 15px var(--accent-dim);
}
.hero-bio {
  max-width: 520px; color: var(--muted);
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px var(--accent-dim);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px var(--accent-glow); 
}
.btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { 
  border-color: var(--accent); 
  background: var(--accent-dim);
  color: #fff; 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px var(--accent-dim);
}

.hero-links { display: flex; gap: 1rem; }
.hero-links a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #cbd5e1; 
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%; transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.hero-links a:hover { 
  color: #fff; 
  border-color: var(--accent); 
  background: var(--accent); 
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.hero-links svg { width: 20px; height: 20px; }

/* Hero visual — Profile Image */
.hero-visual {
  display: none;
  position: relative; z-index: 1;
}
.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 60px var(--accent-dim);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg);
}

/* ── Stats ── */
.stats {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.stat { text-align: center; padding: 0.5rem 2.5rem; }
.stat-num {
  display: block; font-size: 1.75rem; font-weight: 700;
  color: var(--accent); font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.75rem; font-weight: 700; color: #fff;
  margin-bottom: 3rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Timeline ── */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.3;
}
.timeline-item {
  display: flex; gap: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: none; }
.timeline-dot {
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 1.1rem;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent);
  position: relative; z-index: 1;
}
.timeline-card {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.timeline-card:hover { 
  border-color: var(--accent); 
  background: rgba(30, 30, 45, 0.6);
  transform: translateY(-3px); 
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.timeline-company { font-size: 1.1rem; font-weight: 700; color: #fff; }
.timeline-role { font-size: 0.875rem; color: var(--accent); font-weight: 500; margin-top: 2px; }
.timeline-meta { text-align: right; flex-shrink: 0; }
.timeline-date {
  display: block; font-size: 0.8rem; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.timeline-location { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.timeline-bullets {
  list-style: none; padding: 0; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.timeline-bullets li {
  font-size: 0.875rem; color: var(--muted); line-height: 1.65;
  padding-left: 1.2em; position: relative;
}
.timeline-bullets li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.timeline-tags span {
  font-size: 0.72rem; padding: 0.2rem 0.55rem;
  border-radius: 4px; background: var(--accent-dim);
  color: var(--accent); border: 1px solid rgba(124,108,252,0.2);
  font-weight: 500; font-family: 'JetBrains Mono', monospace;
}

/* ── Skills ── */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease;
}
.skill-group.visible { opacity: 1; transform: none; }
.skill-group:hover { 
  border-color: var(--accent);
  background: rgba(30, 30, 45, 0.6);
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.skill-group-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.skill-group-title svg { width: 16px; height: 16px; color: var(--accent); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span {
  font-size: 0.8rem; padding: 0.3rem 0.7rem;
  border-radius: 6px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); color: var(--muted);
  transition: all 0.2s;
}
.skill-tags span:hover { background: var(--accent-dim); border-color: rgba(124,108,252,0.3); color: var(--text); }

/* ── Publications ── */
.pub-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.pub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease;
}
.pub-card.visible { opacity: 1; transform: none; }
.pub-card:hover { 
  border-color: var(--accent);
  background: rgba(30, 30, 45, 0.6);
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.pub-badge {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(124,108,252,0.2);
  border-radius: 4px; padding: 0.2rem 0.55rem; align-self: flex-start;
}
.pub-title { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.45; }
.pub-venue { font-size: 0.8rem; color: var(--muted); }
.pub-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.pub-link {
  font-size: 0.85rem; color: var(--accent); font-weight: 500;
  transition: opacity 0.2s; margin-top: auto;
}
.pub-link:hover { opacity: 0.8; }

/* ── Kaggle ── */
.kaggle-wrapper {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap;
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease;
}
.kaggle-wrapper.visible { opacity: 1; transform: none; }
.kaggle-wrapper:hover {
  border-color: var(--cyan);
  background: rgba(30, 30, 45, 0.6);
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.kaggle-badge-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex-shrink: 0; }
.kaggle-medal {
  width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  flex-direction: column;
}
.kaggle-medal svg { width: 36px; height: 36px; }
.kaggle-medal.silver {
  background: linear-gradient(135deg, #c0c0c0, #8a8a8a);
  color: #fff; box-shadow: 0 8px 24px rgba(192,192,192,0.3);
}
.kaggle-expert-badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--cyan);
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2);
  border-radius: 4px; padding: 0.25rem 0.6rem;
}
.kaggle-details h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.kaggle-rank { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* ── Education ── */
.edu-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease;
}
.edu-card.visible { opacity: 1; transform: none; }
.edu-card:hover {
  border-color: var(--accent);
  background: rgba(30, 30, 45, 0.6);
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.edu-logo {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.edu-details h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.edu-degree { font-size: 0.875rem; color: var(--muted); }

/* ── Contact ── */
.contact-section { background: var(--bg-alt); }
.contact-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.contact-inner.visible { opacity: 1; transform: none; }
.contact-heading {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #fff;
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.contact-sub { color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; color: var(--muted);
  padding: 0.9rem 1.5rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all 0.2s; min-width: 320px; justify-content: flex-start;
}
.contact-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-item:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ── Footer ── */
.footer {
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 0.95rem;
  color: var(--accent);
  width: 32px; height: 32px;
  border: 2px solid var(--accent);
  border-radius: 7px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.footer-copy {
  font-size: 0.8rem; color: var(--muted);
}
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social-link {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; transition: all 0.2s;
}
.footer-social-link svg { width: 15px; height: 15px; }
.footer-social-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* ── Responsive ── */
@media (min-width: 900px) {
  .hero-inner { flex-direction: row; justify-content: space-between; }
  .hero-content { padding-right: 3rem; max-width: 60%; }
  .hero-visual { display: flex; align-items: center; justify-content: center; flex: 1; padding: 4rem 1.5rem; }
  .hamburger { display: none !important; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-inner { gap: 1rem; }
  .stat-divider { display: none; }
  .pub-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 0; }
  .timeline-item { gap: 1rem; }
  .timeline-dot { width: 16px; height: 16px; margin-top: 1.3rem; }
  .contact-item { min-width: 0; width: 100%; max-width: 400px; }
}

@media (max-width: 540px) {
  .section { padding: 3.5rem 1rem; }
  .hero-content { padding: 3rem 1rem; }
  .stats { padding: 1.5rem 1rem; }
  .timeline-header { flex-direction: column; }
  .timeline-meta { text-align: left; }
  .skills-grid { grid-template-columns: 1fr; }
}
