:root {
  --nav-height: 72px;
  --bs-primary: #6366f1;
  --bs-primary-rgb: 99,102,241;
  --body-bg: #0b1220;
  --text-color: #e5e7eb;
  --muted-text: #aab0bc;
  --navbar-bg: #0b1220;
  --navbar-border: rgba(255,255,255,0.08);
  --navbar-link: #c7c9d1;
  --card-bg: rgba(255,255,255,.03);
  --card-border: rgba(255,255,255,.08);
  --form-bg: rgba(255,255,255,.04);
  --form-border: rgba(255,255,255,.12);
  --footer-bg: #0b1220;
  --footer-text: #aab0bc;
  --hero-bg: #0b1220;
  --hero-text: #eef2ff;
  --section-title: #ffffff;
  --icon-badge-bg: rgba(99,102,241,.15);
  --icon-badge-color: #c7d2fe;
}
html, body { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  padding-top: var(--nav-height);
  scroll-padding-top: calc(var(--nav-height) + 20px);
  background: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6em;
}
/* Navbar */
.navbar {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.navbar .nav-link { color: var(--navbar-link); font-weight: 500; margin-left:10px; margin-right:10px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--bs-primary); }
.navbar .navbar-brand { font-weight: 700; letter-spacing: .2px; color: var(--text-color); }

/* Extra spacing for dropdown menu items */
@media (max-width: 991.98px) {
  #navContent {
    margin-top: 30px;
    text-align: center;
  }
  #navContent .nav-link {
    display: block;
    margin: 10px 0;
    font-size: 1.15rem;
  }

  /* Align hero content with Services on mobile:
     Make left edge exactly the container padding (~12px).
     Remove column gutters and any extra column padding utilities. */
  .hero .container { padding-left: 12px !important; padding-right: 12px !important; }
  .hero .row { --bs-gutter-x: 0 !important; } /* kill g-5's 3rem gutters on mobile */
  .hero .container.content .col-lg-6 { padding-left: 0 !important; padding-right: 0 !important; }
  .hero .container.content .px-5 { padding-left: 0 !important; padding-right: 0 !important; }
  .hero .container.content .ps-5 { padding-left: 0 !important; }

}
/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(40vh - 50px);
  display: grid;
  align-items: center;
  background: var(--hero-bg);
  color: var(--hero-text);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  filter: blur(60px);
  opacity: .7;
  transform: translateZ(0);
  pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(99,102,241,.45), transparent 60%),
    radial-gradient(35% 45% at 80% 20%, rgba(14,165,233,.35), transparent 60%),
    radial-gradient(60% 55% at 50% 85%, rgba(236,72,153,.25), transparent 60%);
}
.hero::after {
  background:
    radial-gradient(25% 35% at 10% 80%, rgba(59,130,246,.25), transparent 60%),
    radial-gradient(30% 40% at 95% 65%, rgba(168,85,247,.25), transparent 60%);
  mix-blend-mode: screen;
}
.hero .content { position: relative; z-index: 2; }
.hero-visual {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow: hidden;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (min-width: 992px) {
  .hero-visual, .hero-visual img { height: 100%; }
}
/* Sections / cards */
.section { padding: 80px 0; }
.section-title { color: var(--section-title); font-weight: 700; letter-spacing: .2px; }
.text-muted { color: var(--muted-text) !important; }
.text-muted li { margin-bottom: 7px; }
.lead.text-muted { line-height: 1.55; }
.card, .card-2 {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
#gallery .card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
#gallery .card:hover {
  /* removed colored border on hover */
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
#gallery .card img {
  transition: transform 0.25s ease;
  display:block;
  width:100%;
  height:auto;
}
#gallery .card:hover img {
  transform: scale(1.08);
}
.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: inline-grid;
  place-items: center;
  background: var(--icon-badge-bg);
  color: var(--icon-badge-color);
  border: 1px solid rgba(99,102,241,.25);
}
/* Larger icons inside badges while keeping the badge size the same */
.icon-badge i.bi { font-size: 1.48rem; line-height: 1; }
.icon-badge svg { width: 1.48rem !important; height: 1.48rem !important; }
.object-fit-cover { object-fit: cover; }
/* Forms */
.form-control, .form-select, .form-control:focus {
  background: var(--form-bg);
  border-color: var(--form-border);
  color: var(--text-color);
}
.form-control::placeholder { color: var(--muted-text); }
/* Turnstile: enforce normal width */
.cf-turnstile { display: inline-block; width: 300px; max-width: 300px; }
footer {
  border-top: 1px solid var(--navbar-border);
  color: var(--footer-text);
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--footer-bg);
}

.navbar-logo {
  width: 260px;
  height: auto;
  filter: brightness(1.2);
}
.about-img-container {
  max-width: 100%;
  margin: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(14,165,233,.2));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden; /* ensure child image can fill container without showing gaps */
}
.about-img-container img {
  width: 100%;
  height: auto;
  display: block; /* remove inline-gap from inline images */
}
@media (max-width: 991px) {
  .about-img-container {
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .about-section .container {
    padding-left: .75rem;
    padding-right: .75rem;
  }
  /* Align About heading/tagline with card content above on mobile */
  .about-section .section-title,
  .about-section .section-title + p {
    padding-left: 1.5rem; /* matches .card-2 p-4 (1.5rem) */
    padding-right: 1.5rem;
  }
}
.highlight-quote {
  display: inline-block;
  padding: 0.75rem 1rem;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--text-color);
  background: rgba(99,102,241,0.08);
  border-radius: 0.25rem;
  margin-top: 20px;
}

/* Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  padding-top: max(50px, 8vh); /* Responsive top padding */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: #0b1220; /* Solid black background */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #0b1220;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  border-radius: 1rem;
  overflow: hidden;
}

/* The Close Button */
.close {
  color: var(--text-color);
  position: absolute;
  top: 23px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1000;
}

.close:hover,
.close:focus {
  color: var(--bs-primary);
  text-decoration: none;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 80px;
  height: 80px;
  /* remove margin-based centering; use translate for consistent centering */
  color: var(--text-color);
  font-weight: 900;
  font-size: 29px; /* icon size */
  border: none;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.8); /* 80% black per request */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1001; /* ensure above image */
  transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
  transform: translateY(-50%); /* center relative to computed 'top' */
}

/* Improve click behavior on icons */
.prev i, .next i { pointer-events: none; }

/* Position the "next button" to the right */
.next { right: 0; }

/* Hover + active + focus-visible states */
.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.8);
  color: #ffffff;
}
.prev:active,
.next:active {
  transform: translateY(-50%) scale(0.97);
}
.prev:focus-visible,
.next:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
/* XS & SM: reduce prev/next controls by 30% */
@media (max-width: 767.98px) {
  .prev,
  .next {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}
/* Container for image text */
.caption-container {
  text-align: center;
  padding: 50px 16px 50px;
  color: var(--text-color);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
