/* ====================================
   SELIMIT — Real Estate Website CSS
   Blue & Green Theme | Mobile First
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --blue-900: #0a1628;
  --blue-800: #0d2040;
  --blue-700: #0f3460;
  --blue-600: #1565c0;
  --blue-500: #1976d2;
  --blue-400: #42a5f5;
  --blue-100: #e3f2fd;

  --green-600: #00897b;
  --green-500: #00acc1;
  --green-400: #26c6da;
  --green-300: #4dd0e1;
  --green-neon: #00e5ff;

  --teal-grad: linear-gradient(135deg, #0f3460, #00897b);
  --hero-grad: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --card-grad: linear-gradient(145deg, #ffffff 0%, #ffffff 100%);

  --white: #ffffff;
  --off-white: #ffffff;
  --gray-100: #fbfcfd;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #374151;
  --gray-800: #1e293b;

  --shadow-sm: 0 2px 8px rgba(15, 52, 96, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 52, 96, 0.12);
  --shadow-lg: 0 8px 40px rgba(15, 52, 96, 0.18);
  --shadow-xl: 0 20px 60px rgba(15, 52, 96, 0.24);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98); /* Solid white for desktop scrolled navbar */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap, .nav-cta-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-cta-wrap {
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.logo-img {
  height: 42px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  object-fit: contain;
}

.navbar.scrolled .logo-img {
  height: 38px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00e5ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 2;
}

.nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-link { 
  color: var(--gray-800); 
  text-shadow: none; 
}
.navbar.scrolled .logo-text { background: linear-gradient(135deg, var(--blue-600), var(--green-600)); -webkit-background-clip: text; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green-neon);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link:hover { color: var(--blue-600); }
.nav-link:hover::after { width: 100%; }

.nav-cta-call {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px; /* Improved touch target */
}

.nav-cta-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 137, 123, 0.6);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-grad);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(21, 101, 192, 0.15) 0%, transparent 50%),
    url('hero-bg-v3.png') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* 80% transparent hero overlay */
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 64px 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--green-neon);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 850px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-highlight {
  background: linear-gradient(135deg, #00e5ff, #00b0ff, #0091ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.dream-highlight {
  background: linear-gradient(135deg, #ffffff, #80d8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.today-highlight {
  background: linear-gradient(135deg, #c6ff00, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Search Bar */
.search-bar {
  background: rgba(255, 255, 255, 0.08); /* Transparent glass effect */
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  box-shadow: var(--shadow-xl);
  margin-bottom: 24px;
  max-width: 480px;
  animation: fadeInUp 0.8s ease 0.3s both;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 4px 4px 0;
}

.search-field label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1px;
  margin-bottom: 2px;
}

.search-field select {
  border: none;
  outline: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.1;
  padding: 0;
}

.search-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.2);
  margin: 0 12px;
}

.search-btn {
  background: #10b981;
  color: var(--white);
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 48px; /* Touch target enhancement */
}

.search-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item { text-align: left; }

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}



/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(15,52,96,0.08), rgba(0,137,123,0.1));
  color: var(--blue-700);
  border: 1px solid rgba(15, 52, 96, 0.15);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
  padding: 100px 0;
  background: var(--off-white);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.filter-tab.active {
  background: var(--teal-grad);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(15, 52, 96, 0.25);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Property Card */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.8);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.property-card.hidden {
  display: none;
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

@supports not (aspect-ratio: 16/10) {
  .card-image-wrap { height: 210px; }
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .card-img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-verified { background: rgba(0, 137, 123, 0.9); color: #fff; }
.badge-new { background: rgba(255,111,0,0.9); color: #fff; }
.badge-hot { background: rgba(21,101,192,0.9); color: #fff; }

.card-bhk {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.card-body { padding: 20px; }

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.card-location {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.card-meta span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 50px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-700);
}

.price-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-400);
}

.view-btn {
  background: linear-gradient(135deg, var(--blue-600), var(--green-600));
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.view-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(15, 52, 96, 0.3);
}

.view-all-wrap {
  text-align: center;
  margin-top: 52px;
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ===== LOCATIONS SECTION ===== */
.locations-section {
  padding: 100px 0;
  background: var(--white);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.location-card {
  position: relative;
  height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.location-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.location-card:hover .loc-overlay { opacity: 0.85; }
.location-card:hover .loc-content { transform: translateY(-6px); }

.location-salt-lake {
  background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=600&q=80') center/cover no-repeat;
}
.location-new-town {
  background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=600&q=80') center/cover no-repeat;
}
.location-rajarhat {
  background: url('https://images.unsplash.com/photo-1493809842364-78817add7ffb?w=600&q=80') center/cover no-repeat;
}

.loc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
  transition: var(--transition);
}

.loc-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  transition: var(--transition);
}

.loc-icon { font-size: 2rem; margin-bottom: 8px; }

.loc-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.loc-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 14px;
}

.loc-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-neon);
}

/* ===== WHY SECTION ===== */
.why-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, #0f3460 60%, #006064 100%);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
}

.why-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,137,123,0.08) 0%, transparent 70%);
}

.why-section .section-tag { border-color: rgba(0,229,255,0.25); color: var(--green-neon); background: rgba(0,229,255,0.08); }
.why-section .section-title { color: var(--white); }
.why-section .section-sub { color: rgba(255,255,255,0.65); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  text-align: center;
}

