/* Color Variables based on ASAS Logo */
:root {
    --primary-color: #3a4c59; /* Slate Grey */
    --accent-color: #d5aa64;  /* Golden Tan */
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --bg-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Modern Body Font */
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Elegant Heading Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

a { text-decoration: none; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info a, .social-links a {
    color: #cbd5e1;
    margin-right: 20px;
    transition: color 0.3s;
}
.contact-info a:hover, .social-links a:hover {
    color: var(--accent-color);
}
.social-links a { margin-right: 0; margin-left: 15px; font-size: 1rem; }

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo img { height: 50px; }
.nav-links { display: flex; gap: 30px; }
.nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
/* Modern underline hover effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }
.nav-links li a:hover, .nav-links li a.active { color: var(--accent-color) !important; }

/* Fixed Mobile Toggle Class */
.mobile-toggle { display: none; font-size: 24px; color: var(--primary-color); cursor: pointer; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(58, 76, 89, 0.7), rgba(0,0,0,0.4));
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 900px;
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Search Bar Modernized */
.search-bar form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px); /* Glass search bar */
    padding: 10px;
    border-radius: 50px; /* Pill shape */
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.search-bar select, .search-bar input {
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    outline: none;
    flex: 1;
    font-family: 'Poppins', sans-serif;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background-color: #c49953;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 170, 100, 0.4);
}

/* --- Section Formatting --- */
.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* --- Project Cards & Carousel --- */
.swiper { width: 100%; padding-bottom: 50px; }
.card {
    background: var(--text-light);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Soft modern shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover {
    transform: translateY(-10px);
}
.card-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.card:hover .card-img { transform: scale(1.05); } /* Image slight zoom on hover */
.card-content { padding: 30px 25px; }
.card-content h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 10px; }
.card-content p { color: #64748b; margin-bottom: 20px; font-size: 0.95rem; }
.btn-secondary {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.btn-secondary:hover { gap: 12px; color: var(--primary-color); }

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(58, 76, 89, 0.1);
    border-bottom: 4px solid var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(213, 170, 100, 0.1); /* Light wash of Golden Tan */
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Floating Action Widgets (Unified) --- */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
}

.whatsapp-btn {
    background-color: #25D366; /* Official WhatsApp Green */
    font-size: 1.8rem;
}

.inquire-btn {
    background-color: var(--accent-color);
    font-size: 1.2rem;
}

.btt-btn {
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btt-btn.show {
    opacity: 1;
    visibility: visible;
}


/* --- Scroll Reveal Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styling */
footer { background-color: var(--primary-color); color: var(--text-light); padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-contact p { margin-bottom: 15px; color: #cbd5e1;}
.footer-contact i { color: var(--accent-color); margin-right: 10px; width: 20px;}
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; font-size: 0.9rem; color: #94a3b8; }

/* --- Global Modals --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 76, 89, 0.7); /* Primary color with transparency */
    backdrop-filter: blur(8px); /* Glassmorphism background blur */
    z-index: 9999; /* Sit on top of everything */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--accent-color);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Extra left padding for the icon */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    background: var(--bg-light);
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--accent-color);
    background: var(--text-light);
}

/* --- Project Detail Specifics --- */

/* Sticky Sub-Nav Styling */
.project-sub-nav {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.project-sub-nav ul li a {
    color: var(--primary-color);
    padding: 10px 0;
    display: inline-block;
    transition: 0.3s;
}

.project-sub-nav ul li a:hover {
    color: var(--accent-color);
}

/* Responsive Video Container (16:9 Ratio) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Slider Styling */
.gallerySwiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.gallerySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover; /* Keeps images looking sharp and filled */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Unit Tabs & Blueprints */
.unit-display {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.blueprint img {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}

.spec-box {
    text-align: center;
    padding: 30px;
    border: 1px solid rgba(213, 170, 100, 0.2);
    border-radius: 15px;
    transition: 0.3s;
}

.spec-box:hover {
    background: rgba(213, 170, 100, 0.05);
    transform: translateY(-5px);
}

/* Responsive & Mobile Adjustments */
@media (max-width: 992px) {
    #overview .grid, 
    #overview > div[style*="display: grid"],
    .about-intro .grid, 
    .about-intro div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    /* Hide specific elements on mobile */
    .hide-mobile { display: none !important; }

    /* --- Responsive Top Bar --- */
    .top-bar {
        display: block;
        padding: 6px 0;
    }
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        font-size: 0.75rem; /* Smaller text for mobile */
    }
    .contact-info a {
        margin-right: 0;
    }
    .social-links a {
        margin-left: 12px;
        font-size: 0.9rem;
    }

    /* Adjust the slide-out menu's top position */
    .nav-links {
        top: 110px; 
        height: calc(100vh - 110px);
    }
    .hero-content h1 { font-size: 2.5rem; }
    .search-bar form { flex-direction: column; border-radius: 15px; }
    .search-bar select, .search-bar input, .btn-primary { border-radius: 8px; }

    /* --- Elegant Mobile Menu Overlay --- */
    .nav-links {
        display: flex !important; /* Overriding previous hidden state */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 80px; /* Sits just below the header */
        left: -100%; /* Hidden off-screen by default */
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px); /* Glassmorphism */
        padding: 40px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Silky smooth slide */
        z-index: 999;
        gap: 30px;
    }
    
    .nav-links.active {
        left: 0; /* Slides into view */
    }
    
    .nav-links li a {
        font-size: 1.5rem; /* Larger touch targets */
        font-weight: 600;
    }
    
    .mobile-toggle {
        display: block !important;
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    /* --- Mobile Floating Buttons Fix --- */
    .floating-widgets {
        right: 20px;
        bottom: 20px;
        transform: scale(0.85); /* Slightly smaller widgets on phone */
        transform-origin: bottom right;
    }
    
    /* --- Project Detail Mobile Sub-Nav Fix --- */
    
    /* 1. Stack the container vertically */
    .project-nav-bar .container {
        flex-direction: column !important;
        padding-bottom: 20px !important;
    }

    /* 2. Make the menu list full width and center the links */
    .project-nav-bar ul {
        width: 100%;
        justify-content: center !important; 
        flex-wrap: wrap !important; /* The magic fix: drops links to a new line if needed */
        gap: 10px 20px !important; /* Adds neat vertical and horizontal spacing */
        padding: 15px 20px !important;
        white-space: normal !important; /* Allows the text to wrap */
    }

    /* 3. Center the Download Brochure button below it */
    .project-nav-bar button {
        margin: 0 auto !important;
        display: block !important;
    }
    
}
/* --- Properties Page Layout --- */
.properties-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

/* Ensure the sidebar behaves */
.properties-layout aside {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Mobile Fixes for Properties Layout */
@media (max-width: 992px) {
    .properties-layout {
        grid-template-columns: 1fr; /* Stacks everything into 1 column */
        gap: 30px;
    }
    
    .properties-layout aside {
        position: relative !important; /* Disables sticky on mobile */
        top: 0 !important;
        margin-bottom: 20px;
    }

}
/* Home About Responsive Grid */
.home-about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacks image and text on mobile */
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .home-about-grid {
        grid-template-columns: 1fr 1fr; /* Side-by-side on desktop */
        gap: 80px;
    }
}
