@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    @apply bg-background-dark text-slate-100 antialiased selection:bg-primary/30;
    font-family: 'Inter', sans-serif;
  }
}

@layer components {
  /* -------- GLASSMORPHISM -------- */
  .glass-nav {
    background: rgba(16, 31, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(19, 200, 236, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
  }
  
  .glass-nav.scrolled {
    background: rgba(11, 22, 24, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  }

  .glass-card {
    background: rgba(20, 37, 41, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(19, 200, 236, 0.15);
  }

  /* -------- GLOWS & ACCENTS -------- */
  .glow-cyan {
    box-shadow: 0 0 20px rgba(19, 200, 236, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .glow-cyan:hover {
    box-shadow: 0 0 35px rgba(19, 200, 236, 0.6);
  }
  
  .text-glow {
    text-shadow: 0 0 16px rgba(19, 200, 236, 0.5);
  }

  /* -------- BACKGROUNDS -------- */
  .hero-gradient {
    background: radial-gradient(circle at 50% 30%, rgba(19, 200, 236, 0.12) 0%, rgba(16, 31, 34, 0) 60%);
  }

  /* -------- ANIMATIONS -------- */
  .float-anim {
    animation: float 6s ease-in-out infinite;
  }
  
  .float-anim-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
  }
  
  /* -------- SCROLL REVEAL -------- */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .reveal.from-left {
    transform: translateX(-50px);
  }
  
  .reveal.from-right {
    transform: translateX(50px);
  }

  .reveal.from-scale {
    transform: scale(0.92);
  }
  
  .reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
  
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
  .reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
  .reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
  .reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
  
  .reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* --- TESTIMONIAL CAROUSEL --- */
.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.55s;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(16, 31, 34, 0.7);
  border: 1px solid rgba(19, 200, 236, 0.3);
  color: #13C8EC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: rgba(19, 200, 236, 0.15);
  border-color: #13C8EC;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

@media (max-width: 768px) {
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }
  .carousel-arrow { width: 38px; height: 38px; }
}

.carousel-dot.active {
  background-color: #13C8EC;
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 8px #13C8EC;
}
