/* colors */
/* green : #a8d394 , #88c978 , #39af46 */
/* pink : #bd8d97 , #af738d , #8a2a7f */
/* RTL Support and Font */
* {
    font-family: 'Cairo', Arial, sans-serif;
}

body {
    direction: rtl;
    text-align: right;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Primary Colors (based on the original site) */
:root {
    --primary-color: #bd8d97;
    --secondary-color: #f8f9fa;
    --accent-color: gold;
    --text-dark: #333;
    --text-light: #666;
}

::selection {
    background: #bd8d97; /* Background of selected text */
    color: white;         /* Color of the text */
  }
  
  /* For Firefox */
  ::-moz-selection {
    background: #bd8d97;
    color: white;
  }

/* Primary Button - Normal State */
.btn-primary {
    background-color: #bd8d97;
    border-color: #bd8d97;
    color: white;
  }
  
  /* Hover State */
  .btn-primary:hover {
    background-color: #8a2a7f;
    border-color: #8a2a7f;
    color: white;
  }
  
  /* Focus / Active / Clicked State */
  .btn-primary:focus,
  .btn-primary:active,
  .btn-primary.active,
  .show > .btn-primary.dropdown-toggle {
    background-color: #8a2a7f !important;
    border-color: #8a2a7f !important;
    box-shadow: 0 0 0 0.25rem rgba(138, 42, 127, 0.25) !important; /* light purple glow */
    outline: none !important;
    color: white;
  }


.custom-outline-primary {
    color: #bd8d97;
    border-color: #bd8d97;
  }
  
  .custom-outline-primary:hover,
  .custom-outline-primary:focus {
    background-color: #8a2a7f;
    color: white;
    border-color: #8a2a7f;
  }
  
  /* FAQ Section Custom Colors */
.accordion-button {
    color: #bd8d97;
    border-color: #bd8d97;
}

.accordion-button:not(.collapsed) {
    background-color: #8a2a7f;
    color: white;
    box-shadow: none;
}

.accordion-button:hover {
    background-color: #8a2a7f;
    color: white;
}

.accordion-button:focus {
    border-color: #bd8d97;
    box-shadow: 0 0 0 0.25rem rgba(189, 141, 151, 0.25);
}

.accordion-button::after {
    filter: brightness(0) invert(1); /* Makes the arrow white */
}

.accordion-item {
    border: 1px solid #bd8d97;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-body {
    background-color: #f8f9fa;
    border-top: 1px solid #bd8d97;
}

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

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

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #8a2a7fcc, rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.project-status.available {
    background: #28a745;
}

.project-status.construction {
    background: #ffc107;
    color: #333;
}

.project-status.sold {
    background: #dc3545;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(138, 42, 127, 0.481);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-type {
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-details {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #8a2a7f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Statistics Section */
.stat-item {
    padding: 20px;
}

.stat-item i {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact-info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Form Controls */
.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(160, 44, 148, 0.25);
}

.dropdown-toggle {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Remove these lines */
select {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    contain: layout !important;
    isolation: auto !important;
}

.container, .container-fluid, .row, .col-md-6, .col-lg-8, .mb-3, .contact-form {
    position: static !important;
    transform: none !important;
    contain: none !important;
    isolation: auto !important;
}

/* Targeted Chrome RTL select fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    html[dir="rtl"] select,
    body[dir="rtl"] select {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Ensure proper form control styling */
.form-control, .form-select {
    border: 2px solid #bd8d97;
    border-radius: 10px;
    padding: 12px 15px;
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8a2a7f;
    transform: translateY(-3px);
}

/* Back to Top Button */
#backToTop {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(160, 44, 142, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .counter {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .service-card {
        padding: 2rem 1rem;
    }
    
    .contact-form,
    .contact-info-card {
        margin-bottom: 2rem;
    }
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* Filter Buttons */
.btn-group .btn {
    border-radius: 25px !important;
    margin: 0 5px;
}

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

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

  .btn-outline-primary:focus,
  .btn-outline-primary:hover,
  .btn-outline-primary:active,
  .btn-outline-primary.active,
  .show > .btn--outlineprimary.dropdown-toggle {
    background-color: #8a2a7f !important;
    border-color: #8a2a7f !important;
    box-shadow: 0 0 0 0.25rem rgba(138, 42, 127, 0.25) !important; /* light purple glow */
    outline: none !important;
    color: white;
  }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a2a7f;
}

.hero-section video {
    object-fit: cover;
  }
  
  .animate-text {
    animation: moveUpDown 3s ease-in-out infinite;
  }
  
  @keyframes moveUpDown {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    }
  }
  
  /* Optional delays */
  .delay-1s { animation-delay: 1s; }
  .delay-2s { animation-delay: 2s; }

  /* News Section Styles */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Carousel Controls Customization */
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: #bd8d97;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

