/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f7fa;
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Navigation Header */
.nav-header {
    background: linear-gradient(90deg, #7b9dfc, #1b60cf);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 50px;
    width: 10%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-btn, .top-right-btn {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cta-btn {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.top-right-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #93c5fd;
    color: #1e3a8a;
}

.top-right-btn:hover {
    background-color: #60a5fa;
    transform: translateY(-3px);
}

/* Properties Section */
.properties {
    padding: 80px 30px;
    background-color: #f9fafb;
}

.search-bar {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-bar input {
    padding: 12px 20px;
    width: 350px;
    border: 2px solid #d1d5db;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.2);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 22px;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.location {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.view-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.close-btn:hover {
    color: #1e3a8a;
}

.modal-content h2 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 20px;
}

#modalImage {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modalLocation, #modalPrice, #modalDescription {
    font-size: 16px;
    margin-bottom: 10px;
}

#modalPrice {
    font-weight: 600;
    color: #1e3a8a;
}

.modal-contact-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-contact-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e3a8a;
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
}

/* Contact Section */
.contact {
    position: relative;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    padding: 50px 20px;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
}

.contact h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-tagline {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 30px;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
}

.form-group textarea + .form-icon {
    top: 20px;
    transform: none;
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}