:root {
  --primary: #31affd;
  --secondary: #84e9f5;
  --ink: #fff;
  --ink-90: rgba(255, 255, 255, 0.92);
  --ink-70: rgba(255, 255, 255, 0.7);
  --ink-50: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-stroke: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans";
  text-rendering: optimizeLegibility;

  /* Global gradient */
  background: transparent !important;
}

/* === One global gradient background (single layer for the whole page) === */
/* Remove any other background on body and sections */
body {
  background: transparent !important;
}

/* Fixed, full-viewport gradient that sits behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* Smooth, continuous dark gradient UI */
  background: radial-gradient(
      1200px 600px at 20% 10%,
      #0b132b 0%,
      transparent 55%
    ),
    linear-gradient(#02040a 0%, #000 30%, #050915 100%) fixed;
}

/* Make sure no section reintroduces a background */
section,
.footer {
  background: transparent !important;
}

/* Keep glassy UI consistent (translucent over the single gradient) */
.glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Nav stays slightly glassy but transparent */
.glass-nav {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Work tiles: no solid backgrounds, just the image and the glass border/shadow */
.work-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===== UTIL ===== */
.fw-600 {
  font-weight: 600;
}
.text-white-70 {
  color: var(--ink-70) !important;
}
.text-white-90 {
  color: var(--ink-90) !important;
}
.section-pad {
  padding: 88px 0;
}
.section-pad-slim {
  padding: 56px 0;
}

/* ===== GLASS UI (reusable) ===== */
.glass {
  background: linear-gradient(
    180deg,
    var(--glass-bg),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== NAV ===== */
.navbar-brand .brand-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-link {
  color: var(--ink);
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
  opacity: 1;
}
.navbar-toggler {
  color: var(--ink);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== BUTTONS (aligned) ===== */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn.btn-cta,
.btn.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.2px;
  border-width: 1px;
  box-sizing: border-box;
}
.btn-cta--xl,
.btn-ghost--xl {
  --btn-h: 56px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border-radius: calc(var(--btn-h) / 2);
  font-weight: 700;
  font-size: 1.0625rem;
}
.btn.btn-cta i,
.btn.btn-ghost i {
  line-height: 0;
  margin-right: 8px;
  font-size: 1.05em;
}

.btn-cta {
  border: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #001018;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(49, 175, 253, 0.22);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.btn-cta:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}
.btn-cta:active,
.btn-ghost:active {
  transform: translateY(0);
}
.btn-cta:focus,
.btn-ghost:focus {
  outline: 2px solid rgba(132, 233, 245, 0.8);
  outline-offset: 2px;
}

/* ===== HERO ===== */
.hero__title {
  line-height: 1.08;
  font-size: clamp(2.6rem, 6.4vw, 3.8rem);
}
.hero__lead {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.125rem;
}
.hero-stats {
  max-width: 980px;
  padding: 16px 18px;
}
.stat {
  padding: 8px 14px;
}
.stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat__label {
  margin: 0;
  color: var(--ink-50);
  font-size: 1rem;
}
.stat__value {
  margin: 0;
  font-weight: 600;
  font-size: 1.0625rem;
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}
.card-neo {
  overflow: hidden;
  height: 100%;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}
.card-neo.revealed {
  transform: translateY(0);
  opacity: 1;
}
.card-neo__media img {
  width: 100%;
  height: auto;
  display: block;
}
.card-neo__body {
  padding: 18px 18px 20px;
}
.card-neo__title {
  margin: 4px 0 8px;
  font-size: 1.25rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.card-neo__text {
  color: var(--ink-70);
  margin: 0;
  font-size: 1.0625rem;
}

/* ===== WORK ===== */
.work-card {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
}
.work-card img {
  width: 100%;
  display: block;
  opacity: 0.92;
  transition: opacity 0.25s, transform 0.25s;
}
.work-card:hover img {
  opacity: 1;
  transform: scale(1.01);
}
.work-card__info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.work-card__info h3 {
  font-size: 1.25rem;
}
.work-card__info span {
  color: var(--ink-70);
  font-size: 1rem;
}

/* ===== CONTACT (glassy panel on global bg) ===== */
.cta-panel {
  padding: 28px 24px;
  position: relative;
}
.cta-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0 0 6px;
}
.cta-sub {
  max-width: 52ch;
  font-size: 1.0625rem;
}
.contact-link {
  color: #fff;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: transparent;
} /* glass class already applied */

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .card-neo,
  .btn-cta,
  .btn-ghost,
  .work-card img {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 576px) {
  .hero-stats {
    padding: 12px;
  }
  .stat:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat {
    padding: 10px 6px;
  }
  .cta-panel {
    padding: 22px;
  }
  html {
    font-size: 17.5px;
  }
}

/* --- Work carousel polish --- */
/* --- Work carousel polish --- */
#workCarousel .carousel-item {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Controls (glassy, off-canvas from tiles) */
.work-control {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.work-control:hover {
  transform: translateY(-1px);
}
.work-control:active {
  transform: translateY(0);
}

/* Indicators as subtle pills below carousel */
#workCarousel .carousel-indicators [data-bs-target] {
  height: 10px;
  border-radius: 100%;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.35);
}
#workCarousel .carousel-indicators .active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Work cards: consistent ratio + legible badges */
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16/9;
}
.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.work-card:hover img {
  opacity: 1;
  transform: scale(1.01);
}

/* soft shade at bottom for text contrast */
.work-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 90%
  );
  pointer-events: none;
}

