/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #1a4b8c;
  --primary-light: #2d62a8;
  --primary-dark: #123567;
  --accent-color: #f5b120;
  --accent-light: #f7c24b;
  --accent-dark: #d69611;
  --light-gray: #f5f7fa;
  --dark-gray: #333333;
  --white: #ffffff;
  --black: #000000;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --box-shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-sm: 4px;
  
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 48px;
  --spacing-6: 64px;
  
  --font-family-heading: 'Montserrat', sans-serif;
  --font-family-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-family-body);
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

p {
  margin-bottom: var(--spacing-3);
}

section {
  padding: var(--spacing-5) 0;
  position: relative;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: var(--primary-light) !important;
}

.bg-primary-dark {
  background-color: var(--primary-dark) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.btn {
  padding: 10px 24px;
  transition: var(--transition);
  border-radius: var(--border-radius);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  box-shadow: 0 4px 15px rgba(26, 75, 140, 0.2) !important;
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--black);
}

.btn-accent:hover, .btn-accent:focus, .btn-accent:active {
  background-color: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: var(--black) !important;
  box-shadow: 0 4px 15px rgba(245, 177, 32, 0.2) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Section Title */
.section-title {
  margin-bottom: var(--spacing-5);
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-family-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: var(--spacing-1);
}

.section-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--spacing-2);
  position: relative;
  color: var(--primary-color);
}

.title-line {
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  display: block;
  position: relative;
}

.title-line:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

#preloader .loader {
  width: 80px;
  height: 80px;
  border: 6px solid var(--light-gray);
  border-radius: 50%;
  border-top: 6px solid var(--primary-color);
  border-bottom: 6px solid var(--accent-color);
  animation: spin 1.5s linear infinite;
}

#preloader.fade-out {
  opacity: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: var(--transition);
  z-index: 997;
  padding: 0;
}

.top-bar {
  padding: 8px 0;
  font-size: 14px;
}

.top-info li {
  margin-right: var(--spacing-3);
}

.social-icons li a {
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}

.social-icons li a:hover {
  color: var(--accent-color);
}

.navbar {
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-family-heading);
}

.logo-tagline {
  font-size: 12px;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  padding: 10px 15px !important;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 15px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover:before, .nav-link.active:before {
  width: calc(100% - 30px);
}

.nav-btn {
  padding: 8px 20px !important;
}

.nav-btn:before {
  display: none;
}

.header-scrolled {
  box-shadow: var(--box-shadow);
}

.header-scrolled .navbar {
  padding: 10px 0;
}

.header-scrolled .top-bar {
  display: none !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
}

.hero-slider {
  position: relative;
  z-index: 1;
}

.hero-slide {
  height: 100vh;
  min-height: 600px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
}

.hero-section h1 {
  margin-bottom: var(--spacing-3);
  font-weight: 700;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: var(--spacing-4);
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.animated {
  opacity: 0;
  transform: translateY(30px);
}

.fadeInUp {
  animation: fadeInUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.feature-box {
  padding: var(--spacing-3);
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--spacing-2);
}

.feature-box h4 {
  font-size: 18px;
  margin-bottom: var(--spacing-1);
}

.feature-box p {
  margin-bottom: 0;
  color: #666;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-4);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-card:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover:after {
  height: 100%;
  opacity: 0.05;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(26, 75, 140, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--spacing-3);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: var(--spacing-2);
  color: var(--primary-color);
}

.service-card p {
  margin-bottom: 0;
  color: #666;
}

/*--------------------------------------------------------------
# Properties Section
--------------------------------------------------------------*/
.property-filter {
  margin-bottom: var(--spacing-4);
}

.btn-filter {
  padding: 8px 20px;
  border-radius: 30px;
  background-color: var(--white);
  color: var(--dark-gray);
  border: 2px solid transparent;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.btn-filter:hover, .btn-filter.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.property-card {
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.property-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

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

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 15px;
  background-color: var(--accent-color);
  color: var(--dark-gray);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.property-details {
  padding: var(--spacing-3);
}

.property-details h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-2);
  color: var(--primary-color);
}

.property-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-2);
  font-size: 14px;
  color: #666;
}

