* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "open sans", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background: #ffffff;
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
}

.whatsapp-widget i {
  font-size: 30px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: #ffffff !important;
  padding: 0.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
  background: transparent;
}

.header.scrolled .navbar {
  background: transparent;
}

/* Logo Styling */
.navbar-brand.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1);
}

.header.scrolled .logo-img {
  filter: none;
}

/* Navbar Links */
.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.header.scrolled .navbar-nav .nav-link {
  color: #333;
}

.navbar-nav .nav-link:hover {
  color: #d1d5db;
}

.header.scrolled .navbar-nav .nav-link:hover {
  color: #011e6e;
}

.navbar-nav .nav-link.active {
  color: #ffffff;
  font-weight: 500;
}

.header.scrolled .navbar-nav .nav-link.active {
  color: #333;
  border-radius: 2px solid white;
}

.navbar-nav .nav-link.active:hover {
  color: #d1d5db;
}

.header.scrolled .navbar-nav .nav-link.active:hover {
  color: #011e6e;
}

/* Sliding Underline Effect */
.navbar-nav .nav-item::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 15px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.header.scrolled .navbar-nav .nav-item::after {
  background: #011e6e;
}

.navbar-nav .nav-item:hover::after {
  width: calc(100% - 30px);
}

.navbar-nav .nav-link.active::after {
  width: calc(100% - 30px);
}

.join-realtors {
  background: #022f96;
  color: #ffffff;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.3s ease;
}

.header.scrolled .join-realtors {
  background: #fff;
  color: #022f96;
  border: 1px solid #022f96;
}

.join-realtors:hover {
  background: #011e6e;
  transform: scale(1.05);
}

.header.scrolled .join-realtors:hover {
  background: #011e6e;
  color: #fff;
  border-color: #011e6e;
}

/* Hamburger Menu */
.navbar-toggler {
  border: none;
  padding: 0;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.header.scrolled .hamburger span {
  background: #022f96;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: #e6f0fa;
  width: 100%;
  overflow: hidden;
}

.carousel {
  height: 100%;
  width: 100%;
}

.carousel-inner {
  height: 100%;
  width: 100%;
}

.carousel-item {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
  transition: none;
}

.carousel-item:not(.active) {
  opacity: 0;
  transform: scale(1.2);
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 0 15px;
  width: 100%;
}

.carousel-caption h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .subheading {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-buttons .btn-primary {
  background: #022f96;
  border-color: #022f96;
}

.hero-buttons .btn-primary:hover {
  background: #011e6e;
  border-color: #011e6e;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(2, 47, 150, 0.4);
}

.hero-buttons .btn-outline-primary {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-buttons .btn-outline-primary:hover {
  background: #ffffff;
  color: #022f96;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.hero .carousel-indicators {
  bottom: 20px;
  z-index: 3;
}

.hero .carousel-indicators button {
  width: 12px;
  height: 4px;
  background-color: #ffffff;
  opacity: 0.5;
  border: none;
  margin: 0 5px;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.hero .carousel-indicators .active {
  opacity: 1;
  background-color: #022f96;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  display: none;
}

/* Welcome Section */
.welcome-section {
  background: #f7f7f7;
  padding: 80px 0;
}

.welcome-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #022f96;
  margin-bottom: 20px;
}

.welcome-section p {
  font-size: 16px;
  color: #666;
}

.welcome-section img {
  border-radius: 15px;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

.mini-stats .stat {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.mini-stats .stat strong {
  color: #022f96;
  display: block;
  font-size: 20px;
}

/* Services Section */
.services-section {
  background: #f7f7f7;
  padding: 80px 0;
}

.services-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #022f96;
  margin-bottom: 20px;
}

.services-section .lead {
  font-size: 16px;
  color: #666;
}

.service-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 30px;
  color: #022f96;
  margin-bottom: 15px;
}

.service-card h5 {
  font-size: 20px;
  font-weight: 600;
  color: #022f96;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: #666;
}

/* Featured Properties Section */
.featured-properties-section {
  background: #fff;
  padding: 80px 0;
}

.featured-properties-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

.featured-properties-description {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
}

.btn-see-more {
  background: #e6f0fa;
  color: #022f96;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-see-more:hover {
  background: #022f96;
  color: #fff;
}

.property-card-new {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
}

.property-card-new:hover {
  transform: translateY(-10px);
}

.property-image-wrapper {
  position: relative;
}

.property-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.property-status {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #022f96;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 500;
}

.property-status.for-rent {
  background: #ca0909;
}

.property-info {
  padding: 1.5rem;
  text-align: left;
}

.property-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.property-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: #022f96;
  margin-bottom: 0.5rem;
}

.property-location {
  font-size: 0.9rem;
  color: #666;
}

.property-location i {
  color: red;
}

/* Testimonials Section */
.testimonials-section {
  background: #ffffff;
  padding: 80px 0;
}

.testimonials-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #022f96;
  margin-bottom: 20px;
}

.view-all-clients {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #022f96;
  text-decoration: none;
  transition: color 0.3s ease;
}

.view-all-clients:hover {
  color: #011e6e;
}

.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 300px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.client-logo img:hover {
  filter: grayscale(100%);
}

/* How It Works Section */
.how-it-works-section {
  background: #ffffff;
  padding: 80px 0;
}

.how-it-works-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #022f96;
  margin-bottom: 20px;
}

