:root {
  --bg: #04110b;
  --bg-soft: #081a12;
  --panel: rgba(9, 26, 19, 0.72);
  --panel-strong: rgba(8, 23, 16, 0.9);
  --line: rgba(107, 255, 179, 0.18);
  --text: #e9fff2;
  --muted: #9dc7b0;
  --accent: #59f59f;
  --accent-2: #b6ffd1;
  --shadow: 0 20px 80px rgba(20, 255, 138, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(67, 255, 149, 0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(107, 255, 179, 0.08), transparent 30%),
    linear-gradient(180deg, #031009 0%, #04110b 45%, #020906 100%);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.matrix-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(89, 245, 159, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 245, 159, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 20%, #ffffff 0.7px, transparent 1px),
    radial-gradient(circle at 80% 40%, #ffffff 0.7px, transparent 1px),
    radial-gradient(circle at 45% 80%, #ffffff 0.7px, transparent 1px);
  background-size: 180px 180px;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(3, 13, 9, 0.55);
  border-bottom: 1px solid rgba(107, 255, 179, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  flex-shrink: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  color: var(--muted);
  transition: 0.25s ease;
}

.menu a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  border-radius: 10px;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.card h3,
.skill-card h3,
.timeline-header h3 {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.95;
  max-width: 760px;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(89, 245, 159, 0.26);
}

.hero-description {
  margin: 22px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges span,
.hero-facts li {
  border: 1px solid var(--line);
  background: rgba(11, 38, 25, 0.7);
  box-shadow: inset 0 1px 0 rgba(182, 255, 209, 0.04);
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.92rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, rgba(89, 245, 159, 0.18), rgba(89, 245, 159, 0.08));
  border: 1px solid rgba(89, 245, 159, 0.36);
  box-shadow: 0 12px 30px rgba(89, 245, 159, 0.14);
}

.btn-secondary {
  border: 1px solid rgba(107, 255, 179, 0.4);
  color: #6bffb3;
  background: transparent;
  transition: 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(107, 255, 179, 0.12);
  border-color: #6bffb3;
  color: #fff;
  box-shadow: 0 0 12px rgba(107, 255, 179, 0.3);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.hero-facts li {
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.portrait-card {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

.portrait {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(107, 255, 179, 0.18);
  box-shadow: var(--shadow);
}

.portrait-glow {
  position: absolute;
  inset: 10% 10% auto;
  height: 60%;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(89, 245, 159, 0.22), transparent 68%);
  z-index: -1;
}

.status-card {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  padding: 14px 16px;
  background: rgba(6, 21, 14, 0.78);
  border: 1px solid rgba(107, 255, 179, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.status-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-top {
  top: 24px;
  left: -24px;
}

.status-bottom {
  right: -20px;
  bottom: 24px;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  flex-shrink: 0;
}

.section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.about-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

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

.skills-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.skill-card,
.contact-card {
  background: linear-gradient(180deg, rgba(9, 26, 19, 0.85), rgba(6, 18, 13, 0.96));
  border: 1px solid rgba(107, 255, 179, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.skill-card {
  padding: 26px;
}

.card h3,
.skill-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.card p,
.skill-card li,
.contact-label,
.timeline-role,
.timeline-list li {
  color: var(--muted);
  line-height: 1.7;
}

.skill-card ul,
.timeline-list {
  margin: 0;
  padding-left: 18px;
}

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

.timeline-item {
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

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

.timeline-header h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.timeline-date {
  color: var(--accent-2);
  font-weight: 700;
  white-space: nowrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 255, 179, 0.34);
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.contact-card strong {
  font-size: 1.08rem;
}

.site-footer {
  padding: 32px 0 54px;
  border-top: 1px solid rgba(107, 255, 179, 0.08);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-note {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .portrait-card {
    max-width: 100%;
  }

  .status-top {
    left: 12px;
  }

  .status-bottom {
    right: 12px;
  }
}

@media (max-width: 820px) {
  .menu {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: rgba(4, 16, 11, 0.96);
    border: 1px solid rgba(107, 255, 179, 0.16);
    border-radius: 22px;
  }

  .menu.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-grid,
  .about-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    line-height: 1.02;
  }

  .timeline-header,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-card {
    position: static;
    margin-top: 14px;
  }

  .portrait-card {
    display: grid;
    gap: 14px;
  }
}

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

  .nav {
    min-height: 70px;
  }

  .logo {
    font-size: 0.8rem;
    max-width: 70%;
  }

  .hero-badges span,
  .hero-facts li {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .card,
  .skill-card,
  .contact-card {
    padding: 20px;
    border-radius: 20px;
  }

  .lang-switcher {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.lang-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s;
}

.lang-link:hover {
  color: var(--text);
}

.lang-link.active {
  color: #6bffb3;
  font-weight: 600;
}
}