.property-features {
  margin-top: var(--spacing-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-features span {
  padding: 5px 10px;
  background-color: rgba(26, 75, 140, 0.1);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.property-features span i {
  margin-right: 5px;
}

/* Property Modal Styles */
.modal-content {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal-header {
  background-color: var(--primary-color);
  color: var(--white);
}

.property-specs {
  margin: var(--spacing-3) 0;
}

.spec-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-1);
}

.spec-item i {
  margin-right: 8px;
  color: var(--primary-color);
}

/* Property Item Animation */
.property-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.property-item.show {
  animation: fadeInUp 0.5s ease forwards;
}

/*--------------------------------------------------------------
# Why Choose Us Section
--------------------------------------------------------------*/
.why-us-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-4);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.why-us-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.why-us-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(26, 75, 140, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto var(--spacing-3);
  transition: var(--transition);
}

.why-us-card:hover .why-us-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.why-us-card h3 {
  font-size: 22px;
  margin-bottom: var(--spacing-2);
  color: var(--primary-color);
}

.why-us-card p {
  color: #666;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-4);
  position: relative;
}

.testimonial-content p {
  font-size: 16px;
  font-style: italic;
  margin-bottom: var(--spacing-3);
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--spacing-2);
  border: 3px solid var(--primary-color);
}

.author-info h5 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.author-info span {
  font-size: 14px;
  color: #666;
}

.rating {
  color: var(--accent-color);
  font-size: 18px;
}

.testimonial-indicators {
  position: static;
  margin-top: var(--spacing-3);
  margin-bottom: 0;
  justify-content: center;
  gap: 5px;
}

.testimonial-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(26, 75, 140, 0.3);
  margin: 0 5px;
  cursor: pointer;
}

.testimonial-indicators li.active {
  background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-info-item {
  display: flex;
  margin-bottom: var(--spacing-3);
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(26, 75, 140, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  margin-right: var(--spacing-3);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-info-text p {
  margin-bottom: 0;
  color: #666;
}

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-4);
  box-shadow: var(--box-shadow);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: var(--black);
  transform: translateY(-5px);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-top {
  background-color: #1a1a1a;
  color: #ccc;
}

.footer-logo {
  margin-bottom: var(--spacing-3);
}

.footer-title {
  color: var(--white);
  font-size: 20px;
  margin-bottom: var(--spacing-2);
  font-weight: 600;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.footer-links li a i {
  font-size: 12px;
  margin-right: 8px;
}

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

.contact-info li {
  display: flex;
  margin-bottom: 15px;
  color: #ccc;
}

.contact-info li i {
  font-size: 20px;
  color: var(--accent-color);
  margin-right: 10px;
  margin-top: 5px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
}

.footer-social-links .social-link {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social-links .social-link:hover {
  background-color: var(--accent-color);
  color: var(--black);
}

.footer-bottom {
  font-size: 14px;
  background-color: #111;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 996;
  box-shadow: var(--box-shadow);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-5px);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .header-scrolled .navbar {
    padding: 15px 0;
  }
  
  .hero-section h1 {
    font-size: 32px;
  }
  
  .section-heading {
    font-size: 28px;
  }
  
  .navbar-nav {
    margin-top: 15px;
  }
  
  .nav-link:before {
    left: 0;
  }
  
  .nav-link:hover:before, .nav-link.active:before {
    width: 30px;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 28px;
  }
  
  .hero-section p {
    font-size: 16px;
  }
  
  .service-card, .why-us-card, .contact-form-container {
    padding: var(--spacing-3);
  }
  
  .property-image {
    height: 180px;
  }
  
  .property-details h3 {
    font-size: 18px;
  }
  
  .footer-widget {
    margin-bottom: var(--spacing-4);
  }
}

@media (max-width: 576px) {
  .section-title {
    margin-bottom: var(--spacing-4);
  }
  
  .hero-section {
    height: 90vh;
  }
  
  .hero-slide {
    height: 90vh;
  }
  
  .hero-section h1 {
    font-size: 24px;
  }
  
  .section-heading {
    font-size: 24px;
  }
  
  .btn {
    padding: 8px 20px;
  }
  
  .testimonial-card {
    padding: var(--spacing-3);
  }
}