:root {
  color-scheme: dark;
  --bg: #080b0d;
  --surface: #10161a;
  --surface-2: #151d22;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f5f7f8;
  --muted: #a7b2b8;
  --soft: #d6dde0;
  --cyan: #31d2c2;
  --amber: #f0b35a;
  --green: #79d991;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 13, 0.5), rgba(8, 11, 13, 0.62)),
    url("assets/ai-infrastructure-hero.png") center top / cover fixed,
    var(--bg);
  color: var(--text);
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(8, 11, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.lang-switch,
.hero-actions,
.contact-actions,
.hero-stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(49, 210, 194, 0.5);
  background: rgba(49, 210, 194, 0.14);
  color: var(--cyan);
  font-size: 18px;
}

.main-nav {
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.main-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 6px 0;
}

.main-nav button:hover,
.main-nav button.active {
  color: var(--text);
}

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

.lang-switch button {
  width: 40px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--text);
  color: #091013;
}

.tab-shell {
  min-height: calc(100vh - 78px);
}

.page {
  display: none;
}

.page:not(.active) {
  display: none !important;
}

.page.active {
  display: block;
  animation: page-in 180ms ease-out;
}

.hero.page.active {
  display: flex;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.62) 0%, rgba(8, 11, 13, 0.36) 42%, rgba(8, 11, 13, 0.02) 100%),
    linear-gradient(0deg, rgba(8, 11, 13, 0.28) 0%, rgba(8, 11, 13, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 82px;
}

.eyebrow,
.section-kicker,
.card-topline {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(25px, 2.45vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.18;
}

.hero-copy,
.section-copy,
.contact-section p {
  color: var(--soft);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 750;
}

.button.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #061010;
}

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

.hero-stats {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats span {
  display: grid;
  min-width: 168px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats strong {
  font-size: 19px;
  line-height: 1.15;
}

.hero-stats small {
  color: var(--muted);
}

.section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 146px);
  padding: clamp(128px, 11vw, 154px) clamp(18px, 5vw, 72px) clamp(44px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.62) 0%, rgba(8, 11, 13, 0.48) 48%, rgba(8, 11, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.46), rgba(8, 11, 13, 0.62));
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(49, 210, 194, 0.1), transparent 30%),
    radial-gradient(circle at 22% 82%, rgba(240, 179, 90, 0.08), transparent 28%),
    url("assets/ai-infrastructure-hero.png") center / cover;
  opacity: 0.62;
  filter: saturate(0.9);
  pointer-events: none;
}

.section > * {
  position: relative;
  z-index: 1;
}

.about-grid,
.section-heading,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4.5vw, 56px);
  align-items: start;
}

.about-grid,
.section-heading {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.48);
  backdrop-filter: blur(14px);
}

.section.about-grid {
  padding: clamp(128px, 11vw, 154px) clamp(18px, 5vw, 72px) clamp(44px, 5vw, 72px);
  border: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.62) 0%, rgba(8, 11, 13, 0.48) 48%, rgba(8, 11, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.46), rgba(8, 11, 13, 0.62));
  backdrop-filter: none;
}

.section.about-grid > div {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.36);
  backdrop-filter: blur(14px);
}

.section-copy {
  display: grid;
  gap: 12px;
}

.skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.skill-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 13px;
}

.about-highlights {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.about-highlights h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 18px;
}

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

.about-highlight-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.about-highlight-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.about-highlight-grid p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.5;
}

.section-copy p,
.contact-section p,
.project-card p {
  color: var(--muted);
  line-height: 1.62;
}

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

.project-card {
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 26, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(49, 210, 194, 0.14), rgba(240, 179, 90, 0.08)),
    var(--surface-2);
}

.card-topline {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(49, 210, 194, 0.16), rgba(240, 179, 90, 0.08)),
    #0b1114;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual span {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 850;
}

.project-visual-code::before,
.project-visual-photo::before,
.project-visual-web::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(49, 210, 194, 0.08) 0 1px, transparent 1px 34px);
}

.project-visual-photo {
  background:
    radial-gradient(circle at 24% 28%, rgba(240, 179, 90, 0.35), transparent 20%),
    radial-gradient(circle at 72% 62%, rgba(49, 210, 194, 0.28), transparent 24%),
    #10161a;
}

.project-visual-web {
  background:
    linear-gradient(135deg, rgba(49, 210, 194, 0.24), rgba(255, 255, 255, 0.04)),
    #10161a;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(49, 210, 194, 0.32);
  background: rgba(49, 210, 194, 0.08);
  color: var(--cyan);
  font-weight: 760;
  font-size: 13px;
  cursor: pointer;
}

.project-card li {
  padding: 7px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 13px;
}

.infra-section {
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.62), rgba(12, 17, 20, 0.48));
  border-block: 1px solid var(--line);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.infra-item {
  display: grid;
  min-height: 150px;
  align-content: end;
  gap: 10px;
  padding: 20px;
  background: #0c1114;
}

.infra-item span {
  font-size: 22px;
  font-weight: 780;
}

.infra-item small {
  color: var(--muted);
  line-height: 1.35;
}

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

.infra-detail-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 26, 0.62);
  backdrop-filter: blur(14px);
}

.infra-detail-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.infra-detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-section {
  align-items: center;
  background: rgba(8, 11, 13, 0.38);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.contact-section .contact-actions {
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 26, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

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

.contact-form span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 760;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 11, 13, 0.72);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(49, 210, 194, 0.72);
  box-shadow: 0 0 0 3px rgba(49, 210, 194, 0.11);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--green);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-content {
    padding-top: 132px;
  }

  .section {
    padding-top: 164px;
  }

  .section.about-grid {
    padding-top: 164px;
  }

  .about-grid,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .about-highlight-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .infra-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    position: absolute;
  }

  .brand span:last-child {
    display: none;
  }

  .main-nav {
    font-size: 13px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 11, 13, 0.66), rgba(8, 11, 13, 0.44)),
      linear-gradient(0deg, rgba(8, 11, 13, 0.42), rgba(8, 11, 13, 0.04));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-inline: 18px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .project-grid,
  .infra-grid,
  .infra-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
