@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

:root {
  --primary-color: whitesmoke;
  --text-dark: #231e22;
  --text-light: #2e46c0;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  position: relative;
  isolation: isolate;
  padding-bottom: 1rem;
  font-size: 3rem;
  font-weight: 500;
  line-height: 3.5rem;
  color: var(--text-dark);
  text-align: center;
  overflow: hidden;
}

.section__header::before {
  position: absolute;
  content: "";
  height: 5px;
  width: 5rem;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #25453a;
  border-radius: 1rem;
}

.section__header::after {
  position: absolute;
  content: "";
  height: 5px;
  width: 6px;
  bottom: 0;
  left: calc(50% + 3rem);
  transform: translateX(-50%);
  background-color: #25453a;
  border-radius: 1rem;
}

.btn {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--text-dark);
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #2e46c0;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", serif;
}


h3 {
  font-family: Ravie Regular;
  color: #95A3FF;
  font-size: 17px
}

/* ============================= */
/* NAVIGATION STYLES             */
/* ============================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text-dark);
}

.nav__menu__btn {
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  display: block; /* show hamburger on mobile */
}

/* Menu links – hidden by default */
.nav__links {
  position: absolute;
  top: 100%; /* below navbar */
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-color);
  transform: translateY(-200%); /* hidden */
  transition: transform 0.5s ease-in-out;
  z-index: 9999;
}

.nav__links.open {
  transform: translateY(0); /* visible */
}
.nav__links.open {
  position: absolute; /* ensures it's taken out of flow */
  top: 64px; /* adjust to match your nav height */
  left: 0;
  width: 100%;
  z-index: 9999;
}


.nav__links a {
  font-weight: 550;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--text-light);
}

/* ============================= */
/* DESKTOP VIEW (≥768px)         */
/* ============================= */
@media (min-width: 768px) {
  nav {
    position: static;
    padding: 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__menu__btn {
    display: none; /* hide hamburger */
  }

  .nav__links {
    position: static;
    flex-direction: row;
    width: auto;
    gap: 1.5rem;
    padding: 0;
    background-color: transparent;
    transform: none; /* always visible */
  }
}


/* Align logo and heading horizontally */
.logo {
  display: flex;
  align-items: center;
  gap: 0.1px; /* space between image and text */
}

/* Resize logo if needed */
.logo img {
  width: 40px;
  height: 40px;
}


header {
  padding-block: 5rem 4rem;
  display: grid;
  position: relative;
  isolation: isolate;
}

.header__image {
  height: 100%;
  background-image: url("assets/header.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 15rem;
}

.header__content {
  padding-inline: 1rem;
  padding-block: 2rem 22rem;
}

.header__content h1 {
  font-size: 5.125rem;
  font-weight: 800;
  font-style: poppins;
  line-height: 5.5rem;
  color: var(--text-dark);
  text-align: center;
}

header form {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 2rem 1rem;
  background-color: var(--white);
  box-shadow: 0px 5px 50px var(--primary-color);
}

header .input__group {
  display: grid;
  gap: 0.5rem;
}

header label {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-dark);
}

header input {
  padding-bottom: 0.5rem;
  width: 100%;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  border: none;
  border-bottom: 1px solid var(--text-light);
}

header .btn {
  padding: 0.75rem;
  font-size: 1.5rem;
}

.service {
  overflow: hidden;
}

.service__grid {
  margin-top: 4rem;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem 1rem;
}

.logo img{
    width: 40px;
    margin-right: 9px;
    margin-top: -9px;
}

.service__grid::before {
  position: absolute;
  content: "";
  height: calc(50% + 5rem);
  width: 100vw;
  bottom: -5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  z-index: -1;
}

.service__card {
  position: relative;
  isolation: isolate;
  padding: 2rem 1rem;
  background-color: var(--white);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.service__card::before {
  position: absolute;
  content: "";
  width: 100%;
  max-width: 10rem;
  aspect-ratio: 1;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  border-radius: 100%;
  z-index: -1;
}

.service__card img {
  max-width: 70px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.service__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text-dark);
  text-align: center;
}

.service__card p {
  font-weight: 550;
  color: var(--text-light);
  text-align: center;
  line-height: 1.75rem;
}



.experience {
  padding-block: 5rem;
  display: grid;
  position: relative;
  isolation: isolate;
}

.experience__image {
  height: 100%;
  background-image: url("assets/experience.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 15rem;
}

.experience__content {
  padding-inline: 1rem;
  padding-block: 2rem 20rem;
}

.experience__content p {
  margin-block: 2rem;
  font-weight: 550;
  line-height: 1.75rem;
  color: var(--text-dark);
  text-align: center;
}

.experience__btn {
  text-align: center;
}

.btn {
  background-color: #405be6;
  border-radius: 10px;
}



.experience__stats {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -1rem);
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  gap: 2rem 1rem;
  text-align: center;
  background-color: var(--white);
  box-shadow: 0px 5px 50px var(--primary-color);
}

.experience__stats h4 {
  font-size: 2.5rem;
  font-weight: 650;
  color: var(--text-dark);
}

.experience__stats p {
  font-weight: 550;
  color: var(--text-light);
}

.swiper {
  padding-block: 4rem;
  width: 100%;
  max-width: 900px;
}

.swiper-slide {
  min-width: 425px;
}

.property__card {
  box-shadow: 0px 5px 50px var(--primary-color);
}

.property__details {
  padding: 1rem;
}

.property__details__header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.property__details__header h4 {
  font-size: 1.3rem;
  font-weight: 650;
  color: var(--text-dark);
}

.property__details__header h5 {
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--text-dark);
}

