/* Light mode (default) */
:root {
  --primary: #2266c2;
  --primary-light: #3377d3;
  --primary-dark: #1a5099;

  --gold: #d4a373;            /* Based on your "correct light colors" */
  --gold-light: #deb088;
  --gold-dark: #ca965e;

  --terracotta: #f7d488;
  --terracotta-light: #f9dea6;
  --terracotta-dark: #f5ca6a;

  --white: #ffffff;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Background gradients */
  --bg-gradient: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  --section-bg-gradient: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  --title-gradient: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-light) 100%);
  --button-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --button-hover-gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  --icon-gradient: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg-gradient: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  --section-bg-gradient: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  --title-gradient: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
  --button-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --button-hover-gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  --icon-gradient: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}



body {
  margin: 0;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url('webimage/maincover.jpg');
  background-size: cover;
  background-position: center;
  /*height: 66vh;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  padding: 2rem;
  margin-top: 0px;
}

.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}


.animate-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 1s ease forwards;
}

.animate-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 1s ease forwards 0.3s;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary, #004aad);
  color: var(--white, #fff);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 1s ease forwards 0.6s;
}

.cta-button:hover {
  background: var(--primary-dark, #00337a);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 102, 194, 0.3);
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Bar Styling */
.search-bar {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  gap: 1rem; /* Add this line */
}


.search-bar .form-group {
  margin: 10px;
  flex: 1 1 200px;
  min-width: 180px;
  color: var(--gray-800);
}

.search-bar input,
.search-bar select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.search-btn {
  /*margin: 10px;*/
  margin: 10px;
  margin-top: auto;
  padding: 10px 20px;
  background-color: var(--primary, #004aad);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background-color: var(--primary-dark, #00337a);
}

.sr-only {
  position: absolute;
  left: -9999px;
}

/* Rotating Property Circle */
.property-circle {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  height: 350px;
  width: 350px;
  background: rgba(255, 255, 255, 0.1);
  animation: rotateCircle 12s infinite linear;
  z-index: 2;
}

.property-item {
  position: absolute;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: fadeIn 4s ease-in-out forwards;
}

.property-item:nth-child(1) { animation-delay: 0s; }
.property-item:nth-child(2) { animation-delay: 1s; }
.property-item:nth-child(3) { animation-delay: 2s; }

.property-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Navigation Arrows */
.arrow-container {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
}

.arrow {
  background: var(--white, #fff);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary, #004aad);
}

.arrow:hover {
  background: var(--primary, #004aad);
  color: var(--white, #fff);
}

.arrow.prev { margin-left: 3rem; }
.arrow.next { margin-right: 3rem; }

/* Featured Properties Section */
#featured {
    padding: 40px 40px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: #2266c2;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 20px;
    color: #666666e0;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Property Card */
.property-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 500px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* Property Image */
.property-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-bottom: 3px solid #f1f1f1;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Status Ribbon */



.property-status.ribbon.new-property { background-color: #3dbf6d; }
.property-status.ribbon.sold { background-color: #c0392b; }
.property-status.ribbon.on-offer { background-color: #f39c12; }
.property-status.ribbon.back-to-market { background-color: #8e44ad; }
.property-status.ribbon.just-added { background-color: #3498db; }

/* Property Overlay Content */
.property-overlay {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2266c2;
    margin: 0;
}

.property-details .location {
    font-size: 17px;
    color: #4b5563;
    font-weight: 600;
    margin: 0;
}

.property-details .price {
    font-size: 24px;
    font-weight: 700;
    color: #c9a87d;
    margin-top: 12px;
}

/* Property Features */
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.property-features span {
    font-size: 16px;
    color: #4b5563;
    font-weight: 600;
}

.property-features i {
    color: #c9a87d;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.view-more-btn {
    background-color: #2266c2;
    color: white;
    padding: 16px 34px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #1a4f8d;
}
.services{
    padding: 3rem 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-card {
        max-width: 100%;
        height: auto;
    }
    .property-image {
        height: 250px;
    }
    .property-details h3 {
        font-size: 20px;
    }
    .property-details .price {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .hero .hero-content{
        max-width: 100%;
        padding: 0;
    }
    .animate-title{
        font-size: 2.5rem !important;
    }
    .animate-text {
        font-size: 1.2rem;
    }
    .section-header p{
        font-size: 1.125rem !important;
    }
    .services-grid{
        grid-template-columns: repeat(1, 1fr) !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #featured{
        padding: 20px;
    }
    .cta-button{
        display: flex !important;
        width: fit-content !important;
        margin: auto;
    }
    .view-more-btn{
        font-size: 1.1rem;
    }
    /*.reviews-summary{*/
    /*    margin: 0 !important;*/
    /*}*/
    /*.reviewShaka{*/
    /*    margin-top: 20px !important;*/
    /*}*/
    /*.reviews-summary h3{*/
    /*    font-size: 2.2rem !important;*/
    /*}*/
    /*.reviews-summary p{*/
    /*    margin-bottom: 0 !important;*/
    /*}*/
    /*.reviews-summary .reviews-intro{*/
    /*    font-size: 1.2rem !important;*/
    /*    margin-bottom: 0 !important;*/
    /*}*/
    /*.reviews-summary .stars{*/
    /*    margin-bottom: 0!important;*/
    /*}*/
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 4rem;
    max-width: 1200px;
    margin: 0 auto;
}


.services p {
    max-width: 900px;  /* limits width but allows smaller widths */
    width: 100%;       /* fills available space */
    margin: 0 auto; 
    padding-top: 30px;   /* centers paragraph if container is wider */
}


.service-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 1rem;
    
}

.service-card p {
    color: var(--gray-900);
    line-height: 1.6;
    font-weight: 400;
}



.location-slide:hover img {
    transform: scale(1.05); /* Slightly reduced for smoother zoom */
}



/* Brand Section */
.brand-section {
    padding: 6rem 0;
    background: url('path-to-brand-bg.jpg') center/cover no-repeat;
    position: relative;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.brand-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.brand-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-form {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.info-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.info-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
}

.info-form button {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-form button:hover {
    background: var(--primary-dark);
}












/* 7. Call-to-Action (Neutral Background & Better Spacing) */
.cta-section {
  background-color: #f2f5fa;
  color: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
}

.cta-content h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #444;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #004aad;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #003377;
}



/* Dark Mode Compatibility */
.dark-mode .search-bar .form-group{
    color: white;
}
.dark-mode .cta-section {
  background-color: #1e283a;
  color: #dce6f1;
}

.dark-mode .section-header h2{
  color: var(--gold-dark) !important;
  /*color: var(--gold-light);*/
   background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dark-mode .service-card h3{
  color: var(--gray-100) !important;
}
.dark-mode .property-image {
border-bottom: 3px solid var(--gold-light);
}
.dark-mode .section-header p{
color: var(--gray-100);
}
.dark-mode .cta-content p {
color: #bbcde6;
}

.dark-mode .cta-button {
background-color: #5a7ab8;
color: #fff;
}

.dark-mode .cta-button:hover {
background-color: #3a5680;
}

.dark-mode .about-us {
background-color: #121c2c;
color: #dce6f1;
}

.dark-mode .about-text p {
color: #bbcde6;
}

.dark-mode .about-link {
color: #9bb8f0;
}

.dark-mode .about-link:hover {
color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .animate-title{
        font-size: 3rem;
    }
    .services-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .animate-text{
        font-size: 1.4rem;
    }
    .property-card{
        height: auto;
    }
    .property-image{
        height: 300px;
    }
    .section-header h2{
        font-size: 2.5rem;
    }

}

@media (max-width: 768px) {
    .section-header h2{
        font-size: 2rem;
    }

  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-image,
  .about-text {
    flex: 1 1 100%;
  }
}

/* review */



/* dark mode */
/* Dark mode overrides */
body.dark-mode {
  /*background-color: #121212;*/
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e0e0e0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section - Dark */
body.dark-mode .hero {
  color: #f0f0f0;
}

body.dark-mode .hero .hero-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* Search Bar */
body.dark-mode .search-bar {
  background: rgba(30, 30, 30, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

body.dark-mode .search-bar input,
body.dark-mode .search-bar select {
  background-color: #222;
  border: 1px solid #444;
  color: #ddd;
}

body.dark-mode .search-btn {
  background-color: #2266c2;
  color: #fff;
}

body.dark-mode .search-btn:hover {
  background-color: #1a4f8d;
}

/* Property Cards */
body.dark-mode .property-card {
  background: #1e1e1e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  color: #ddd;
}

body.dark-mode .featured-properties{
    background: var(--gray-900) !important;
}

body.dark-mode .property-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 1);
}

body.dark-mode .property-details h3{
    color: var(--gold-dark) !important;
    /*color: var(--gold-light);*/
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.dark-mode .property-details .location,
/*body.dark-mode .property-details .price,*/
body.dark-mode .property-features span {
  color: var(--gray-100);
}

/* Status ribbons - adjust brightness for visibility */
body.dark-mode .property-status.ribbon.new-property { background-color: #28a745; }
body.dark-mode .property-status.ribbon.sold { background-color: #e74c3c; }
body.dark-mode .property-status.ribbon.on-offer { background-color: #f39c12; }
body.dark-mode .property-status.ribbon.back-to-market { background-color: #8e44ad; }
body.dark-mode .property-status.ribbon.just-added { background-color: #3498db; }

/* Buttons */
body.dark-mode .cta-button,
body.dark-mode .view-more-btn {
  background-color: #2266c2;
  color: #fff;
}

body.dark-mode .cta-button:hover,
body.dark-mode .view-more-btn:hover {
  background-color: #1a4f8d;
}

/* Navigation Arrows */
body.dark-mode .arrow {
  background: #222;
  color: #2266c2;
  box-shadow: 0 0 8px #2266c2;
}

body.dark-mode .arrow:hover {
  background: #2266c2;
  color: #fff;
}

/* Services Section */
body.dark-mode .services{
    background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 100%);
}
body.dark-mode .service-card {
  background: #1e1e1e;
  color: #ccc;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

body.dark-mode .service-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.9);
}

body.dark-mode .service-card i {
  color: #2266c2;
}

