/* ===== Custom Styles for Barghi Real Estate ===== */

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

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

/* ===== Hero Animations ===== */
.hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.2s; }
.hero-reveal:nth-child(3) { animation-delay: 0.3s; }
.hero-reveal:nth-child(4) { animation-delay: 0.4s; }
.hero-reveal:nth-child(5) { animation-delay: 0.5s; }

.hero-image-reveal {
  opacity: 0;
  transform: translateX(40px);
  animation: heroImageReveal 1s ease 0.3s forwards;
}

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

@keyframes heroImageReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Section Labels & Titles ===== */
.section-label {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.1s;
}

.section-label-about {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-title-about {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.1s;
}

/* ===== Service Cards ===== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

/* ===== Neighborhood Cards ===== */
.neighborhood-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== About Image ===== */
.about-image-reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease;
}

/* ===== Intersection Observer Classes ===== */
.in-view .section-label,
.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
}

.in-view .section-label-about,
.in-view .section-title-about {
  opacity: 1;
  transform: translateY(0);
}

.in-view .service-card {
  opacity: 1;
  transform: translateY(0);
}

.in-view .service-card:nth-child(1) { transition-delay: 0.05s; }
.in-view .service-card:nth-child(2) { transition-delay: 0.1s; }
.in-view .service-card:nth-child(3) { transition-delay: 0.15s; }
.in-view .service-card:nth-child(4) { transition-delay: 0.2s; }
.in-view .service-card:nth-child(5) { transition-delay: 0.25s; }
.in-view .service-card:nth-child(6) { transition-delay: 0.3s; }

.in-view .neighborhood-card {
  opacity: 1;
  transform: translateY(0);
}

.in-view .neighborhood-card:nth-child(1) { transition-delay: 0.05s; }
.in-view .neighborhood-card:nth-child(2) { transition-delay: 0.1s; }
.in-view .neighborhood-card:nth-child(3) { transition-delay: 0.15s; }
.in-view .neighborhood-card:nth-child(4) { transition-delay: 0.2s; }

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

.in-view .testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.in-view .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.in-view .testimonial-card:nth-child(3) { transition-delay: 0.15s; }

.in-view .about-image-reveal {
  opacity: 1;
  transform: scale(1);
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
  background: rgba(250, 248, 245, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* ===== Mobile Menu ===== */
.mobile-menu-open #mobile-menu {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 6px;
}

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

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

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

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

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #B85C38;
  outline-offset: 2px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero-reveal {
    animation-duration: 0.6s;
  }
}
