/* Root Variables */
:root {
    --primary-color: #1a472a;
    --secondary-color: #d4af37;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --white: #ffffff;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0f2e1a;
    border-color: #0f2e1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.3);
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    margin-right: 20px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-left: 8px;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
}

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

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 5px;
    padding: 8px 20px !important;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.05;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26,71,42,0.7), rgba(26,71,42,0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.property-search-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 0 auto;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
}

.form-control {
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26,71,42,0.25);
}

.btn-search {
    padding: 12px 30px;
    white-space: nowrap;
}

/* Featured Blog */
.featured-blog {
    margin-top: -50px;
    position: relative;
    z-index: 3;
    padding: 0 15px;
}

.blog-featured-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.blog-featured-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-featured-card .col-md-6:last-child {
    padding: 40px;
}

.badge {
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

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

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.lead {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.feature-box {
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-light);
}

/* Developers Section */
.developers-section {
    background-color: var(--bg-light);
}

.developers-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.developer-logo {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.developer-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.developer-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.developer-logo:hover img {
    filter: grayscale(0%);
}

/* Properties Section */
.properties-section {
    background-color: var(--white);
}

.property-tabs .nav-tabs {
    border: none;
}

.property-tabs .nav-link {
    border: 2px solid transparent;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 5px;
}

.property-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.property-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

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

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

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 2;
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26,71,42,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.property-content {
    padding: 20px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.property-type {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

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

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.property-title a {
    color: var(--text-dark);
}

.property-title a:hover {
    color: var(--primary-color);
}

.property-developer {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.property-features span {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

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

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-header h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.rating {
    color: var(--secondary-color);
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

/* Why Choose Section */
.why-choose-section {
    background-color: var(--white);
}

.why-choose-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.why-choose-card:hover {
    background-color: var(--bg-light);
    transform: translateY(-5px);
}

.why-choose-card .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.why-choose-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.why-choose-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a3d 100%);
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Blog Section */
.blog-section {
    background-color: var(--bg-light);
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card h4 a {
    color: var(--text-dark);
}

.blog-card h4 a:hover {
    color: var(--primary-color);
}

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

.footer-main {
    padding: 60px 0 30px;
}

.footer-logo {
    max-height: 50px;
}

.footer-widget h5 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-widget p,
.footer-widget a {
    color: #b3b3b3;
    margin-bottom: 10px;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

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

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

.newsletter-form .input-group {
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: #b3b3b3;
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .developers-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-featured-card img {
        height: 250px;
    }
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--primary-color);
    min-height: 100vh;
    color: var(--white);
}

.admin-content {
    padding: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-light);
    margin: 0;
}

.table-responsive {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
