:root {
  --gold: #e5e4e2;
  --dark-gold: #c0c0c0;
  --mehroon: #0a0a0a;
  --dark-green: #000000;
  --black-green: #000000;
  --white: #f0f0f0;
  --light-gray: #aaa;
  --dark-gray: #000000;
  --gradient: linear-gradient(135deg, #0a0a0a, #000000);
  --card-background: rgba(0, 0, 0, 0.95);
  --card-border: 1px solid rgba(229, 228, 226, 0.4);
  --gradient2: linear-gradient(90deg, #00bcd4, #009688);
  --transition: all 0.3s ease;
  --border-radius: 10px;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  --card-hover-border: rgba(229, 228, 226, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-image: url("../bg.png");
  background-size: cover;
  /* background-position: center; */
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--dark-gray);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  position: relative;
}

a {
  list-style: none;
  text-decoration: none;
}

/* Fix for mobile viewport */
@media (max-width: 768px) {
  body {
    width: 100vw;
    overflow-x: hidden;
  }

  section {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
  }

  .container,
  .container-fluid {
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    max-width: 100%;
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

header.sticky {
  background: rgba(255, 255, 255, 0.1); /* translucent layer */
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.6),
    rgba(80, 80, 80, 0.4)
  ); /* subtle gradient with transparency */
  padding: 0.9375rem 5%;
  box-shadow: 0 5px 25px rgba(212, 182, 95, 0.2);
  border-bottom: 1px solid rgba(212, 182, 95, 0.7);
  backdrop-filter: blur(12px) saturate(180%); /* core glass effect */
  -webkit-backdrop-filter: blur(12px) saturate(180%); /* Safari support */
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 3.75rem;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.875rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gold);
  left: 0;
  bottom: 0;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-icon,
.phone-btn {
  color: var(--white);
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-icon:hover,
.phone-btn:hover {
  color: var(--gold);
}

.phone-btn {
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.5rem 0.9375rem;
  border-radius: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

.menu-toggle i {
  pointer-events: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.hero-content {
  max-width: 50rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: 1.875rem;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-gray);
  padding: 0.75rem 1.875rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.cta-btn:hover {
  background: var(--dark-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.cta-btn:hover::before {
  left: 100%;
}

/* Section Styling */
section {
  padding: 5rem 5%;
  width: 100%;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 3.125rem;
  position: relative;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9375rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 5rem;
  height: 3px;
  background: var(--gold);
  bottom: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Featured Properties */
.featured-properties {
  background: linear-gradient(to right, var(--dark-green), var(--black-green));
  color: var(--white);
  border: 1px solid rgba(212, 182, 95, 0.7);
}

.featured-properties .section-title h2 {
  color: var(--white);
}

.properties-slider {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0;
  width: 100%;
}

.properties-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.property-card {
  flex: 0 0 25%;
  padding: 0 0.9375rem;
  transition: var(--transition);
  width: 100%;
}

.property-card:hover {
  transform: translateY(-0.625rem);
}

.property-img {
  height: 15.625rem;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.9375rem;
  position: relative;
  border: 1px solid rgba(212, 182, 95, 0.7);
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.property-card:hover .property-img img {
  transform: scale(1.1);
}

.property-info {
  padding: 0.625rem 0;
}

.property-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.3125rem;
}

.property-info p {
  font-size: 0.875rem;
  color: var(--light-gray);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.9375rem;
  margin-top: 1.875rem;
}

.slider-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--gold);
  color: var(--dark-gray);
  transform: scale(1.1);
}

/* Our Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.875rem;
  width: 100%;
}

.project-card {
  background: var(--card-background);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  border: var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 182, 95, 0.7);
  width: 100%;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(229, 228, 226, 0.1) 0%,
    rgba(192, 192, 192, 0.05) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}

.project-img {
  height: 12.5rem;
  overflow: hidden;
  position: relative;
}

.project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 10, 10, 0.3) 100%
  );
  z-index: 1;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.project-info {
  padding: 1.5625rem;
  position: relative;
  z-index: 2;
}

.project-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--light-gray);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  background: none;
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.project-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--gold);
  bottom: -0.25rem;
  left: 0;
  transition: width 0.3s ease;
}

.project-btn:hover {
  color: var(--dark-gold);
  transform: translateX(0.3125rem);
}

.project-btn:hover::after {
  width: 100%;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.125rem;
}

.page-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-background);
  border: var(--card-border);
  cursor: pointer;
  transition: var(--transition);
  color: var(--white);
  font-weight: 500;
  font-size: 0.875rem;
}

.page-btn:hover {
  background: var(--gold);
  color: var(--dark-green);
  border-color: var(--gold);
  transform: translateY(-0.125rem);
  box-shadow: 0 5px 15px rgba(229, 228, 226, 0.3);
}

.page-btn.active {
  background: var(--gold);
  color: var(--dark-green);
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(229, 228, 226, 0.4);
}

/* Why Choose Us */
.why-choose {
  background: linear-gradient(
    to right,
    var(--black-green),
    var(--mehroon),
    var(--black-green)
  );
  color: var(--white);
}

.why-choose .section-title h2 {
  color: var(--white);
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.875rem;
}

.benefit-box {
  text-align: center;
  padding: 1.875rem 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 182, 95, 0.7);
}

.benefit-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.benefit-box:hover::before {
  left: 100%;
}

.benefit-box:hover {
  transform: translateY(-0.625rem);
  background: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
  width: 4.375rem;
  height: 4.375rem;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--dark-gray);
  transition: transform 0.3s ease;
}

.benefit-box:hover .benefit-icon {
  transform: rotateY(180deg);
}

.benefit-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9375rem;
}

.benefit-box p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.location-card {
  position: relative;
  height: 15.625rem;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(212, 182, 95, 0.7);
}

.location-card:hover {
  transform: scale(1.05);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.location-card:hover img {
  transform: scale(1.1);
}

.location-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: var(--white);
}

.location-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.location-btn {
  display: inline-block;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.location-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gold);
  bottom: -0.125rem;
  left: 0;
  transition: width 0.3s ease;
}

.location-btn:hover::after {
  width: 100%;
}

/* Agents Section */
.agents {
  padding: 6.25rem 0;
  background: var(--gradient);
}

.agents h2 {
  color: var(--white);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 3.125rem;
}

.agent-card {
  background: var(--card-background);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(212, 182, 95, 0.7);
  border-radius: var(--border-radius);
  padding: 1.875rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.agent-card:hover::before {
  transform: scaleX(1);
}

.agent-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}

.agent-img {
  width: 9.375rem;
  height: 9.375rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 5px solid var(--light-gray);
  transition: transform 0.3s ease;
}

.agent-card:hover .agent-img {
  transform: scale(1.05);
}

.agent-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agent-card:hover .agent-img img {
  transform: scale(1.1);
}

.agent-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3125rem;
  color: var(--white);
}

.agent-role {
  color: var(--gold);
  margin-bottom: 0.3125rem;
  font-weight: 500;
}

.agent-company {
  background: var(--gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.9375rem;
  font-weight: 600;
}

.agent-desc {
  color: #aaa;
}

.agent-social {
  display: flex;
  justify-content: center;
  gap: 0.9375rem;
  margin-top: 1.25rem;
}

.agent-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--light-gray);
  color: inherit;
  transition: var(--transition);
  font-size: 1.125rem;
  text-decoration: none;
}

