/* Custom styles for Jasmine Wilson Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
  background: #2C2C2C;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A84C;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #FBF8F0;
}

/* Base animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Hero animations - always visible, no JS needed */
.hero-anim {
  animation: fadeInUp 0.8s ease-out forwards;
}
.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }
.hero-anim:nth-child(5) { animation-delay: 0.6s; }

/* Scroll reveal - progressive enhancement */
.reveal {
  opacity: 1;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Gold shimmer text effect */
.text-gold-shimmer {
  background: linear-gradient(90deg, #C9A84C, #EADBA6, #C9A84C);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}

/* Gold line accent */
.gold-line {
  position: relative;
}
.gold-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C, transparent);
}

/* Image hover zoom container */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
  transform: scale(1.05);
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* Button hover glow */
.btn-gold:hover {
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(ellipse at top right, rgba(201, 168, 76, 0.03) 0%, transparent 60%),
                    radial-gradient(ellipse at bottom left, rgba(192, 112, 64, 0.03) 0%, transparent 60%);
}

/* Decorative corner accents */
.corner-accent::before,
.corner-accent::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(201, 168, 76, 0.2);
  border-style: solid;
}
.corner-accent::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.corner-accent::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* Testimonial card hover */
.testimonial-card {
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.testimonial-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

/* Neighborhood card overlay */
.neighborhood-card {
  transition: border-color 0.4s ease;
}
.neighborhood-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}
.neighborhood-card:hover .neighborhood-overlay {
  opacity: 1;
}

/* Loading state for form button */
.btn-loading {
  position: relative;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(10, 10, 10, 0.3);
  border-top-color: #0A0A0A;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-anim {
    animation-duration: 0.6s;
  }
  .hero-anim:nth-child(2) { animation-delay: 0.1s; }
  .hero-anim:nth-child(3) { animation-delay: 0.2s; }
  .hero-anim:nth-child(4) { animation-delay: 0.3s; }
  .hero-anim:nth-child(5) { animation-delay: 0.4s; }
}

/* Print styles */
@media print {
  header, footer, #contact-form, .reveal { display: none; }
  body { background: white; color: black; }
}
