:root {
  --bg: #06070c;
  --bg-2: #0a0d16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #a8b0c6;
  --primary: #7c87ff;
  --primary-2: #a85cff;
  --white: #ffffff;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
  --header-height: 86px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 135, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(168, 92, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #070911 0%, #05060b 100%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Background */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -4;
  pointer-events: none;
}

.orb-1 {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -80px;
  background: rgba(100, 120, 255, 0.18);
}

.orb-2 {
  width: 420px;
  height: 420px;
  top: 180px;
  right: -100px;
  background: rgba(172, 90, 255, 0.16);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  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: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1), transparent 95%);
  opacity: 0.25;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(124, 135, 255, 0.7);
  box-shadow: 0 0 12px rgba(124, 135, 255, 0.65);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  from {
    transform: translateY(0px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    transform: translateY(-120px);
    opacity: 0;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 17, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(135deg, rgba(124,135,255,0.22), rgba(168,92,255,0.24));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(124, 135, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav a {
  color: #cdd4e9;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: 0.25s ease;
}

/* Sections */
.section {
  position: relative;
}

.section-padding {
  padding: 120px 0 40px;
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #e9ecff;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin-bottom: 20px;
}

.section-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 14px rgba(124, 135, 255, 0.8);
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 50px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #dfe5ff;
  font-size: 15px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c87ff;
  box-shadow: 0 0 0 0 rgba(124, 135, 255, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 135, 255, 0.8);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(124, 135, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 135, 255, 0);
  }
}

.hero-title {
  max-width: 1050px;
  font-size: clamp(58px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #a8b6ff 0%, #7d8cff 35%, #c78cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 980px;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.7;
  color: #c8d0e7;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 50px;
}

.hero-stats {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 26px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 36px;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.stat-card p {
  color: var(--muted);
  font-size: 15px;
}

/* Shared card */
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-grid .glass-card {
  padding: 28px;
}

.about-grid h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.about-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.project-card:hover,
.stack-pill:hover {
  transform: translateY(-6px);
}

.service-card:hover {
  border-color: rgba(124, 135, 255, 0.28);
  box-shadow: 0 25px 60px rgba(90, 102, 255, 0.12);
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(124,135,255,0.24), rgba(168,92,255,0.26));
  border: 1px solid rgba(255,255,255,0.08);
}

.service-card h3 {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.service-card ul {
  display: grid;
  gap: 12px;
}

.service-card li,
.project-card li {
  position: relative;
  padding-left: 18px;
  color: #e8ecff;
  font-size: 15px;
  line-height: 1.75;
}

.service-card li::before,
.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 12px rgba(124, 135, 255, 0.7);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: rgba(124, 135, 255, 0.28);
  box-shadow: 0 25px 60px rgba(90, 102, 255, 0.12);
}

.project-top {
  margin-bottom: 18px;
}

.project-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #eef1ff;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.project-card h3 {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.project-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.project-card ul {
  display: grid;
  gap: 12px;
}

/* Tech Stack */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.stack-pill {
  padding: 16px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef2ff;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stack-pill:hover {
  border-color: rgba(124, 135, 255, 0.28);
}

/* Resume & Contact */
.resume-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.resume-card,
.resume-info,
.contact-card,
.contact-info {
  padding: 32px;
}

.resume-card h3,
.contact-card h3 {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.resume-card p,
.contact-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.resume-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.resume-info,
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resume-info-item,
.contact-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.resume-info-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.resume-info-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-item strong {
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 26px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #0b0d13;
  background: linear-gradient(180deg, #ffffff 0%, #f1f4ff 100%);
  box-shadow: 0 16px 40px rgba(255,255,255,0.08);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.btn-ghost {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255,255,255,0.08);
}

/* Footer */
.site-footer {
  padding: 90px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  position: relative;
}

.footer-inner {
  text-align: center;
  max-width: 820px;
}

.footer-name {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #8ea0ff 0%, #7c87ff 55%, #b16cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-role {
  color: #b5bfd8;
  font-size: 22px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-bottom: 42px;
}

.footer-socials a {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #9ba6c2;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: 0.25s ease;
}

.footer-socials a:hover {
  color: #ffffff;
  transform: translateY(-4px);
  border-color: rgba(124, 135, 255, 0.35);
  box-shadow: 0 14px 35px rgba(124, 135, 255, 0.12);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

.footer-copy {
  color: #8f99b4;
  font-size: 18px;
  line-height: 1.8;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-stats,
  .about-grid,
  .services-grid,
  .projects-grid,
  .resume-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 720px;
  }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    width: min(340px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 24px;
    background: rgba(10, 13, 22, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-title {
    font-size: clamp(52px, 12vw, 96px);
  }

  .hero-description {
    font-size: 18px;
  }

  .section-padding {
    padding: 96px 0 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-header {
    height: 76px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-description {
    font-size: 17px;
    line-height: 1.8;
  }

  .availability-badge {
    font-size: 13px;
    padding: 12px 16px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .glass-card,
  .service-card,
  .project-card,
  .resume-card,
  .resume-info,
  .contact-card,
  .contact-info {
    border-radius: 24px;
  }

  .service-card,
  .project-card,
  .resume-card,
  .resume-info,
  .contact-card,
  .contact-info,
  .about-grid .glass-card {
    padding: 24px;
  }

  .service-card h3,
  .project-card h3 {
    font-size: 24px;
  }

  .resume-card h3,
  .contact-card h3 {
    font-size: 28px;
  }

  .hero-actions,
  .resume-actions,
  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .resume-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .stat-card {
    padding: 22px 18px;
  }

  .site-footer {
    padding: 70px 0 55px;
  }

  .footer-name {
    font-size: 30px;
  }

  .footer-role {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .footer-socials {
    gap: 18px;
    margin-bottom: 28px;
  }

  .footer-socials a {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .footer-copy {
    font-size: 15px;
  }
}