:root {
  --bg: #081018;
  --bg-soft: #101a24;
  --panel: rgba(12, 18, 26, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #e8f0f6;
  --muted: #aebccc;
  --brand: #76e3ff;
  --brand-strong: #20b7e0;
  --accent: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(32, 183, 224, 0.18), transparent 28%),
    radial-gradient(circle at left 20%, rgba(255, 209, 102, 0.12), transparent 22%),
    linear-gradient(180deg, #07111a 0%, #09131d 42%, #071018 100%);
  min-height: 100vh;
}

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

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

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

.site-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 12, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page .topbar {
  position: absolute;
  inset: 0 0 auto 0;
  background: linear-gradient(180deg, rgba(6, 12, 18, 0.76), rgba(6, 12, 18, 0.18));
  border-bottom: 0;
  backdrop-filter: blur(12px);
}

.topbar-inner,
.section,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1 1 420px;
}

.brand-mark {
  width: 132px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.02);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.15rem 0.35rem;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem 1.15rem;
  font-size: 0.96rem;
  flex: 1 1 100%;
}

.nav a {
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.hero {
  width: min(calc(100% - 1rem), calc(var(--max) + 120px));
  margin: 0.8rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #050b11;
}

.hero-home {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 36px 36px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.hero-home .hero-grid {
  grid-template-columns: 1fr;
  min-height: inherit;
}

.hero-copy {
  padding: 5.2rem 4.8rem;
  background:
    linear-gradient(135deg, rgba(8, 16, 24, 0.94), rgba(8, 16, 24, 0.68)),
    linear-gradient(90deg, rgba(32, 183, 224, 0.08), rgba(255, 209, 102, 0.08));
}

.hero-home .hero-copy {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, 580px);
  padding: clamp(8rem, 18vh, 11rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 8vh, 5rem);
  margin-left: clamp(0.4rem, 1.5vw, 1.25rem);
  background: linear-gradient(90deg, rgba(5, 11, 17, 0.72) 0%, rgba(5, 11, 17, 0.44) 52%, rgba(5, 11, 17, 0) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-size: 0.78rem;
}

.hero h1,
.section h2 {
  font-weight: 600;
  line-height: 0.95;
  margin: 1rem 0;
}

.hero h1 {
  font-size: clamp(2.9rem, 4.9vw, 5rem);
  max-width: 8.4ch;
}

.hero-home h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  max-width: 6ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  line-height: 0.9;
}

.hero p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 48ch;
}

.hero-home p {
  max-width: 28ch;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  color: rgba(232, 240, 246, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 0.96rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #04121a;
  font-weight: 700;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.hero-media {
  min-height: 640px;
  position: relative;
}

.hero-home .hero-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 17, 0.12), rgba(5, 11, 17, 0.02) 28%, rgba(5, 11, 17, 0.14)),
    radial-gradient(circle at 70% 30%, rgba(118, 227, 255, 0.18), transparent 26%);
}

.hero-home .hero-media::after {
  background:
    linear-gradient(90deg, rgba(4, 9, 14, 0.72) 0%, rgba(4, 9, 14, 0.34) 32%, rgba(4, 9, 14, 0.08) 56%, rgba(4, 9, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(4, 9, 14, 0.18) 0%, rgba(4, 9, 14, 0.1) 50%, rgba(4, 9, 14, 0.42) 100%),
    radial-gradient(circle at 74% 32%, rgba(118, 227, 255, 0.26), transparent 22%);
}

.hero-badge {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  background: rgba(7, 12, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  max-width: 260px;
}

.hero-home .hero-badge {
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 2;
  background: rgba(7, 12, 18, 0.66);
  backdrop-filter: blur(18px);
}

.hero-badge strong {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-badge span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.section {
  padding: 5rem 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.section-intro {
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.8;
  font-size: 1rem;
}

.cards,
.stats,
.gallery-grid,
.faq-grid,
.contact-grid,
.testimonial-grid,
.client-grid,
.page-grid {
  display: grid;
  gap: 1.2rem;
}

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

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

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

.faq-grid,
.contact-grid,
.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card,
.stat,
.faq,
.contact-card,
.testimonial,
.client-list,
.page-card,
.story,
.wide-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.faq,
.contact-card,
.testimonial,
.page-card,
.client-list,
.wide-panel {
  backdrop-filter: blur(10px);
}

.card,
.faq,
.contact-card,
.testimonial,
.page-card,
.story,
.wide-panel {
  padding: 1.4rem;
}

.card h3,
.faq h3,
.contact-card h3,
.page-card h3,
.story h3,
.wide-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.card p,
.faq p,
.contact-card p,
.testimonial p,
.page-card p,
.story p,
.wide-panel p,
.wide-panel li {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.stat {
  padding: 1.25rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 12, 0.88));
  color: #f4fbff;
  font-size: 0.95rem;
}

.story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.story img {
  width: 100%;
  border-radius: 18px;
  min-height: 320px;
  object-fit: cover;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  padding: 4.25rem 0 2rem;
}

.footer-inner {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .story,
  .cards,
  .page-grid,
  .stats,
  .gallery-grid,
  .faq-grid,
  .contact-grid,
  .testimonial-grid,
  .client-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 3rem 1.4rem;
  }

  .hero-home {
    min-height: 100vh;
  }

  .hero-home .hero-copy {
    width: 100%;
    margin-left: 0;
    padding-top: 8.5rem;
    background: linear-gradient(180deg, rgba(5, 11, 17, 0.12) 0%, rgba(5, 11, 17, 0.48) 52%, rgba(5, 11, 17, 0.92) 100%);
  }

  .hero-home h1 {
    max-width: 6.4ch;
  }

  .hero-home p {
    display: none;
  }

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

  .topbar-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .brand {
    flex: 0 1 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .hero h1 {
    max-width: 9.2ch;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .section,
  .footer-inner,
  .hero {
    width: min(calc(100% - 1rem), var(--max));
  }

  .nav {
    gap: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-home {
    min-height: 100vh;
    border-radius: 0 0 24px 24px;
  }

  .hero-home h1 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
    max-width: 5.8ch;
  }

  .hero-home p {
    max-width: 100%;
  }

  .hero-home .hero-badge {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .section {
    padding-top: 3.5rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
  }
}
