
  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  /* Navbar */
  .navbar {
    background-color: #fefefe;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .navbar .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
  }

  /* Logo */
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .logo:hover {
    color: #ff6b6b;
  }

  /* Menu */
  .nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
  }

  .nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
  }

  /* Hover underline animation */
  .nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #ff6b6b;
    transition: 0.3s;
  }

  .nav-menu li a:hover::after {
    width: 100%;
  }

  .nav-menu li a:hover {
    color: #ff6b6b;
  }

  /* Hamburger for mobile */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      width: 250px;
      background-color: #fefefe;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
      transition: right 0.3s ease;
      box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
      right: 0;
    }

    .hamburger {
      display: flex;
    }
  }


  /* HOME SECTION */
  .home-section {
    width: 100%;
    height: 100vh;
    background: url('images/smart-living-home.avif') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Overlay for better text readability */
  .home-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 88, 83, 0.6); /* semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-content {
    text-align: center;
    color: #fefefe;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
  }

  .home-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fefefe;
    letter-spacing: 1px;
  }

  .home-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #fefefe;
  }

  /* Button */
  .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #5a5853;
    color: #fefefe;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  .btn-primary:hover {
    background-color: #3e3c38;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }

  /* Fade-in animation */
  @keyframes fadeIn {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
  }

  /* Responsive */
  @media (max-width: 768px) {
    .home-content h1 {
      font-size: 2.2rem;
    }
    .home-content p {
      font-size: 1rem;
    }
  }


/*whoweare*/
  .who-we-are-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
  }

  .who-we-are-section .container {
    max-width: 1200px;
    margin: auto;
  }

  .section-title {
    font-size: 2.8rem;
    color: #5a5853;
    margin-bottom: 10px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
  }

  .section-subtitle {
    font-size: 1.2rem;
    color: #5a5853;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
  }

  .cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
  }

  .card {
    background-color: #f8f8f8;
    flex: 1;
    min-width: 250px;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
  }

  .card .icon {
    font-size: 3rem;
    color: #5a5853;
    margin-bottom: 20px;
  }

  .card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #5a5853;
  }

  .card p {
    font-size: 1rem;
    color: #5a5853;
    line-height: 1.6;
  }

  /* Active class for scroll animation */
  .fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  @media (max-width: 1200px) {
    .cards {
      justify-content: space-around;
    }
  }

  @media (max-width: 992px) {
    .cards {
      flex-direction: column;
      align-items: center;
    }

    .card {
      max-width: 400px;
      margin-bottom: 30px;
    }
  }

/*service-section*/
.services-section {
  width: 100%;
  background-color: #4b7084; /* Primary background */
  padding: 80px 20px;
  text-align: center;
  color: #fefefe;
}

.services-section .container {
  max-width: 1200px;
  margin: auto;
}

.services-section .section-title {
  font-size: 2.8rem;
  margin-bottom: 10px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  color: #fefefe;
}

.services-section .section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
  color: #fefefe;
}

/* Cards container */
.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Individual card */
.services-cards .card {
  background-color: #5a7c91; /* card color */
  flex: 1 1 calc(25% - 30px);
  min-width: 220px;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
}

.services-cards .card .icon {
  font-size: 2.5rem;
  color: #fefefe;
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.services-cards .card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #fefefe;
}

.services-cards .card p {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Hover effect */
.services-cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  background-color: #6c8ca4;
}

.services-cards .card:hover .icon {
  transform: scale(1.2);
  color: #ffffff;
}

/* Fade-up animation */
.fade-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive rows */
@media (max-width: 1200px) {
  .services-cards .card {
    flex: 1 1 calc(33.333% - 30px); /* 3 cards per row */
  }
}

@media (max-width: 992px) {
  .services-cards .card {
    flex: 1 1 calc(50% - 20px); /* 2 cards per row */
  }
}

@media (max-width: 576px) {
  .services-cards .card {
    flex: 1 1 100%; /* 1 card per row */
  }
}

/*whychooseus*/
.why-choose-us-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  color: #5a5853;
}

.why-choose-us-section .container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 10px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  color: #5a5853;
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
  color: #5a5853;
}

/* Cards container */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

/* Individual card */
.card {
  background-color: #f8f8f8;
  flex: 1 1 calc(25% - 30px);
  min-width: 220px;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.card .icon {
  font-size: 3rem;
  color: #5a5853;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #5a5853;
}

/* Bounce hover effect */
.card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card:hover .icon {
  transform: scale(1.3) rotate(5deg);
}

/* Fade-up animation */
.fade-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive layout */
@media (max-width: 1200px) {
  .cards {
    justify-content: space-around;
  }
  .card {
    flex: 1 1 calc(45% - 30px); /* 2 cards per row on medium screens */
  }
}

@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    max-width: 400px;
    margin-bottom: 30px;
  }
}


