@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #050816;
  --bg-card: rgba(13, 18, 50, 0.75);
  --purple: #915eff;
  --cyan: #00d4ff;
  --pink: #f46ef8;
  --text: #ffffff;
  --muted: #aaa6c3;
  --border: rgba(145, 94, 255, 0.2);
  --nav-h: 64px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Nav ────────────────────────────────────────── */
#topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 999;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(145, 94, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(to right, var(--purple), var(--cyan));
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}
.nav-hamburger:hover span { background: var(--text); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(5, 8, 22, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  z-index: 998;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(145, 94, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(244, 110, 248, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 750px;
}

.profile-ring-wrap {
  position: relative;
  width: 190px;
  height: 190px;
}
.profile-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--purple), var(--cyan), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.profile-pic {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-greeting {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 25%, var(--purple) 65%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-subtitle strong {
  color: var(--purple);
  font-weight: 600;
}

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

.btn-grad {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-grad:hover { opacity: 0.82; transform: translateY(-3px); }

.btn-ghost {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(145, 94, 255, 0.45);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: rgba(145, 94, 255, 0.1);
  transform: translateY(-3px);
}

/* ── Shared page section ────────────────────────── */
.page-section {
  padding: 6rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-band {
  background: rgba(13, 18, 50, 0.45);
  border-top: 1px solid rgba(145, 94, 255, 0.1);
  border-bottom: 1px solid rgba(145, 94, 255, 0.1);
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  position: relative;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--purple), var(--cyan));
}
.section-head p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ── Sub-heading inside section ─────────────────── */
.sub-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sub-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: linear-gradient(to bottom, var(--purple), var(--cyan));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Timeline ───────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), transparent);
  border-radius: 1px;
}

.tl-item {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tl-item:hover {
  border-color: rgba(145, 94, 255, 0.48);
  transform: translateX(5px);
  box-shadow: 0 8px 32px rgba(145, 94, 255, 0.08);
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.15rem; top: 1.85rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 14px var(--purple);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.tl-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.tl-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.09);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
}

.tl-project {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.88rem;
  margin: 0.7rem 0 0.4rem;
}

.tl-item ul {
  padding-left: 0;
  margin-bottom: 0.5rem;
}
.tl-item ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.15rem 0 0.15rem 1.1rem;
  position: relative;
}
.tl-item ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 0.7rem;
  top: 0.3rem;
}

/* ── Tech Tags ──────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(145, 94, 255, 0.1);
  border: 1px solid rgba(145, 94, 255, 0.22);
  color: var(--purple);
  letter-spacing: 0.02em;
}

/* ── Project Cards ──────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.proj-card:hover {
  border-color: rgba(145, 94, 255, 0.48);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(145, 94, 255, 0.1);
}

.proj-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(145, 94, 255, 0.18), rgba(0, 212, 255, 0.18));
  border: 1px solid rgba(145, 94, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--purple);
}

.proj-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.proj-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.proj-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: gap 0.2s, color 0.2s;
  margin-top: 0.25rem;
}
.proj-card-link:hover { color: var(--text); gap: 0.65rem; }

/* ── Interests ──────────────────────────────────── */
.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.interest-card:hover {
  border-color: rgba(145, 94, 255, 0.48);
  transform: translateY(-3px);
}

.interest-icon-box {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  flex-shrink: 0;
}

.interest-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.interest-body blockquote {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  border-left: 3px solid var(--purple);
  padding-left: 0.85rem;
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

/* ── Blog ───────────────────────────────────────── */
.blog-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: border-color 0.3s;
}
.blog-card:hover { border-color: rgba(145, 94, 255, 0.48); }

.blog-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.blog-card p {
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* ── Contact ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s;
}
.contact-card:hover { border-color: rgba(145, 94, 255, 0.48); }
.contact-card h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}
.contact-card p, .contact-card a {
  font-size: 0.88rem;
  color: var(--muted);
  word-break: break-word;
}
.contact-card a:hover { color: var(--text); }

.social-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(145, 94, 255, 0.09);
  border: 1px solid rgba(145, 94, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-btn:hover {
  background: rgba(145, 94, 255, 0.18);
  border-color: var(--purple);
  color: var(--text);
  transform: translateY(-4px);
}

/* ── Footer ─────────────────────────────────────── */
#footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(145, 94, 255, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
}

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

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #topnav { padding: 0 1.25rem; }

  .page-section { padding: 4.5rem 1.25rem; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .timeline { padding-left: 2rem; }

  .tl-header { flex-direction: column; }

  .contact-grid { grid-template-columns: repeat(2, minmax(0, 280px)); }

  .interest-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .contact-grid { grid-template-columns: minmax(0, 280px); }
}
