/* ===== SERVICES HERO SHOWCASE ===== */
.hero-showcase {
  /* Accounts for 80px navbar + 1px border */
  height: calc(100vh - 81px);
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
}

#threejs-canvas-services {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.showcase-header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 5vh;
}

.showcase-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.showcase-header p {
  font-size: 18px;
  color: #64748b;
}

/* ===== 3D CAROUSEL ===== */
.carousel-container {
  flex: 1;
  width: 100%;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.carousel-card {
  position: absolute;
  width: min(320px, 85vw);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(219, 234, 254, 0.8);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 24px 48px rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* Blurry Text & Hardware Acceleration Hacks */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;

  /* Premium Transition */
  transition:
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.8s ease;
}

/* Strict Brand Colors */
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 16px 16px 0 0;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  margin-bottom: 24px;
  border: 1px solid #dbeafe;
}

.carousel-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.carousel-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 32px;
  flex: 1;
}

.btn-card {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
  width: 100%;
}

.btn-card:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: 5vh;
  /* Ensure visibility immediately */
  opacity: 1;
  visibility: visible;
}

.ctrl-btn {
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #3b82f6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.ctrl-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #93c5fd;
  border-radius: 10px;
  transition: all 0.4s ease;
}

.dot.active {
  width: 32px;
  background: #3b82f6;
}

@media (max-width: 768px) {
  .hero-showcase {
    height: calc(100vh - 60px);
  }
  .carousel-card {
    padding: 32px 24px;
  }
  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}
