:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --navy-dark: #0f172a;
    --navy-light: #1e293b;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --text-dark: #1e293b;
    --text-main: #334155;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--text-dark); }
.gold-text { color: var(--gold-primary); }
.text-center { text-align: center; }

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

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 100;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar.scrolled .nav-links a, .navbar.scrolled .logo { color: var(--text-light); }
.navbar.scrolled .logo-icon i { color: var(--gold-primary); }

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 1.6rem; font-family: var(--font-heading); font-weight: 700; letter-spacing: 1px; color: var(--text-light); transition: color 0.4s; display: flex; align-items: center; gap: 8px;}
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center;}
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 0.95rem; font-weight: 500; font-family: var(--font-body); letter-spacing: 1px; transition: 0.3s; text-transform: uppercase;}
.nav-links a:hover { color: var(--gold-primary); }

/* Buttons */
.btn-primary {
    background: var(--gold-primary);
    color: var(--navy-dark) !important;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 10px 24px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}
.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: var(--navy-dark);
}

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; text-align: center; }
.hero-background { position: absolute; top:0; left:0; width: 100%; height: 100%; z-index:-1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.hero-overlay { position: absolute; top:0; left:0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.8) 100%); }

.hero-content {
    z-index: 10;
    padding: 0 20px;
    max-width: 1000px;
    width: 100%;
}
.hero-title { font-size: 4.5rem; letter-spacing: 2px; color: var(--text-light); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.hero-subtitle { font-size: 1.2rem; color: #e2e8f0; margin-bottom: 40px; font-weight: 300; letter-spacing: 1px; }

/* Enhanced Search Widget */
.search-widget {
    display: flex;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    gap: 15px;
    text-align: left;
    align-items: flex-end;
    margin: 40px auto 0;
}
.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.search-field label {
    font-size: 0.8rem;
    color: var(--navy-dark);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.search-field select {
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}
.btn-search {
    background: var(--navy-dark);
    color: var(--gold-primary);
    border: none;
    padding: 0 35px;
    height: 50px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-search:hover {
    background: var(--gold-primary);
    color: var(--navy-dark);
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.3s; }
.fade-up-delay { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.6s; }
.fade-up-2 { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.9s; }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }

/* Trust Statistics Section */
.trust-section {
    background: var(--navy-dark);
    padding: 60px 0;
    position: relative;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}
.stat-box {
    color: white;
    padding: 20px;
}
.stat-box h3 {
    font-size: 3.5rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
}
.stat-box p {
    font-size: 0.95rem;
    color: #cbd5e1;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Sections */
section { padding: 120px 0; }
.section-subtitle { color: var(--gold-primary); font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; font-weight: 600;}
.section-title { font-size: 3rem; margin-bottom: 60px; color: var(--navy-dark); }

.about-section { background: var(--bg-white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.glass-elegant {
    background: var(--bg-white); padding: 50px 40px; border: 1px solid #e2e8f0;
    text-align: center; border-radius: 8px; box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.glass-elegant:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); }
.feature-card i { font-size: 2.5rem; margin-bottom: 25px; display: block;}
.feature-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 1.05rem; }

/* Lifestyle / Amenities Section */
.lifestyle-section { background: var(--bg-light); border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;}
.lifestyle-layout { display: flex; align-items: center; gap: 80px; }
.lifestyle-text { flex: 1; }
.lifestyle-desc { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 40px; }
.amenities-list { list-style: none; }
.amenities-list li { font-size: 1.1rem; margin-bottom: 25px; display: flex; align-items: flex-start; gap: 15px; color: var(--text-dark);}
.amenities-list i { font-size: 1.5rem; margin-top: 2px;}
.lifestyle-image-grid { flex: 1; position: relative; height: 550px; }
.lifestyle-image-grid img { position: absolute; border-radius: 8px; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15); object-fit: cover; }
.img-1 { width: 75%; height: 75%; top: 0; right: 0; z-index: 2; border: 10px solid var(--bg-light);}
.img-2 { width: 65%; height: 65%; bottom: 0; left: 0; z-index: 1; border: 10px solid var(--bg-light);}


.projects-section { background: var(--bg-white); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.project-card { padding: 0; overflow: hidden; border-radius: 8px; border: none; background: var(--bg-light); box-shadow: var(--shadow-soft); cursor: pointer; }
.img-wrapper { height: 300px; overflow: hidden; width: 100%; position: relative;}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.project-card:hover .card-img { transform: scale(1.1); }
.status-badge { position: absolute; top: 20px; left: 20px; background: var(--gold-primary); color: var(--navy-dark); padding: 6px 16px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; border-radius: 4px; z-index: 10; letter-spacing: 1px;}
.card-content { padding: 40px; text-align: center; }
.card-content h3 { font-size: 1.6rem; margin-bottom: 15px; color: var(--navy-dark); }
.card-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.6;}

/* Footer */
.footer { background: var(--navy-light); padding: 80px 0 30px; }
.footer-content { background: transparent; border: none; box-shadow: none; text-align: center; color: var(--text-light);}
.footer-content h2 { color: var(--text-light); font-size: 2rem; margin-bottom: 15px;}
.footer-brand p { color: #cbd5e1; margin-bottom: 8px;}
.footer-links { margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;}
.footer-links p { color: #94a3b8; font-size: 0.9rem;}

/* Professional Bot Widget */
.bot-widget { position: fixed; bottom: 40px; right: 40px; z-index: 1000; }
.bot-toggle {
    width: 65px; height: 65px; border-radius: 50%;
    background: var(--navy-dark); color: var(--gold-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; cursor: pointer; box-shadow: 0 10px 25px rgba(15,23,42,0.3);
    transition: transform 0.3s; position: relative;
}
.bot-toggle:hover { transform: translateY(-5px); }
.pulse-ring {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid var(--navy-dark); opacity: 0; animation: pulsate 2s ease-out infinite; z-index: -1;
}
@keyframes pulsate { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }

.bot-panel {
    position: absolute; bottom: 85px; right: 0; width: 360px; height: 520px;
    background: var(--bg-white);
    border-radius: 12px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    display: flex; flex-direction: column; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); transform-origin: bottom right; border: 1px solid #e2e8f0;
}
.bot-panel.hidden { transform: scale(0.9); opacity: 0; pointer-events: none; }
.bot-header { padding: 20px; background: var(--navy-dark); display: flex; justify-content: space-between; align-items: center;}
.bot-header-info { display: flex; align-items: center; gap: 12px; color: var(--text-light); font-family: var(--font-body); font-weight: 500;}
.consultant-avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--gold-primary) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%230f172a" d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>') no-repeat center center; background-size: 60%;}
.bot-close { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1.2rem; transition: color 0.3s; }
.bot-close:hover { color: var(--text-light); }
.bot-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }

.bot-messages::-webkit-scrollbar { width: 5px; }
.bot-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px;}

.message { padding: 12px 16px; max-width: 85%; font-size: 0.95rem; border-radius: 12px; line-height: 1.4; font-family: var(--font-body);}
.msg-bot { background: #f1f5f9; color: var(--text-dark); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--navy-dark); color: var(--text-light); border-bottom-right-radius: 4px; align-self: flex-end; }
.bot-input-area { display: flex; padding: 15px; border-top: 1px solid #e2e8f0; gap: 10px; background: #fafafa;}
.bot-input-area input { flex: 1; background: var(--bg-white); border: 1px solid #cbd5e1; color: var(--text-dark); padding: 12px; border-radius: 6px; font-family: var(--font-body); font-size: 0.95rem; }
.bot-input-area input:focus { outline: none; border-color: var(--navy-dark); }
.bot-input-area button { background: var(--navy-dark); color: var(--gold-primary); border: none; width: 45px; height: 45px; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.bot-input-area button:hover { background: var(--navy-light); }
.bot-option-btn { background: var(--bg-white); border: 1px solid var(--navy-dark); color: var(--navy-dark); padding: 8px 16px; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; margin: 4px; transition: 0.2s; border-radius: 20px;}
.bot-option-btn:hover { background: var(--navy-dark); color: var(--bg-white); }

/* Universal Lead Modal Data Scraping */
.lead-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lead-modal-overlay.active { opacity: 1; pointer-events: all; }
.lead-modal {
    position: relative; max-width: 450px; width: 90%;
    transform: translateY(20px); transition: transform 0.3s ease;
}
.lead-modal-overlay.active .lead-modal { transform: translateY(0); }
.lead-modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: 0.3s;
}
.lead-modal-close:hover { color: var(--navy-dark); }

/* ========================================================
   Responsive Design (Auto-Sizing for Mobile, Tabs, Laptops)
   ======================================================== */

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 200;
}
.navbar.scrolled .hamburger { color: var(--gold-primary); }

/* Tablets & Small Laptops (Max Width 1024px) */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .search-widget { padding: 15px; margin-top: 20px; flex-wrap: wrap; }
    .search-field { min-width: 45%; margin-bottom: 10px; }
    .btn-search { width: 100%; margin-top: 10px; flex: 100%; justify-content: center; }
    .lifestyle-layout { flex-direction: column; gap: 50px; }
    .lifestyle-image-grid { width: 100%; height: 450px; }
    .trust-container { flex-wrap: wrap; gap: 30px; }
    .stat-box { width: 40%; }
}

/* Mobile Devices (Max Width 768px) */
@media (max-width: 768px) {
    section { padding: 70px 0; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    
    /* Navbar styling for mobile */
    .hamburger { display: block; }
    .navbar { padding: 15px 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: var(--navy-dark); flex-direction: column; align-items: center; justify-content: center;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 100; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    
    /* Hero adjustments */
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .search-widget { flex-direction: column; align-items: stretch; }
    .search-field { min-width: 100%; margin-bottom: 15px; }
    
    /* Trust Grid */
    .stat-box { width: 100%; padding: 10px; }
    .stat-box h3 { font-size: 3rem; }
    
    /* Layouts */
    .features-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .lifestyle-image-grid { height: 300px; }
    
    /* Forms & Modals */
    .lead-modal { padding: 25px !important; }
    .lead-modal h3 { font-size: 1.5rem !important; }
    .contact-section .container { flex-direction: column; gap: 40px; }
    
    /* Chatbot Mobile Positioning */
    .bot-widget { bottom: 20px; right: 20px; }
    .bot-panel { 
        width: 90vw; height: 70vh; 
        right: 0px; bottom: 80px; 
        position: fixed; border-radius: 12px;
    }
}