.agent-social a i {
  color: inherit;
}

.agent-social a:hover {
  transform: translateY(-0.1875rem) scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.agent-social a[href*="linkedin"] i {
  color: #0077b5;
}
.agent-social a[href*="twitter"] i {
  color: #1da1f2;
}
.agent-social a[href*="instagram"] i {
  color: #e1306c;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(to right, var(--dark-green), var(--black-green));
  color: var(--white);
}

.testimonials .section-title h2 {
  color: var(--white);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 33.33%;
  padding: 0 0.9375rem;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-0.3125rem);
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.875rem;
  border-radius: 8px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 182, 95, 0.7);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 0.625rem;
  left: 1.25rem;
  font-size: 3.75rem;
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.9375rem;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .author-img {
  transform: scale(1.1);
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3125rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--light-gray);
}

.stars {
  color: var(--gold);
  margin-top: 0.3125rem;
}

/* Developers Section */
#partner {
  padding: 3.75rem 1.25rem;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden; /* important for slider */
}

#partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

#partner > * {
  position: relative;
  z-index: 1;
}

/* Slider wrapper */
.developers-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Moving track */
.developers-track {
  display: flex;
  gap: 1.875rem;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

/* Each logo card */
.developer-logo {
  flex: 0 0 20%; /* 4 at a time on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 150px;
}

.developer-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.developer-logo img {
  max-width: 80%;
  max-height: 100px; /* reduce logo height */
  object-fit: contain;
  border-radius: var(--border-radius);
}

/* Responsive widths */
/* Tablet */
@media (max-width: 1024px) {
  .developer-logo {
    flex: 0 0 33.33%; /* 3 logos at a time */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .developers-track {
    gap: 0;
  }
  .developer-logo {
    flex: 0 0 100%; /* only ONE logo takes full width */
    height: 180px;
  }

  .developer-logo img {
    max-width: 80%;
    max-height: 150px;
    object-fit: contain;
  }
}

/* About */
.about {
  background: linear-gradient(to right, var(--dark-green), var(--black-green));
  color: var(--white);
}

.about .section-title h2 {
  color: var(--white);
}

.about-content {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.about-btn {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  padding: 0.625rem 1.5625rem;
  border: 1px solid var(--gold);
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}

.about-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transition: 0.5s;
  z-index: -1;
}

.about-btn:hover {
  color: var(--dark-gray);
}

.about-btn:hover::before {
  left: 0;
}

/* Contact */
/* --- Contact Section Base --- */
#contact {
  padding: 3rem 1.25rem;
  color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* --- Contact Form --- */
.contact-form {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(94, 231, 223, 0.4);
  box-shadow: 0 0 20px rgba(94, 231, 223, 0.3);
  color: var(--white);
  transition: var(--transition);
  padding: 1.875rem;
  border-radius: var(--border-radius);
}

.contact-form:hover {
  box-shadow: 0 0 30px rgba(94, 231, 223, 0.5);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: var(--transition);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
  transform: scale(1.02);
}

select option {
  background: var(--black-green);
  color: var(--gold);
}

textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
}

/* --- Contact Info --- */
.contact-info {
  padding: 1.875rem;
  background: linear-gradient(to right, var(--dark-green), var(--black-green));
  color: var(--white);
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(94, 231, 223, 0.3);
}

.contact-info:hover {
  transform: translateY(-0.3125rem);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

/* --- Contact Details --- */
.contact-details {
  margin-bottom: 1.875rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(0.3125rem);
}

.contact-item i {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gold);
  color: var(--dark-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.9375rem;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.1);
}

/* --- Map --- */
.map-container {
  height: 18.75rem;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.map-container:hover {
  transform: scale(1.02);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Buttons --- */
.cta-btn {
  background: var(--gold);
  color: #000;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #fff;
  color: var(--dark-green);
  transform: scale(1.03);
}

/* Tablet View (2 columns stack to one) */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }

  .contact-info {
    order: -1; /* show info above form if preferred */
  }
}

/* Mobile View (smaller paddings and font sizes) */
@media (max-width: 600px) {
  #contact {
    padding: 2rem 1rem;
  }

  .contact-form,
  .contact-info {
    padding: 1.25rem;
  }

  .contact-info h3 {
    font-size: 1.25rem;
  }

  .contact-item i {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .form-control {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
  }

  .cta-btn {
    font-size: 0.95rem;
    padding: 0.7rem;
  }

  .map-container {
    height: 14rem;
  }
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  right: 1.875rem;
  bottom: 1.875rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.floating-btn {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.floating-btn:hover::before {
  transform: scale(1);
}

.whatsapp-btn {
  background: #25d366;
}

.call-btn {
  background: var(--gradient2);
}

.floating-btn:hover {
  transform: translateY(-0.3125rem) scale(1.1);
}

/* Footer */
/* ========================
   FOOTER BASE STYLING
======================== */
footer {
  background: linear-gradient(to right, var(--dark-green), var(--black-green));
  color: var(--white);
  padding: 4rem 5% 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-column img {
  display: block;
  margin-bottom: 1rem;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5625rem;
  color: var(--gold);
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
  bottom: -0.625rem;
  left: 0;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 5rem;
}

.footer-about p {
  line-height: 1.6;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--light-gray);
}

/* ========================
   SOCIAL ICONS
======================== */
.footer-social {
  display: flex;
  gap: 0.9375rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--dark-gray);
  transform: translateY(-0.3125rem);
}

/* ========================
   QUICK LINKS
======================== */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.footer-links li:hover {
  transform: translateX(0.3125rem);
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 0.3125rem;
}

/* ========================
   CONTACT INFO
======================== */
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.9375rem;
  transition: transform 0.3s ease;
}

.footer-contact li:hover {
  transform: translateX(0.3125rem);
}

.footer-contact i {
  width: 2.3rem;
  height: 2.3rem;
  background: var(--gold);
  color: var(--dark-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.9375rem;
  font-size: 1rem;
  margin-top: 0.3rem;
  transition: transform 0.3s ease;
}

.footer-contact li:hover i {
  transform: scale(1.1);
}

.footer-contact p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--light-gray);
}

