@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");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #90bdeb;;
  --text-dark: #231e22;
  --text-light: #767268;
  --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__description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.5rem;
  text-align: center;
}

.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: var(--text-light);
}

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;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.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: 600;
  color: var(--text-dark);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-color);
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

header {
  padding-block: 4rem 2rem;
  display: grid;
  position: relative;
}

.header__image {
  height: 100%;
  background-image: url("images/hero.webp");
  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: 4.8rem;
  font-weight: 500;
  line-height: 5.5rem;
  color: var(--text-dark);
  text-align: center;
}

header form {
  position: absolute;
  bottom: 0;
  left: 43%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 450px;
  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: 600;
  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;
}

.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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service__card i{
  font-size: 50px;
  margin-top: -30px;
}

.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 h4 {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.service__card p {
  font-weight: 500;
  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("images/about.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 15rem;
}

.experience__content {
  padding-inline: 1rem;
  padding-block: 2rem 1rem;
}

.experience__content p {
  margin-block: 2rem;
  font-weight: 500;
  line-height: 1.75rem;
  color: var(--text-dark);
  text-align: center;
}

.experience__btn {
  text-align: center;
}


.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: 600;
  color: var(--text-dark);
}

.property__details__header h5 {
  font-size: 1.2rem;
  font-weight: 500;
  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: 600;
  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: 600;
  color: var(--text-light);
}



.portfolio {
  background-color: var(--extra-light);
  overflow: hidden;
}

.portfolio__header {
  margin-bottom: 4rem;
  display: grid;
  gap: 2rem;
}

.portfolio__image {
  position: relative;
  isolation: isolate;
}

.portfolio__image__content {
  position: absolute;
  top: 0;
  right: 2rem;
  transform: translateY(-50%);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 0.25rem;
  z-index: 1;
}

.portfolio__image__content div {
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio__image__content div:nth-child(1) {
  border-right: 1px solid var(--extra-light);
}

.portfolio__image img {
  border-radius: 0.5rem;
}

.portfolio__image__content h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.portfolio__image__content p {
  font-size: 0.9rem;
  color: var(--extra-light);
}

.portfolio__content {
  display: grid;
  gap: 2rem;
}

.portfolio__list {
  display: grid;
  gap: 2rem;
}

.portfolio__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.portfolio__list li span {
  width: 5rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 0.25rem;
}

.portfolio__list h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.portfolio__list .section__description {
  text-align: left;
}


.chatbox {
  max-width: 500px;
  width: 90%; 
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
   padding: 0.5rem 0.5rem 5rem;
}

/* SWIPE HINT */
.swipe-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin:-75px auto 25px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

/* ARROWS */
.swipe-hint .arrow {
  font-size: 18px;
  animation: swipeAnim 1.5s infinite;
}

/* LEFT moves left */
.swipe-hint .left {
  animation-delay: 0s;
}

/* RIGHT moves right */
.swipe-hint .right {
  animation-delay: 0.3s;
}

/* TEXT */
.swipe-hint .text {
  letter-spacing: 1px;
}

/* ANIMATION */
@keyframes swipeAnim {
  0% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.5; }
}

/* MOBILE: make it more visible */
@media (max-width: 768px) {
  .swipe-hint {
    font-size: 13px;
  }
}

/* Header */
.chat-header {
  background: var(--primary-color);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 1.1rem;
}

.chatbox h4 {
  text-align: center;
  margin: 0;
  font-size: 1rem;
}

.chat-input { 
  display: flex;
  margin-top: 2rem;
   border-top: 1px solid #ddd; 
  }

.chat-input input {
   flex: 1;
    border: none; 
    padding: 25px; 
    font-size: 1rem;
    margin-top: 25px;
   }

/* Messages */
.chat-messages {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  max-height: 40vh; 
}

.message {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 80%;
  word-wrap: break-word; 
}

.message.user {
  background: #0078ff;
  color: #fff;
  align-self: flex-end;
}

.message.bot {
  background: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

/* Typing indicator */
.message.typing {
  background: transparent;
  box-shadow: none;
}
.message.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #999;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
.message.typing span:nth-child(2) { animation-delay: 0.2s; }
.message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* Input wrapper */
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between; /* input on left, button on right */
  border-top: 1px solid #e5e9f2;
  background: #fff;
  padding: 8px;
  gap: 10px;
  position: relative; /* for suggestions dropdown */
}

.chat-input input {
  flex: 1; /* take up all available space */
  width: 100%;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

.chat-input input:focus {
  outline: none;
  border: 1px solid #0078ff;
  box-shadow: 0 0 8px rgba(0, 120, 255, 0.3);
}


.chat-input button {
  background: linear-gradient(135deg, #0078ff, #00d4ff);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 25px;
  transition: transform 0.2s ease, background 0.3s ease;
  flex-shrink: 0; 
}

.chat-input button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #005fcc, #00b0d4);
}

/* Suggestions dropdown (now always visible & full width under input) */
.suggestions {
  background: #fff;
  border: 1px solid #ddd;
  color: #767268;
  border-radius: 0 0 8px 8px;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  left: 8px;
  right: 8px;
  top: 100%; /* directly below input */
  margin-top: 2px;
  z-index: 1000;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease;
}

.suggestions div {
  padding: 10px;
  cursor: pointer;
}
.suggestions div:hover {
  background: #f0f4f8;
}

.suggestions div {
  padding: 10px;
  cursor: pointer;
}
.suggestions div:hover {
  background: #f0f4f8;
}

/* WhatsApp button */
.whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px auto;
  text-align: center;
  animation: bounce 2s infinite ease-in-out;
}

.whatsapp-btn:hover {
  background: #1ebe57;
}

/* Gentle bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .chatbox {
    width: 95%;
    margin: 10px auto;
    height: 90vh; 
  }

  .chat-messages {
    max-height: 20vh;
    padding: 10px;
  }

  .chat-input input {
    padding: 14px;
    font-size: 0.95rem;
  }

  .chat-input button {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .chatbox {
    width: 100%;
    margin: 0;
    border-radius: 0; 
    height: 50vh; 
  }

  .chat-messages {
    max-height: calc(100vh - 230px);
  }

  .chat-header {
    font-size: 1rem;
    padding: 10px;
  }

  .chat-input input {
    padding: 12px;
    font-size: 0.9rem;
  }

  .chat-input button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}



footer {
  background-color: var(--extra-light);
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__bar {
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
}



@media (width > 540px) {
  .header__image {
    min-height: 20rem;
  }

  .header__content {
    padding-block: 2rem 6rem;
  }

  
  header form {
    flex-direction: row;
    max-width: 850px;
  }


  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience__image {
    min-height: 20rem;
  }

  .experience__content {
    padding-block: 2rem 8rem;
  }


  .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;
  }

   .portfolio__header {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__header :is(.section__header, .section__description) {
    text-align: left;
  }

  .portfolio__content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .portfolio__image {
    grid-area: 1/2/2/3;
  }


  .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;
  }
 
}