:root {
  --bg: #0b1220;
  --bg-soft: #111a2f;
  --card: rgba(19, 28, 48, 0.76);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #c0cfe7;
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.28);
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
  --accent-amber: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(
      1100px 520px at -10% -20%,
      rgba(34, 211, 238, 0.2),
      transparent
    ),
    radial-gradient(
      980px 540px at 110% -10%,
      rgba(244, 114, 182, 0.2),
      transparent
    ),
    radial-gradient(
      760px 420px at 50% 115%,
      rgba(124, 140, 255, 0.2),
      transparent
    ),
    var(--bg);
}

html {
  scroll-behavior: smooth;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(14px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
  font-size: 18px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: #ffffff;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.lang-btn.active {
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  color: #fff;
}

.page {
  max-width: 1460px;
  margin: 0 auto;
  padding: 34px clamp(14px, 2vw, 26px) 84px;
}

.section {
  margin-top: 44px;
  padding: 8px 0;
}

.section-head {
  margin-bottom: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f8fafc 0%, #c7d2fe 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-left: 18px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 72%;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.55);
}

.section-head::after {
  content: "";
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
}

.hero.section {
  margin-top: 24px;
}

.hero-side {
  display: grid;
  gap: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: #93c5fd;
  font-weight: 600;
}

h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}

.subtitle {
  margin-top: 16px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: #dbeafe;
}

.chips {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  font-size: 12px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  color: #dbeafe;
  background: rgba(34, 211, 238, 0.09);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.primary {
  background: linear-gradient(95deg, #4f46e5, #22d3ee);
  color: #fff;
}

.secondary {
  border-color: rgba(148, 163, 184, 0.28);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.44);
}

.card {
  background: var(--card);
  border: 1px solid rgba(125, 147, 191, 0.25);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(2, 8, 23, 0.28);
}

.card p {
  color: #dbeafe;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 460px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.04) 0%,
    rgba(15, 23, 42, 0.38) 100%
  );
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
  filter: saturate(1.02) contrast(1.06);
}

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

.about {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-grid .card {
  display: grid;
  gap: 8px;
}

.info-grid .card strong {
  font-size: 14px;
}

.info-grid .card span {
  color: var(--muted);
  font-size: 14px;
}

.info-grid .card a {
  color: #7dd3fc;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-grid .card {
  display: grid;
  gap: 6px;
}

.stats-grid strong {
  font-size: 30px;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-size: 14px;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card .chips {
  margin-top: 14px;
}

.contact {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.form-grid input,
.form-grid select,
.form-grid textarea,
.form-grid button {
  width: 100%;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.form-grid textarea,
.form-grid button {
  grid-column: 1 / -1;
}

.form-grid button {
  cursor: pointer;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  border: 0;
  font-weight: 600;
}

.primary,
.secondary,
.form-grid button,
.project-card,
.card,
.lang-btn {
  transition: 0.2s ease;
}

.primary:hover,
.form-grid button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px var(--accent-soft);
}

.secondary:hover {
  border-color: rgba(125, 211, 252, 0.35);
  color: #fff;
}

.card:hover {
  border-color: rgba(103, 232, 249, 0.35);
  transform: translateY(-1px);
}

.footer {
  text-align: center;
  padding: 28px 24px;
  color: #cbd5e1;
  border-top: 1px solid var(--line);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 80;
  transform: scaleX(0);
  transform-origin: 0%;
  background: linear-gradient(
    90deg,
    var(--accent-cyan) 0%,
    var(--accent) 55%,
    var(--accent-pink) 100%
  );
  box-shadow: 0 0 24px rgba(124, 140, 255, 0.5);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .top {
    gap: 10px;
    padding: 16px 20px;
  }

  .header-controls {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .page {
    padding-top: 22px;
  }

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