/* Container height + safe areas */
.carousel-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  min-height: 520px;                     /* fallback for short screens */
  overflow: hidden;
  margin-top: 60px;
  padding-bottom: env(safe-area-inset-bottom);
}

/* --- Blue Box Wrap for Slide Content --- */
.carousel {
  display: flex;
  width: 300%;
  transition: transform 600ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.carousel-slide {
  position: relative;
  width: 33.3333%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;

  /* make slide backgrounds behave like hero images */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* subtle dark overlay for backgrounds to boost contrast */
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25),
    rgba(0,0,0,.35)
  );
  pointer-events: none;
}

/* The blue glass card */
.slide-content.blue-box {
  position: relative;
  width: min(850px, 92vw);
  padding: 28px 28px 24px;
  border-radius: 16px;
  border: 1px solid #007bff;
  background: rgba(0, 47, 63, 0.7);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    0 0 0 2px rgba(0,123,255,0.12) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  line-height: 1.5;
  z-index: 1; /* above the slide overlay */
}

/* animated blue glow ring */
.slide-content.blue-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 0%,
      rgba(0,123,255,0.45),
      rgba(0,123,255,0.12) 35%,
      transparent 60%),
    radial-gradient(50% 40% at 100% 100%,
      rgba(0,123,255,0.25),
      transparent 60%);
  filter: blur(10px);
  opacity: .8;
  animation: blueGlow 6s ease-in-out infinite alternate;
}

@keyframes blueGlow {
  0%   { opacity: .55; transform: scale(1); }
  100% { opacity: .9;  transform: scale(1.02); }
}

/* headings & copy inside the card */
.slide-content.blue-box h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: .3px;
}
.slide-content.blue-box p {
  margin: 0 0 18px;
  font-size: clamp(14px, 2.2vw, 18px);
  color: #eaf4ff;
}

/* CTA in the card */
.slide-content.blue-box .carousel-btn {
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,.2);
}

/* dots – move to bottom and improve contrast */
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  outline: none;
}
.carousel-dot:focus-visible {
  box-shadow: 0 0 0 3px rgba(0,123,255,.6);
}
.carousel-dot.active { background: #007bff; transform: scale(1.15); }

/* Base slide content stays transparent; we use .blue-box for the wrap */
.slide-content {
  text-align: center;
  width: 80%;
  max-width: 1200px;
  padding: 40px;
  background: transparent;
  border-radius: 15px;
}

/* Background images — fix space in filenames */
.slide1 { background-image: url("cube%201.jpg"); }
.slide2 { background-image: url("TUTT.jpg"); }
.slide3 { background-image: url("COnsulting-Background-1500x630.jpg"); }

/* Mobile */
@media (max-width: 768px) {
  .carousel-slide { min-height: 56vh; padding: 28px 16px; }
  .slide-content.blue-box { padding: 22px 18px; }
  .carousel-dots { bottom: 12px; }
}

/* High-contrast mode */
@media (prefers-contrast: high) {
  .slide-content.blue-box {
    background: #002f3f;
    border-color: #007bff;
    box-shadow: none;
    backdrop-filter: none;
  }
  .slide-content.blue-box::before { display: none; }
  .carousel-slide::after {
    background: rgba(0,0,0,.2);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carousel { transition: none; }
  .slide-content.blue-box::before { animation: none; }
}