:root {
  --bg: #020314;
  --bg-elevated: #07091f;
  --bg-soft: #070818;
  --border-subtle: rgba(139, 164, 255, 0.18);
  --accent: #7b5cff;
  --accent-soft: rgba(123, 92, 255, 0.2);
  --accent-strong: #4cc9f0;
  --text-main: #f5f7ff;
  --text-soft: #a4b0d8;
  --text-mute: #6a7399;
  --danger: #ff6b9b;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --blur: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #151735 0, #020314 55%);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

canvas#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at top, #151735 0, #020314 55%);
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(
      120deg,
      rgba(42, 45, 98, 0.8),
      rgba(9, 11, 40, 0.9)
    ),
    radial-gradient(circle at top left, rgba(123, 92, 255, 0.18), transparent);
  background-clip: padding-box;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--blur));
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #7b5cff, #4cc9f0 80%);
  box-shadow: 0 0 26px rgba(123, 92, 255, 0.9);
}

.logo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo-initial {
  font-size: 16px;
  font-weight: 700;
  color: #050617;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease-out;
  background: linear-gradient(90deg, #4cc9f0, #7b5cff);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(76, 201, 240, 0.4);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.4);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 40px;
}

.hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.hero-name {
  display: block;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(105deg, #ffffff, #e0e3ff, #7b5cff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 6px;
}

.hero-tagline {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-soft);
}

.hero-intro {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle at 20% 0%, #7b5cff, #4cc9f0);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(76, 201, 240, 0.55);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    background 0.16s ease-out, border-color 0.16s ease-out;
}

.btn .icon {
  display: inline-flex;
  /* margin-right: 3px; */
}

.btn .icon svg {
  display: block;
}

.btn span + span {
  margin-left: 10px;
}

.btn.primary {
  background: radial-gradient(circle at 20% 0%, #7b5cff, #4cc9f0);
  color: #050617;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(123, 92, 255, 0.7);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(123, 92, 255, 0.95);
}

.btn.ghost {
  border-color: rgba(139, 164, 255, 0.4);
  color: var(--text-soft);
  background: rgba(7, 8, 24, 0.9);
}

.btn.ghost:hover {
  background: rgba(16, 20, 61, 0.96);
  border-color: rgba(123, 92, 255, 0.85);
  box-shadow: 0 0 26px rgba(123, 92, 255, 0.5);
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.meta-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 119, 214, 0.5);
  background: radial-gradient(
      circle at top left,
      rgba(123, 92, 255, 0.2),
      transparent
    ),
    rgba(3, 5, 25, 0.96);
  box-shadow: var(--shadow-soft);
}

.meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 13px;
  color: var(--text-main);
}

/* HERO ORBIT */

.hero-orbit {
  position: relative;
  min-height: 260px;
  border-radius: 30px;
  background: radial-gradient(circle at 20% 0%, #1b1f4a, #050618 60%);
  border: 1px solid rgba(139, 164, 255, 0.4);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(76, 201, 240, 0.4);
  overflow: hidden;
}

.orbit-core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 0%, #ffffff, #7b5cff 60%);
  box-shadow: 0 0 40px rgba(123, 92, 255, 1);
}

.core-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px dashed rgba(180, 195, 255, 0.5);
  box-shadow: 0 0 40px rgba(180, 195, 255, 0.4);
}

.orbit-layer {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 260px;
}

.orbit-layer span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 6, 25, 0.9);
  border: 1px solid rgba(139, 164, 255, 0.5);
  color: var(--text-soft);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.5);
}

.orbit-layer-1 {
  animation: spin 18s linear infinite;
}

.orbit-layer-2 {
  width: 320px;
  animation: spin 26s linear infinite reverse;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* SECTIONS */

.section {
  margin: 42px 0;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.section-header p {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

.section-grid.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 24px;
}

.text-block p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.info-cards {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(
    135deg,
    rgba(10, 14, 42, 0.95),
    rgba(15, 18, 58, 0.98)
  );
  box-shadow: var(--shadow-soft);
}

.info-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.info-value {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.info-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

/* TIMELINE / CARDS */

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(
      145deg,
      rgba(123, 92, 255, 0.16),
      rgba(6, 8, 30, 0.98)
    ),
    rgba(5, 7, 25, 0.95);
  box-shadow: var(--shadow-soft);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-header h3 {
  margin: 0;
  font-size: 16px;
}

.role {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 20, 61, 0.96);
  color: var(--text-soft);
  border: 1px solid rgba(139, 164, 255, 0.6);
}

.timeline-body .summary {
  font-size: 13px;
  color: var(--text-soft);
  margin: 2px 0 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
  list-style: none;
  padding: 0;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 38, 0.9);
  color: var(--text-soft);
  border: 1px solid rgba(139, 164, 255, 0.6);
  font-size: 11px;
}

.bullet-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

.bullet-list li {
  margin-bottom: 4px;
}

.timeline-body h4 {
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--text-main);
}

