
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.8rem;
  background-color: #faffff;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 70px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  color: black;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.logo {
  height: 7rem;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #000;
}

.main {
  margin-top: 100px;
}

.section {
  padding: 10rem 10rem;
}

.section:not(:first-child) {
  border-top: 1px solid #64e0ff;
}

/* Team Member Cards */
.team-cards {
  display: flex;
  flex-direction: column;
  gap: 13rem;
  max-width: 1300px;
  margin: 0 auto;
  height: auto;

}

.team-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  padding: 8rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1rem;
}

.card-heading {
  font-size: 3.2rem;
  font-weight: 700;
  color: #0088aa;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-role {
  color: #555;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.card-contact {
  margin-top: 2rem;
}

.card-phone, .card-email {
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.card-price {
  color: #e97a11;
  font-weight: 500;
}

.card-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn:link,
.btn:visited {
  font-size: 1.6rem;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  margin-top: 1.5rem;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-contact:link,
.btn-contact:visited {
  background-color: #c6ffff;
  color: #153138;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-contact:hover,
.btn-contact:active {
  background-color: #195969;
  color: #f1ffff;
  transform: scale(1.05);
}

/* Contact Form Styles */
#contact {
  padding: 5rem 10rem;
}

.contact-heading {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3.2rem;
  color: #0088aa;
}

.contact-container {
  display: grid;
  width: 100%;
  max-width: 800px;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
}

.contact-label {
  display: block;
  margin-bottom: 1rem;
  color: #555;
}

.contact-input {
  padding: 1.2rem 1.8rem;
  width: 100%;
  border-radius: 8px;
  font-size: 1.6rem;
  font-family: inherit;
  border: 1px solid #0088aa;
  transition: border-color 0.3s ease;
}

.contact-input:focus {
  border: 2px solid #0088aa;
  outline: none;
}

.contact-input::placeholder {
  color: #01aaaa;
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 400;
}

.contact-link {
  padding-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.properties-link:link,
.properties-link:visited {
  display: inline-block;
  text-decoration: none;
  background-color: #0088aa;
  font-size: 1.6rem;
  color: #f1ffff;
  padding: 1.2rem 2.4rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.properties-link:hover,
.properties-link:active {
  background-color: #153138;
  color: #c6ffff;
  transform: scale(1.05);
}

/* Footer Styles */
.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  background-color: #1a343b;
  padding: 4rem;
  color: #c6ffff;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo {
  height: 8rem;
  margin-bottom: 2rem;
}

.copyright {
  font-size: 1.4rem;
  color: #c6ffff;
  margin-top: 1rem;
}

.footer-heading {
  font-size: 2rem;
  color: #d2d2ff;
  margin-bottom: 2rem;
}

.social-container {
  margin-left: 0;
}

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #c6ffff;
  font-size: 1.6rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: #34c7c7;
}

.social-link ion-icon {
  font-size: 2rem;
}

.address, .contact {
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #c6ffff;
}

.address {
  margin-bottom: 2rem;
}

.contact a {
  color: #c6ffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact a:hover {
  color: #34c7c7;
  text-decoration: underline;
}

/* Location Section */
.location-section {
  padding: 3rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.map-container {
  margin-top: 1rem;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background: #007BFF;
  color: white;
  padding: 12px;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0056b3;
  transform: scale(1.15);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .section {
    padding: 4rem 6rem;
  }
  
  .team-card {
    gap: 3rem;
  }
  
  .card-img {
    height: 250px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 3rem 4rem;
  }
  
  .team-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card-img {
    height: 200px;
    order: -1;
  }
  
  .navbar {
    padding: 0 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .navbar {
    padding: 0 2rem;
    height: 6rem;
  }
  
  .logo {
    height: 5rem;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a {
    font-size: 1.4rem;
  }
  
  .section {
    padding: 2rem;
  }
  
  .card-heading {
    font-size: 2.4rem;
  }
  
  .footer {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
  }
  
  .footer-container {
    align-items: center;
    text-align: center;
  }

  .social-links-list {
    align-items: center;
  }

  .address, .contact {
    text-align: center;
  }
  
  .map-container {
    height: 250px;
  }
}
