:root {
  --bg: #07090d;
  --bg-soft: #0d121a;
  --panel: rgba(11, 16, 24, 0.82);
  --panel-strong: rgba(14, 20, 30, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f4f7;
  --muted: #b6bec9;
  --accent: #0077c8;
  --accent-soft: #39b8ff;
  --accent-cool: #8ed6ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 119, 200, 0.22), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(142, 214, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #040507 0%, #0a0f16 50%, #040507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand img {
  width: 184px;
  max-width: 100%;
  display: block;
}

.site-nav,
.header-actions,
.lang-switch,
.hero-actions,
.hero-results,
.hero-stats,
.contact-actions {
  display: flex;
  align-items: center;
}

.site-nav,
.header-actions,
.hero-actions,
.contact-actions {
  gap: 12px;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a,
.social-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.social-link:hover {
  color: var(--text);
}

.lang-switch {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active {
  color: var(--bg);
  background: var(--text);
}

.hero,
.about-grid,
.bio-grid,
.contact-card {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  min-height: auto;
  padding: 0 0 28px;
}

.eyebrow,
.section-tag,
.result-pill,
.stat-card span,
.timeline-year,
.highlight-card span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}

.eyebrow,
.section-tag {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.02;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(2.75rem, 5.7vw, 5rem);
}

.hero-subtitle {
  max-width: 680px;
  margin: 18px 0 10px;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

.hero-description,
.about-text p,
.achievement-card li,
.bio-card p,
.contact-card p,
.highlight-card p,
.timeline-list li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-description {
  max-width: 54ch;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.hero-results {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.result-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent-soft);
  background: rgba(0, 119, 200, 0.1);
}

.hero-results p {
  margin: 0;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #0c1118;
  background: linear-gradient(135deg, #39b8ff, #0077c8);
  box-shadow: 0 18px 34px rgba(0, 119, 200, 0.28);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-image-card,
.highlight-card,
.about-card,
.timeline-card,
.bio-card,
.gallery-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.hero-image-card {
  height: clamp(420px, 44vw, 540px);
}

.hero-image-card img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-card::after,
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 9, 13, 0.8) 100%);
}

.hero-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(7, 9, 13, 0.7);
  backdrop-filter: blur(12px);
}

.hero-badge-label {
  color: var(--accent-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.hero-badge strong {
  max-width: 14ch;
  font-size: 1.35rem;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.hero-stats {
  gap: 16px;
  margin-top: 16px;
}

.stat-card {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.stat-card span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.15rem;
}

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

section {
  margin-top: 88px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
}

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

.highlight-card,
.about-card,
.bio-card {
  padding: 24px;
}

.highlight-card span {
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.highlight-card h2,
.about-card h3,
.bio-card h3 {
  margin: 10px 0 8px;
  font-size: 1.4rem;
}

.about-grid,
.bio-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.achievement-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.achievement-card li + li {
  margin-top: 10px;
}

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

.timeline-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px;
}

.timeline-year {
  color: var(--accent-soft);
  font-size: 2.5rem;
  line-height: 0.95;
}

.timeline-category {
  margin: 2px 0 14px;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-list {
  margin: 0;
  padding-left: 18px;
}

.timeline-list li + li {
  margin-top: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-card {
  min-height: 280px;
}

.gallery-card-large {
  grid-column: span 7;
  min-height: 560px;
}

.gallery-grid .gallery-card:not(.gallery-card-large) {
  grid-column: span 5;
}

.gallery-grid .gallery-card:nth-child(4),
.gallery-grid .gallery-card:nth-child(5) {
  grid-column: span 6;
}

.gallery-grid .gallery-card:last-child {
  grid-column: 1 / -1;
  min-height: 360px;
}

.contact-card {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.contact-card h2 {
  max-width: 24ch;
  font-size: clamp(1.7rem, 3.15vw, 2.9rem);
}

.contact-card p {
  max-width: 62ch;
  margin: 16px 0 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(100%, 720px);
  margin-top: 24px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--text);
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(57, 184, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.16);
}

.form-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-footer .button {
  cursor: pointer;
}

.form-footer .button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 1.7em;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.is-success {
  color: #9ff0b2;
}

.form-status.is-error {
  color: #ffb19a;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 44px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .site-header,
  .hero,
  .about-grid,
  .bio-grid,
  .highlights,
  .hero-stats,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    padding: 18px;
  }

  .site-header,
  .header-actions {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 16px;
  }

  .hero-image-card {
    height: 460px;
  }

  .highlights {
    display: grid;
  }

  .about-grid,
  .bio-grid {
    display: grid;
  }

  .gallery-card-large,
  .gallery-grid .gallery-card,
  .gallery-grid .gallery-card:nth-child(4),
  .gallery-grid .gallery-card:nth-child(5),
  .gallery-grid .gallery-card:last-child {
    grid-column: span 12;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .site-header {
    position: static;
    margin-bottom: 12px;
  }

  .brand img {
    width: 152px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .section-heading h2,
  .contact-card h2 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
  }

  .hero-actions,
  .contact-actions,
  .form-footer,
  .header-actions {
    flex-wrap: wrap;
  }

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

  .hero-stats {
    display: grid;
  }

  .hero-image-card {
    height: 380px;
  }

  .hero-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px;
  }

  .hero-badge strong {
    font-size: 1.1rem;
  }

  .highlight-card,
  .about-card,
  .bio-card,
  .timeline-card,
  .contact-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 32px;
  }
}
