/* Custom CSS for Cozy Paws */

/* Hero Logo Styles */
.hero-logo-container {
  position: relative;
  z-index: 30;
}

.hero-logo {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: hero-logo-float 6s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Hero Logo Responsive Sizes */
@media (max-width: 640px) {
  .hero-logo {
    height: 5rem; /* h-20 */
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-logo {
    height: 7rem; /* h-28 */
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    height: 8rem; /* h-32 */
  }
}

@media (min-width: 1280px) {
  .hero-logo {
    height: 10rem; /* h-40 */
  }
}

/* Enhanced logo glow effect */
.hero-logo-container:hover .hero-logo {
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 30px rgba(252, 211, 163, 0.4));
}

/* Brand text animation */
.hero-logo-container h2 {
  animation: brand-text-glow 4s ease-in-out infinite alternate;
}

@keyframes brand-text-glow {
  0% {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 25px rgba(252, 211, 163, 0.3);
  }
}

/* SERVICE CARDS - NEW INTERACTIVE DESIGN */
.service-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #fcd3a3, #f5c78a, #e8b86d);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: #fcd3a3;
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #fcd3a3, #f5c78a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(252, 211, 163, 0.3);
}

.service-card:hover .service-icon-container {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(252, 211, 163, 0.5);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: #000;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: #d97706;
}

.service-description {
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-feature {
  background: rgba(252, 211, 163, 0.2);
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-card:hover .service-feature {
  background: rgba(252, 211, 163, 0.4);
  transform: translateY(-2px);
}

.service-cta {
  background: linear-gradient(135deg, #000, #374151);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.service-card:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
}

.service-cta:hover {
  background: linear-gradient(135deg, #374151, #000);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Floating elements animation */
.service-floating-element {
  position: absolute;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.service-card:hover .service-floating-element {
  opacity: 1;
}

.floating-paw-1 {
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  animation: float-gentle 3s ease-in-out infinite;
}

.floating-paw-2 {
  bottom: 15px;
  left: 15px;
  font-size: 1rem;
  animation: float-gentle 3s ease-in-out infinite 1.5s;
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* Services grid responsive */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-content {
    padding: 1.5rem;
  }
}

/* Section header animation */
.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #000, #374151, #6b7280);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(252, 211, 163, 0.3));
  }
}

.services-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Improved dog animations */
@keyframes walk-cycle {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotateZ(0deg);
  }
  25% {
    transform: translateY(-3px) scale(1.02) rotateZ(-1deg);
  }
  50% {
    transform: translateY(-1px) scale(1.05) rotateZ(0deg);
  }
  75% {
    transform: translateY(-3px) scale(1.02) rotateZ(1deg);
  }
}

@keyframes sniff-animation {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(2px) scale(0.98);
  }
}

@keyframes play-bounce {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) scale(1.1) rotate(-5deg);
  }
  50% {
    transform: translateY(-4px) scale(1.05) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
  }
}

@keyframes run-cycle {
  0%,
  100% {
    transform: translateY(0px) scale(1) skewX(0deg);
  }
  50% {
    transform: translateY(-5px) scale(1.08) skewX(2deg);
  }
}

@keyframes tail-wag-happy {
  0%,
  100% {
    transform: rotate(-10deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
}

@keyframes pant {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.dog-sprite {
  position: relative;
  display: inline-block;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.dog-sprite.walking {
  animation: walk-cycle 1.2s ease-in-out infinite;
}

.dog-sprite.sniffing {
  animation: sniff-animation 2s ease-in-out infinite;
}

.dog-sprite.playing {
  animation: play-bounce 0.8s ease-in-out infinite;
}

.dog-sprite.running {
  animation: run-cycle 0.6s ease-in-out infinite;
}

.dog-sprite::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  background: linear-gradient(45deg, #8b4513, #a0522d);
  right: -8px;
  top: 30%;
  border-radius: 3px;
  transform-origin: top center;
  animation: tail-wag-happy 0.8s ease-in-out infinite;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.dog-sprite.running::after {
  animation: tail-wag-happy 0.4s ease-in-out infinite;
}

.dog-sprite.playing::after {
  animation: tail-wag-happy 0.3s ease-in-out infinite;
}

.sniff-indicator {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6em;
  animation: pant 1.5s ease-in-out infinite;
}

.play-indicator {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 0.5em;
  animation: play-bounce 0.8s ease-in-out infinite;
}

/* Enhanced floating paws */
@keyframes float-paws-improved {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.8);
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) rotate(36deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) rotate(180deg) scale(1.1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) rotate(324deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg) scale(0.8);
  }
}

.floating-paws {
  position: fixed;
  top: 100vh;
  animation: float-paws-improved 18s linear infinite;
  pointer-events: none;
  z-index: 5;
  font-size: 24px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

/* Cursor dog improvements */
@keyframes cursor-dog-happy {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

@keyframes love-float {
  0% {
    opacity: 0;
    transform: translateY(0px) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.5);
  }
}

.cursor-dog {
  animation: cursor-dog-happy 1.5s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.love-hearts {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.4em;
  animation: love-float 2s ease-in-out infinite;
}

/* Gallery hover effects */
.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

/* Enhanced logo visibility */
.logo-glow {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* FAQ Animations */
.faq-trigger:hover {
  background-color: #f9fafb;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

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

/* Container responsive */
.container {
  max-width: 1200px;
}

/* Enhanced shadows and effects */
.shadow-enhanced {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gallery grid improvements */
@media (max-width: 768px) {
  .gallery-item {
    margin-bottom: 1rem;
  }
}

/* Button hover effects */
.btn-hover-effect {
  transition: all 0.3s ease;
}

.btn-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Logo enhancement styles */
.logo-container {
  position: relative;
}

.logo-container::before {
  content: "";
  position: absolute;
  inset: -5px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-container:hover::before {
  opacity: 1;
}

/* Improved testimonial cards */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Gallery image loading effect */
.gallery-img {
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
}

.gallery-img:hover {
  filter: brightness(1.1) saturate(1.1);
}

/* Hero section enhancements */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Trust indicators animation */
@keyframes trust-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-indicators {
  animation: trust-fade-in 1s ease-out 0.5s both;
}
