/* RESET & CSS VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #1e1b4b;
    --secondary: #312e81;
    --gold: #d97706;
    --gold-hover: #b45309;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
}

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

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

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

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

.btn-outline { border: 2px solid #25d366; color: #25d366; background: transparent; }
.btn-outline:hover { background: #25d366; color: var(--white); }

.btn-block { width: 100%; text-align: center; }

/* TOP BAR */
.top-bar { background: var(--dark); color: #cbd5e1; padding: 10px 0; font-size: 13px; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-info span { margin-right: 20px; }
.top-info i { color: var(--gold); margin-right: 6px; }
.top-social a { color: #cbd5e1; margin-left: 15px; text-decoration: none; font-size: 16px; }
.top-social a:hover { color: var(--gold); }

/* NAVBAR */
.navbar { background: var(--white); padding: 18px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--gold); }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer; }

/* HERO SECTION */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 120px 0 100px;
    color: var(--white);
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(15, 23, 42, 0.75); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.badge-hero { background: rgba(217, 119, 6, 0.2); color: var(--gold); border: 1px solid var(--gold); padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 48px; font-weight: 800; margin: 20px 0; line-height: 1.2; }
.hero p { font-size: 18px; color: #cbd5e1; margin-bottom: 40px; }

/* SEARCH BOX */
.search-box { background: var(--white); border-radius: 12px; padding: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); color: var(--dark); text-align: left; }
.search-item label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--gray); }
.search-item select { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; font-weight: 500; }
.search-btn-wrapper { display: flex; align-items: flex-end; }
.btn-search { width: 100%; height: 48px; }

/* STATS BAR */
.stats-bar { background: var(--primary); color: var(--white); padding: 40px 0; margin-top: -30px; position: relative; z-index: 10; border-radius: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-card h2 { font-size: 38px; color: var(--gold); font-weight: 800; }
.stat-card p { font-size: 14px; color: #cbd5e1; }

/* SECTIONS */
.section { padding: 90px 0; }
.bg-light { background: var(--white); }
.bg-dark { background: var(--dark); }
.text-white { color: var(--white); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title span { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.section-title h2 { font-size: 36px; color: var(--primary); font-weight: 800; margin: 8px 0; }
.title-white h2 { color: var(--white); }
.section-title p { color: var(--gray); max-width: 600px; margin: 0 auto; }

/* FILTER TABS & PROPERTIES */
.filter-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 10px 22px; border: 1px solid #cbd5e1; background: var(--white); border-radius: 25px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.properties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.property-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.property-card:hover { transform: translateY(-8px); }
.card-img { position: relative; height: 230px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; border-radius: 4px; font-weight: 700; font-size: 12px; color: var(--white); text-transform: uppercase; }
.card-badge.sale { background: #10b981; }
.card-badge.luxury { background: var(--gold); }
.card-badge.commercial { background: #3b82f6; }
.card-price { position: absolute; bottom: 15px; right: 15px; background: rgba(15,23,42,0.85); color: var(--white); padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 16px; }
.card-content { padding: 25px; }
.card-content h3 { font-size: 20px; color: var(--primary); margin-bottom: 8px; }
.location { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.card-features { display: flex; justify-content: space-between; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 12px 0; margin-bottom: 20px; font-size: 13px; font-weight: 600; }
.card-footer { display: flex; gap: 10px; }
.card-footer .btn { flex: 1; text-align: center; }

/* PROJECT SHOWCASE */
.project-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--light); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-details { padding: 40px; }
.rera-badge { display: inline-block; background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 12px; margin-bottom: 15px; }
.project-details h2 { font-size: 30px; color: var(--primary); margin-bottom: 8px; }
.project-location { color: var(--gold); font-weight: 600; margin-bottom: 15px; }
.progress-wrapper { margin: 25px 0; }
.progress-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.progress-bar { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); }
.project-amenities { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 30px; }
.project-amenities span { background: var(--white); padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid #cbd5e1; }
.project-actions { display: flex; gap: 15px; }

/* CALCULATOR */
.calc-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--white); padding: 40px; border-radius: 16px; box-shadow: var(--shadow); }
.calc-group { margin-bottom: 25px; }
.calc-group label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.calc-group input[type=range] { width: 100%; accent-color: var(--gold); }
.result-card { background: var(--primary); color: var(--white); padding: 40px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.result-card h2 { font-size: 36px; color: var(--gold); margin: 15px 0; }
.mt-20 { margin-top: 20px; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-box { background: rgba(255,255,255,0.05); padding: 35px; border-radius: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.feature-box i { font-size: 40px; color: var(--gold); margin-bottom: 20px; }
.feature-box h3 { font-size: 20px; margin-bottom: 12px; }

/* CONTACT CARD */
.contact-card { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info { background: var(--primary); color: var(--white); padding: 50px; }
.contact-info h2 { font-size: 32px; margin-bottom: 15px; color: var(--gold); }
.info-list { margin-top: 40px; }
.info-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; }
.info-item i { font-size: 28px; color: var(--gold); }
.contact-form { padding: 50px; }
.contact-form h3 { font-size: 24px; color: var(--primary); margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; font-size: 15px; }

/* FOOTER */
.footer { background: var(--dark); color: #94a3b8; padding-top: 60px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-about p { margin-top: 15px; }
.footer h4 { color: var(--white); font-size: 18px; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #334155; text-align: center; padding: 20px 0; font-size: 14px; }

/* FLOATING WHATSAPP */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: var(--white); width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 999; text-decoration: none; }

/* MOBILE RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .search-box { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .project-showcase, .calc-wrapper, .contact-card { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow); }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .search-box { grid-template-columns: 1fr; }
    .top-info span:last-child { display: block; margin-top: 5px; }
}
