:root {
  --primary-color: #ffffff;
  --secondary-light: #e0f7fa;
  --secondary-color: #00796b;
  --secondary-dark: #004d40;
  --secondary-darker: #00332a;
  --text-color: #212121;
  --overlay-color: rgba(0, 0, 0, 0.6);
  --tab-border: #b0bec5;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Enable smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
  perspective: 1000px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/*  Scroll bar styles */
body::-webkit-scrollbar-thumb {
  background-image: linear-gradient(to bottom, rgb(0, 0, 85), rgb(0, 0, 50));
}
body::-webkit-scrollbar {
  width: 5px;
}
body::-webkit-scrollbar-track {
  background-color: #9e9e9eb2;
}
/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f3f3f3;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header.scrolled {
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo h1 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
  font-size: 28px;
  transition: color 0.3s ease;
}
.logo img {
  height: 50px;
}

.header.scrolled .logo h1 {
  color: var(--text-color);
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.header.scrolled .nav-links a {
  color: var(--text-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}

.header.scrolled .hamburger span {
  background: var(--text-color);
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 50%;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.slide:nth-child(1) {
  background-image: url("../images/properties/4.jpg");
}
.slide:nth-child(2) {
  background-image: url("../images/properties/2.jpg");
}
.slide:nth-child(3) {
  background-image: url("../images/properties/3.jpg");
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
}
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--primary-color);
  padding: 0 20px;
}

.cta-container {
  position: absolute;
  bottom: 60px;
  right: 20px;
  z-index: 2;
}

.cta-btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* Mission Statement */
.mission-vision {
  padding: 100px 0;
  background: linear-gradient(135deg, #e4e1e1 0%, #d0e7d8 100%);
  overflow: hidden;
}

.vision-container,
.mission-container {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.vision-content,
.mission-content {
  text-align: center;
}

.vision-text,
.mission-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-top: 20px;
}

.presence-container {
  text-align: center;
  margin-top: 80px;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 20px;
}

.country-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.country-flag {
  width: 80px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.country-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .mission-vision {
    padding: 60px 0;
  }

  .vision-container,
  .mission-container {
    margin: 0 20px 40px;
    padding: 30px;
  }

  .vision-text,
  .mission-text {
    font-size: 1rem;
  }

  .countries-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .country-card {
    padding: 15px;
  }

  .country-flag {
    width: 60px;
  }

  .country-name {
    font-size: 1rem;
  }
}
/* Properties Section */
.properties {
  padding: 100px 0;
  background: var(--primary-color);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
}

.property-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.property-card a {
  text-decoration: none !important;
}
.property-card:hover {
  transform: translateY(-10px);
}

.property-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.property-content {
  padding: 20px;
}

.property-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.location {
  color: #666;
  margin-bottom: 15px;
}

.property-features {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.property-features span {
  font-size: 0.9rem;
  color: #666;
}

.property-features i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.property-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price h4 {
  font-size: 1.8rem;
  color: var(--secondary-dark);
}

.view-details {
  padding: 10px 20px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.view-details:hover {
  background: var(--secondary-dark);
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: #f9f9f9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.popup.active {
  display: flex;
}

.popup img {
  max-width: 90%;
  max-height: 90vh;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: var(--primary-color);
}

.testimonials-slider {
  padding: 40px 0;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author h4 {
  color: var(--secondary-dark);
  margin-bottom: 5px;
}

.testimonial-author p {
  color: #666;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: #f9f9f9;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid #ddd;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -20px;
  font-size: 0.9rem;
  color: var(--secondary-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: var(--secondary-dark);
}

/* Footer */
.footer {
  background: var(--secondary-darker); /* Fallback color */
  color: var(--primary-color);
  padding: 80px 0 20px;
  margin: 0 !important;
  position: relative; /* Position relative for the overlay */
  overflow: hidden; /* Hide overflow */
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/properties/4.jpg"); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Adjust opacity for dimming effect */
  z-index: 0; /* Place behind the footer content */
}

.footer-content {
  position: relative; /* Position relative to stack above the background */
  z-index: 1; /* Ensure content is above the background */
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
}

.footer-newsletter h4 {
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.sub-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links a {
    color: var(--text-color);
  }

  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .contact-wrapper,
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* About Section Styles */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.about-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(to right, #fff 40%, #f8f8f8 40%);
}

.about-hero-image {
  flex: 1;
  position: relative;
  height: 600px;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.about-hero-image:hover img {
  transform: scale(1.02);
}

.about-hero-content {
  flex: 1;
  padding: 2rem;
  animation: slideIn 1s ease-out;
}

.about-welcome {
  color: var(--secondary-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

.about-title {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.7s;
}

.about-description {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.9s;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.about-feature-item:nth-child(1) {
  animation-delay: 1.1s;
}
.about-feature-item:nth-child(2) {
  animation-delay: 1.3s;
}
.about-feature-item:nth-child(3) {
  animation-delay: 1.5s;
}
.about-feature-item:nth-child(4) {
  animation-delay: 1.7s;
}

.about-checkmark {
  width: 20px;
  height: 20px;
  background: var(--secondary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.about-experience-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.about-number {
  color: var(--secondary-dark);
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
}

.about-text {
  color: #333;
  font-size: 1rem;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-hero {
    flex-direction: column;
    background: white;
  }

  .about-hero-image {
    height: 400px;
    width: 100%;
  }

  .about-hero-content {
    padding: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .about-hero-image {
    height: 300px;
  }

  .about-experience-badge {
    bottom: 1rem;
    right: 1rem;
  }

  .about-title {
    font-size: 1.8rem;
  }
  .hero-content h1 {
    font-size: 1rem;
  }
}
/* Blogs Section */

.blog {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: var(--text-color);
  margin-bottom: 50px;
  position: relative;
}

.section-title::before {
  content: "---";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--secondary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff1e6d;
  color: white;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.blog-date .day {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.blog-date .month {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.blog-content {
  padding: 25px 20px;
}

.blog-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--text-color);
  margin: 0 0 15px 0;
  transition: color 0.3s ease;
}

.blog-content p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--tab-border);
}

.author {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #666;
}

.author i {
  margin-right: 5px;
  color: var(--secondary-color);
}

.read-more {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--secondary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Animation classes */
.wow.fadeIn {
  animation: fadeIn 1s ease-in-out;
}

.wow.fadeInUp {
  animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

  .section-title::before {
    font-size: 12px;
  }
}

#partner {
  padding: 60px 20px; /* Add padding to the section */
}

.partner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-image {
  display: none; /* Hidden on mobile */
  margin-left: 40px;
  opacity: 0;
  border-radius: 10px;
  transform: translateX(50px);
  transition: all 0.8s ease-in-out;
  flex: 1;
  position: relative;
  height: 600px;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.partner .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.partner .partner-form {
  width: 100%;
}
.partner-content .submit-btn {
  transition: background-color 0.4s ease-in-out, transform 0.3s ease;
}

.partner-content .submit-btn:hover {
  background-color: #0056b3; /* Change color on hover */
  transform: scale(1.05); /* Button grows slightly on hover */
}

@media (min-width: 768px) {
  .partner-content {
    flex-direction: row; /* Form and image side by side on desktop */
  }

  .partner-image {
    display: block; /* Show image on desktop view */
    opacity: 1;
    transform: translateX(0);
  }
  .partner .partner-form {
    width: 50%;
  }
}

.wow.fadeIn {
  animation: fadeIn 1s ease-in-out;
}

/* FadeIn Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
