/* Custom styles for 252 W 85 Residence */

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

/* Selection color */
::selection {
  background-color: #ff6b3f;
  color: white;
}

/* Hero animations - only apply when prefers-reduced-motion is not set */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
  }
  
  .hero-anim:nth-child(1) { animation-delay: 0.2s; }
  .hero-anim:nth-child(2) { animation-delay: 0.4s; }
  .hero-anim:nth-child(3) { animation-delay: 0.6s; }
  .hero-anim:nth-child(4) { animation-delay: 0.8s; }
  .hero-anim:nth-child(5) { animation-delay: 1.0s; }

  @keyframes heroFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(20, 20, 20, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-link {
  transition: all 0.3s ease;
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #262626;
}

::-webkit-scrollbar-thumb {
  background: #434343;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b3f;
}

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