:root {
  --bg: #070b13;
  --panel: #0d131d;
  --panel-2: #0b1018;
  --text: #f3f7ff;
  --muted: #9ea8ba;
  --blue: #1c55ff;
  --blue-soft: #6f95ff;
  --line: #1a2434;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Theme scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #35538d #09111c;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #08111c, #0a1421);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2f4f8f, #1f3560);
  border: 2px solid #09111c;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4169bb, #294577);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page *:focus-visible {
  outline: 2px solid #6d94ff;
  outline-offset: 2px;
}

.page {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(46, 91, 196, 0.14), transparent 35%),
    linear-gradient(180deg, #050a11 0%, #07111d 100%);
}

.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 9, 15, 0.9) 4%, rgba(4, 9, 15, 0.58) 42%, rgba(4, 9, 15, 0.8) 100%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(180deg, transparent 0%, rgba(6, 11, 18, 0.3) 100%);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(2px);
  background: linear-gradient(180deg, rgba(8, 13, 21, 0.36), rgba(8, 13, 21, 0.12));
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-main {
  display: block;
  font: 700 38px/0.9 "Barlow Condensed", sans-serif;
  letter-spacing: 0.5px;
}

.brand-main span {
  color: var(--blue);
}

.brand-sub {
  display: block;
  font: 500 10px/1.2 Inter, sans-serif;
  letter-spacing: 4px;
  opacity: 0.88;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 10px 12px;
  font: 700 12px/1 Inter, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 26px;
}

.menu a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font: 600 13px/1 Inter, sans-serif;
  letter-spacing: 1.2px;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: #fff;
}

.menu a.active {
  color: var(--blue);
}

.cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  font: 600 12px/1 Inter, sans-serif;
  letter-spacing: 0.9px;
  padding: 14px 22px;
  transition: border-color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.cta:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 92%);
  margin: 130px 0 0 86px;
}

.eyebrow {
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 3.4px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

h1,
h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 92px;
  line-height: 0.9;
  max-width: 800px;
  text-wrap: balance;
}

h1 span,
h2 span {
  color: var(--blue);
}

.desc {
  color: #d5dde9;
  font-size: 20px;
  line-height: 1.35;
  max-width: 530px;
  margin: 24px 0 36px;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  text-decoration: none;
  font: 700 12px/1 Inter, sans-serif;
  letter-spacing: 0.9px;
  padding: 15px 23px;
  text-transform: uppercase;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 26px rgba(28, 85, 255, 0.22);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.scroll-hint {
  position: absolute;
  z-index: 4;
  font-family: "Barlow Condensed", sans-serif;
}

.scroll-hint {
  text-decoration: none;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 15px;
  letter-spacing: 3px;
  color: rgba(231, 238, 252, 0.9);
  transition: opacity 0.24s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

.clients {
  background: linear-gradient(180deg, #080e17, #080c15);
  border-bottom: 1px solid var(--line);
  padding: 20px 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.clients-title {
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 2.5px;
  color: #9ba6b8;
  margin-bottom: 16px;
}

.clients-logos {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  font: 700 38px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 1px;
}

.about {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 34px 40px;
  background: #08101a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.about .eyebrow {
  margin: 0;
}

.about p {
  margin: 0;
  color: #c9d3e4;
  font-size: 19px;
  line-height: 1.55;
  max-width: 860px;
}

.projects {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
  padding: 34px 34px 28px;
  background: #060b12;
  border-bottom: 1px solid var(--line);
}

.projects-intro {
  background: #0a111a;
  border: 1px solid var(--line);
  padding: 30px 28px;
  height: fit-content;
  position: sticky;
  top: 14px;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(2, 6, 12, 0.35);
}

h2 {
  font-size: 72px;
  line-height: 0.95;
  margin-bottom: 16px;
}

.projects-intro p {
  color: #d5dbe5;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  min-height: 340px;
  border: 1px solid #263349;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 12, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.1), rgba(4, 8, 15, 0.92)),
    radial-gradient(circle at 56% 18%, rgba(255, 255, 255, 0.1), transparent 36%),
    #111822;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #4f74b6;
  box-shadow: 0 18px 36px rgba(2, 6, 12, 0.36);
}

.card-1 {
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.2), rgba(5, 10, 18, 0.94)),
    radial-gradient(circle at 45% 18%, rgba(47, 113, 255, 0.44), transparent 42%),
    #101726;
}

.card-2 {
  background:
    linear-gradient(180deg, rgba(16, 9, 4, 0.2), rgba(16, 9, 4, 0.94)),
    radial-gradient(circle at 50% 15%, rgba(255, 143, 47, 0.44), transparent 40%),
    #2a1b14;
}

.card-3 {
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.2), rgba(7, 10, 15, 0.94)),
    radial-gradient(circle at 52% 18%, rgba(173, 211, 255, 0.2), transparent 40%),
    #111921;
}