/* ========================
   FOOTER BOTTOM
======================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--light-gray);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

/* ========================
   RESPONSIVE STYLING
======================== */

/* --- Tablet View --- */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
  }

  .footer-column h3::after {
    left: 6%;
    transform: translateX(-50%);
  }

  .footer-contact i {
    margin-right: 0.6rem;
  }
}

/* --- Mobile View --- */
@media (max-width: 600px) {
  footer {
    padding: 2.5rem 1.25rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-about p {
    font-size: 0.9rem;
  }

  .footer-social a {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .footer-column h3 {
    font-size: 1.1rem;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 0.9rem;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-contact i {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}


/* Search Box */
.search-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  border-radius: var(--border-radius);
  padding: 1.5625rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
  border-radius: 20px;
}

.search-box:hover {
  transform: translateY(-5px);
}

/* Floating Vertical Enquire Button */
.enquire-btn {
  position: fixed;
  top: 50%;
  right: 0.9375rem;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center right;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(212, 182, 95, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.enquire-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) rotate(-90deg) scale(1.05);
}

/* ===============================
   MODAL OVERLAY
================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease forwards;
}

/* ===============================
   MODAL BOX (CONTENT)
================================== */
.modal-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  margin: 1.8% auto;
  padding: 1.15rem 1.675rem;
  border-radius: 16px;
  width: 20.625rem;
  max-width: 90%;
  font-family: "Poppins", sans-serif;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: modalShow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===============================
   KEYFRAME ANIMATIONS
================================== */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes modalShow {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(5px);
  }
  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes modalHide {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
}

/* ===============================
   HEADER SECTION
================================== */
.modal-header {
  text-align: center;
  margin-bottom: 0.625rem;
  flex-direction: column;

}

.modal-header img.company-logo {
  width: 10rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.modal-header h2 {
  color: #fff;
  margin: 0.3125rem 0;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.modal-header p {
  color: #ccc;
  font-size: 0.75rem;
}

/* ===============================
   FORM FIELDS
================================== */
.modal-content label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.8125rem;
  color: #eee;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.8125rem;
  transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: var(--gold);
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.modal-content textarea {
  height: 4.375rem;
  resize: none;
}

/* ===============================
   CHECKBOX & AGREEMENT
================================== */
.agree-line {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  color: #ccc;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.agree-line input {
  transform: scale(1.05);
}

/* ===============================
   SUBMIT BUTTON (Animated)
================================== */
.submit-btn {
  background: linear-gradient(145deg, #00bfa5, #009688);
  color: white;
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 3px 10px rgba(0, 255, 204, 0.2);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* ===============================
   CLOSE BUTTON
================================== */
.close-btn {
  position: absolute;
  top: 0.625rem;
  right: 1.125rem;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.4s ease, color 0.3s ease;
}

.close-btn:hover {
  color: #ff5252;
  transform: rotate(180deg) scale(1.1);
}

/* Spinner inside button */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.agents .container > p {
  max-width: 48.75rem;
  margin: 0.5rem auto 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-align: justify;
  text-align-last: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .property-card {
    flex: 0 0 33.33%;
  }

  .testimonial-card {
    flex: 0 0 50%;
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 5.3125rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 4.375rem);
    background: var(--black-green);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3.125rem;
    transition: 0.5s;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .property-card {
    flex: 0 0 50%;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .floating-buttons {
    right: 0.9375rem;
    bottom: 0.9375rem;
  }

  .enquire-btn {
    right: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  /* Fix for mobile viewport issue */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }

  section,
  .container,
  .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero-content {
    padding: 0 5%;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .property-card {
    flex: 0 0 100%;
  }

  .agent-card {
    padding: 1.25rem;
  }

  .agent-img {
    width: 7.5rem;
    height: 7.5rem;
  }

  .floating-btn {
    width: 2.8125rem;
    height: 2.8125rem;
    font-size: 1.125rem;
  }

  .modal-content {
    width: 90%;
    padding: 0.9375rem 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Additional mobile fixes */
  .hero-content {
    padding: 1rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.875rem;
  }

  .cta-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .section-title h2 {
    font-size: 1.375rem;
  }

  .property-card,
  .project-card,
  .benefit-box,
  .location-card {
    margin-bottom: 1.25rem;
  }

  .contact-form,
  .contact-info {
    padding: 1rem;
  }

  .footer-content {
    gap: 1.875rem;
  }

  .footer-column {
    margin-bottom: 1.875rem;
  }

  /* Extra small screen fixes */
  .hero {
    padding: 0 1rem;
  }

  .hero-content {
    width: 100%;
  }

  .floating-buttons {
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
