:root {
  --bg: #0b1020;
  --bg-soft: #111831;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: #a7b0c5;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #6ea8fe;
  --accent-2: #66e3c4;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(102, 227, 196, 0.12), transparent 25%),
    radial-gradient(circle at top left, rgba(110, 168, 254, 0.14), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow-match-hero {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-heading p.eyebrow-match-hero {
  color: #7ef2d8;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(11, 16, 32, 0.65);
  border-bottom: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: 0.02em;
    transition: font-size 0.25s ease;
  }

  .logo-image {
    width: 4.2rem;
    height: auto;
    display: block;
    transition: width 0.25s ease;
  }

  .site-header {
    transition: background 0.3s ease, border-color 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
    min-height: 100px;
  }

  .site-header.scrolled .logo {
    font-size: 1.1rem;
  }

  .site-header.scrolled .logo-image {
    width: 2rem;
  }

  .site-header.scrolled {
    min-height: 80px;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.25em;
  }

  .site-nav a {
    color: var(--muted);
    transition: color 0.2s ease;
  }

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.nav-cta {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  border-radius: 2px;
}

.hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1.5rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.meta-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.meta-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.meta-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel .panel-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.panel-top .availability-text {
  white-space: pre-line;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.status-dot--green {
  background: #4ade80;
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.22);
}

.status-dot--orange {
  background: #fb923c;
  box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.22);
}

.status-dot--red {
  background: #f87171;
  box-shadow: 0 0 0 7px rgba(248, 113, 113, 0.32);
}

.panel-card h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.panel-card p {
  color: var(--muted);
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.panel-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 168, 254, 0.45);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tech-stack {
  margin-top: 3rem;
}

.tech-stack h3 {
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tags span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tags span:hover {
  color: #dff0ff;
  border-color: rgba(110, 168, 254, 0.55);
  background: rgba(110, 168, 254, 0.18);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
  transform: translateY(-1px);
}

.tags span:is(:nth-child(1), :nth-child(2), :nth-child(5), :nth-child(8), :nth-child(9), :nth-child(15), :nth-child(17)) {
  color: #d3e7ff;
  border-color: rgba(110, 168, 254, 0.4);
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.2), rgba(255,255,255,0.06));
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.timeline-year {
  color: var(--accent-2);
  font-weight: 700;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.quote-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.quote-card h3 {
  margin-top: 0;
}

blockquote {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--white);
}

.quote-source,
.info-list {
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-details {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-details a,
.contact-details span {
  color: var(--muted);
  font-size: 1rem;
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-details a:hover {
  color: var(--white);
}

.lang-toggle {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: 1rem;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.lang-btn:focus {
  outline: 2px solid rgba(110, 168, 254, 0.35);
}

.lang-btn img {
  display: block;
  width: 22px;
  height: auto;
}

.contact-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-icon--linkedin::before {
  content: "\f0e1";
  font-family: "Font Awesome 6 Brands";
  font-size: 1.05rem;
  line-height: 1;
}

.contact-icon--mail::before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
}

.form-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-row-group {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .form-row-group {
    grid-template-columns: 1fr;
  }
}

.form-row label {
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--white);
  padding: 0.95rem 1rem;
  font: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #7f8aa6;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(110, 168, 254, 0.35);
  border-color: rgba(110, 168, 254, 0.45);
}

.form-note {
  color: var(--accent-2);
  margin-top: 1rem;
  min-height: 1.5rem;
}

.slide-submit {
  margin: 1.5rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
}

.slide-submit__label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.slide-submit__label--start {
  grid-column: 1;
  justify-self: end;
}

.slide-submit__label--end {
  grid-column: 3;
  justify-self: start;
}

.slide-submit__track {
  grid-column: 2;
  position: relative;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.slide-submit__thumb {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  transition: left 0.3s ease;
  user-select: none;
}

.slide-submit__track.assignment {
  background: rgba(110, 168, 254, 0.16);
}

.slide-submit.assignment .slide-submit__label--start {
  color: var(--accent);
}

.slide-submit.assignment .slide-submit__label--end {
  color: var(--muted);
}

.slide-submit.message .slide-submit__label--start {
  color: var(--muted);
}

.slide-submit.message .slide-submit__label--end {
  color: var(--accent);
}

.slide-submit__hint {
  display: none;
}

.slide-submit__track.ready .slide-submit__thumb {
  box-shadow: 0 0 0 6px rgba(110, 168, 254, 0.12);
}

.slide-submit__track.success {
  background: rgba(110, 168, 254, 0.16);
}

.slide-submit__thumb.dragging {
  transition: none;
}

@media (max-width: 640px) {
  .slide-submit {
    grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1fr);
    gap: 0.6rem;
  }

  .slide-submit__track {
    height: 36px;
  }

  .slide-submit__thumb {
    font-size: 0.8rem;
  }

  .slide-submit__label {
    font-size: 0.86rem;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid,
  .timeline-item,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 80px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(17, 24, 49, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .timeline-item {
    gap: 0.75rem;
  }
}

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

  .hero {
    padding-top: 96px;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .btn {
    width: 100%;
  }

  .slide-submit__track {
    height: 36px;
  }

  .slide-submit__thumb {
    font-size: 0.8rem;
  }

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