/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --first-color: hsl(30, 21%, 88%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --body-color: #161616;
  --container-color: #212121;
  --border-color: hsl(0, 0%, 25%);
  --accent-gold: #c5b358;

  /*========== Font and typography ==========*/
  --body-font: 'Montserrat', sans-serif;
  --title-font: 'Playfair Display', serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-bold: 700;
  --font-medium: 500;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-background: -10;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
  position: relative;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--accent-gold);
  margin-bottom: .5rem;
}

.main {
  overflow-x: hidden;
}

/* DYNAMIC BACKGROUND SHAPES */
.shape {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(45deg, hsla(45, 100%, 50%, 0.05), hsla(35, 100%, 50%, 0.1));
  filter: blur(90px);
  z-index: var(--z-background);
  transition: transform 0.8s ease-out;
}

.shape__big {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -150px;
}

.shape__small {
  bottom: -100px;
  right: -150px;
}


/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background .4s, box-shadow .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
}

.nav__logo-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-right: .5rem;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 6%, .8);
    backdrop-filter: blur(16px);
    transition: right .4s;
  }

  .nav__logo-img {
    width: 150px;
    height: auto;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 3rem;
  padding-top: 9rem;
}

.nav__link {
  text-transform: uppercase;
  color: var(--title-color);
  font-size: var(--h2-font-size);
  transition: color .3s;
}

.nav__link:hover {
  color: var(--accent-gold);
}

.nav__close {
  font-size: 2rem;
  color: var(--title-color);
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.nav__toggle {
  font-size: 1.5rem;
  cursor: pointer;
}

.show-menu {
  right: 0;
}

.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, .5);
}

/*=============== HERO SECTION ===============*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070') no-repeat center center/cover;
  filter: brightness(0.4);
  z-index: -1;
}

.hero__container {
  text-align: center;
}

/* Hero Title Animation */
.hero__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
  font-weight: bold;
  background: linear-gradient(90deg,
      hsl(0, 0%, 80%),
      #ffffff,
      hsl(46, 100%, 80%),
      #ffffff,
      hsl(0, 0%, 80%));
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero__subtitle {
  font-size: var(--h2-font-size);
  margin-bottom: 2.5rem;
  color: #FFF;
  font-family: var(--body-font);
  font-weight: var(--font-medium);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes shimmer {
  to {
    background-position: -200% center;
  }
}


/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #000;
  padding: 1rem 2rem;
  font-weight: var(--font-medium);
  border-radius: .5rem;
  transition: all .3s ease;
  cursor: pointer;
  border: none;
}

.button:hover {
  background-color: #dbc979;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button--full {
  width: 100%;
  text-align: center;
}

/*=============== SERVICES & PROPERTIES CARDS ===============*/
.services__container {
  padding-top: 1rem;
}

.service__card,
.property__card {
  background-color: var(--container-color);
  border-radius: .75rem;
  border: 2px solid var(--border-color);
  transition: all .3s ease;
  overflow: hidden;
}

.service__card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.service__card:hover,
.property__card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
}

.service__icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.service__description {
  margin-bottom: 2rem;
  /* Added gap between text and button */
}

/*=============== ABOUT SECTION ===============*/
.about__container {
  align-items: center;
}

.about__title {
  text-align: left;
}

.about__image {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
}

.about__image img {
  transition: transform .4s;
}

.about__image:hover img {
  transform: scale(1.1);
}

.about__description {
  line-height: 1.6;
}

/*=============== FOUNDER SECTION ===============*/
.founder__container {
  align-items: center;
  margin-top: 4rem;
}

.founder__image {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
}

.founder__image img {
  transition: transform .4s;
}

.founder__image:hover img {
  transform: scale(1.1);
}

.founder__title {
  text-align: left;
}

.founder__description {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.founder__credentials {
  list-style: none;
  padding-left: 0;
}

.founder__credentials li {
  display: flex;
  align-items: center;
  margin-bottom: .5rem;
  font-size: var(--normal-font-size);
}

.founder__credentials i {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-right: .75rem;
}


/*=============== PROPERTIES SECTION ===============*/
.property__image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .4s;
}

.property__card:hover .property__image img {
  transform: scale(1.1);
}

.property__data {
  padding: 1.5rem;
}

.property__price {
  font-size: var(--h2-font-size);
  color: var(--accent-gold);
  margin-bottom: .5rem;
}

.property__title {
  font-size: var(--h3-font-size);
  margin-bottom: .25rem;
}

.property__description {
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
}

.view-all__container {
  text-align: center;
  margin-top: 2.5rem;
}

/*=============== CONTACT SECTION ===============*/
.contact__container {
  row-gap: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 1.5rem 1rem;
  border-radius: .75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__card-data {
  word-break: break-all;
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: .25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: 1.5rem;
}

.contact__button {
  color: var(--accent-gold);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .25rem;
  margin-top: auto;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: .4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--border-color);
  background: none;
  color: var(--text-color);
  outline: none;
  padding: 1.5rem;
  border-radius: .75rem;
  z-index: 1;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

.contact__form-tag {
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--small-font-size);
  padding: .25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 11rem;
}

