/* --- Variables & Reset (Dark Mode) --- */
:root {
  --bg-body: #050505; /* Deepest Black */
  --bg-surface: #121212; /* Dark Gray for cards/nav */
  --bg-highlight: #1e1e1e; /* Lighter gray for hover */

  --primary: #d4af37; /* Gold */
  --primary-hover: #b59226;

  --text-main: #f0f0f0; /* Almost white */
  --text-muted: #a0a0a0; /* Grey text */

  --accent: #d4af37;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
  transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* --- Reusable Components --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 5rem 0;
}
.text-gold {
  color: var(--accent);
}
.bg-card-dark {
  background-color: var(--bg-surface);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), #b8860b);
  color: #000;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.5);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.center-btn {
  text-align: center;
  margin-top: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-subtitle {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.6s ease;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease;
}
.header-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  animation: expandWidth 0.8s ease;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0) 100%
  );
}

.navbar.scrolled {
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
  color: var(--accent);
}

.nav-logo i {
  color: var(--accent);
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:not(.btn-gold):hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:not(.btn-gold):hover,
.nav-link.active {
  color: var(--accent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.3),
    rgba(5, 5, 5, 0.9)
  );
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 900px;
  padding: 0 1rem;
  margin-top: 50px;
  animation: fadeInUp 1s ease;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: fadeIn 1.2s ease;
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: slideInLeft 1s ease;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease;
}

/* Search Bar */
.search-bar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  max-width: 600px;
  margin: 0 auto 4rem;
  transition: var(--transition);
}

.search-bar:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.search-input i {
  color: var(--accent);
  margin-right: 0.8rem;
  animation: pulse 2s infinite;
}

.search-input input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text-main);
  font-family: "Manrope";
  font-size: 1rem;
}
.search-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  animation: fadeInUp 1.8s ease;
}

.stat-item {
  transition: var(--transition);
  cursor: pointer;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Cinzel";
}
.stat-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll Mouse */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  transition: var(--transition);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-down:hover {
  opacity: 1;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-main);
  border-radius: 20px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--accent);
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* --- Property Cards --- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Manrope";
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

.filter-btn:hover::before {
  width: 200px;
  height: 200px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(212, 175, 55, 0.5);
}

.card-image-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.card-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.4s;
}

.property-card:hover .card-image-wrapper::after {
  opacity: 1;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.9;
}

.property-card:hover .card-image-wrapper img {
  transform: scale(1.15) rotate(2deg);
  opacity: 1;
}

.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.badge-status {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideInLeft 0.5s ease;
}

.badge-featured {
  background: var(--accent);
  color: #000;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideInLeft 0.7s ease;
}

.card-fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.card-fav-btn:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.2) rotate(10deg);
}

.card-fav-btn.active {
  background: var(--accent);
  color: #000;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.25);
  }
}

.card-price {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bg-surface);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  font-family: "Cinzel";
  font-size: 1.2rem;
  font-weight: 700;
  border-top-right-radius: 8px;
  z-index: 2;
  transition: var(--transition);
}

.property-card:hover .card-price {
  background: var(--accent);
  color: #000;
}

.card-price span {
  font-size: 0.8rem;
  font-family: "Manrope";
  font-weight: 400;
  color: var(--text-muted);
}

.card-content {
  padding: 1.5rem;
}

.card-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.property-card:hover .card-location {
  color: var(--accent);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.property-card:hover .card-title {
  color: var(--accent);
}

.card-features {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card-features span {
  transition: var(--transition);
}

.card-features span:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.card-features i {
  color: var(--accent);
  margin-right: 0.3rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.agent-mini:hover {
  color: var(--accent);
}

.agent-mini img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.agent-mini:hover img {
  transform: scale(1.2);
  border-color: var(--primary-hover);
}

.btn-link {
  color: var(--text-main);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--accent);
  gap: 10px;
}

/* --- Calculator Section --- */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.calculator-wrapper:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calc-summary {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.calc-summary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

.summary-item .label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.summary-item .main-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Cinzel";
  animation: countUp 0.5s ease;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.calc-form .form-group {
  margin-bottom: 1.5rem;
}

.calc-form label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.9rem;
}

.input-with-icon input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-main);
  font-family: "Manrope";
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.input-with-icon input:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

select {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: "Manrope";
  transition: var(--transition);
  cursor: pointer;
}

select:focus {
  border-color: var(--accent);
  outline: none;
}

option {
  background: var(--bg-surface);
}

input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
}

/* --- Testimonials --- */
.testimonial-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

.quote-icon {
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.2);
  position: absolute;
  top: 2rem;
  left: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.testimonial-text {
  font-size: 1.2rem;
  font-family: "Manrope";
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.testimonial-card:hover .testimonial-author img {
  transform: scale(1.1);
  border-width: 3px;
}

.testimonial-author h4 {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 0;
  position: relative;
  background: linear-gradient(
      135deg,
      rgba(5, 5, 5, 0.9) 0%,
      rgba(20, 20, 20, 0.85) 100%
    ),
    url("/images/CalltoAction.jpg") center/cover fixed;
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  z-index: 0;
}

.cta-box {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

.cta-box h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--accent);
  color: #000;
  padding: 1rem 2.5rem;
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-white-outline {
  border: 2px solid var(--text-main);
  color: var(--text-main);
  padding: 1rem 2.5rem;
  background: transparent;
  font-weight: 600;
}

.btn-white-outline:hover {
  background: var(--text-main);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

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

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

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
}

.info-item:hover {
  transform: translateX(10px);
}

.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  flex-shrink: 0;
}

