:root {
  --bg: #060816;
  --bg-soft: #0b1023;
  --surface: rgba(13, 18, 39, 0.68);
  --surface-strong: rgba(20, 26, 55, 0.85);
  --border: rgba(255, 255, 255, 0.1);
  --text: #edf2ff;
  --muted: #9aa6d1;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #ff4ecd;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.15), transparent 26%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 20%),
    linear-gradient(135deg, #040611 0%, #090d1f 42%, #05070f 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 22, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.logo span {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #d7def8;
  transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: #fff;
  transition: 0.3s ease;
}

.hero,
.page-main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  padding: 70px 0 30px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-2);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #9be7ff 35%, #d7b6ff 70%, #ff9de1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text,
.page-subtext,
.glass-card p,
.highlight-list li,
.edu-meta span,
.project-stack {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 700px;
  font-size: 1.04rem;
  margin-bottom: 28px;
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-bottom: 20px;
}

.hero-links a {
  color: #dfe7ff;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-links a:hover {
  color: var(--accent-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.35s ease;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 14px 35px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(12, 18, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-ring {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-badge {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  font-size: 0.85rem;
  backdrop-filter: blur(12px);
}

.badge-top {
  top: 18px;
  left: 18px;
}

.badge-right {
  right: 18px;
  bottom: 110px;
}

.tech-orbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.tech-orbs span,
.skill-chip,
.project-chip,
.section-tag {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}

.tech-orbs span {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
}

.stats-section,
.cards-grid,
.content-grid {
  position: relative;
  z-index: 2;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: -10px;
  margin-bottom: 70px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding-bottom: 70px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(20, 26, 55, 0.85);
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
}

.stat-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dce6ff;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.about-card h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.highlight-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.highlight-list li {
  position: relative;
  padding-left: 22px;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
}

.page-main {
  padding: 70px 0;
}

.page-hero {
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects-grid .project-card,
.timeline-card,
.contact-card {
  min-height: 100%;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.project-number {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  color: #ffffff;
  opacity: 0.85;
}

.project-chip,
.skill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eef4ff;
}

.project-chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.project-card h2,
.timeline-card h2,
.contact-card h2 {
  font-family: "Syne", sans-serif;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.project-stack {
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.45;
}

.timeline-card {
  position: relative;
  padding-left: 52px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.75);
}

.edu-degree {
  color: #edf2ff;
  margin-bottom: 12px;
  font-weight: 600;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-chip {
  padding: 12px 16px;
  border-radius: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.skill-chip:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills-full,
.contact-wide {
  grid-column: 1 / -1;
}

.copy-card {
  cursor: pointer;
}

.copy-card:hover {
  transform: translateY(-4px);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 18px 0 30px;
}

.footer-inner {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  color: #95a2cb;
  text-align: center;
}

.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.bg-blur-1 {
  width: 280px;
  height: 280px;
  background: rgba(139, 92, 246, 0.25);
  top: 80px;
  left: -70px;
  animation: floatBlob 8s ease-in-out infinite;
}

.bg-blur-2 {
  width: 360px;
  height: 360px;
  background: rgba(34, 211, 238, 0.18);
  bottom: 40px;
  right: -100px;
  animation: floatBlob 10s ease-in-out infinite reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0.1));
  animation: rise linear infinite;
  opacity: 0.55;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2000;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255,255,255,0.95);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.35);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.floating-card {
  animation: levitate 5s ease-in-out infinite;
}

.magnetic {
  position: relative;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-24px) translateX(20px) scale(1.05); }
}

@keyframes levitate {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes rise {
  from {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.55;
  }
  to {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .hero,
  .content-grid,
  .stats-section,
  .cards-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .menu-toggle {
    display: block;
    z-index: 1200;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 4%;
    width: min(260px, 88vw);
    padding: 18px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 14, 30, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-card {
    padding-left: 46px;
  }

  .timeline-dot {
    left: 8px;
  }
}

@media (max-width: 640px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .glass-card,
  .profile-card {
    padding: 22px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
.contact-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 5;
}

.contact-link-card .contact-card {
  height: 100%;
}

.contact-card,
.glass-card,
.page-main,
.site-header,
.site-footer {
  position: relative;
  z-index: 5;
}

.contact-card h2,
.contact-card p,
.contact-card .section-tag {
  position: relative;
  z-index: 6;
}