/* ============================================
   Parkview Apartments — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040B18;
}
::-webkit-scrollbar-thumb {
  background: #1C3555;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A017;
}

/* Selection Color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #FFF9E6;
}

/* Base Typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gold Gradient Text Utility */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFD040 0%, #D4A017 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold Glow Effects */
.glow-gold {
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.15);
}

/* Navbar Transition State */
.nav-scrolled {
  background: rgba(4, 11, 24, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(212, 160, 23, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Menu Animations */
.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-visible {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Floating Card Animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.floating-card-1 { animation: float1 4s ease-in-out infinite; }
.floating-card-2 { animation: float2 5s ease-in-out infinite; }
.floating-card-3 { animation: float3 3.5s ease-in-out infinite; }

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image Loading Shimmer */
img {
  background: linear-gradient(110deg, #0F1F35 0%, #152A45 50%, #0F1F35 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
img.loaded {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Date Input Styling for Dark Theme */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
  cursor: pointer;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
