/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
    --primary: #4F46E5; /* Indigo 600 */
    --primary-hover: #4338CA;
    --secondary: #F59E0B; /* Amber 500 */
    --dark: #0F172A; /* Slate 900 */
    --light: #F8FAFC; /* Slate 50 */
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748B; /* Slate 500 */
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
}

.bg-light {
    background-color: #F1F5F9;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.39);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-full {
    width: 100%;
    display: block;
}

/* =========================================
   Header & Navbar
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.header:not(.scrolled) .logo {
    color: var(--white);
}

.header:not(.scrolled) .logo span {
    color: var(--secondary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.header:not(.scrolled) .nav-links a {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.header:not(.scrolled) .nav-links a::after {
    background-color: var(--secondary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.header:not(.scrolled) .hamburger {
    color: var(--white);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero p {
    color: #CBD5E1;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

.search-box {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    max-width: 900px;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-field input:focus, .search-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-search {
    height: 48px;
    padding: 0 30px;
}

/* =========================================
   Properties Section
   ========================================= */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge.for-rent {
    background-color: var(--secondary);
}

.price {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-content {
    padding: 30px 25px 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.location {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.location i {
    color: var(--primary);
    margin-right: 5px;
}

.features {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 20px;
}

.features span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.features i {
    color: var(--primary);
    margin-right: 8px;
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.about-list i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-box p {
    font-weight: 600;
    color: var(--text-main);
}

/* =========================================
   CTA Section
   ========================================= */
.cta {
    background-image: url('../assets/hero_bg.png'); /* Reusing bg with different overlay */
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
}

.cta .container {
    position: relative;
    z-index: 10;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #CBD5E1;
}

.cta-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-col p {
    color: #94A3B8;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #94A3B8;
}

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

.contact-info li {
    display: flex;
    align-items: flex-start;
    color: #94A3B8;
}

.contact-info i {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

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

.fade-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .search-box { flex-direction: column; }
    .btn-search { width: 100%; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .header { padding: 15px 0; }
    .hero h1 { font-size: 2.8rem; }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-sm);
        gap: 15px;
    }
    
    .header:not(.scrolled) .nav-links.active a { color: var(--dark); }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .properties-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .cta-form { flex-direction: column; border: none; background: none; padding: 0;}
    .cta-form input { border: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 10px; padding: 15px; border-radius: var(--radius); }
    .about-stats { grid-template-columns: 1fr; }
}
/* Modal Styles */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px); }
.modal-content { background-color: var(--white); margin: 5% auto; padding: 30px; border-radius: var(--radius); width: 90%; max-width: 800px; position: relative; box-shadow: var(--shadow-lg); animation: modalSlideIn 0.3s ease; }
@keyframes modalSlideIn { from {transform: translateY(-50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
.close-modal { color: var(--text-muted); position: absolute; top: 20px; right: 30px; font-size: 30px; font-weight: bold; cursor: pointer; transition: var(--transition); }
.close-modal:hover { color: var(--primary); }
.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 768px) { .modal-details { grid-template-columns: 1fr; } }
.modal-img { width: 100%; border-radius: var(--radius); object-fit: cover; height: 300px; }
.modal-info h2 { color: var(--dark); margin-bottom: 10px; font-size: 1.8rem; }
.modal-info .price { position: static; display: inline-block; padding: 5px 0; font-size: 1.8rem; box-shadow: none; margin-bottom: 15px; }
.modal-info .desc { color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.modal-info .btn { margin-top: 15px; }