.contact__form-area textarea {
  resize: none;
}

/*=============== MODAL ===============*/
/* Submission Modal Specific Styles */
.submission__content {
  max-width: 450px;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.submission__icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.submission__icon .success {
  color: #4CAF50;
  /* Green */
}

.submission__icon .error {
  color: #F44336;
  /* Red */
}

#submission-close-btn {
  margin-top: 1.5rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(5px);
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  position: relative;
  background-color: var(--container-color);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  border: 2px solid var(--border-color);
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  overflow: hidden;
}

.modal.is-visible .modal__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .3s ease;
  z-index: 2;
}

.modal__close:hover {
  color: var(--accent-gold);
}

.modal__slider {
  display: flex;
  transition: transform .4s ease-in-out;
}

.modal__slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 2.5rem;
}

.modal__slide-icon {
  font-size: 5rem;
  color: var(--accent-gold);
  text-align: center;
}

.modal__title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.modal__description {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal__list {
  list-style: none;
  padding: 0;
}

.modal__list li {
  display: flex;
  align-items: center;
  margin-bottom: .75rem;
}

.modal__list i {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-right: .75rem;
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--title-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: all .3s;
}

.modal__nav:hover {
  background-color: var(--accent-gold);
  color: var(--body-color);
}

.modal__nav--prev {
  left: 1rem;
}

.modal__nav--next {
  right: 1rem;
}


/*=============== SHOW MENU ===============*/
.service__button {
  margin-top: auto;
  /* Pushes the button to the bottom */
  font-size: var(--small-font-size);
  padding: 0.75rem 1.5rem;
  z-index: 10;
  /* Ensure it's above the card click area if needed, though structure handles this */
  position: relative;
  /* To stack above potential overlays */
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__link {
  color: var(--text-color);
  transition: color .3s;
}

.footer__link:hover {
  color: var(--accent-gold);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color .3s;
}

.footer__social-link:hover {
  color: var(--accent-gold);
}

.footer__copy {
  font-size: var(--small-font-size);
}

/*=============== NEW PAGES ===============*/
.page__header {
  padding-top: 7rem;
}

.single-property__header {
  text-align: center;
  margin-bottom: 2rem;
}

.single-property__title {
  font-size: var(--biggest-font-size);
}

.single-property__location {
  font-size: var(--h2-font-size);
  color: var(--text-color);
}

.single-property__gallery {
  margin-bottom: 2rem;
  border-radius: .75rem;
  overflow: hidden;
}

.details__main .details__title {
  margin-bottom: 1rem;
}

.details__text {
  line-height: 1.7;
}

.details__sidebar .sidebar__card {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: .75rem;
}

.sidebar__title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.sidebar__list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.sidebar__list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar__list i {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-right: 1rem;
}


/*=============== SCROLLBAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(0, 0%, 15%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 25%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 35%);
}

/*=============== ANIMATIONS ON SCROLL ===============*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 340px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media screen and (min-width: 576px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .modal__slide {
    grid-template-columns: 150px 1fr;
    gap: 2.5rem;
  }

  .modal__slide-icon {
    font-size: 6rem;
    text-align: right;
  }

  .modal__slide .modal__title,
  .modal__slide .modal__description {
    text-align: left;
  }
}

@media screen and (min-width: 767px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 2.5rem;
    padding-top: 0;
  }

  .nav__link {
    font-size: var(--normal-font-size);
    text-transform: initial;
  }

  .about__container,
  .founder__container {
    grid-template-columns: 1fr 1fr;
  }

  .founder__container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .founder__image {
    order: 2;
  }

  .founder__data {
    order: 1;
  }

  .about__title,
  .founder__title {
    text-align: left;
  }

  .contact__container {
    grid-template-columns: 1fr 1.25fr;
    align-items: flex-start;
    column-gap: 3rem;
  }

  .single-property__details {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 7rem 0 2rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .properties__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__container,
  .founder__container {
    column-gap: 5rem;
  }
}

@media screen and (min-width: 1200px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

.footer__copy a {
  color: #f5f5f5;
  /* Off-white */
  text-decoration: none;
}

.footer__copy a:hover {
  color: #ffd700;
  /* Bright yellow (golden) */
  text-decoration: underline;
}

/*=============== FLOATING SHAPES ===============*/
.floating-shape {
  position: fixed;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
  animation: float 10s infinite ease-in-out;
}

.floating-shape i {
  font-size: 10rem;
  color: var(--accent-gold);
}

.shape-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  bottom: 10%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Service Page Image Styling */
.service-image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-image-container:hover img {
  transform: scale(1.05);
}

@media screen and (min-width: 768px) {
  .service-content__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .service-text {
    order: 1;
  }

  .service-image-container {
    order: 2;
    height: 400px;
    margin-bottom: 0;
  }
}