/* Custom styles for Tinesha's Smiles & Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Blob animations */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #dc7a3a;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #e0a84c;
  top: 50%;
  right: -5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: #f5d9ad;
  bottom: 10%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(135, 52, 20, 0.1);
}

/* Service card hover lift */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
}

/* Testimonial card hover */
.testimonial-card {
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Gallery item */
.gallery-item {
  cursor: pointer;
}

/* Reveal animations — progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c45a1e;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #dc7a3a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #f2c4a0;
  color: #6b2c16;
}