.step-card {
  background: #e6f0fa;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 100%;
}

.step-icon {
  font-size: 30px;
  color: #ffffff;
  background: #022f96;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.step-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: #022f96;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: #666;
}

/* FAQs Section */
.faqs-section {
  background: #ffffff;
  padding: 80px 0;
}

.faqs-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #022f96;
  margin-bottom: 20px;
}

.faqs-section .accordion-button::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  background: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}

.faqs-section .accordion-button:not(.collapsed)::after {
  content: "−";
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: #022f96;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 20px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: #011e6e;
  color: #ffffff;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  background: #ffffff;
  color: #333;
  font-size: 14px;
  padding: 20px;
  border-top: 1px solid #e6e6e6;
}

/* CTA Section */
.cta-section {
  background: #e6f0fa;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #022f96;
  margin-bottom: 20px;
}

.cta-section .lead {
  font-size: 16px;
  color: #666;
}

/* Newsletter Section */
.newsletter-section {
  background: #022f96;
  color: #ffffff;
  padding: 80px 0;
}

.newsletter-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.newsletter-section p {
  font-size: 14px;
  color: #d1d5db;
}

.newsletter-section .form-control {
  padding: 12px 20px;
  font-size: 14px;
  border: none;
}

.newsletter-section .btn-primary {
  padding: 12px 30px;
}

/* Footer */
.footer {
  background: #022f96;
  color: #ffffff;
  padding: 100px 0 50px 0;
}

.footer h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer p,
.footer ul li a {
  font-size: 14px;
  color: #d1d5db;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #ffffff;
}

.social-icons a {
  color: #ffffff;
  font-size: 16px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #d1d5db;
}

