:root {
    --font: 'Montserrat';
    
    /* Font weights */
    --light: 300;
    --regular: 400;
    --medium: 500;
    --semiBold: 600;
    --bold: 700;


    /* Colors */
    --white: #FFFFFF;
    --grey: #F4F4F4;
    --inputGrey: #606060;
    --black: #000000;
    --darkRed: #C50000;
    --red: #E70000;
    
    /* screen size */
    --width: 1920px;
    --height: 1080px;

}


.about-me-container {
    background-color: #FFFFFF;
    display: flex;
    width: 100%; /* Ensures container takes full width */
    max-width: 100%; /* Prevents container from exceeding the viewport width */
    padding: 80px 5%; /* Removes any extra padding */
    box-sizing: border-box; /* Includes padding and border in the element’s total width and height */
    padding-top: 1000px;
    align-items: center;
}


body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    text-align: center;
}

.beg-text {
  line-height: 1.5;
}


.container {
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
    background: radial-gradient(circle, rgba(255,255,255,1) 47%, rgba(236,236,236,1) 69%, rgba(215,215,215,1) 96%);;
}

.background-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}


.header-content{
    width: 100%;
    max-width: 1500px; /* Adjust this value as needed */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;

}


header {
    background-color: rgba(197, 0, 0, 1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 253, 239, 1);
    font-weight: 700;
}

.logo-img {
    width: 77px;
    height: 77px;
    object-fit: cover;  
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
}

nav {
    display: flex;
    gap: 100px;
}

.nav-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--semiBold);
    color: white;
    background-color: rgba(197, 0, 0, 1);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 25px;
    transition: background-color 0.3s ease;
}

.nav-item:hover{
  background-color: var(--white);
  color: var(--red);
}

.main-element {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center content */
  align-items: center; /* Horizontally center content */
  text-align: center; /* Center text inside the <main> element */
  flex: 1; /* Allow <main> to take remaining space in the container */
  padding: 0 20px; /* Optional: Add some padding */
  margin: 0; /* Remove any margin if needed */
  
}


h1 {
    color: black;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline;
    white-space: nowrap;
}

/* .typed-text {
} */

.intro-text {
    font-weight: var(--medium);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
    transition: transform 0.3s ease;
}
.intro-text:hover{transform: translateY(-4px);}

.highlight {
    color: rgba(231, 0, 0, 1);
}

.cta-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    background-color: rgba(231, 0, 0, 1);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin-top: 30px;
    cursor: pointer;
    transition: scale 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent
}

.cta-button:hover{
  scale: 1.05;
  border-color: var(--red);
  color: var(--red);
  background-color: var(--white); 
}

/* 
  transition: scale 0.3s ease, background-color 0.3s ease;
  border: 2px solid transparent;
}

.sold-listings-button:hover{
  scale: 1.05;
  background-color: var(--white);
  border-color: var(--red);
  color: var(--red);
} */ 

/* Responsive Styles */
@media (max-width: 1200px) {
  .header-content {
      padding: 0 15px;
  }

  nav {
      gap: 60px;
  }

  .logo-text {
      font-size: 28px;
  }

  .nav-item {
      font-size: 22px;
  }
}

