/* Custom Styles & Utilities for Rozii African Hair Braiding */

@layer base {
  html {
    scroll-behavior: smooth;
  }
  body {
    background-color: #FFFFFF; /* cream from tailwind.config.js */
    color: #000000; /* near-black from tailwind.config.js */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@layer utilities {
  .grain-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 1;
  }
  .text-shimmer {
    background: linear-gradient(
      110deg,
      #FFFFFF 0%,
      #FF3F8E 45%,
      #FFFFFF 55%,
      #FF3F8E 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
  }
  .glow-pink {
    box-shadow: 0 0 15px rgba(255, 63, 142, 0.3);
    transition: box-shadow 0.3s ease;
  }
  .glow-pink:hover {
    box-shadow: 0 0 25px rgba(255, 63, 142, 0.5);
  }
  .pattern-dots {
    background-image: radial-gradient(rgba(255, 63, 142, 0.08) 2px, transparent 2px);
    background-size: 20px 20px;
  }
}

/* Keyframes for animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pink-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 63, 142, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 63, 142, 0.6); }
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@keyframes marquee2 {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0%); }
}

.animate-shimmer { animation: shimmer 3s ease-in-out infinite; }
.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }
.animate-pink-pulse { animation: pink-pulse 2s ease-in-out infinite; }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-marquee2 { animation: marquee2 30s linear infinite; }
