* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f8f8f8;
    color: #333;
}

/* NAVBAR */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 28px;
    color: #0066ab;
    font-weight: bold;
}

nav {
    position: relative;
}

nav ul.nav-links {
    display: flex;
    list-style: none;
}

nav ul.nav-links li {
    margin-left: 25px;
}

nav ul.nav-links li a {
    color: #333;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s;
}

nav ul.nav-links li a:hover {
    color: #0066ab;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO SECTION */
.hero {
    height: 90vh;
    background: url('images/hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    color: white;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.7);
}

.hero-text h1 {
    font-size: 50px;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 20px;
}

.hero-text button {
    padding: 12px 30px;
    font-size: 18px;
    background: #0066ab;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-text button:hover {
    background: #004d80;
}

/* ABOUT */
.about {
    padding: 60px;
    text-align: center;
    background: #ffffff;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
}

/* PROPERTIES */
.properties {
    padding: 60px;
}

.properties h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.property-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    object-fit: cover;
}

.property-card h3 {
    margin-top: 12px;
    font-size: 22px;
    text-align: center;
}

.location {
    color: #777;
    font-size: 16px;
}

.price {
    font-size: 20px;
    color: #0066ab;
    font-weight: bold;
    margin-top: 5px;
}

.property-card small {
    color: #555;
    font-size: 12px;
    margin-bottom: 8px;
}

.property-card button {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    background: #0066ab;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.property-card button:hover {
    background: #004d80;
}

/* DETAILS POPUP */
.details-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.details-card {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.details-card h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.details-card p {
    font-size: 17px;
    color: #555;
}

/* CONTACT SECTION */
.contact {
    padding: 60px;
    background: #ffffff;
}

.contact h2 {
    text-align: center;
    font-size: 32px;
}

.contact-box {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-box form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.contact-box input,
.contact-box textarea {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.contact-box button {
    padding: 12px;
    background: #0066ab;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-box button:hover {
    background: #004d80;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 17px;
    margin-bottom: 8px;
    color: #555;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #0066ab;
    color: white;
    margin-top: 40px;
    font-size: 16px;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    nav ul.nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background: white;
        flex-direction: column;
        width: 70%;
        display: none;
        padding-top: 60px;
        box-shadow: -4px 0 15px rgba(0,0,0,0.2);
        z-index: 999;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }

    nav ul.nav-links.show {
        display: flex;
        transform: translateX(0);
    }

    nav ul.nav-links li {
        margin: 20px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}
