/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060612;
  --bg-2: #0c0c1f;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f4;
  --text-muted: #8888aa;
  --accent-1: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f59e0b;
  --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-text: linear-gradient(135deg, #a78bfa, #38bdf8, #34d399);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  transition: left 0.06s,top 0.06s;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(6,6,18,0.7);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { padding: 0.7rem 2.5rem; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dot { color: var(--accent-2); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.03) 1px,transparent 1px);
  background-size: 60px 60px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatBlob 8s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: rgba(124,58,237,0.25); top: -200px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: rgba(6,182,212,0.15); bottom: -100px; left: -50px; animation-delay: -3s; }
.blob-3 { width: 300px; height: 300px; background: rgba(245,158,11,0.1); top: 40%; left: 40%; animation-delay: -6s; }
@keyframes floatBlob { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-30px) scale(1.05)} }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 1.2rem;
}
.hero-name .line { display: block; }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift { 0%{background-position:0%} 100%{background-position:200%} }

.hero-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: white;
}

.primary {
  background: linear-gradient(90deg, #6a5cff, #00d4ff);
}

/* Split Button */
.split-btn {
  display: flex;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.split-btn button {
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 15px;
}

/* Divider */
.like-btn {
  border-right: 1px solid rgba(255,255,255,0.2);
}

.like-btn.liked {
  color: red;
  transform: scale(1.1);
}

/* Hover Effects */
.split-btn button:hover {
  background: rgba(255,255,255,0.1);
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(124,58,237,0.6); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 3px; height: 8px;
  background: var(--accent-2);
  border-radius: 3px;
  animation: scroll 1.5s ease-in-out infinite;
}
@keyframes scroll { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }

/* ===== SECTIONS ===== */
.section { padding: 7rem 1.5rem; position: relative; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: linear-gradient(135deg,rgba(124,58,237,0.2),rgba(6,182,212,0.2));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
}

/* ===== ABOUT ===== */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}
.about-avatar { position: relative; display: flex; justify-content: center; }
.avatar-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  animation: spin 8s linear infinite;
}
@keyframes spin { 0%{filter:hue-rotate(0deg)} 100%{filter:hue-rotate(360deg)} }
.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(124,58,237,0.2),transparent 70%);
  z-index: -1;
}

.avatar-initials img {
  border-radius: 150px;
  height: 270px;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-text p a { color: #6a5cff;}
.about-text p a:hover { color: #38bdf8; text-decoration: underline #34d399;}
.about-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.social-chip svg { width: 16px; height: 16px; }
.social-chip:hover { background: var(--surface-hover); border-color: rgba(124,58,237,0.5); color: #a78bfa; transform: translateY(-2px); }

/* ===== EDUCATION / TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -29px; top: 1.8rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(124,58,237,0.6);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}
.timeline-card:hover { border-color: rgba(124,58,237,0.4); transform: translateX(5px); }
.timeline-card:hover::before { opacity: 1; }
.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.timeline-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.timeline-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.timeline-org { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.timeline-card p { color: var(--text-muted); font-size: 0.9rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.timeline-tags span {
  padding: 0.2rem 0.7rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  color: #a78bfa;
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation-delay: var(--delay);
}
.project-card:hover { border-color: rgba(124,58,237,0.5); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.project-glow {
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
  transition: var(--transition);
}
.project-card:hover .project-glow { transform: scale(1.5); opacity: 1.5; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-icon { font-size: 2rem; }
.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: var(--transition);
}
.project-links a svg { width: 18px; height: 18px; }
.project-links a:hover { color: #fff; border-color: var(--accent-1); background: rgba(124,58,237,0.2); }
.project-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.2rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tech span {
  padding: 0.2rem 0.65rem;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 100px;
  font-size: 0.73rem;
  color: var(--accent-2);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 1.5rem;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.skill-group:hover { border-color: rgba(124,58,237,0.3); }
.skill-group h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-emoji { font-size: 1.2rem; }
.skill-pills { display: flex; flex-direction: column; gap: 1rem; }
.skill-pill span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.pill-bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.pill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.pill-fill.animated { width: var(--w); }

/* ===== CONTACT ===== */
.contact { background: var(--bg-2); text-align: center; }
.contact-sub { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  min-width: 220px;
  backdrop-filter: blur(10px);
}
.contact-card:hover { border-color: rgba(124,58,237,0.5); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.cc-icon { font-size: 1.8rem; }
.cc-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.cc-value { font-size: 0.9rem; font-weight: 500; }

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer p { color: var(--text-muted); font-size: 0.88rem; }
.footer-sub { margin-top: 0.3rem; font-size: 0.8rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,6,18,0.98); padding: 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-links { justify-content: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .timeline { padding-left: 1.5rem; }
  .contact-card { min-width: unset; width: 100%; }
}