/* Custom Colors - DProperty Green Theme */
:root {
    --primary-color: #1a9f5a;
    --primary-dark: #157a47;
    --primary-light: #2db86a;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* General Styles */
body {
    padding-top: 76px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Transparent Navbar Styles */
#mainNavbar {
    background: var(--primary-color) !important;
    backdrop-filter: blur(10px);
    /*transition: all 0.3s ease;*/
    padding: 0.4rem 0;
}

#navbarNav > ul > li > a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0px 25px;
}

#navbarNav > ul > li > a:hover {
    color: white;
    border: none;
}

#navbarNav > ul > li:hover {
    border: none;
}

#navbarNav > ul > li > a.active {
    color: #ffcc08 !important;
    border: none;
}

#mainNavbar.bg-primary {
    background: var(--primary-color) !important;
    backdrop-filter: none;
}

.headerLogo {
    height: 40px;
}

#mobileNavToggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Optional: Make the button border and background white or transparent */
#mobileNavToggle {
    border-color: #fff;
    background-color: transparent;
}

/* Hero Carousel Styles */
.hero-carousel-section {
    margin-top: -14px;
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 47vh;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 33, 43, 0.38) 0%, rgba(16, 20, 23, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    color: white;
    bottom: 16%;
    padding: 0 30px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Animation for carousel content */
.animate-slide-up {
    animation: slideUp 1s ease-out;
}

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

.carousel-item.active .animate-slide-up {
    animation: slideUp 1s ease-out;
}

.hero-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Service Card Styles */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 13px 13px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    text-align: center;
}

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

.service-image {
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    max-height: 150px;
}

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

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

.service-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Social Media Cards */
.social-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.social-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.social-content {
    position: relative;
}

.social-preview {
    position: relative;
    overflow: hidden;
}

.social-preview img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

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

.social-info h6 {
    font-size: 1rem;
}

.social-stats .badge {
    font-size: 0.75rem;
}

/* Testimonial Carousel Styles */
.testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 15px 0;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.testimonial-author h6 {
    color: #333;
    font-size: 1rem;
}

.testimonial-author p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color) !important;
}

/* Carousel Controls */
#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#reviewsCarousel .carousel-control-prev {
    left: -20px;
}

#reviewsCarousel .carousel-control-next {
    right: -20px;
}

#reviewsCarousel .carousel-indicators {
    bottom: -40px;
}

#reviewsCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
    border: none;
}

#reviewsCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Mobile Navigation Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.3s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    background: var(--primary-color);
    padding: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-nav-close {
    background: var(--primary-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu > li > a {
    color: #fff0e1;
}

.mobile-nav-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }

    body {
        padding-top: 60px;
    }

    .hero-carousel-section {
        /*margin-top: -60px;*/
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-slide {
        min-height: 35vh;
    }

    .mobile-nav-content {
        width: 60%;
    }

    .service-card {
        padding: 15px;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    #reviewsCarousel .carousel-control-prev,
    #reviewsCarousel .carousel-control-next {
        display: none;
    }
}

@media (max-width: 576px) {
    .mobile-nav-content {
        width: 55%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }
    #footerRep {
        display: none !important;
    }
}

/* Section Spacing */
section {
    padding: py-5;
    scroll-margin-top: 70px;
}

/* Update existing styles to use new green color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-size: 0.95rem;
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-size: 0.95rem;
}

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

/* Typography Improvements */
.h2 {
    font-size: 2rem;
}

.lead {
    font-size: 1.1rem;
}

/* Card Improvements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Back to Top Button */
#backToTop {
    width: 45px;
    height: 45px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

/* Accessibility Improvements */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Content Cards for Facebook/YouTube */
.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.content-header {
    padding: 15px 20px;
    font-weight: 600;
}

.content-body {
    padding: 20px;
}

.video-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.play-button {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-button {
    opacity: 1;
}

.content-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
}

.content-actions .badge {
    font-size: 0.8rem;
}

/* Property Card Styles */
.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.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.05);
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    min-height: 50px;
}

.property-location {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.property-features {
    color: #555;
    font-size: 0.9rem;
}

.property-features .feature {
    display: flex;
    align-items: center;
}

.property-features .feature i {
    margin-right: 5px;
    color: var(--primary-color);
}

.property-actions .btn-success {
    background-color: #25d366;
    border-color: #25d366;
}

.property-actions .btn-success:hover {
    background-color: #1fba58;
    border-color: #1fba58;
}

.property-actions .btn-light {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.property-actions .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
}


#servicesCarousel {
    position: relative;
    padding: 0 60px;
}

@media (max-width: 991.98px) {
    #servicesCarousel {
        padding: 0 40px;
    }
    #footerRep {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #servicesCarousel {
        padding: 0 30px;
    }

    .services-control-prev,
    .services-control-next {
        width: 35px;
        height: 35px;
    }

    .services-control-icon {
        font-size: 0.9rem;
    }

    /* Show only 1 service per slide on mobile */
    #servicesCarousel .carousel-item .col-lg-4:nth-child(n + 2) {
        display: none;
    }

    #footerCap {
        display: block !important;
    }

    #footerRep {
        display: none !important;
    }
}

#footerCap {
    display: none;
}

@media (max-width: 576px) {
    #servicesCarousel {
        padding: 0 20px;
    }
}

/* Ensure equal height for service cards in carousel */
#servicesCarousel .service-card {
    height: 100%;
    min-height: 400px;
}

#servicesCarousel .service-description {
    font-size: 0.95rem;
    line-height: 1.5;
}
