@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');
@import "tailwindcss";

/* Watermark wrapper */
.watermark-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  z-index: -1;
}

/* Watermark itself */
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;         
  height: 60vw;         
  max-width: 400px;     
  max-height: 400px;
  background-image: url("/images/SkinHealLogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;         
  transform: translate(-50%, -50%);
}


/* Mobile optimization */
@media (max-width: 640px) {
  .watermark {
    width: 80vw;
    height: 80vw;
    opacity: 0.4;
  }
}


.prata-regular {
  font-family: "Prata", "serif";
}


@keyframes autoSlide {
  0% {
    transform: translateX(0%);
  }
  33% {
    transform: translateX(0%);
  }
  38% {
    transform: translateX(-33.333%);
  }
  66% {
    transform: translateX(-33.333%);
  }
  71% {
    transform: translateX(-66.666%);
  }
  100% {
    transform: translateX(-66.666%);
  }
}

.slides {
  animation: autoSlide 12s infinite ease-in-out;
}


/* Treatments slider */

.carousel {
  overflow: hidden;
  width: 100%;
}

.track {
  display: flex;
  width: max-content;
  animation: scroll 14s linear infinite;
}

.group {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.card {
  width: 160px;
  height: 160px;
  background: #3b82f6;
  color: white;
  font-size: 3rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff; /* White background */
  padding: 0.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.card-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #111827; /* Dark text */
  text-align: center;
}



@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.comparison-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.image-after {
  clip-path: inset(0 50% 0 0);
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
  left: 50%;
  transform: translateX(-1px);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  pointer-events: none;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ===== Before After Image Caption (SAFE) ===== */
.comparison-slider {
  position: relative;
}

.comparison-slider {
  position: relative;
}

/* Caption overlay */
.comparison-slider::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 14px;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.25),
    transparent
  );

  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;

  pointer-events: none;
  z-index: 50;  
}


/* Arrow base */
.arrow {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Left arrow */
.arrow.left {
  border-right: 8px solid #333;
}

/* Right arrow */
.arrow.right {
  border-left: 8px solid #333;
}


.slider-input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 40; 
}


/* about page */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.animate {
  opacity: 1;
  transform: translateY(0);
}


/*  */

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* 🌿 FAB Button Style */
.fab-btn {
  background: #C8A951;
  color: #2E7D32;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: pulse 4s infinite;
}

/* Hover Effects */
.fab-btn:hover {
  transform: scale(1.05);
  background: #b89645;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* 🌿 Curiosity FAB - Ayurvedic Premium */
.fab-curious {
  background: linear-gradient(135deg, #C8A951, #E6C878);
  color: #1B5E20;
  box-shadow: 0 10px 30px rgba(200,169,81,0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: floaty 4s ease-in-out infinite;
}

/* ✨ Glow Ring */
.fab-curious::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 25px rgba(200,169,81,0.6);
  opacity: 0.6;
  animation: glowPulse 3s infinite;
}

/* 🌿 Hover */
.fab-curious:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 40px rgba(200,169,81,0.5);
}

/* 🌊 Floating Motion */
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ✨ Glow Pulse */
@keyframes glowPulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { opacity: 0.4; }
}

/* 🧠 Text Animation (curiosity effect) */
.fab-text {
  transition: opacity 0.3s ease;
}

@keyframes textBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.7; }
}