/* Custom Animations */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.glow-bg {
  animation: pulse-glow 6s ease-in-out infinite;
}

/* Acrylic Glass Components */
.acrylic-card {
  background: rgba(22, 24, 32, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Tooltip Styles (Appears below the button to never overlap content above) */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  z-index: 40;
}

.tooltip-wrapper:hover .tooltip-box,
.tooltip-wrapper:focus-within .tooltip-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-arrow {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: #0f172a;
  border-left: 1px solid #334155;
  border-top: 1px solid #334155;
}

/* Carousel Transition Effects (Pure opacity fade for 100% native pixel sharpness) */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10;
}

.carousel-slide img {
  width: 460px;
  height: 500px;
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Carousel Tab Buttons */
.carousel-tab-btn {
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.carousel-tab-btn:hover:not(.active) {
  color: #e2e8f0;
}

.carousel-tab-btn.active {
  color: #22d3ee !important;
  background: rgba(6, 182, 212, 0.15) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25) !important;
}

/* Carousel Indicator Dots / Pills */
.carousel-dot {
  width: 8px;
  height: 6px;
  border-radius: 9999px;
  background-color: #334155;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.carousel-dot:hover:not(.active) {
  background-color: #64748b;
}

.carousel-dot.active {
  width: 28px !important;
  background-color: #22d3ee !important;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* -----------------------------------------------------------------------------
   High-End Native Animations (Apple / Microsoft Fluent 2 Style)
----------------------------------------------------------------------------- */

/* Card Hover Lift & Soft Shadow */
.card-interactive {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
  will-change: transform, box-shadow;
}

.card-interactive:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.75), 0 0 25px -5px rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* Primary Button Hover Scale 1.03 & Soft Glow */
.btn-primary-action {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, box-shadow;
}

.btn-primary-action:hover {
  transform: scale(1.03) translateY(-1px) !important;
  box-shadow: 0 12px 28px -5px rgba(6, 182, 212, 0.45) !important;
}

.btn-press {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tabular Numbers for Counters (prevents layout shift during animation) */
.stat-counter {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* Active / Press State (Scale 0.97) */
.btn-primary-action:active,
.btn-interactive:active,
button.btn-press:active,
a.btn-press:active {
  transform: scale(0.97) translateY(0) !important;
  box-shadow: 0 4px 12px -2px rgba(6, 182, 212, 0.25) !important;
}

/* Global Smooth Scrolling & Section Margin */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 4.5rem;
}

/* Light Section Scroll Transition (Apple / Microsoft Fluent 2 Style) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-anim-item,
  .scroll-reveal,
  .card-interactive,
  .btn-primary-action {
    opacity: 1 !important;
    transform: none !important;
  }
}


