:root {
  --bg-ink: #050813;
  --bg-navy: #071a34;
  --bg-slate: #1a2230;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.24);
  --text: #f4f7fb;
  --muted: #c5cfdd;
  --soft: #93a4b8;
  --accent: #8fd6ff;
  --accent-warm: #f0c987;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  --hero-padding: 9rem 1.25rem 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Manrope", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(143, 214, 255, 0.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(240, 201, 135, 0.16), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(82, 104, 143, 0.34), transparent 36%),
    linear-gradient(135deg, var(--bg-ink), var(--bg-navy) 48%, #11151d);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.06) 40%, transparent 58%),
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.08), transparent 20%);
  mix-blend-mode: screen;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

p {
  line-height: 1.75;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.85rem 1rem;
  background: #ffffff;
  color: #071a34;
  border-radius: 999px;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem;
}

.navbar {
  width: min(var(--max-width), calc(100% - 1rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(8, 17, 34, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.brand {
  max-width: 390px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(0.82rem, 2vw, 1rem);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  padding: 0.7rem 0.95rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.section-wrap {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.25rem 0;
}

.hero {
  padding: var(--hero-padding);
}

.glass-panel,
.glass-card,
.masonry-item {
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.glass-panel {
  border-radius: var(--radius-xl);
}

.glass-card,
.masonry-item {
  border-radius: var(--radius-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hero-grid::after,
.section-heading::after,
.team-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -110px;
  background: radial-gradient(circle, rgba(143, 214, 255, 0.24), transparent 62%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-copy,
.section-heading,
.team-panel {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.45rem, 6vw, 5.9rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.glass-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--glass-border);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-link {
  background: rgba(143, 214, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(143, 214, 255, 0.16);
}

.secondary-link {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.glass-link:hover,
.glass-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: clamp(460px, 62vw, 670px);
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  filter: saturate(0.85) contrast(1.06);
}

figcaption {
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.9rem;
}

.section-heading {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.about-grid,
.step-grid,
.team-grid,
.case-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.glass-card {
  padding: 1.25rem;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 214, 255, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.08));
}

.glass-card p,
.glass-card li,
.newsletter-sidebar p,
.newsletter-sidebar li {
  color: var(--muted);
}

.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.55rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.stat-number {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  font-weight: 800;
  color: var(--accent-warm);
}

.stat-label {
  margin: 0.7rem auto 0;
  max-width: 280px;
}

.step-card {
  min-height: 260px;
}

.step-number {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #071a34;
  background: rgba(240, 201, 135, 0.86);
  font-weight: 800;
  font-size: 0.82rem;
}

.team-panel {
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}

.team-intro {
  max-width: 860px;
  margin-bottom: 1.4rem;
}

.team-intro p:not(.eyebrow) {
  color: var(--muted);
}

.team-card {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.team-card img {
  width: 148px;
  height: 148px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.team-name {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.team-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.masonry-item {
  margin: 0;
  padding: 0.8rem;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  filter: saturate(0.88) contrast(1.05);
}

.masonry-item.tall img {
  height: 520px;
}

.masonry-item.compact img {
  height: 340px;
}

.masonry-item.medium img {
  height: 430px;
}

.case-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  margin-bottom: 1rem;
}

.case-card strong {
  color: #ffffff;
}

.rating-text {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(240, 201, 135, 0.16);
  color: #ffe3ad;
  border: 1px solid rgba(240, 201, 135, 0.28);
  font-weight: 800;
  font-size: 0.9rem;
}

.testimonial-card {
  min-height: 250px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1rem;
  align-items: start;
}

.faq-main,
.newsletter-sidebar {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tab-button,
.faq-question {
  font: inherit;
  cursor: pointer;
  color: var(--text);
}

.tab-button {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}

.tab-button.active,
.tab-button:hover,
.tab-button:focus-visible {
  background: rgba(143, 214, 255, 0.2);
  color: #ffffff;
  outline: none;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.35s ease both;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem;
  text-align: left;
  font-weight: 800;
  line-height: 1.4;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  max-height: 280px;
}

.newsletter-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.centered-link {
  width: fit-content;
  margin: 1.15rem auto 0;
  display: flex;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.footer-inner {
  padding: 1.4rem;
  text-align: center;
}

.footer-inner p {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
}

.footer-inner p + p {
  margin-top: 0.75rem;
}

@keyframes fadeIn {
  from {
    opacity: 1;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  :root {
    --hero-padding: 7.5rem 1rem 3rem;
  }

  .navbar {
    border-radius: 26px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.8rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .step-grid,
  .team-grid,
  .case-grid,
  .testimonial-grid,
  .masonry-gallery {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 460px;
  }

  .masonry-item.tall img,
  .masonry-item.compact img,
  .masonry-item.medium img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .newsletter-sidebar {
    order: -1;
  }
}

@media (max-width: 620px) {
  .section-wrap {
    width: min(100% - 1rem, var(--max-width));
    padding: 3rem 0;
  }

  .hero {
    padding: var(--hero-padding);
  }

  .brand {
    max-width: 220px;
  }

  .hero-grid,
  .section-heading,
  .glass-card,
  .team-panel,
  .faq-main,
  .newsletter-sidebar {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.2rem, 15vw, 3.9rem);
  }

  h2 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }

  .hero-actions,
  .tab-buttons {
    flex-direction: column;
  }

  .glass-link,
  .tab-button {
    width: 100%;
  }

  .hero-media img {
    height: 360px;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Enhanced: Missing animation classes from JS */
.scroll-progress {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-progress.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-ready {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.reveal-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
