:root {
  color-scheme: dark;
  --bg-0: #05070d;
  --bg-1: #0b1020;
  --bg-2: #0f1a32;
  --text: #e8f1ff;
  --muted: #9bb2d6;
  --neon-blue: #4cc9ff;
  --neon-cyan: #1df2ff;
  --neon-purple: #8a5cff;
  --neon-pink: #ff4fd8;
  --glass: rgba(11, 19, 36, 0.6);
  --glass-strong: rgba(11, 19, 36, 0.82);
  --glass-border: rgba(124, 158, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(76, 201, 255, 0.4), 0 0 40px rgba(138, 92, 255, 0.25);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at top, rgba(76, 201, 255, 0.08), transparent 50%),
    radial-gradient(circle at 10% 20%, rgba(138, 92, 255, 0.2), transparent 40%),
    var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

canvas#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.65;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(76, 201, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  z-index: 1;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: 1;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  background: radial-gradient(circle, rgba(76, 201, 255, 0.8), transparent 70%);
  top: -80px;
  right: 10%;
}

.orb-2 {
  background: radial-gradient(circle, rgba(138, 92, 255, 0.7), transparent 70%);
  bottom: -120px;
  left: 5%;
  animation-delay: -4s;
}

.orb-3 {
  background: radial-gradient(circle, rgba(255, 79, 216, 0.55), transparent 70%);
  top: 40%;
  left: 65%;
  animation-delay: -7s;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.6);
  border-bottom: 1px solid rgba(76, 201, 255, 0.12);
}

.navbar.scrolled {
  background: rgba(5, 7, 13, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Orbitron", "Sora", sans-serif;
}

.brand-mark {
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow: var(--shadow-glow);
}

.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.section {
  position: relative;
  z-index: 2;
  padding: 110px 6% 90px;
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 50px;
  padding-top: 140px;
}

.hero-content h1 {
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  text-shadow: var(--shadow-glow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--neon-blue);
}

.hero-title {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}

.typing-wrap {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--neon-cyan);
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--neon-blue), var(--neon-purple));
  color: #020412;
  box-shadow: 0 0 15px rgba(76, 201, 255, 0.55), 0 0 30px rgba(138, 92, 255, 0.45);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(76, 201, 255, 0.8), 0 0 35px rgba(138, 92, 255, 0.65);
}

.btn.ghost {
  border-color: rgba(76, 201, 255, 0.45);
  color: var(--text);
  background: rgba(10, 15, 30, 0.4);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  background: rgba(76, 201, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.hero-icons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 20, 40, 0.6);
  border: 1px solid rgba(76, 201, 255, 0.2);
  font-size: 0.85rem;
}

.icon-chip i {
  color: var(--neon-cyan);
}

.hero-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.profile-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 180deg, var(--neon-blue), var(--neon-purple), var(--neon-cyan));
  animation: spin 10s linear infinite;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at top, #1a2b52, #0a1224 70%);
  display: grid;
  place-items: center;
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-shadow: var(--shadow-glow);
}

.profile-meta {
  text-align: center;
}

.profile-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.profile-role {
  color: var(--muted);
  margin-top: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(76, 201, 255, 0.15);
  border: 1px solid rgba(76, 201, 255, 0.35);
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(29, 242, 255, 0.8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.stat-card {
  padding: 14px 10px;
  background: rgba(6, 10, 20, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(76, 201, 255, 0.2);
  text-align: center;
}

.stat-card h3 {
  font-family: "Orbitron", "Sora", sans-serif;
  color: var(--neon-blue);
}

.section-header {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.section-header h2 {
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-lead {
  color: var(--muted);
  max-width: 720px;
}

.about-grid,
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.glass-card {
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.glass-card h3 {
  margin-bottom: 12px;
}

.glass-card p {
  color: var(--muted);
}

.education-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.education-card h3 {
  margin-bottom: 6px;
}

.education-card p {
  color: var(--muted);
}

.education-meta {
  display: grid;
  gap: 8px;
  color: var(--neon-blue);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  gap: 26px;
}

.skill-group {
  display: grid;
  gap: 16px;
}

.skill-group h3 {
  font-family: "Orbitron", "Sora", sans-serif;
}

.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.skill-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 255, 0.2);
  background: rgba(6, 12, 24, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card i {
  color: var(--neon-cyan);
}

.skill-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(76, 201, 255, 0.2);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(76, 201, 255, 0.2), rgba(138, 92, 255, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.project-card * {
  position: relative;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.project-card:hover::before {
  opacity: 1;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.project-badge {
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(76, 201, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(76, 201, 255, 0.35);
}

.project-card p {
  color: var(--muted);
  line-height: 1.5;
}

.project-tags {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138, 92, 255, 0.3);
  font-size: 0.75rem;
  color: var(--neon-blue);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.activity-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(76, 201, 255, 0.2);
  text-align: center;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(76, 201, 255, 0.2);
  align-items: center;
}

.contact-item i {
  color: var(--neon-cyan);
  font-size: 1.2rem;
}

.contact-item p {
  font-weight: 600;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

input,
textarea {
  background: rgba(6, 12, 24, 0.8);
  border: 1px solid rgba(76, 201, 255, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(76, 201, 255, 0.6);
  box-shadow: 0 0 12px rgba(76, 201, 255, 0.25);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 40px 6%;
  background: rgba(5, 8, 18, 0.9);
  border-top: 1px solid rgba(76, 201, 255, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-content h3 {
  font-family: "Orbitron", "Sora", sans-serif;
  margin-bottom: 8px;
}

.footer-content p {
  color: var(--muted);
}

.footer-icons {
  display: flex;
  gap: 14px;
}

.footer-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(76, 201, 255, 0.15);
  color: var(--neon-cyan);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-icons a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(80px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 6%;
    flex-direction: column;
    background: rgba(5, 8, 18, 0.95);
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid rgba(76, 201, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 120px;
  }

  .hero-panel {
    padding: 24px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section {
    padding: 90px 6% 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