.property__amenities {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.property__amenities > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-light);
}

.property__amenities span {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.property__location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-light);
}

.subscribe {
  padding-inline: 1rem;
  padding-block: 5rem 2rem;
  margin-bottom: 5rem;
  background-color: var(--primary-color);
}

.subscribe form {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  transform: translateY(calc(50% + 2rem));
  display: flex;
  align-items: center;
  background-color: var(--white);
  box-shadow: 0px 10px 50px var(--primary-color);
}

.subscribe input {
  width: 100%;
  padding-inline: 1rem;
  font-display: 1rem;
  color: var(--text-dark);
  background-color: transparent;
  outline: none;
  border: none;
}

.subscribe .btn {
  padding: 1.5rem 2rem;
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo a {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--text-dark);
}

.footer__col p {
  margin-block: 1rem 2rem;
  max-width: 350px;
  font-weight: 550;
  line-height: 1.75rem;
  color: var(--text-dark);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__socials a {
  padding: 5px 7px;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--primary-color);
  border-radius: 100%;
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  font-weight: 550;
  color: var(--text-dark);
}

.footer__links a:hover {
  color: var(--text-light);
}

.footer__property__detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__property__detail img {
  max-width: 50px;
}

.footer__property__detail h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-dark);
}

.footer__property__detail p {
  margin: 0;
  line-height: 1.25rem;
}

.footer__bar {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--primary-color);
  text-align: center;
}

@media (width > 540px) {
  .header__image {
    min-height: 20rem;
  }

  .header__content {
    padding-block: 2rem 6rem;
  }

  header form {
    flex-direction: row;
  }

  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience__image {
    min-height: 20rem;
  }

  .experience__content {
    padding-block: 2rem 8rem;
  }

  .experience__stats {
    flex-direction: row;
    text-align: left;
  }

  .property__details {
    padding: 1.5rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a {
    font-size: 1.55em;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;
  }

  .nav__links a:hover {
    color: var(--text-light);
  }

  header {
    padding-top: 0;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .header__image {
    grid-area: 1/3/2/5;
    min-height: 30rem;
    border-top-left-radius: 100%;
  }

  .header__content {
    grid-column: 2/3;
    padding-block: 6rem 12rem;
  }

  .header__content h1 {
    text-align: left;
  }

  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .experience {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .experience__image {
    grid-column: 1/3;
    min-height: 30rem;
    border-top-right-radius: 100%;
  }

  .experience__content {
    grid-column: 3/4;
    padding-block: 5rem 8rem;
  }

  .experience__content :is(.section__header, p, .experience__btn) {
    text-align: right;
  }

  .footer__container {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer__col:nth-child(1) {
    grid-column: 1/3;
  }
}

@media (width > 1024px) {
  .service__grid {
    gap: 2rem;
  }

  .service__card {
    padding: 2rem;
  }
}

/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake-logo {
  animation: shake 1s infinite;
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav__links.open {
  animation: slideIn 0.5s ease-out forwards;
}