/* glassy badges (don’t overlap indicators now) */
.work-badge {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.work-badge.left {
  left: 12px;
}
.work-badge.right {
  right: 12px;
}

/* On small screens keep spacing comfy */
@media (max-width: 576px) {
  .work-badge {
    font-size: 0.92rem;
    padding: 6px 9px;
  }

  /* This is the new part: */
  .work-badge.left {
    left: auto; /* Un-pin from the left */
    right: 12px; /* Pin to the right */

    /* Stack it on top of the other badge with a 6px gap */
    /* (12px default bottom + ~30px badge height + 6px gap) */
    bottom: 48px;
  }
}

/* ===== CONTACT RESPONSIVE ===== */
@media (max-width: 991px) {
  #contact-us .row {
    text-align: center; /* center all text inside */
  }

  #contact-us .cta-title {
    font-size: 1.8rem; /* slightly smaller for mobile */
  }

  #contact-us .cta-sub {
    margin-top: 8px;
    margin-bottom: 20px;
  }

  #contact-us .col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #contact-us .d-flex {
    justify-content: center !important;
  }

  #contact-us .contact-link {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
  }
}

/* ===== GLOBAL: Center all sections on mobile ===== */
@media (max-width: 991px) {
  /* Center collapsed navbar links */
  .navbar-collapse .navbar-nav {
    align-items: center;
  }
  .section-pad-slim {
    padding: 15px 0;
  }

  .section-pad {
    padding: 30px 0;
  }

  /* Center service card text */
  #our-services .card-neo__body {
    text-align: center;
  }

  /* Center "Promise" section (between services and work) */
  .section-pad-slim .col-lg-6 {
    text-align: center;
  }

  /* Center stacked footer columns (links, company info) */
  .footer .row > [class*="col-"] {
    text-align: center;
  }

  /* --- THIS IS THE NEW FIX --- */
  /* Center the very bottom footer text (copyright/privacy) when it wraps */
  .footer .d-flex.justify-content-between {
    justify-content: center !important; /* Force center alignment */
  }
}

/* ===== CONTACT: center everything on mobile ===== */

/* Optional: make buttons full-width on very small screens */
@media (max-width: 576px) {
  #contact-us .btn-cta--xl,
  #contact-us .btn-ghost--xl {
    width: 100%;
    max-width: 420px; /* keeps a nice max; remove if you want true full-bleed */
  }
}
