/* ===================================
   Peikin Properties — Custom Styles
   Premium Dark Luxury Real Estate
   =================================== */

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #1a0a1e;
}

::selection {
  background-color: rgba(212, 160, 23, 0.3);
  color: #f5eefa;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0a1e;
}
::-webkit-scrollbar-thumb {
  background: #3f1a4a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #522460;
}

/* ===================================
   Navbar
   =================================== */
#navbar {
  background: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(13, 5, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

/* Mobile menu button animation */
#menuBtn.active #bar1 {
  transform: translateY(4px) rotate(45deg);
}
#menuBtn.active #bar2 {
  opacity: 0;
  transform: scaleX(0);
}
#menuBtn.active #bar3 {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* Mobile menu transitions */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ===================================
   Hero Floating Cards
   =================================== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-top {
  animation-delay: 0s;
}
.card-mid {
  animation-delay: -2s;
}
.card-bottom {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Scroll line animation */
@keyframes scrollLine {
  0% { top: -16px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===================================
   Listing Cards
   =================================== */
.listing-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.listing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.listing-card:hover {
  box-shadow: 0 20px 60px -20px rgba(212, 160, 23, 0.15);
}

/* ===================================
   Testimonial Cards
   =================================== */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   General Reveal Animations
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  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; }

/* ===================================
   Gold shimmer on hover for CTA buttons
   =================================== */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-shimmer:hover::after {
  left: 100%;
}

/* ===================================
   Form styling
   =================================== */
select option {
  background-color: #2d1235;
  color: #e8d4f5;
}

/* ===================================
   Responsive adjustments
   =================================== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .font-serif {
    line-height: 1.1;
  }
}

/* ===================================
   Print styles
   =================================== */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .floating-card,
  #navbar,
  .animate-scroll-line {
    display: none;
  }
}
