:root {
  --ink: #050712;
  --panel: #0b1020;
  --blue: #00a3ff;
  --cyan: #67e8f9;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(0, 163, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(103, 232, 249, 0.11), transparent 24%),
    radial-gradient(circle at 60% 92%, rgba(0, 163, 255, 0.1), transparent 30%),
    var(--ink);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    radial-gradient(rgba(0, 163, 255, 0.26) 1px, transparent 1px);
  background-position: 0 0, 34px 48px;
  background-size: 84px 84px, 132px 132px;
  opacity: 0.22;
  z-index: -2;
}

a,
button,
input,
textarea,
select {
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  border-radius: 999px;
  background: white;
  color: #020617;
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.logo-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0 9%, transparent 10% 100%),
    conic-gradient(from 35deg, transparent 0 30%, rgba(0, 163, 255, 0.95), transparent 58% 100%);
  box-shadow: 0 0 28px rgba(0, 163, 255, 0.38);
}

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 163, 255, 0.42));
}

.brand-logo-small {
  width: 2.75rem;
  height: 2.75rem;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.nav-toggle {
  display: grid;
  gap: 0.3rem;
  width: 2.5rem;
  height: 2.5rem;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: white;
}

.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.hero-section {
  isolation: isolate;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(5, 7, 18, 0.12), rgba(5, 7, 18, 0.9)),
    url("https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?auto=format&fit=crop&w=1800&q=70") center/cover;
  opacity: 0.44;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #020617;
  box-shadow: 0 18px 50px rgba(0, 163, 255, 0.25);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: white;
}

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

.btn-secondary:hover {
  border-color: rgba(103, 232, 249, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  opacity: 0.92;
}

.visual-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(5, 7, 18, 0.72);
  padding: 1rem;
  backdrop-filter: blur(18px);
}

.visual-badge span {
  display: block;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-badge strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 1.02;
}

.info-tile,
.service-card,
.testimonial,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.info-tile {
  padding: 1.25rem;
}

.info-tile h3,
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.info-tile p,
.service-card p {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.service-card {
  min-height: 15rem;
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.48);
  background: linear-gradient(180deg, rgba(0, 163, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.service-card span {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--cyan);
  font-weight: 900;
}

.portfolio-grid {
  display: grid;
  grid-auto-rows: 15rem;
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #111827;
  text-align: left;
  contain: layout paint;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 58%);
}

.portfolio-item span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  font-weight: 900;
}

.portfolio-item:hover img {
  transform: scale(1.06);
  opacity: 0.86;
}

.logo-carousel {
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scrollLogos 24s linear infinite;
}

.logo-track span {
  display: grid;
  min-width: 13rem;
  min-height: 6rem;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-logo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.client-logo-placeholder {
  display: grid;
  gap: 0.7rem;
  min-height: 6.5rem;
  place-items: center;
  border: 1px dashed rgba(103, 232, 249, 0.42);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.client-logo-placeholder img {
  width: min(9.5rem, 72%);
  height: auto;
  opacity: 0.74;
}

.client-logo-placeholder figcaption {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.68rem;
  line-height: 1.25;
}

.testimonial {
  padding: 1.5rem;
}

.testimonial blockquote {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.testimonial figcaption {
  margin-top: 1.5rem;
  font-weight: 900;
}

.testimonial span {
  display: block;
  margin-top: 0.25rem;
  color: var(--cyan);
  font-size: 0.9rem;
}

.cta-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(5, 7, 18, 0.68), rgba(5, 7, 18, 0.8)),
    url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1800&q=72") center/cover;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0.9rem 1rem;
}

.contact-form option {
  color: #020617;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  color: var(--cyan);
  text-align: center;
  font-weight: 700;
}

.whatsapp-button {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 45;
  display: inline-flex;
  gap: 0.55rem;
  width: auto;
  height: 3.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: white;
  padding: 0 1rem;
  box-shadow: 0 16px 45px rgba(37, 211, 102, 0.34);
  transition: transform 0.2s ease;
  font-weight: 900;
}

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

.whatsapp-button svg {
  width: 1.9rem;
  fill: currentColor;
}

.whatsapp-button span {
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.84);
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  width: min(100%, 68rem);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  border-radius: 0.75rem;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
  font-weight: 900;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 2rem;
  line-height: 1;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-item.wide {
    grid-column: span 2;
  }

  .portfolio-item.tall {
    grid-row: span 2;
  }
}

@media (max-width: 767px) {
  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
