/* ============================================
   Jason Patino Realty - Stylesheet
   ============================================ */

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0f1f;
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('./homebg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: .35;
  z-index: -1;
}

/* Custom Color Palette */
.bg-gold-500 { background-color: #D4AF37; }
.text-gold-500 { color: #D4AF37; }
.border-gold-500 { border-color: #D4AF37; }
.hover\:bg-gold-600:hover { background-color: #C39D30; }
.bg-navy-900 { background-color: rgba(10, 15, 31, .95); }
.bg-navy-800 { background-color: rgba(16, 26, 53, .95); }
.bg-navy-700 { background-color: rgba(26, 36, 68, .95); }

/* Header Background */
.header-bg {
  background-image: url('https://images.unsplash.com/photo-1620023190867-009d18e8035b?auto=format&fit=crop&q=80&w=1920&ixlib=rb-4.0.3');
  background-size: cover;
  background-position: center;
  position: relative;
}

.header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(10, 15, 31, .7);
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
}

/* Responsive Video Container */
.video-responsive {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: .75rem;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, .4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video Placeholder Styling */
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, .4);
  cursor: pointer;
  transition: transform .3s, border-color .3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}

.video-placeholder:hover {
  transform: translateY(-5px);
  border-color: #D4AF37;
}

.video-placeholder-icon {
  width: 4.5rem;
  height: 4.5rem;
  color: rgba(255, 255, 255, .9);
  z-index: 10;
  transition: transform .3s, opacity .3s;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .5));
}

.video-placeholder:hover .video-placeholder-icon {
  transform: scale(1.15);
  opacity: 1;
}

.video-placeholder-text {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}

.video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7);
  transition: filter .3s;
}

.video-placeholder:hover img {
  filter: brightness(.6);
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, .4);
}

.carousel-track {
  display: flex;
  transition: transform .5s ease-in-out;
  padding-bottom: 2rem;
}

.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 1rem;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(100% / 3);
  }
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
}

.carousel-dot {
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .5);
  transition: background-color .3s, transform .3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: #D4AF37;
  transform: scale(1.2);
}

/* Scroll Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Confirmation Popup */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, .75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.popup-overlay.visible {
  display: flex;
}

.popup-content {
  background-color: #101a35;
  padding: 2.5rem;
  border-radius: 1rem;
  max-width: 28rem;
  width: 90%;
  text-align: center;
  transform: scale(.95);
  opacity: 0;
  transition: transform .3s ease-out, opacity .3s ease-out;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

.popup-content.show {
  transform: scale(1);
  opacity: 1;
}

.popup-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.popup-message {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.popup-close-btn {
  background-color: #D4AF37;
  color: #fff;
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: .5rem;
  border: none;
  cursor: pointer;
  transition: background-color .3s;
}

.popup-close-btn:hover {
  background-color: #C39D30;
}
