:root {
  --bg: #040414;
  --bg-alt: #0b1030;
  --surface: rgba(18, 22, 52, 0.82);
  --surface-strong: #151a3b;
  --surface-soft: rgba(38, 43, 82, 0.58);
  --border: rgba(139, 92, 246, 0.22);
  --text: #eef1ff;
  --muted: #a9b2dc;
  --accent: #8b5cf6;
  --accent-strong: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --accent-secondary: #38bdf8;
  --warning: #fba94a;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 42px 140px rgba(4, 6, 26, 0.55);
  --shadow-md: 0 28px 90px rgba(12, 16, 46, 0.48);
  --shadow-sm: 0 16px 40px rgba(14, 18, 46, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(
      circle at 12% 10%,
      rgba(139, 92, 246, 0.16),
      transparent 48%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(56, 189, 248, 0.13),
      transparent 56%
    ),
    radial-gradient(
      circle at 45% 88%,
      rgba(109, 40, 217, 0.22),
      transparent 68%
    ),
    linear-gradient(165deg, var(--bg), var(--bg-alt));
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section {
  padding: 88px 0;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(5, 8, 22, 0.9);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.nav__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: rgba(139, 92, 246, 0.18);
  color: var(--accent-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.96),
    rgba(56, 189, 248, 0.94)
  );
  color: #061228;
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: 0 20px 44px rgba(99, 102, 241, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.32);
}

.btn--ghost {
  background: rgba(22, 26, 58, 0.72);
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.22);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(99, 102, 241, 0.32);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(8, 19, 48, 0.82),
    rgba(5, 8, 22, 0.92)
  );
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.hero__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.16),
    transparent 55%
  );
  filter: blur(80px);
  opacity: 0.75;
  animation: heroDrift 32s ease-in-out infinite;
}

.hero__orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(139, 92, 246, 0.48),
    transparent 62%
  );
  filter: blur(28px);
  opacity: 0.8;
  animation: heroPulse 28s ease-in-out infinite;
}

.hero__orb--one {
  top: -140px;
  right: -120px;
}

.hero__orb--two {
  bottom: -180px;
  left: -140px;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(56, 189, 248, 0.52),
    transparent 62%
  );
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  z-index: 1;
}

.hero__copy {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  color: #f7f9ff;
}

.hero__lead {
  font-size: 18px;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.hero__stats dt {
  font-size: 40px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
}

.hero__stats dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero__portrait {
  width: clamp(240px, 28vw, 320px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero__globe {
  position: absolute;
  bottom: -160px;
  right: -120px;
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transform: translateX(0);
}

.hero__globe img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 120px rgba(56, 189, 248, 0.3));
  animation: heroRotate 68s linear infinite;
  mix-blend-mode: screen;
}

.hero__note {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 6px;
}

.hero__tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes heroRotate {
  0% {
    transform: rotate(0deg) scale(1.02);
  }
  100% {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes heroDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, 30px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
}

@keyframes timelineReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 660px;
}

.section-heading--center {
  text-align: center;
  margin: 0 auto 48px auto;
}

.section-heading--center p {
  margin: 0 auto;
  max-width: 620px;
}

.about__layout {
  display: grid;
  gap: 48px;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.highlight-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.education__layout {
  display: grid;
  gap: 48px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 32px;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.45),
    rgba(56, 189, 248, 0.08)
  );
}

.timeline__item {
  position: relative;
}

.timeline__marker {
  position: absolute;
  top: 28px;
  left: -26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(12, 24, 52, 0.9);
  border: 3px solid rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.timeline__content {
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
  animation: timelineReveal 0.9s ease both;
}

.timeline__item:nth-child(2) .timeline__content {
  animation-delay: 0.12s;
}

.timeline__item:nth-child(3) .timeline__content {
  animation-delay: 0.24s;
}

.timeline__item:nth-child(4) .timeline__content {
  animation-delay: 0.36s;
}

.timeline__header {
  display: grid;
  gap: 6px;
}

.timeline__period {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline__subtitle {
  font-size: 15px;
  color: #f5f8ff;
}

.timeline__details {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  list-style: disc;
}

.timeline__details li {
  font-size: 15px;
  color: var(--muted);
}

.timeline__details li strong {
  color: #f5f8ff;
}

.timeline--experience .timeline__content {
  background: var(--surface);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: var(--shadow-md);
}

.timeline--experience .timeline__marker {
  border-color: rgba(56, 189, 248, 0.9);
}

.timeline--experience .timeline__subtitle {
  color: var(--accent);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.project-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.14);
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}

.project-card__tech span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.project-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  list-style: disc;
  color: var(--accent);
  border-bottom: 1px solid rgba(139, 92, 246, 0.45);
}

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

