/* =============================================
   1. Global Styles & Variables
============================================= */
:root {
    --primary-color: #C9A34B; /* Soft Gold */
    --secondary-color: #046c51; /* Deep Emerald Green */
    --light-background: #ffffff; 
    --dark-background: #03523d; 
    --text-color-light: #f1f1f1; /* Off-white color for dark backgrounds */
    --text-color-dark: #03523d; /* Main text is theme green */
    --font-family: 'Poppins', sans-serif;
    --whatsapp-color: #25D366;
    --call-color: #34B7F1;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--light-background);
    color: var(--text-color-dark);
    line-height: 1.6;
    overflow-x: hidden; /* FIX: Prevents horizontal scroll and page shift */
}

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

.section-padding {
    padding: 6rem 0;
}

.dark-section {
    background-color: var(--dark-background);
    color: var(--text-color-light); 
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tagline {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
}

.dark-section .section-title, .dark-section h3, .dark-section p {
    color: var(--text-color-light); 
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #b38f40;
    transform: translateY(-2px);
}

/* General Animation Class for Mobile Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================
   2. Header & Navigation
============================================= */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
    padding: 0.5rem 0;
}

#header.scrolled {
    background: rgba(4, 108, 81, 0.9);
    backdrop-filter: blur(5px);
}

#header nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 70px;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color-light);
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.header-phone {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--primary-color);
}