.why-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.why-icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,137,123,0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(0,229,255,0.2);
  transition: var(--transition);
}

.why-card:hover .why-icon-wrap {
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,137,123,0.25));
  transform: scale(1.08);
}

.why-icon { font-size: 2rem; }

.why-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.why-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 100px 0;
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-left: 4px solid transparent;
  border-image: var(--teal-grad) 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testi-stars { font-size: 1.2rem; color: #f59e0b; margin-bottom: 16px; letter-spacing: 2px; }

.testi-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author { display: flex; align-items: center; gap: 14px; }

.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.testi-name { font-weight: 700; color: var(--blue-900); font-size: 0.95rem; }
.testi-loc { font-size: 0.8rem; color: var(--gray-400); }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-elements { position: absolute; inset: 0; pointer-events: none; }

.cta-circle {
  position: absolute;
  border-radius: 50%;
}

.cta-circle.c1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(21,101,192,0.06) 0%, transparent 70%);
  top: -150px; left: -150px;
}

.cta-circle.c2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,137,123,0.07) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.cta-call {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(21,101,192,0.35);
}

.cta-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(21,101,192,0.5);
}

.cta-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.cta-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-900);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add a subtle glow/glare to footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #7f8fa4;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.social-link {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(21, 101, 192, 0.3);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--green-neon);
  transform: translateX(5px);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.75);
}

.contact-list li strong {
  color: var(--green-neon);
  opacity: 0.8;
}

.contact-list li a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.contact-list li a:hover {
  color: var(--green-neon) !important;
}

.footer-img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.float-call {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
}

.float-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
}

.float-btn:hover { transform: scale(1.15); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gray-100);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-200); }

.modal-icon { font-size: 3rem; text-align: center; margin-bottom: 12px; }

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-900);
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 28px;
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--gray-800);
  outline: none;
  transition: var(--transition);
  background: var(--off-white);
}

.modal-form input:focus,
.modal-form select:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.08);
}

.modal-submit {
  background: var(--teal-grad);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.modal-submit:hover { opacity: 0.92; transform: translateY(-1px); }

.modal-alt {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.modal-alt a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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



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

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .location-card:last-child {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  .nav-links.open {
    transform: translateX(0); /* Standardized to horizontal slide */
    opacity: 1;
    visibility: visible;
  }

  .navbar.menu-open .hamburger span {
    background: #fff;
  }

  /* Fixed visibility setting for mobile menu */
  .navbar {
    background: rgba(10, 22, 40, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 72px; /* Starts below the header */
    right: 0;
    left: auto;
    width: 50%; /* 50% width as requested */
    height: 70vh; /* 70% height as requested */
    background: rgba(10, 22, 40, 1);
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 0 16px; /* Rounded corner for a modern look */
    align-items: center;
    justify-content: center;
    transform: translateX(100%); /* Slides from the right */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }

  .navbar.scrolled .hamburger span {
    background: var(--blue-700);
  }

  .navbar.scrolled .hamburger {
    background: rgba(15, 52, 96, 0.08);
    border-color: rgba(15, 52, 96, 0.15);
  }

  .hero-content { 
    padding: 60px 20px 15px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
  }

  .hero-title { order: 1; margin-top: 40px; margin-bottom: 12px; }
  .hero-subtitle { order: 2; margin-bottom: 24px; }
  .search-bar { 
    order: 3; 
    margin-top: auto;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .hero-stats { 
    order: 4; 
    margin: 0 0 10px 0;
    padding: 12px 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-around;
    width: 100%;
    backdrop-filter: none;
  }

  .hero::before {
    background:
      radial-gradient(circle at 10% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 45%),
      radial-gradient(circle at 90% 10%, rgba(21, 101, 192, 0.08) 0%, transparent 45%),
      url('hero-bg-v3.png') 90% center/cover no-repeat;
  }

  .search-divider { display: none; }

  .search-field { 
    padding: 0; 
    width: 100%; 
    border: none;
  }
  
  .search-field label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .search-field select {
    font-size: 0.9rem;
    padding: 5px 0;
    width: 100%;
    color: white;
    font-weight: 600;
    background: transparent;
  }

  .search-btn { 
    grid-column: 1 / -1; 
    width: 100%; 
    justify-content: center; 
    padding: 12px; 
  }

  .hero-subtitle { 
    font-size: 0.78rem; /* Reduces size to fit sentences on single lines */
    letter-spacing: -0.2px; 
    margin-bottom: 20px;
  }



  .properties-section,
  .locations-section,
  .why-section,
  .testimonials-section,
  .cta-section { padding: 72px 0; }

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

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

  .location-card:last-child { grid-column: 1; }

  .location-card { height: 280px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 300px; justify-content: center; }

  .modal { padding: 36px 24px 28px; }
}

@media (max-width: 480px) {
  .hero-stats { 
    flex-direction: row; 
    justify-content: space-around; 
    gap: 0; 
    width: 100%;
    background: transparent;
    padding: 10px 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
  }
  .stat-divider { display: none; }
  .stat-item { 
    text-align: center; 
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .stat-num { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px; }
  .stat-label { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.7); line-height: 1.2; }

  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .logo-img { height: 36px; }
  .logo-text { font-size: 1.2rem; }

  .nav-cta-call { display: none; }

  .float-btn { width: 50px; height: 50px; }
}