#newsCarousel .carousel-control-prev {
    right: -25px;
    left: auto;
}

#newsCarousel .carousel-control-next {
    left: -25px;
    right: auto;
}

#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
    background: #8a2a7f;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-icon {
    color: white;
}

/* Carousel Indicators */
#newsCarousel .carousel-indicators {
    bottom: -50px;
}

#newsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    margin: 0 5px;
}

#newsCarousel .carousel-indicators button.active {
    background-color: #8a2a7f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-image {
        height: 180px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    #newsCarousel .carousel-control-prev,
    #newsCarousel .carousel-control-next {
        display: none;
    }
    
    #newsCarousel .carousel-indicators {
        bottom: -30px;
    }
}

@media (max-width: 576px) {
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-image {
        height: 150px;
    }
}

/* About Section - Side by Side Layout */
.about-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.highlight-text {
    color: #bd8d97;
    font-weight: 600;
}

.highlight-link {
    color: #bd8d97;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #bd8d97;
    transition: all 0.3s ease;
}

.highlight-link:hover {
    color: #8a2a7f;
    border-bottom-color: #8a2a7f;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    background: #bd8d97;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.cta-button:hover {
    background: #8a2a7f;
    color: white;
    transform: translateX(-5px);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(-3px);
}

/* Summary Icons Row */
.summary-icons-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;  /* This centers the icons */
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-item:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #bd8d97, #8a2a7f);  /* Updated gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(189, 141, 151, 0.3);  /* Updated shadow color */
}

.icon-item:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(189, 141, 151, 0.4);  /* Updated hover shadow */
}

.icon-item:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(189, 141, 151, 0.3);
}

.icon-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    max-width: 80px;
    line-height: 1.3;
}

/* Image Container */
.about-image-container {
    position: relative;
    height: 500px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-wrapper:hover .main-image {
    transform: scale(1.02);
}

/* Blue Accent */
/* .blue-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #bd8d97, #af738d);
    border-radius: 15px;
    z-index: 2;
} */

/* Green Bottom Accent */
/* .green-bottom-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #7CB342, #8BC34A);
} */

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .about-title {
        font-size: 2.8rem;
    }
    
    .summary-icons-row {
        gap: 1rem;
    }
    
    .about-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .summary-icons-row {
        gap: 0.8rem;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .icon-label {
        font-size: 0.8rem;
        max-width: 70px;
    }
    
    .about-image-container {
        height: 300px;
    }
    
    /* .blue-accent {
        width: 60px;
        height: 60px;
        top: -15px;
        right: -15px;
    } */
}

@media (max-width: 576px) {
    .about-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .summary-icons-row {
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .icon-label {
        font-size: 0.75rem;
        max-width: 60px;
    }
}

/* Animation Effects */
.about-content {
    animation: fadeInLeft 1s ease-out;
}

.about-image-container {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.icon-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.icon-item:nth-child(1) { animation-delay: 0.1s; }
.icon-item:nth-child(2) { animation-delay: 0.2s; }
.icon-item:nth-child(3) { animation-delay: 0.3s; }
.icon-item:nth-child(4) { animation-delay: 0.4s; }
.icon-item:nth-child(5) { animation-delay: 0.5s; }

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