.btn-header {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-header:hover {
    background-color: var(--dark-background);
    border-color: var(--dark-background);
    transform: translateY(-2px);
}

.header-enquire-btn {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(201, 163, 75, 0.7);
    animation: glow-and-move 2s infinite alternate ease-in-out;
}

.header-enquire-btn:hover {
    background-color: #b38f40;
    border-color: #b38f40;
}

@keyframes glow-and-move {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

/* =============================================
   3. Hero Section
============================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; 
}

.hero-content {
    position: relative;
    z-index: 2; 
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down-indicator a {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}


/* =============================================
   4. Concept Section
============================================= */
.concept-layout-overlay {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.concept-layout-overlay .concept-background-image {
    display: block;
    width: 100%;
    height: auto;
}

.concept-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

.concept-overlay-content .section-header { text-align: left; margin-bottom: 0; }
.concept-overlay-content .section-tagline, .concept-overlay-content .section-title { color: #ffffff; }
.concept-overlay-content .concept-stats { margin-top: 2rem; display: flex; gap: 3rem; justify-content: flex-start; }
.concept-overlay-content .stat-item { text-align: left; }
.concept-overlay-content .stat-item h3 { font-size: 3rem; font-weight: 600; color: var(--primary-color); }
.concept-overlay-content .stat-item p { font-size: 0.9rem; opacity: 0.9; }

/* =============================================
   5. Floor Plans Section
============================================= */
.floor-plan-cards-container {
    display: flex;
    width: 100%;
    gap: 1rem;
    height: 55vh;
}

.floor-plan-card {
    position: relative;
    flex: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.7s ease;
    /* --- MODIFICATION: Use flexbox to align all content to the bottom --- */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.floor-plan-card.active {
    flex: 2.5; /* Allows active card to expand */
}

/* This ::before element creates the blurred background */
.floor-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit; /* Takes the image from the parent */
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.1); /* Prevents blurred edges from showing */
    z-index: 1;
}

/* --- MODIFICATION: Darken overlay for better contrast --- */
.floor-plan-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
    z-index: 2;
}

/* --- MODIFICATION: Make card content visible and style it --- */
.card-content {
    position: relative;
    z-index: 3;
    color: var(--text-color-light);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content .plan-size {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-content p:not(.plan-size) {
    font-size: 0.9rem;
    line-height: 1.4;
    /* Hide text on smaller cards for a cleaner look */
    opacity: 0;
    max-height: 0;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.floor-plan-card.active .card-content p:not(.plan-size) {
    opacity: 1;
    max-height: 100px; /* Animate height */
}


/* --- MODIFICATION: Reposition button within the card's flex layout --- */
.btn-download {
    position: relative;
    z-index: 3;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start; /* Aligns button to the left */
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* =============================================
   6. Amenities Section
============================================= */
.amenities-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.amenity-tab { background: none; border: 1px solid rgba(51, 51, 51, 0.2); padding: 0.75rem 1.5rem; border-radius: 30px; cursor: pointer; font-family: var(--font-family); font-size: 1rem; transition: all 0.3s ease; color: #333; }
.amenity-tab.active { background-color: var(--primary-color); color: #000; border-color: var(--primary-color); }
.amenity-content { display: none; align-items: center; gap: 2rem; background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.amenity-content.active { display: flex; }
.amenity-content img { width: 50%; height: 450px; object-fit: cover; }
.amenity-text { padding: 2rem; }

/* =============================================
   7. Location Section
============================================= */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.location-item { text-align: center; }
.location-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* =============================================
   8. Contact Section
============================================= */
.contact-section { position: relative; }
.contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.contact-section .container { position: relative; z-index: 2; }

.contact-section .section-title,
.contact-section .section-header p {
    color: var(--text-color-light);
}

.contact-section .section-header p {
    max-width: 600px;
    margin: 1rem auto 0;
}

.contact-form { max-width: 500px; margin: 2rem auto 0 auto; display: grid; gap: 1rem; }
.form-group input { width: 100%; padding: 0.8rem 1rem; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; }
.contact-form .btn { width: 100%; font-size: 1.1rem; }

/* =============================================
   9. Explore Section (Homepage Only)
============================================= */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.explore-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

.explore-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.explore-card p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* =============================================
   10. Floating Action Buttons (FAB)
============================================= */
.floating-action-buttons { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 0.8rem; z-index: 999; }
.fab-btn { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; text-decoration: none; color: white; font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
.fab-btn:hover { transform: scale(1.1); }
.fab-btn.whatsapp { background-color: var(--whatsapp-color); }
.fab-btn.call { background-color: var(--call-color); }


/* =============================================
   11. Footer
============================================= */
.footer {
    background-color: var(--light-bg);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer p {
    margin: 0;
    color: var(--text-color-dark);
}

/* =============================================
   12. Enquiry Popup Modal
============================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.popup-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}
.popup-overlay.visible .popup-content {
    transform: scale(1);
}
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}


/* =============================================
   13. Responsive Media Queries
============================================= */
@media (max-width: 1250px) {
    .nav-right {
        /* FIX: Changed 'display: none' to 'display: flex' to allow the menu to slide in */
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 300px;
        height: 100vh;
        background-color: rgba(4, 108, 81, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }
    .nav-right.active {
        right: 0; /* Slide in */
    }
    .nav-menu {
        flex-direction: column;
        gap: 2rem;
    }
    #header nav {
        justify-content: space-between;
    }
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }

    .concept-overlay-content { padding: 1.5rem; text-align: center; }
    .concept-overlay-content .section-header { text-align: center; }
    .concept-overlay-content .concept-stats { justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
    .concept-overlay-content .stat-item { text-align: center; }
    .concept-overlay-content .stat-item h3 { font-size: 2.2rem; }
    
    .floor-plan-cards-container { flex-direction: column; height: auto; gap: 1rem; }
    .floor-plan-card { height: 300px; flex: auto !important; /* Override flex-grow on mobile */ }
    .floor-plan-card.active .card-content p:not(.plan-size),
    .card-content p:not(.plan-size) {
        opacity: 1; /* Always show text on mobile */
        max-height: 100px;
    }

    /* --- RESPONSIVE FIX FOR AMENITIES SECTION --- */
    .amenity-content {
        flex-direction: column;
    }
    .amenity-content img {
        width: 100%;
        height: 250px;
    }
    .amenity-text {
        width: 100%;
        padding: 1.5rem;
    }
}