@media (max-width: 991px) {
  header {
      flex-direction: column;
      padding: 10px 20px;
  }

  nav {
      margin-top: 10px;
      gap: 20px; /* Adjusted gap for smaller screens */
  }

  .header-content {
      padding: 0 10px; /* Adjusted padding */
  }

  main {
      margin-top: 40px;
  }

  h1 {
      font-size: 40px;
  }

  .intro-text {
      padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .logo-img {
      width: 60px;
      height: 60px;
  }

  .logo-text {
      font-size: 24px;
  }

  .nav-item {
      font-size: 20px;
      padding: 8px;
  }

  .cta-button {
      font-size: 20px;
      padding: 8px 16px;
    }

  .intro-text {
      padding: 0 15px;
      font-size: 16px; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 480px) {
  .header-content {
      flex-direction: column;
      align-items: flex-start;
  }

  .nav-item {
      font-size: 18px;
      padding: 6px;
  }

  .cta-button {
      font-size: 18px;
      padding: 6px 12px;
  }

  .intro-text {
      padding: 0 10px;
      font-size: 14px; /* Further adjust font size for smaller screens */
  }

  h1 {
      font-size: 32px;
  }
}

@media (max-width: 600px){
  .logo{
    display: none;
  }
  .header-content{
    width: 80%;
    margin: 0 auto;
  }
  nav {
    display: flex;
    justify-content: center;
  }
}

/* second section */
.about-me-container {
  
  margin: 0 auto;
  max-width: var(--width);
  background-color: #FFFFFF;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  flex-direction: column;
  align-items: center;
}

.about-me-content {
  display: flex;
  width: 100%;
  max-width: 1232px;
  flex-direction: column;
  margin: 0;
  align-items: center;
  text-align: center;
}

.about-me-title {
  text-align: center;
  color: #000000;
  align-self: center;
  font: 600 48px Montserrat, sans-serif;
  transition: transform 0.3s ease;
}

.about-me-title:hover{transform: translateY(-4px);}

.about-me-underline {
  text-align: center;
  color: #E70000;
  align-self: center;
  font: 800 32px Montserrat, sans-serif;
  transition: transform 0.3s ease;
}

.about-me-underline:hover{transform: translateY(-4px);}

.about-me-subtitle {
  text-align: center;
  color: #000000;
  align-self: center;
  margin-top: 37px;
  margin-bottom: 50px;
  font: 400 24px Montserrat, sans-serif;
  transition: transform 0.3s ease;
}

.about-me-subtitle:hover{transform: translateY(-4px);}

.highlight {
  color: #E70000; 
}

.background-title {
  align-self: flex-start;
  margin-bottom: 10px;
  text-align: center;
  color: #000000;
  /* margin-top: 41px; */
  font: 400 32px Montserrat, sans-serif;
  transition: transform 0.3s ease;
}
.background-title:hover{transform: translateY(-4px);}

.background-content {
  align-self: flex-start;
  align-items: flex-start;
  display: flex;
  /* gap: 20px; */
  margin-top: 24px;
}

.background-text {
  box-sizing: border-box; /* Include padding in width */
  width: 100%; /* Full width of its container */
  max-width: 1000px; /* Adjust as needed for your design */
  padding-right:15%; /* Adjust this value to scale down from the right */
  margin: 0; /* Center the text box horizontally */
  text-align: left;
  letter-spacing: 1px;
  color: #000000;
  font: var(--regular) 16px/19px Montserrat;
  font-weight: var(--medium);
  transition: transform 0.3s ease;
}

.background-text:hover{transform: translateY(-4px);}

.background-stats {
  width: 1000px;
  /* margin-top: -40px; */
  display: flex;
  flex-direction: column;
  font-size: 20px;
  color: #FFFFFF;
  font-weight: 600;
  text-align: center;
  align-self: flex-start;
  transition: transform 0.3s ease;
}


.background-stats:hover{transform: translateY(-4px);}

.stat-item {
  background-color: #C50000;
  display: flex;
  gap: 20px;
  padding: 1px 0px 1px 72px;
  margin-bottom: 30px;
}

.stat-text {
  font-family: Montserrat, sans-serif;
  flex-grow: 1;
  margin: auto 0;
}

.stat-icon {
  width: 52px;
  border-radius: 2px;
}

.sold-listings-button {
  border-radius: 8px;
  background-color: #E70000;
  align-self: flex-start;
  color: #FFFFFF;
  text-align: center;
  padding: 8px 14px;
  font: 600 20px Montserrat, sans-serif;
  transition: scale 0.3s ease, background-color 0.3s ease;
  border: 2px solid transparent;
}

.sold-listings-button:hover{
  scale: 1.05;
  background-color: var(--white);
  border-color: var(--red);
  color: var(--red);
}

/* Media Queries for Responsiveness */
@media (max-width: 991px) {
  .about-me-container {
      max-width: 100%;
      padding: 40px 20px; /* Adjust padding for smaller screens */
  }

  .about-me-content {
      max-width: 100%;
  }

  .about-me-title {
      font-size: 36px; /* Smaller font size for mobile */
  }

  .about-me-underline {
      margin-top: 20px; /* Adjust margin */
  }

  .about-me-subtitle {
      max-width: 100%;
  }

  .background-title {
      max-width: 100%;
      margin-top: 20px; /* Adjust margin */
  }

  .background-content {
      flex-direction: column; /* Stack items vertically on smaller screens */
      align-items: center; /* Center items */
  }

  .background-text {
      max-width: 100%;
      margin-top: 40px;
      padding-right: 0; /* Remove right padding on mobile */
  }

  .background-stats {
      max-width: 100%;
      margin-top: 40px;
  }


  .sold-listings-button {
      margin-top: 40px;
  }
}

/* Media Queries for Height Adjustments */
@media (max-width: 1375px){
  .background-stats{
    display: none;
  }
}
@media (max-height: 700px) {
  .about-me-container {
      padding: 40px 20px; /* Adjust padding for shorter screens */
  }

  .about-me-content {
      margin: 20px 0;
  }

  .about-me-title {
      font-size: 32px; /* Smaller font size for short screens */
  }

  .about-me-underline {
      margin-top: 15px;
  }

  .about-me-subtitle {
      margin-top: 20px;
      margin-bottom: 30px;
  }

  .background-title {
      font-size: 28px; /* Adjust font size */
      margin-top: 15px;
  }

  .background-text {
      padding-right: 10%; /* Adjust padding */
  }

  .background-stats {
      font-size: 18px; /* Smaller font size */
  }


  .sold-listings-button {
      font-size: 18px; /* Smaller font size */
      padding: 6px 12px; /* Adjust padding */
  }
}

/* listing page */
.property-listings {
  background-color: var(--white);
  display: flex;
  width: 100%;
  flex-direction: column;
  padding-top: 100px;

}

.listings-container {
  margin-top: 30px;
}

.listings-grid {
  gap: 20px;
  display: flex;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 20px;
}

.listing-column {
  display: flex;
  flex-direction: column;
  line-height: normal;
  width: 33%;
  margin-left: 0px;
}

.listing-card {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  font-size: 20px;
  color: rgba(255, 255, 240, 1);
  font-weight: 600;
  text-align: center;
  justify-content: center;
  overflow: hidden;
}

.listing-image-container {
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  position: relative;
  min-height: 300px;
  width: 100%;
  padding-top: 10px;
  overflow: hidden;
  max-width: 1000px;
  height: 100%;
}

.listing-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(to top, var(--black) 0%, rgba(0, 0, 0, 0) 50%); */

  background: linear-gradient(to top, var(--black) 0%, rgba(0, 0, 0, 0) 50%);
  z-index: 1; /* Ensure it is on top of the image but below the details */
  opacity: 1;
  transition: opacity 0.5s ease;
}

.listing-card:hover .listing-image-container::before {
  opacity: 0;
}

.listing-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  z-index: 0;
  transition: transform 0.8s ease;
}