.skills__grid {
  display: grid;
  border-color: rgba(139, 92, 246, 0.8);
  gap: 24px;
  margin-top: 40px;
}

.skills__group {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: var(--shadow-sm);
}

.skills__group h3 {
  margin-bottom: 14px;
  color: #f5f8ff;
}

.project-card__links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.project-card__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  color: #f5f8ff;
  border-color: rgba(56, 189, 248, 0.8);
}

.skills__group ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.skills__group li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--muted);
}

.skills__group li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.callout {
  padding: 96px 0;
  background: linear-gradient(
    140deg,
    rgba(18, 16, 48, 0.9),
    rgba(12, 32, 72, 0.4)
  );
  border-block: 1px solid rgba(139, 92, 246, 0.18);
}

.callout__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 56px);
  background: rgba(12, 18, 44, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4vw, 52px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.callout__layout::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      circle at 18% 24%,
      rgba(139, 92, 246, 0.32),
      transparent 58%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(56, 189, 248, 0.24),
      transparent 62%
    );
  filter: blur(80px);
  opacity: 0.85;
  pointer-events: none;
}

.callout__content,
.callout__panel {
  position: relative;
  z-index: 1;
}

.callout__content {
  display: grid;
  gap: 20px;
}

.callout__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
}

.callout__content h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  color: #f8f9ff;
}

.callout__points {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.callout__points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}

.callout__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.callout__points--panel li {
  color: #e9ecff;
  font-weight: 500;
}

.callout__panel {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 3vw, 32px);
  border-radius: var(--radius-md);
  background: rgba(10, 14, 34, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.26);
  box-shadow: var(--shadow-sm);
}

.callout__panel h3 {
  font-size: 20px;
  color: #f5f6ff;
}

.callout__panel-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.gallery {
  position: relative;
}

.gallery__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.gallery__card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.gallery__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery__chips span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.24);
  font-size: 13px;
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 54px);
  background: rgba(12, 18, 44, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}

.contact__content {
  display: grid;
  gap: 20px;
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact__panel {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-md);
  background: rgba(9, 14, 34, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: var(--shadow-sm);
}

.contact__panel h3 {
  font-size: 20px;
  color: #f6f7ff;
}

.contact__panel-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact__links {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(18, 24, 54, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__links a:hover,
.contact__links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.24);
}

.site-footer {
  padding: 48px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--accent);
}

@media (max-width: 1080px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__copy {
    justify-items: center;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    justify-items: center;
  }

  .nav__links {
    gap: 16px;
  }

  .hero__globe {
    right: -60px;
    bottom: -140px;
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 920px) {
  .about__cards,
  .projects__grid,
  .skills__grid,
  .gallery__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .callout__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .callout__content,
  .callout__panel,
  .contact__content,
  .contact__panel {
    text-align: left;
  }

  .callout__panel,
  .contact__panel {
    justify-items: flex-start;
  }

  .callout__actions,
  .contact__cta {
    justify-content: flex-start;
  }

  .timeline {
    padding-left: 32px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 72px 0;
  }

  .nav__links {
    display: none;
  }

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

  .hero__tags {
    justify-content: center;
  }

  .hero__globe {
    right: 50%;
    bottom: -220px;
    transform: translateX(50%);
    width: 300px;
    height: 300px;
    opacity: 0.55;
  }

  .about__cards,
  .projects__grid,
  .skills__grid,
  .gallery__layout {
    grid-template-columns: 1fr;
  }

  .callout__layout,
  .contact__layout {
    padding: 28px;
  }

  .callout__actions,
  .contact__cta {
    justify-content: center;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline__marker {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 12px;
  }

  .timeline__content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero__badge {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .hero__lead {
    font-size: 16px;
  }

  .project-card,
  .skills__group,
  .gallery__card,
  .highlight-card {
    padding: 22px;
  }

  .callout__layout,
  .contact__layout {
    padding: 28px;
  }

  .hero__globe {
    width: 240px;
    height: 240px;
    bottom: -180px;
  }
}
