/* Custom styles for TheAddress PG - Modern Blue Theme */

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 1rem 1rem;
    display: flex !important;
    z-index: 60;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
  }

  .nav a:hover {
    background-color: rgba(14, 165, 233, 0.2);
  }
}

/* Reviews Carousel Animation */
.reviews-carousel {
  position: relative;
}

.reviews-track {
  animation: scroll-reviews 40s linear infinite;
}

@keyframes scroll-reviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reviews-track:hover {
  animation-play-state: paused;
}

/* Hero Image with overlay */
.hero-img {
  position: relative;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Card for Google Maps reviews (dynamic) */
.review-card {
  min-width: 320px;
  flex-shrink: 0;
  background: linear-gradient(135deg, white 0%, #e0f2fe 100%);
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.review-head {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.meta {
  flex: 1;
}

.meta strong {
  display: block;
  color: #111827;
  font-weight: 700;
  font-size: 1.125rem;
}

.meta .muted {
  color: #6b7280;
}

.meta .small {
  font-size: 0.875rem;
}

.review-text {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
}

.review-card .stars {
  display: flex;
  gap: 0.25rem;
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Utility classes for dynamic content */
.muted {
  color: #6b7280;
}

.small {
  font-size: 0.875rem;
}

/* Loading animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
