:root {
    --primary-color: #003366;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333333;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 80px;
}

#nav-logo {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-call-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: block;
    transition: var(--transition);
}

.desktop-call-btn:hover {
    background: #002244;
}

.mobile-call-btn {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/modern_kanpur_real_estate_hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem 5%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.search-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1100px;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.search-item label {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: left;
}

.search-item select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 4px;
    height: 52px;
    margin-top: auto;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.search-btn:hover {
    background: #002244;
}

/* Common Section Styling */
section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

h2.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 3.5rem;
    font-weight: 800;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card-location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.card-features span i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.card-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.card-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.cat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.loc-card {
    height: 180px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/modern_house_kanpur_suburbs.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.loc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* About Section */
.flex-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.flex-item {
    flex: 1;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #e0e0e0;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

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

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    color: #333;
}

.modal-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.modal-body {
    padding: 2.5rem;
}

.modal-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.call-btn, .whatsapp-btn {
    flex: 1;
    padding: 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.call-btn {
    background: #28a745;
    color: white;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
}

/* RESPONSIVE MEDIA QUERIES */

/* For Desktops/Large Screens (Already handled by defaults above) */

/* For Tablets (Max-width: 1024px) */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-container {
        flex-wrap: wrap;
    }

    .search-item {
        min-width: 45%;
    }

    .search-btn {
        width: 100%;
    }
}

/* For Mobile (Max-width: 768px) */
@media (max-width: 768px) {
    nav {
        height: 70px;
        padding: 0 5%;
    }

    #nav-logo {
        height: 60px;
    }

    .hamburger {
        display: block;
    }

    .desktop-call-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
        transition: 0.4s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        align-items: flex-start;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-call-btn {
        display: block;
        background: var(--primary-color);
        color: white !important;
        width: 100%;
        padding: 1.2rem;
        text-align: center;
        border-radius: 6px;
        margin-top: 1rem;
    }

    .hero {
        min-height: 70vh;
        padding-top: 6rem;
    }

    .search-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        width: 100%;
    }

    .search-item {
        width: 100%;
    }

    .flex-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .flex-item {
        width: 100%;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .modal-img {
        height: 300px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}
