/* Custom styles and animations for SIM TPQ Tailwind Template */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #059669; /* emerald-600 */
  --primary-hover: #047857; /* emerald-700 */
  --secondary: #f59e0b; /* amber-500 */
  --secondary-hover: #d97706; /* amber-600 */
  --dark: #0f172a;
  --dark-islamic: #064e3b; /* emerald-900 */
  --text-muted: #64748b;
  --bg-cream: #f0fdf4; /* emerald-50 */
  --bg-amber-light: #fffbeb; /* amber-50 */
  --border-light: #e2e8f0;
  --rating: #f59e0b;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: #334155;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Quicksand', sans-serif;
}

/* Animations */
@keyframes floatBobY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes floatBobX {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(16px);
  }
}

@keyframes wavePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.float-bob-y {
  animation: floatBobY 4s ease-in-out infinite;
}

.float-bob-x {
  animation: floatBobX 4s ease-in-out infinite;
}

.wave-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: rgba(245, 158, 11, 0.4);
  animation: wavePulse 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wave-ring:nth-child(2) {
  animation-delay: 0.8s;
}

.wave-ring:nth-child(3) {
  animation-delay: 1.6s;
}

/* Custom button hover effect */
.btn-tpq {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-tpq::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: #047857;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.btn-tpq:hover::before {
  width: 300%;
  height: 300%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}
