@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

* {
  font-family: "Poppins", sans-serif;
}

/* Logo Sizing */
.logo {
  height: 144px;
  transition: height 0.5s ease;
}

.header-scrolled .logo {
  height: 80px;
}

/* Header States */
.header-glass {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Desktop Nav Colors on Scroll */
.header-scrolled .nav-link {
  color: #1f2937 !important;
}

.header-scrolled .nav-link:hover {
  color: #d97706 !important;
}

/* Mobile Hamburger Color on Scroll */
.header-scrolled .hamburger span {
  background-color: #1f2937 !important;
}

/* Hero Background Slider */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

/* Gradient Overlay */
.gradient-overlay {
  background: linear-gradient(135deg, #b58e417a 0%, rgba(0, 0, 0, 0.281) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Text Reveal Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 1s ease-out forwards;
}

.slide-up-delay-1 {
  animation: slideUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.slide-up-delay-2 {
  animation: slideUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* Nav Link Hover Effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #eab308, #f59e0b);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Button Glow Effect */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* Particle Background */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(234, 179, 8, 0.5);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Mobile Menu Animation */
.mobile-menu {
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 500px;
}

/* Hamburger Animation */
.hamburger span {
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Scroll Indicator */
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

/* Fade Up Animation (Scroll-triggered) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Property Card Hover */
.property-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(184, 148, 86, 0.3);
}

/* Testimonial Carousel */
.testimonial-carousel-container {
  position: relative;
  padding: 0 60px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
}

/* Desktop: 3 cards */
@media (min-width: 1024px) {
  .testimonial-slide {
    width: calc(100% / 3);
  }
}

/* Tablet: 2 cards */
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonial-slide {
    width: calc(100% / 2);
  }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
  .testimonial-slide {
    width: 100%;
  }

  .testimonial-carousel-container {
    padding: 0 50px;
  }
}

/* Carousel Buttons */
.testimonial-prev,
.testimonial-next {
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Dot Indicators */
.testimonial-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: #b89456;
  width: 24px;
}

/* Modal Animation */
.modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide Modal Scrollbar */
.modal-content {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Service Card Hover */
.service-card:hover {
  box-shadow: 0 20px 60px rgba(184, 148, 86, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #b89456;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9d7a3e;
}

/* Smooth Scroll */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background: #b89456;
  color: white;
}

::-moz-selection {
  background: #b89456;
  color: white;
}

/* Focus States */
a:focus,
button:focus {
  outline: 2px solid #b89456;
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeIn 0.5s ease-in;
}

/* Responsive Typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

/* Utility Classes */
.learn-more-link {
  font-size: 15px;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.learn-more-link:hover {
  transform: translateX(3px);
}
