/* Main CSS Styles for 20H Investment Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000; /* Black */
    --secondary-color: #D4AF37; /* Gold */
    --text-color: #333333;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --dark-gray: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loading and Error Messages */
.loading-message,
.error-message,
.no-properties-message {
    padding: 20px;
    text-align: center;
    width: 100%;
    font-size: 16px;
    color: var(--dark-gray);
    background-color: var(--gray-color);
    border-radius: 5px;
    margin: 20px 0;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    right: 0;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.whatsapp-btn a {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.whatsapp-btn a i {
    margin-left: 8px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Account for fixed header */
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Search Filter */
.search-filter {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 25px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.search-filter h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
}

.search-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Featured Properties Section */
.featured-properties {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.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;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.property-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.property-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.property-info span {
    display: flex;
    align-items: center;
}

.property-info i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.property-location {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.view-details {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn a {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.view-all-btn a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Call to Action Section */
.cta {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--light-color);
    text-align: center;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn i {
    margin-left: 10px;
}

.cta-btn:hover {
    background-color: #128C7E; /* Darker WhatsApp green */
    transform: translateY(-3px);
}

/* Footer Section */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-left: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float a i {
    font-size: 30px;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav ul {
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .search-filter {
        padding: 15px;
    }

    .filter-group {
        min-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0 10px 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}