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

:root {
  --bg: #0b0c10;
  --bg2: #12141a;
  --bg3: #1a1d26;
  --accent: #7c6af5;
  --accent2: #a78bfa;
  --teal: #2dd4bf;
  --coral: #fb7185;
  --amber: #fbbf24;
  --text: #e8e6f0;
  --text2: #9b97b2;
  --text3: #6b6883;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --font: "Sora", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

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

/*  TYPOGRAPHY  */
h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--accent2);
}
strong {
  font-weight: 600;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/*  CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAV  */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: -0.02em;
}
.dot {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent2);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  background: var(--bg2);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text2);
}
.mobile-menu a:hover {
  color: var(--accent2);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -300px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 106, 245, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(124, 106, 245, 0.25);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--bg3) 0%, #1f1d35 100%);
  color: var(--accent2);
  font-family: var(--mono);
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.hero-name {
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.hero-role {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--border2);
  color: var(--text2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
  transform: translateY(-2px);
}

.hero-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text3);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}
.social-link:hover {
  color: var(--accent2);
  border-color: var(--accent);
  background: rgba(124, 106, 245, 0.08);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/*  SECTIONS  */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg2);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.section-title {
  margin-bottom: 3rem;
  color: var(--text);
}

/*  ABOUT  */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.about-text h2 {
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--text2);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.2s;
}
.stat-card:hover {
  border-color: var(--accent);
}
.stat-num {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent2);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 500;
}

/*  SKILLS  */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.skill-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s;
}
.pill:hover {
  transform: translateY(-2px);
}
.pill-purple {
  background: rgba(124, 106, 245, 0.15);
  color: #c4b8ff;
  border-color: rgba(124, 106, 245, 0.3);
}
.pill-teal {
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.3);
}
.pill-coral {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.3);
}
.pill-amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.3);
}
.pill-gray {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text2);
  border-color: var(--border2);
}

/*  PROJECTS  */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.project-card-highlight {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg3) 0%,
    rgba(251, 191, 36, 0.04) 100%
  );
}
.project-card-highlight:hover {
  border-color: var(--amber);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}
.project-tag-sih {
  color: var(--amber);
}
.project-trophy {
  font-size: 1.1rem;
}
.project-link {
  color: var(--text3);
  transition: color 0.2s;
}
.project-link:hover {
  color: var(--accent2);
}

.project-card h3 {
  font-size: 1rem;
  color: var(--text);
}
.project-card p {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.project-stack span {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text3);
}

/* TIMELINE  */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border2);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 8px rgba(124, 106, 245, 0.5);
}
.timeline-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}
.timeline-content h3 {
  margin-bottom: 0.25rem;
}
.timeline-inst {
  font-size: 0.875rem;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}
.timeline-detail {
  font-size: 0.875rem;
  color: var(--text2);
}

/*  CONTACT  */
.contact-sub {
  color: var(--text2);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text2);
  transition: all 0.2s;
}
.contact-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-3px);
}
.contact-card svg {
  flex-shrink: 0;
  color: var(--accent);
}
.contact-card span {
  font-size: 0.85rem;
  word-break: break-all;
}

/*  FOOTER  */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer p {
  color: var(--text3);
  font-size: 0.85rem;
}
.footer-sub {
  color: var(--text3);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* RESPONSIVE  */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-links {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
}
@media (max-width: 600px) {
  .hero-photo-wrap {
    width: 180px;
    height: 180px;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .section {
    padding: 4rem 0;
  }
}