.card-4 {
  background:
    linear-gradient(180deg, rgba(4, 12, 18, 0.2), rgba(4, 12, 18, 0.94)),
    radial-gradient(circle at 56% 20%, rgba(87, 222, 255, 0.22), transparent 40%),
    #0f1a23;
}

.card-5 {
  background:
    linear-gradient(180deg, rgba(6, 8, 17, 0.2), rgba(6, 8, 17, 0.94)),
    radial-gradient(circle at 48% 18%, rgba(176, 130, 255, 0.28), transparent 42%),
    #111325;
}

.card-6 {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.94)),
    radial-gradient(circle at 48% 18%, rgba(245, 202, 102, 0.24), transparent 40%),
    #242018;
}

.play {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(7, 11, 19, 0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.play:hover {
  transform: translateX(-50%) scale(1.04);
  background: rgba(10, 17, 28, 0.65);
}

.type {
  margin: 0;
  color: var(--blue-soft);
  font-size: 13px;
  letter-spacing: 1.3px;
}

h3 {
  margin: 8px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 44px;
  line-height: 0.95;
}

.meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.portfolio-empty {
  grid-column: 1 / -1;
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px dashed #2a3d57;
  border-radius: 10px;
  background: rgba(10, 17, 26, 0.6);
  padding: 40px 24px;
}

.portfolio-empty p {
  margin: 0;
  color: #9ba6b8;
  font-size: 17px;
  letter-spacing: 0.3px;
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  background: #080f18;
  border-bottom: 1px solid #182132;
}

.services article {
  border-right: 1px solid #182132;
  padding: 30px 24px;
  min-height: 170px;
  background: #0a111b;
  transition: background-color 0.24s ease;
}

.services article:hover {
  background: #0d1521;
}

h4 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 38px;
  letter-spacing: 0.7px;
}

.services p {
  margin: 0;
  color: #cad2e0;
  font-size: 16px;
  line-height: 1.45;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #09111b;
  border-top: 1px solid var(--line);
  padding: 44px 34px;
  background:
    radial-gradient(circle at 85% 40%, rgba(65, 108, 203, 0.12), transparent 35%),
    #09111b;
}

.contact h2 {
  margin-top: 8px;
  margin-bottom: 0;
}

.footer {
  text-align: center;
  padding: 16px;
  color: #8e9bb2;
  font-size: 13px;
  border-top: 1px solid #131e2d;
  background: #070d16;
  letter-spacing: 0.3px;
}

.video-modal {
  border: 1px solid #2f425d;
  background: #0a131f;
  color: #ecf3ff;
  width: min(560px, 92vw);
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}

.video-modal::backdrop {
  background: rgba(2, 5, 9, 0.78);
}

.video-modal-content {
  padding: 26px;
}

.video-modal-content h3 {
  margin: 0 0 8px;
}

.video-modal-content p {
  color: #d6deec;
  line-height: 1.45;
}

#modal-player {
  margin: 16px 0;
  aspect-ratio: 16 / 9;
  background: #050a11;
  border: 1px solid #223047;
  border-radius: 8px;
  overflow: hidden;
}

#modal-player iframe,
#modal-player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#modal-player:empty {
  display: none;
}

@media (max-width: 1280px) {
  .menu {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu.is-open {
    position: absolute;
    top: 100%;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 2px;
    background: #09111b;
    border: 1px solid #223047;
    padding: 10px;
  }

  .menu.is-open a {
    border: 1px solid #1e2d42;
    padding: 10px;
    background: #0c1421;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .projects-intro {
    position: static;
  }
}

@media (max-width: 980px) {
  .cards,
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    height: auto;
    min-height: 700px;
  }

  .hero-content {
    margin: 90px 16px 90px;
  }

  h1 {
    font-size: 72px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px;
  }

  .brand-main {
    font-size: 30px;
  }

  .cta {
    display: none;
  }

  .cards,
  .services {
    grid-template-columns: 1fr;
  }

  .services article {
    border-right: none;
    border-top: 1px solid #182132;
  }

  .clients-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  h2 {
    font-size: 56px;
  }

  h1 {
    font-size: 56px;
  }
}