/* Responsive Adjustments */
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .navbar-collapse {
    background: #022f96;
    padding: 10px;
    border-radius: 5px;
  }

  .navbar-nav .nav-link {
    color: #ffffff;
    text-align: center;
    padding: 10px;
  }

  .header.scrolled .navbar-nav .nav-link {
    color: #fff;
  }

  .navbar-nav .nav-item::after {
    display: none;
  }

  .join-realtors {
    margin: 10px auto;
    display: block;
    width: fit-content;
  }

  .logo-img {
    height: 30px;
  }

  .whatsapp-widget {
    width: 50px;
    height: 50px;
  }

  .whatsapp-widget i {
    font-size: 24px;
  }

  .hero {
    height: 70vh;
    width: 100%;
    overflow: hidden;
  }

  .carousel,
  .carousel-inner,
  .carousel-item {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .carousel-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .carousel-caption {
    padding: 0 10px;
  }

  .carousel-caption h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .carousel-caption h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .carousel-caption .subheading {
    font-size: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 8px 20px;
    font-size: 14px;
    width: 100%;
  }

  .hero .carousel-indicators button {
    width: 8px;
    height: 3px;
  }

  .welcome-section,
  .services-section,
  .featured-properties-section,
  .testimonials-section,
  .how-it-works-section,
  .faqs-section,
  .cta-section {
    padding: 50px 0;
  }

  .welcome-section h2,
  .services-section h2,
  .featured-properties-section h2,
  .testimonials-section h2,
  .how-it-works-section h2,
  .faqs-section h2,
  .cta-section h2 {
    font-size: 24px;
  }

  .welcome-section p,
  .services-section .lead,
  .cta-section .lead {
    font-size: 14px;
  }

  .welcome-section img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
  }

  .mini-stats .stat {
    font-size: 12px;
  }

  .mini-stats .stat strong {
    font-size: 16px;
  }

  .service-card {
    padding: 20px;
    max-width: 100%;
  }

  .service-icon {
    font-size: 24px;
  }

  .service-card h5 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 12px;
  }

  .featured-properties-title {
    font-size: 24px;
  }

  .featured-properties-description {
    font-size: 14px;
  }

  .property-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
  }

  .property-name {
    font-size: 1rem;
  }

  .property-price {
    font-size: 0.9rem;
  }

  .property-location {
    font-size: 0.8rem;
  }

  .client-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 200px;
  }

  .client-logo {
    height: 50px;
  }

  .client-logo img {
    max-width: 70%;
    max-height: 70%;
  }

  .step-card {
    padding: 15px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .step-card h5 {
    font-size: 16px;
  }

  .step-card p {
    font-size: 12px;
  }

  .accordion-button {
    font-size: 14px;
    padding: 12px 15px;
  }

  .accordion-body {
    font-size: 12px;
    padding: 15px;
  }

  .newsletter-section h3 {
    font-size: 20px;
  }

  .newsletter-section p {
    font-size: 12px;
  }

  .newsletter-section .form-control,
  .newsletter-section .btn-primary {
    padding: 10px 15px;
    font-size: 12px;
  }

  .footer {
    padding: 60px 0 30px 0;
  }

  .footer h5 {
    font-size: 16px;
  }

  .footer p,
  .footer ul li a {
    font-size: 12px;
  }

  .social-icons a {
    font-size: 14px;
    margin-right: 10px;
  }
}

@media (min-width: 721px) and (max-width: 767px) {
  .hero {
    height: 80vh;
  }

  .carousel-item img {
    width: 100%;
    object-fit: cover;
  }

  .carousel-caption h1 {
    font-size: 32px;
  }

  .carousel-caption h2 {
    font-size: 24px;
  }

  .carousel-caption .subheading {
    font-size: 14px;
  }

  .hero-buttons .btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  .welcome-section h2,
  .services-section h2,
  .featured-properties-section h2,
  .testimonials-section h2,
  .how-it-works-section h2,
  .faqs-section h2,
  .cta-section h2 {
    font-size: 28px;
  }

  .welcome-section img {
    max-height: 350px;
  }

  .service-card {
    padding: 25px;
  }

  .featured-properties-title {
    font-size: 2rem;
  }

  .featured-properties-description {
    font-size: 0.9rem;
  }

  .property-image {
    height: 200px;
  }

  .client-logos-grid {
    max-width: 250px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero {
    height: 90vh;
  }

  .carousel-item img {
    width: 100%;
    object-fit: cover;
  }

  .carousel-caption h1 {
    font-size: 40px;
  }

  .carousel-caption h2 {
    font-size: 30px;
  }

  .carousel-caption .subheading {
    font-size: 14px;
  }

  .welcome-section h2,
  .services-section h2,
  .featured-properties-section h2,
  .testimonials-section h2,
  .how-it-works-section h2,
  .faqs-section h2,
  .cta-section h2 {
    font-size: 32px;
  }

  .client-logos-grid {
    max-width: 250px;
  }

  .client-logo {
    height: 70px;
  }

  .client-logo img {
    max-width: 75%;
    max-height: 75%;
  }
}