.listing-card:hover .listing-image {
  transform: scale(1.1); /* Zoom in the image */
}

.listing-details {
  position: absolute;
  border-radius: 12px;
  bottom: 10px;
  right: 15px;
  z-index: 2;
}


.listing-status-price {
  display: flex;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.listing-card:hover .listing-status-price{
  transform: translateY(-10px);
  opacity: 0;
}

.listing-status {
  font-family: Montserrat, sans-serif;
  border-radius: 8px;
  background-color: rgba(197, 0, 0, 1);
  white-space: nowrap;
  padding: 3px 14px;
}

.listing-price {
  font-family: Montserrat, sans-serif;
  padding-left: 5px;
}

.listing-column:not(:first-child) {
  margin-left: 20px;
}

@media (max-width: 991px) {
  .property-listings {
    max-width: 100%;
  }

  .listings-container {
    max-width: 100%;
  }

  .listings-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }

  .listing-column {
    width: 100%;
  }

  .listing-card {
    max-width: 100%;
    margin-top: 40px;
  }

  .listing-image-container {
    max-width: 100%;
  }

  .listing-details {
    max-width: 100%;
    padding-left: 20px;
    margin-top: 40px;
  }

  .listing-status {
    white-space: initial;
  }

  .listing-column:not(:first-child) {
    margin-left: 0;
  }
}
@media (min-width: 3500px) {
  .listings-container {
    display: none;
  }
}

/* final page */
.contact-section {
    background-color: var(--white);
    display: flex;
    width: 100%;
    padding-top: 80px;
    flex-direction: column;
  }