/* SKILLS */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.skill-card {
  padding: 14px 14px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 119, 214, 0.7);
  background: radial-gradient(
      circle at top left,
      rgba(123, 92, 255, 0.22),
      transparent 55%
    ),
    rgba(5, 7, 27, 0.98);
  box-shadow: var(--shadow-soft);
}

.skill-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags span {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 9, 36, 0.95);
  border: 1px solid rgba(139, 164, 255, 0.7);
  color: var(--text-soft);
}

.tech-grid-wrapper {
  margin-top: 10px;
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(139, 164, 255, 0.6);
  background: radial-gradient(
      circle at 0 0,
      rgba(123, 92, 255, 0.22),
      transparent 55%
    ),
    rgba(4, 6, 25, 0.98);
}

.tech-grid-title {
  margin: 0 0 4px;
  font-size: 14px;
}

.tech-grid-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-mute);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}

.tech-cell {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(9, 12, 40, 0.96);
  color: var(--text-soft);
  text-align: center;
  border: 1px solid rgba(83, 104, 214, 0.7);
  position: relative;
}

.tech-cell::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(123, 92, 255, 0.05),
    rgba(76, 201, 240, 0.06)
  );
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.tech-cell:hover::after {
  opacity: 1;
}

.tech-cell[data-level="4"] {
  background: radial-gradient(
    circle at top left,
    rgba(123, 92, 255, 0.55),
    rgba(9, 12, 40, 0.98)
  );
  border-color: rgba(123, 92, 255, 0.9);
  color: #050617;
  font-weight: 600;
}

.tech-cell[data-level="3"] {
  background: radial-gradient(
    circle at 0 0,
    rgba(123, 92, 255, 0.3),
    rgba(9, 12, 40, 0.98)
  );
  border-color: rgba(123, 92, 255, 0.8);
}

.tech-cell[data-level="2"] {
  border-style: solid;
}

.tech-cell[data-level="1"] {
  opacity: 0.8;
}

/* ACHIEVEMENTS */

.achievement-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 16px;
}

.achievement-category {
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 119, 214, 0.7);
  background: radial-gradient(
      circle at top left,
      rgba(76, 201, 240, 0.2),
      transparent 55%
    ),
    rgba(5, 7, 25, 0.96);
  box-shadow: var(--shadow-soft);
}

.achievement-category-primary {
  padding: 18px 18px 16px;
  border-width: 1.5px;
  background: radial-gradient(
      circle at top left,
      rgba(123, 92, 255, 0.35),
      rgba(76, 201, 240, 0.18)
    ),
    rgba(4, 6, 25, 0.98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(123, 92, 255, 0.8);
}

.achievement-category-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.achievement-category-header h3 {
  margin: 0;
  font-size: 14px;
}

.achievement-category-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}

.achievement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(5, 8, 30, 0.96);
  border: 1px solid rgba(139, 164, 255, 0.6);
  color: var(--accent-strong);
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.6);
}

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

.achievement-list li {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(6, 8, 30, 0.9);
  border: 1px solid rgba(84, 104, 212, 0.7);
}

.achievement-title {
  display: block;
  font-size: 13px;
  color: var(--text-main);
}

.achievement-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-soft);
}

/* LANGUAGES */

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.language-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(7, 9, 31, 0.98);
}

.language-name {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.language-level {
  font-size: 12px;
  color: var(--text-soft);
}

/* CONTACT */

.contact-section {
  margin-top: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 22px;
}

.contact-details {
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(
      circle at top left,
      rgba(123, 92, 255, 0.2),
      transparent 60%
    ),
    rgba(3, 5, 22, 0.98);
}

.contact-row {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
}

.contact-form {
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(5, 7, 25, 0.98);
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 4px;
}

.form-row label {
  font-size: 12px;
  color: var(--text-soft);
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid rgba(90, 110, 214, 0.8);
  background: rgba(6, 8, 30, 0.96);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.7);
}

.form-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-mute);
}

/* FOOTER */

.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(40, 53, 135, 0.7);
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
}

/* ANIMATIONS & UTILITIES */

section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  scroll-margin-top: 90px;
}

section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 840px) {
  .site-header {
    gap: 10px;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding-inline: 16px;
  }

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

  .hero-visual {
    margin-top: 20px;
  }

  .section-grid.two-col,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    padding-inline: 14px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .site-header {
    border-radius: 16px;
  }
}

