/* General body and font styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header and Navigation Styles */
header {
    background-color: #fff;
    padding: 20px 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    vertical-align: middle;
}

/* Side menu styles */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's on top of other content */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Media Query for Mobile and Tablet Devices */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .hamburger-menu {
        display: flex; /* Show the hamburger menu on smaller screens */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Initially off-screen to the right */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0; /* Slide the menu into view */
    }

    .nav-links li {
        text-align: center;
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.2em;
        padding: 15px 0;
    }
}

/* Hero Section */
.hero-section {
    background: url('d3510b3036d9e358c793fbcd48e86516.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(2, 28, 59, 0.5), rgba(0, 0, 0, 0.7)); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-button {
    background-color: #3498db;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #2980b9;
}

/* Main Content Sections */
.content-section {
    padding: 60px 20px;
    text-align: center;
}

/* About Us Section Styling */
.about-section {
    background-color: #f4f4f4;
}

.about-content-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 40px;
    margin-top: 30px;
}

.about-content-container img {
    max-width: 40%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    object-fit: contain;
}

.about-text {
    max-width: 60%;
}

@media (max-width: 768px) {
    .about-content-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-content-container img, .about-text {
        max-width: 100%;
    }
}

/* Cards and Grid Layouts */
.services-grid, .why-us-grid, .featured-properties-grid, .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card, .why-us-card, .featured-card, .property-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    overflow: hidden;
}

.service-card:hover, .why-us-card:hover, .featured-card:hover, .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h4, .why-us-card h4, .featured-card h4, .property-card h4 {
    margin-top: 10px;
    color: #2c3e50;
}

.service-card p, .why-us-card p, .featured-card p, .property-card p {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Image styles for cards, including the fix for properties page */
.featured-card img, .property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .featured-card img, .property-card img {
        height: 180px; /* Adjusted height for mobile */
    }
}

.featured-card-content, .property-card-content {
    padding: 20px;
}

.view-more-button, .view-details-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.view-more-button:hover, .view-details-button:hover {
    background-color: #2980b9;
}

/* Contact page styles */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-info, .contact-form-container {
    flex: 1;
    max-width: 500px;
}

.contact-info h3, .contact-form-container h3 {
    color: #2c3e50;
    margin-top: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.submit-button {
    background-color: #3498db;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info, .contact-form-container {
        width: 100%;
        max-width: 100%;
    }
}


/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}
