@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* Variables Declarations */
:root {
  --primary-color: #33cc33;
  --secondary-color: #3e4095;
  --accent-color: #ff6600;
  --dark-text: #1a1a1a;
  --light-bg: #f7f9fc;
  --white: #ffffff;
  --light-gray: #f0f2f5;
  --border-color: #e5e7eb;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Montserrat", sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

input,
textarea,
select,
button {
  font-family: inherit;
  outline: none;
}

/* General Global Settings for items */

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #28b428;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: #2f317a;
}

.text-center {
  text-align: center;
}

/* Header Section */

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  padding: 5px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo img {
  width: 150px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  z-index: 1;
  border-radius: 8px;
}

/* Hover effect */
.nav-menu a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Active page */
/* .nav-menu a.active {
  background-color: var(--primary-color);
  color: white;
} */

.nav-menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  border-radius: 8px;
  transform: scale(0);
  transition: 0.3s ease;
  z-index: -1;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  transform: scale(1);
}

/* .nav-menu a:hover,
.nav-menu a.active {
  color: white;
} */

/* Mobile Menu Hamburger Section */

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

/* Hero Section Styles */

.hero {
  min-height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("/images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero-pages {
  min-height: 60vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("/images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3.7rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 30px;
}

/* PROPERTY CARD STYLING */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);

  /* Added */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
}

.property-image {
  position: relative;
  overflow: hidden;
}

.property-image img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}

.property-content {
  padding: 22px;

  /* Added */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-price {
  color: var(--accent-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.property-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.property-location {
  color: #666;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.property-features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95rem;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Added */
.property-description {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}

/* Added - This aligns all buttons */
.property-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* WHY CHOOSE US */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 75px;
  height: 75px;
  margin: auto;
  margin-bottom: 20px;
  background: rgba(51, 204, 51, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--secondary-color);
}

/* TESTIMONIALS STYLING */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  margin-bottom: 20px;
  color: #555;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.client-info h4 {
  color: var(--secondary-color);
}

/* CTA BANNER */

.cta-banner {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--white);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-banner p {
  max-width: 700px;
  margin: auto;
  margin-bottom: 30px;
}

/* FOOTER */

.footer {
  background: #111827;
  color: #d1d5db;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px 0;
  font-size: 0.95rem;
}

/* ABOUT US PAGE */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.about-content p {
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* TEAM SECTION  */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  height: 320px;
  object-fit: cover;
}

.team-content {
  padding: 22px;
}

.team-content h3 {
  color: var(--secondary-color);
}

.team-content span {
  color: var(--primary-color);
  font-size: 0.95rem;
}

/* CONTACT US PAGE STYLING */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--light-bg);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-info {
  display: grid;
  gap: 25px;
}

.contact-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(62, 64, 149, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.map-container {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ANIMATION STYLING */

.fade-up {
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE STYLING */

@media (max-width: 992px) {
  .about-grid,
  .contact-grid,
  .properties-layout {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding-top: 40px;
    transition: var(--transition);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2,
  .about-content h2,
  .cta-banner h2 {
    font-size: 2rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .sort-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .contact-form {
    padding: 25px;
  }

  .property-features {
    flex-direction: column;
    gap: 10px;
  }
}