.info-item:hover .icon-box {
  background: var(--accent);
  color: #000;
  transform: rotate(360deg);
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  height: fit-content;
}

.contact-form:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-main);
  font-family: "Manrope";
  transition: var(--transition);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-muted);
}

.social-links a:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-5px) rotate(360deg);
}

.footer-links h4 {
  color: var(--text-main);
  font-family: "Cinzel";
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.8rem;
  flex: 1;
  color: var(--text-main);
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  color: #000;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Loader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-logo {
  color: var(--accent);
  font-family: "Cinzel";
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

.loader-bar {
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  animation: load 1.5s ease-in-out forwards;
}

@keyframes load {
  100% {
    width: 100%;
  }
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* AOS Animation Helper Classes */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .calculator-wrapper,
  .contact-wrapper,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: left 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .search-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
  }

  .search-input {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    border-radius: 4px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .card-image-wrapper {
    height: 200px;
  }

  .calculator-wrapper,
  .contact-form {
    padding: 1.5rem;
  }
}
/* --- Enhanced Hero Section --- */
.hero {
  /* Use dvh (dynamic viewport height) to fix mobile address bar jumps */
  min-height: 100dvh; 
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 1rem 4rem; /* Add padding to prevent content hitting edges */
}

/* Make the gold text shine */
.hero-title .text-gold {
  color: var(--accent);
  background: linear-gradient(135deg, #fbf5b7 0%, #d4af37 50%, #aa8c2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); /* Fluid font size */
  margin-bottom: 2.5rem;
  color: rgba(240, 240, 240, 0.9);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Better readability over images */
}
/* --- Premium Glass Search Bar --- */
.search-bar {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: 50px; /* Fully rounded pill shape */
  display: flex;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 3rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-bar:hover, 
.search-bar:focus-within {
  border-color: var(--accent);
  background: rgba(20, 20, 20, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}

.search-input input {
  font-size: 1.05rem;
  padding: 0.5rem;
}

.search-bar .btn-primary {
  border-radius: 40px;
  padding: 0.8rem 2.5rem;
  box-shadow: none; /* Clean look inside the bar */
}
/* --- Responsive Hero Improvements --- */

@media (max-width: 768px) {
  .hero-content {
    margin-top: 0;
    width: 100%;
  }

  .hero-label {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-title {
    /* Fluid typography that scales between 2.2rem and 3rem */
    font-size: clamp(2.2rem, 8vw, 3.5rem); 
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  /* Hide the line break on mobile so text flows naturally */
  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  /* Improved Mobile Search Bar */
  .search-bar {
    flex-direction: column; /* Stack logically */
    background: rgba(10, 10, 10, 0.8); /* Darker bg for contrast */
    border-radius: 20px; /* Less rounded corners when stacked */
    padding: 0.5rem;
    gap: 0.5rem;
    width: 90%; /* Don't touch edges */
  }

  .search-input {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
  }
  
  .search-bar .btn-primary {
    width: 100%; /* Full width button */
    border-radius: 12px;
    padding: 1rem;
  }

  /* Grid Layout for Stats on Mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .stat-number {
    font-size: 1.4rem; /* Smaller numbers */
    margin-bottom: 0.2rem;
  }

  .stat-text {
    font-size: 0.6rem; /* Smaller labels */
    opacity: 0.8;
    line-height: 1.2;
  }

  /* Hide dividers on mobile grid */
  .stat-divider {
    display: none;
  }
}

/* Very Small Screens */
@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr; /* Stack stats on tiny screens */
    gap: 1.5rem;
  }
} 
/* --- Premium Mobile Navigation (Burger Menu) --- */

@media (max-width: 768px) {
  /* 1. The Burger Icon Container */
  .nav-toggle {
    display: flex;
    z-index: 1002; /* Ensure it sits above the menu overlay */
  }

  /* 2. Full Screen Immersive Overlay */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: rgba(10, 10, 10, 0.95); /* Deep dark background */
    backdrop-filter: blur(20px); /* Strong glass effect */
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center;
    padding: 0;
    gap: 2rem;
    
    /* Animation Initial State */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95); /* Slight zoom out effect */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
  }

  /* 3. Active State (When Open) */
  .nav-menu.active {
    left: 0; /* Reset position */
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  /* 4. Staggered Animation for Links */
  /* When menu is active, links slide up one by one */
  .nav-menu.active .nav-item {
    animation: fadeInUpMenu 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* Delays for each item to create the "waterfall" effect */
  .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.4s; }
  .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.5s; }
  .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.6s; }

  /* 5. Menu Link Styling */
  .nav-link {
    font-family: "Cinzel", serif; /* Use your premium font */
    font-size: 2rem; /* Much larger text */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
  }
  
  /* Remove the old underline effect for mobile */
  .nav-link::after {
    display: none;
  }

  /* New Hover/Active Effect */
  .nav-link:hover,
  .nav-link.active {
    color: var(--accent);
    transform: scale(1.1); /* Gentle pulse */
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }

  /* Special style for the CTA button in mobile menu */
  .nav-item.cta-item {
    margin-top: 2rem;
  }
  
  .nav-item.cta-item .btn-gold {
    font-family: "Manrope", sans-serif; /* Keep button font legible */
    font-size: 1.1rem;
    padding: 1rem 3rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  }

  /* 6. Decoration: Subtle background elements */
  .nav-menu::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
  }
  
  .nav-menu::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: var(--primary-hover);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
  }
}

/* Keyframe for the staggered entry */
@keyframes fadeInUpMenu {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}