.contact-form {
align-self: center;
display: flex;
margin-top: 31px;
width: 820px;
max-width: 100%;
flex-direction: column;
font-size: 24px;
color: #000000;
font-weight: 500;
padding: 0 20px;
}

.contact-title {
  text-align: center;
  align-self: center;
  font: 600 48px Montserrat, sans-serif;
  transition: transform 0.3s ease;
}
          
.contact-title:hover{
  transform: translateY(-4px);
}

.contact-underline {
  text-align: center;
  color: #E70000;
  align-self: center;
  margin-top: -33px;
  margin-bottom: 50px;
  font: 800 32px Montserrat, sans-serif;
  transition: transform 0.3s ease;
}

.contact-underline:hover{transform: translateY(-4px);}

.form{
  transition: transform 0.3s ease;
}

.form:hover{
  transform: translateY(-4px);
}

.form-group {
margin-top: 19px;
}

.form-label {
font-family: Montserrat, sans-serif;
text-align: left;
display: block;
margin-bottom: 13px;
}

.form-input,
.form-textarea {
background-color: #E0E0E0;
color: #606060;
padding: 17px 10px;
font: 20px Montserrat, sans-serif;
border: 1px solid #606060;
width: 100%;
}

.form-textarea {
height: 134px;
resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--darkRed);
    outline: none;
}

.submit-button {
  font-family: Montserrat, sans-serif;
  border-radius: 8px;
  background-color: var(--red);
  align-self: flex-start;
  margin-top: 35px;
  color: #FFFFFF;
  font-weight: var(--bold);
  white-space: nowrap;
  text-align: center;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 24px;
  transition: scale 0.3s ease, background-color 0.3s ease;
  border: 2px solid transparent;
}

.submit-button:hover{
  scale: 1.05;
  border-color: var(--red);
  color: var(--red);
  background-color: var(--white);
}

.footer {
background-color: #C50000;
display: flex;
margin-top: 85px;
width: 100%;
flex-direction: column;
align-items: center;
/* padding: 1px; */
}

.footer-content {
display: flex;
width: 699px;
max-width: 100%;
align-items: flex-start;
justify-content: space-between;
/* margin-right: 100px; */
}

.footer-info,
.footer-contact,
.footer-social {
display: flex;
flex-direction: column;

}

.footer-name {
  margin: 5px 0px;
  margin-left: 8px;
  text-align: left;
  color: #FFFDFF;
  font: 700 16px Montserrat, sans-serif;
}

.footer-description {
color: #FFFFFF;
/* margin-top: 12px; */
font: 400 13px Montserrat, sans-serif;
text-align: left;
}

.footer-heading {
text-align: left;
color: #FFFDFF;
font: 700 16px Montserrat, sans-serif;
}

.footer-details {
color: #FFFFFF;
/* margin-top: 8px; */
text-align: left;
font: 500 13px Montserrat, sans-serif;
}

.social-icons {
  display: flex;
  /* margin-top: 9px; */
}

.social-icon {
    
  width: 34px;
  height: auto;
  margin-top: 10px;
}

.highlight {
font-weight: 500;
/* color: #FFFFFF; */
}

@media (max-width: 991px) {
    .contact-section {
        max-width: 100%;
    }

    .contact-title {
        font-size: 40px;
    }

    .contact-underline {
        margin-top: 40px;
    }

    .form-group {
        max-width: 100%;
    }

    .form-input,
    .form-textarea {
        max-width: 100%;
        padding-right: 20px;
    }

    .submit-button {
        margin-top: 40px;
        white-space: normal;
    }

    .footer {
        max-width: 100%;
        margin-top: 40px;
        padding: 0 20px;
    }

    .footer-content {
        flex-wrap: wrap;
    }
} 

@media (max-width: 600px) {
  .footer-info {
    display: none;
  }
}

@media (max-width: 800px) {
  .footer-contact {
    display: none;
  }
}

@media (max-width: 1000px) {
  .footer-social {
    display: none;
  }
}

html, body {
  overflow-x: hidden;
}




a {
  color: inherit; /* Inherit the color from the button */
  text-decoration: none; /* Remove underline */
  display: block; /* Ensure the link takes full button space */
  width: 100%;
  height: 100%;
}

.header {
  position: fixed;
  z-index: 1000;
}