/* Custom styles that complement Tailwind */

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Selection color */
::selection {
  background-color: rgba(255, 107, 74, 0.3);
  color: #fff;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ff6b4a;
  outline-offset: 2px;
}

/* Subtle parallax for hero (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  #hero {
    background-attachment: fixed;
  }
}

/* Navbar transition states */
.navbar-scrolled {
  background-color: rgba(26, 26, 31, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 107, 120, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Room card hover effect */
.group:hover .group-hover\:-translate-y-1 {
  transform: translateY(-4px);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #ff6b4a 0%, #ff8a6c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative line animation */
@keyframes expandWidth {
  from { width: 0; }
  to { width: 5rem; }
}

/* Star twinkle animation (decorative) */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

@media (prefers-reduced-motion: no-preference) {
  .star-twinkle {
    animation: twinkle 3s ease-in-out infinite;
  }
  .star-twinkle-delay {
    animation: twinkle 3s ease-in-out infinite;
    animation-delay: 1.5s;
  }
}
