/* =========================
   GLOBAL RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* =========================
   NAVBAR (GLASS LUXURY)
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 26px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  background: transparent;
  transition: all 0.35s ease;
  z-index: 100;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.78);
  padding: 18px 80px;
}

.logo {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo span {
  color: #4fa3c7;
}

/* Nav Links */
.navbar nav a {
  position: relative;
  color: #ffffff;
  margin-left: 32px;
  text-decoration: none;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1px;
  padding-bottom: 6px;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #4fa3c7;
  transition: width 0.35s ease;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  height: 80vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("images/listing1.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

/* =========================
   HERO SECTION (SLIDER)
========================= */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

/* Dark overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Slide images */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Keep content above slides */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #ffffff;
  animation: fadeUp 1.2s ease forwards;
}
.hero-content h1,
.hero-content p,
.hero-content button {
  transition: opacity 0.5s ease;
}
/* =========================
   HERO TEXT ANIMATIONS
========================= */

.hero-content h1,
.hero-content p,
.hero-content button {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.hero-content .show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered timing for elegance */
.hero-content h1.show {
  transition-delay: 0.1s;
}

.hero-content p.show {
  transition-delay: 0.25s;
}

.hero-content button.show {
  transition-delay: 0.4s;
}


/* Hero Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 680px;
  color: #ffffff;
  animation: fadeUp 1.2s ease forwards;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Button */
.hero-content button {
  padding: 14px 38px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.hero-content button:hover {
  background: #4fa3c7;
  border-color: #4fa3c7;
}

/* =========================
   FEATURED LISTINGS
========================= */
.featured {
  padding: 130px 80px;
  background: #ffffff;
}

.featured h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 70px;
  letter-spacing: -0.3px;
}

/* Grid */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

/* Card */
.listing-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ededed;
  transition: all 0.45s ease;
}

.listing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.14);
}

/* Image */
.listing-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover img {
  transform: scale(1.06);
}

/* Info */
.listing-info {
  padding: 24px;
}

.listing-info h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.listing-info p {
  font-size: 14px;
  color: #888888;
}

.price {
  margin-top: 14px;
  font-weight: 500;
  font-size: 15px;
  color: #4fa3c7;
}

/* =========================
   RESPONSIVE (CLEAN)
========================= */
@media (max-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 46px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px 40px;
  }

  .hero {
    padding: 0 40px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    padding: 100px 40px;
  }
}
