/*
--- "AURA LIGHT" REAL ESTATE - FINAL POLISHED & EXPANDED STYLE.CSS ---
*/

/* 1. :ROOT & GLOBAL STYLES */
:root {
    /* --- Colors --- */
    --bg-primary: #FFFFFF;
    --bg-secondary: #f0f2f5;
    --bg-dark: #0d1117;
    --bg-dark-secondary: #1C1C1E;
    --text-primary: #333333;
    --text-secondary: #aaa; /* A lighter gray for footer text */
    --text-light: #e0e0e0;
    --text-on-dark: #FFFFFF;
    --accent-gold: #FFD700;
    --accent-gold-darker: #333;
    --accent-blue: #19bfc2;

    /* --- Typography --- */
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 1rem; /* Default font size (usually 16px) */

    /* --- Effects & Layout --- */
    --transition-cubic: cubic-bezier(0.23, 1, 0.32, 1);
    --transition-smooth: all 0.4s ease-in-out;
    --border-radius-md: 16px;
    --border-radius-lg: 50px;
    --shadow-subtle: 0 10px 30px rgba(0, 87, 184, 0.07);
    --shadow-medium: 0 20px 50px rgba(46, 61, 75, 0.15);
    --shadow-strong: 0 15px 30px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-secondary);
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background-color: var(--accent-gold);
    color: var(--accent-gold-darker);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1.5px; }
h4 { font-size: 1.5rem; margin-bottom: 0.75rem; }
section { padding: clamp(5rem, 8vw, 8rem) 0; overflow: hidden; }
.section-subtitle { max-width: 650px; margin: -1rem auto 4rem auto; font-size: 1.1rem; color: var(--text-secondary); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.btn.btn-primary {
    background-color: var(--accent-gold);
    color: var(--accent-gold-darker);
    border-color: var(--accent-gold);
}
.btn.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}
.btn:active {
    transform: scale(0.98);
}

/* 2. ON-SCROLL REVEAL ANIMATIONS */
.animate-reveal { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-reveal.is-visible { opacity: 1; }
.animate-reveal-child {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s var(--transition-cubic), opacity 0.8s var(--transition-cubic);
}
.is-visible .animate-reveal-child {
    transform: translateY(0);
    opacity: 1;
}

/* 3. NAVIGATION */
.navbar {
    background-color: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-on-dark); }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; }
.nav-menu a {
    color: var(--accent-gold);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-menu a.active, .nav-menu a:hover { color: var(--text-on-dark); }
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-on-dark);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.nav-menu a.active::after, .nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-on-dark);
    position: relative;
    transition: transform 0.3s ease-in-out;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--text-on-dark);
    left: 0;
    transition: all 0.3s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* 4. PAGE SECTIONS */
.hero-section { min-height: 100vh; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-on-dark); }
.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.hero-content h1 { font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.25rem; font-weight: 400; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.9; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.scroll-down-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 20px; }
.scroll-down-indicator span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background-color: var(--text-on-dark); border-radius: 2px; animation: scroll-down 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes scroll-down { 0% { transform: translate(-50%, 0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translate(-50%, 15px); opacity: 0; } }
#vision { background-color: var(--bg-primary); }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.vision-image { border-radius: var(--border-radius-md); box-shadow: var(--shadow-medium); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.vision-image:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 25px 55px rgba(46, 61, 75, 0.2);
    background-color: gold;
 }
.vision-content h3 { color: #b48c4f; font-weight: 600; }
.vision-content h2 { color: var(--text-primary); margin-bottom: 2rem; }
.vision-content p { font-size: 1.1rem; color: #555; margin-bottom: 1.5rem; line-height: 1.8; }
.stats-section { 
    background-color: var(--bg-dark);
     position: relative;
     }
    .stats-section:hover{
        color: gold;
    } 
.stats-header h2 { color: var(--accent-gold); }
.stats-header .section-subtitle { color: rgba(255, 255, 255, 0.7); margin-bottom: 4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.stat-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: var(--border-radius-md); padding: 2.5rem; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.stat-card:hover { transform: translateY(-10px); border-color: var(--accent-gold); box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
.card-header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.card-header i {
    font-size: 1.5rem;
    color:#FFD700; 
}
.card-header h4, .chart-text strong, .chart-value { color: var(--text-on-dark); }
.card-header h4 { margin: 0; font-size: 1.2rem; font-weight: 600; }
.chart-text strong { font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; }
.chart-value { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.card-footer, .chart-text span, .bar span { color: var(--text-light); font-weight: 500; }
.card-footer { text-align: center; font-size: 0.9rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.chart-text span { font-size: 1rem; }
.bar span { position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); font-size: 0.9rem; }
.card-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 2rem; }
.radial-chart { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.radial-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.radial-chart .circle-bg, .radial-chart .circle-progress { fill: none; stroke-width: 4; }
.radial-chart .circle-bg { stroke: rgba(255, 255, 255, 0.15); }
.radial-chart .circle-progress { stroke: var(--accent-gold); filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7)); stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s ease-out; stroke-linecap: round; }
.is-visible .radial-chart .circle-progress { stroke-dashoffset: 25; }
.radial-chart .chart-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.bar-chart { height: 150px; display: flex; justify-content: space-around; align-items: flex-end; gap: 1.5rem; padding: 0 1rem; }
.bar { width: 30%; background: linear-gradient(to top, var(--accent-gold), #ffeb85); box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); border-radius: 6px 6px 0 0; position: relative; height: 0; transition: height 1s ease-out 0.3s; }
.is-visible .bar { height: var(--bar-height); }
.for-everyone-section { background-color: #FFFFFF; }

/* CORRECTED: "Life at Every Stage" Tab Buttons Styling */
.for-everyone-section .tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.for-everyone-section .tab-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #1C1C1E; 
    color: #e0e0e0; 
    border: 1px solid transparent; 
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.for-everyone-section .tab-button:hover {
    background-color: #333;
    color: #fff;
}
.for-everyone-section .tab-button.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--accent-gold-darker);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}
.tabs-content { position: relative; max-width: 900px; margin: 0 auto; min-height: 420px; }
.tab-pane { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; grid-template-columns: 55% 45%; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
.tab-pane.active { opacity: 1; visibility: visible; }
.pane-image { width: 100%; height: 100%; min-height: 420px; background-size: cover; background-position: center; border-radius: var(--border-radius-md); box-shadow: 0 20px 50px rgba(0, 87, 184, 0.15); z-index: 1; }
.pane-text { margin-left: -10%; background: #1C1C1E; border-radius: 16px; padding: 2.5rem; padding-left: calc(10% + 2.5rem); z-index: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.pane-text h3 { font-size: clamp(1.6rem, 4vw, 2rem); color: #fff; margin-bottom: 1.5rem; text-transform: none; letter-spacing: normal; font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.feature-list li { display: flex; align-items: center; gap: 1rem; font-size: 1rem; color: #e0e0e0; }
.feature-list li i { font-size: 1.25rem; color: var(--accent-gold); width: 25px; text-align: center; }
.amenities-timeline { background-color: #0d1117; padding: clamp(5rem, 8vw, 8rem) 0; position: relative; color: #fff; overflow-x: hidden; }
.timeline-header .section-subtitle { color: rgba(255, 255, 255, 0.7); }
.timeline-container { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline-svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: 22px; pointer-events: none; }
.timeline-svg-path { stroke: var(--accent-gold); stroke-dasharray: 2500; stroke-dashoffset: 2500; transition: stroke-dashoffset 3s ease-in-out; }
.timeline-container.is-visible .timeline-svg-path { stroke-dashoffset: 0; }
.timeline-item { position: relative; width: 50%; padding: 20px 40px; opacity: 0; transition: transform 0.8s ease-out, opacity 0.8s ease-out; }
.timeline-item:nth-child(2) { transition-delay: 0.3s; }
.timeline-item:nth-child(3) { transition-delay: 0.6s; }
.timeline-item:nth-child(4) { transition-delay: 0.9s; }
.timeline-item:nth-child(odd) { transform: translateX(-50px); }
.timeline-item:nth-child(even) { left: 50%; transform: translateX(50px); }
.timeline-item.is-visible { opacity: 1; transform: translateX(0); }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; top: 50%; margin-top: -10px; background-color: #0d1117; border: 3px solid var(--accent-gold); border-radius: 50%; z-index: 1; transform: scale(0); transition: transform 0.5s ease-out 1.2s; }
.timeline-item.is-visible::after { transform: scale(1); }
.timeline-item:nth-child(odd)::after { right: 29px; }
.timeline-item:nth-child(even)::after { left: 29px; }
.timeline-card { position: relative; border-radius: 16px; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 10px 40px rgba(0,0,0,0.4); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.timeline-card:hover { transform: scale(1.03); box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 30px rgba(255, 215, 0, 0.5); }
.card-overlay { width: 100%; padding: 2rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6), transparent); }
.timeline-card h3 { color: #fff; font-size: 1.8rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,0.8); transition: text-shadow 0.4s ease; text-transform: none; letter-spacing: normal; }
.timeline-card:hover h3 { text-shadow: 0 0 20px var(--accent-gold); }
.timeline-card p { color: rgba(255, 255, 255, 0.85); font-size: 1rem; margin-top: 0.5rem; }
.community-section { background-color: var(--bg-dark); overflow: hidden; }
.community-section h2 { color: var(--text-on-dark); }
.community-section .section-subtitle { color: rgba(255, 255, 255, 0.7); margin-bottom: 4rem; }
.scroller { max-width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.scroller-track { display: flex; gap: 1.5rem; padding-block: 1rem; width: calc(360px * 12 + 1.5rem * 11); animation: scroll 40s linear infinite; will-change: transform; }
.scroller:hover .scroller-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(calc(-360px * 6 - 1.5rem * 6)); } }
.community-card { position: relative; width: 360px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-strong); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.community-card:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
.community-card::before { content: ''; position: absolute; inset: 0; border-radius: var(--border-radius-md); border: 2px solid var(--accent-gold); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.community-card:hover::before { opacity: 1; }
.community-card img { width: 100%; height: 100%; object-fit: cover; }
.card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 1.5rem 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); pointer-events: none; }
.card-content h4 { color: var(--text-on-dark); font-size: 1.5rem; font-weight: 600; margin: 0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
#projects { background-color: var(--bg-dark); }
#projects h2 { color: var(--text-on-dark); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.project-item { display: block; position: relative; overflow: hidden; cursor: pointer; border-radius: var(--border-radius-md); box-shadow: var(--shadow-strong); aspect-ratio: 4 / 3; transform-style: preserve-3d; perspective: 1000px; transition: transform 0.6s var(--transition-cubic); }
.project-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition-cubic); }
.project-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; display: flex; justify-content: space-between; align-items: flex-end; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); transform: translateZ(20px); }
.project-overlay h3, .project-overlay span { color: var(--text-on-dark); }
.project-overlay h3 { margin: 0; transform: translateZ(0); transition: transform 0.6s var(--transition-cubic); }
.project-item:hover .project-overlay h3 { transform: translateZ(50px); }
.view-prompt { font-size: 1rem; font-weight: 500; color: var(--accent-gold); opacity: 0; transform: translateX(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.project-item:hover .view-prompt { opacity: 1; transform: translateX(0); }
.investment-section { background-color: var(--bg-secondary); }
.investment-section .section-header h2 { color: var(--text-primary); }
.investment-section .section-header .section-subtitle { color: #555; margin-bottom: 4rem; }
.investment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; margin-bottom: 5rem; }
.benefit-card { position: relative; background-color: var(--bg-primary); border-radius: var(--border-radius-md); padding: 2.5rem; text-align: center; border: 1px solid var(--bg-primary); box-shadow: -10px -10px 20px rgba(255, 255, 255, 0.8), 10px 10px 20px rgba(0, 87, 184, 0.08); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.benefit-card::before { content: ''; position: absolute; z-index: -1; inset: 5px; background-color: #eef2f5; border-radius: var(--border-radius-md); transition: transform 0.4s ease; }
.benefit-card:hover { transform: translateY(-10px); box-shadow: -5px -5px 20px rgba(255, 255, 255, 0.5), 20px 20px 40px rgba(0, 87, 184, 0.12); }
.benefit-card:hover::before { transform: translate(5px, 5px); }
.card-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem auto; border-radius: 50%; background: linear-gradient(135deg, #eef2f5, #ffffff); display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
     color: var(--accent-gold); box-shadow: inset 5px 5px 10px #d9dde0, inset -5px -5px 10px #ffffff; }
.benefit-card h3 { font-size: 1.6rem; color: var(--text-primary); margin-bottom: 1rem; text-transform: none; letter-spacing: normal; }
.benefit-card p { font-size: 1.05rem; color: #667; line-height: 1.7; }
.summary-table { max-width: 900px; margin: 0 auto; border: 1px solid #e0e5ea; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-subtle); }
.table-row { display: grid; grid-template-columns: 1fr 1.5fr; background-color: var(--bg-primary); transition: background-color 0.3s ease; }
.table-row:hover:not(.header) { background-color: #f9fafb; }
.table-row:not(:last-child) { border-bottom: 1px solid #eef2f5; }
.table-row.header { background-color: #f9fafb; font-size: 0.9rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.table-cell { padding: 1.25rem 1.5rem; }
.table-cell:first-child { border-right: 1px solid #eef2f5; font-weight: 500; color: var(--text-primary); }

/* 5. RESPONSIVE STYLES */
@media (max-width: 992px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .vision-image { order: 1; max-width: 500px; margin-left: auto; margin-right: auto; }
    .vision-content p { margin-left: auto; margin-right: auto; }
    .tabs-content { min-height: 0; }
    .tab-pane { position: relative; display: none; flex-direction: column; gap: 1.5rem; }
    .tab-pane.active { display: flex; }
    .pane-image { min-height: 250px; z-index: 0; }
    .pane-text { width: 100%; margin-left: 0; padding: 2rem; }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; z-index: 1001; }
    .nav-menu { position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh; background-color: rgba(13, 17, 23, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform 0.4s var(--transition-cubic); }
    .nav-menu.active { transform: translateX(0); }
    .nav-toggle.active .hamburger { background-color: transparent; }
    .nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
    .nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }
    .timeline-svg { left: 20px; transform: translateX(0); }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 15px; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) { transform: translateX(50px); }
    .timeline-item.is-visible { transform: translateX(0); }
    .timeline-item::after { left: 10px; }
    .timeline-card { aspect-ratio: 4 / 3; }
    .card-overlay { padding: 1.5rem; }
    .timeline-card h3 { font-size: 1.4rem; }
    .timeline-card p { font-size: 0.9rem; line-height: 1.5; }
    .for-everyone-section .tabs-nav { flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .projects-grid,
    .investment-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 6. WHATSAPP, POP-UP MODAL & FORMS */

/* --- Base Styles for Popup Overlay & Container --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 90vh;
    overflow: hidden; /* This MUST be hidden to contain the rounded corners */
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 30px;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(0,0,0,0.6);
    transform: rotate(90deg);
}

/* --- Layout Grid: Mobile First --- */
.popup-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column (mobile) */
    height: 100%;
    max-height: 90vh;
    overflow-y: auto; /* Allow scrolling for the whole component on mobile */
}

/* --- Image and Form Columns: Mobile First --- */
.popup-image-col {
    height: 150px; /* Fixed height for image on mobile */
    overflow: hidden;
}

.popup-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-form-col {
    padding: 2rem 1.5rem;
}

.popup-form-col h3 {
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* --- Shared Form Element Styles --- */
.popup-contact-form .form-group { margin-bottom: 1rem; }
.popup-contact-form .form-group input { text-align: left; padding: 12px 15px; background-color: var(--bg-secondary); border: 1px solid #ddd; color: var(--text-primary); }
.popup-contact-form .form-group input::placeholder { color: #999; }
.form-group-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; text-align: left; margin-bottom: 1.5rem; }
.form-group-checkbox input[type="checkbox"] { margin-top: 5px; flex-shrink: 0; accent-color: var(--accent-gold-darker); }
.form-group-checkbox label { font-size: 0.8rem; color: #555; line-height: 1.5; }
.popup-contact-form .btn { width: 100%; }


/* =================================================================== */
/* --- DESKTOP STYLES (768px and WIDER) --- */
/* =================================================================== */
@media (min-width: 768px) {

    /* 1. Force the grid into two columns and stop it from scrolling */
    .popup-grid {
        grid-template-columns: 1fr 1fr !important; /* Force two columns */
        overflow: hidden; /* Disable scrolling on the grid container */
    }

    /* 2. Reset the image column height to fill the space automatically */
    .popup-image-col {
        height: 100%;
    }

    /* 3. Make ONLY the form column scrollable if needed */
    .popup-form-col {
        padding: 2.5rem; /* Give it some nice padding */
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto; /* IMPORTANT: This makes the form scroll, not the whole popup */
    }
    
    /* 4. Restore larger font sizes and padding for desktop view */
    .popup-form-col h3 {
        font-size: 2rem;
    }
    .popup-contact-form .form-group input {
        padding: 14px 18px;
    }
}

/* 7. NEW PAGE STYLES (Project & Legal) & NEW CTA BUTTONS */
.project-detail-section,
.legal-page-section {
    padding-top: 120px;
    padding-bottom: 5rem;
    background-color: var(--bg-secondary);
}
.project-detail-section h1,
.legal-page-section h1 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}
.project-image-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}
.project-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.project-description {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-subtle);
}
.project-description h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}
.project-description p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}
.project-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.project-actions .btn i {
    margin-right: 0.5rem;
}
.btn.btn-secondary {
    background-color: #333;
    color: #fff;
    border-color: #333;
}
.btn.btn-secondary:hover {
    background-color: #555;
    border-color: #555;
}
.legal-content-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-subtle);
    color: #555;
    line-height: 1.8;
}
.legal-content-box p {
    margin-bottom: 1.5rem;
}
.cta-button {
    margin-top: 1.5rem;
}
.section-cta-container {
    text-align: center;
    margin-top: 4rem;
}


/* NEW: Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.fab-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
}
.fab-item span {
    position: absolute;
    right: 100%;
    margin-right: 15px;
    background-color: var(--bg-dark);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.fab-item:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.fab-item:hover {
    transform: scale(1.1);
}
.fab-whatsapp { background-color: #25D366; }
.fab-call { background-color: var(--accent-blue); }
.fab-enquire { background-color: var(--accent-gold); color: var(--accent-gold-darker); }

/*
--- 16. FINAL POLISH: Mobile Floating Action Button (FAB) Size ---
*/

/* This media query targets phones and smaller devices (screens 576px or narrower) */
@media (max-width: 576px) {
    
    /* Reposition the main container to be closer to the corner on mobile */
    .floating-action-buttons {
        bottom: 15px;
        right: 15px;
        gap: 0.5rem;    /* Reduce the space between the buttons */
    }

    /* Make each circular button smaller */
    .fab-item {
        width: 50px;   /* Was 60px */
        height: 50px;  /* Was 60px */
    }

    /* Scale down the icon size to fit inside the new, smaller button */
    .fab-item i {
        font-size: 1.25rem; /* Was 1.5rem */
    }

    /* Hide the text labels ("Enquire", "Call", etc.) on mobile, as they are not needed on touch screens */
    .fab-item span {
        display: none;
    }
}


/* 8. ENHANCED FORM STATUS & SUCCESS UX */
.form-hidden {
    display: none !important;
}
.form-success-container {
    background-color: #1a1d24;
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-on-dark);
}
.form-success-container .icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.form-success-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.form-success-container p {
    font-size: 1.1rem;
    color: var(--text-light);
}
.form-status-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: left;
    border-width: 1px;
    border-style: solid;
}
.form-status-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #c0392b;
}
.form-status-message .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- 9. COMPLETE FOOTER REDESIGN (ENHANCED & CORRECTED) --- */

.footer-section {
    padding: 6rem 0 0 0; /* Remove bottom padding, it will be handled by the footer-bottom */
    background-color: #0d1117;
    color: var(--text-light);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}
.footer-col {
    text-align: center;
}
.footer-col .nav-logo {
    display: inline-block;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.8;
}
.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul a {
    color: var(--text-secondary);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col ul a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}
.social-media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-media-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.social-media-links a:hover {
    color: #0d1117;
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* --- ENHANCED: Footer Contact Form Styling --- */

/* This is the main container for the form section in the footer */
.footer-contact-form-container {
    padding: 5rem 0;
    text-align: center;
    /* Adds a subtle line to separate the form from the links above */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make the "Get in Touch" heading visible and more prominent */
.footer-contact-form-container h2 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3rem); /* Slightly larger for more impact */
    margin-bottom: 1rem;
}

/* Make the subheading visible and style it correctly */
.footer-contact-form-container .section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8; /* Slightly transparent to make the heading pop */
}

/* This rule overrides the animation system that was hiding the form */
.footer-contact-form-container .animate-reveal-child {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease;
}

/* The form wrapper for proper spacing */
#form-wrapper {
    margin-top: 3rem;
}

/* Centers the form and sets its maximum width */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Individual container for each input field */
.form-group {
    margin-bottom: 1.5rem;
}

/* Styling for all text inputs and the textarea */
.contact-form input[type="text"],
.contact-form input[type="phone"],
.contact-form textarea {
    width: 100%;
    background-color: #1a1d24;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-on-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

/* Specific styling for the textarea */
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Styling for the placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
    opacity: 1;
}

/* Crucial focus state for better UX */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-gold);
}

/* Styling for the submit button */
.contact-form .btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.footer-bottom {
    padding: 2rem 1.5rem; /* Use padding for inner spacing, not margin */
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: #000000;
    width: 100%; /* Ensures it takes the full width available */
}

/* Responsive queries for the footer grid */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-col {
        text-align: left;
    }
    .footer-about-text {
        margin: 0;
    }
    .social-media-links {
        justify-content: flex-start;
    }
    .footer-section .contact-form {
        margin-bottom: 180px; 
    }
    
    /* Make the form button size to its content on larger screens */
    .contact-form .btn {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* 10. UTILITY, ACCESSIBILITY & PRINT STYLES */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}
@media print {
    body {
        background-color: var(--bg-primary);
        color: #000;
    }
    .navbar, .hero-section, .stats-section, .amenities-timeline, .community-section, #projects, .footer-section, .btn, .whatsapp-button, .popup-overlay, .floating-action-buttons {
        display: none;
    }
    section {
        padding: 2rem 0;
    }
    h1, h2, h3, h4, p, a {
        color: #000 !important;
        text-shadow: none !important;
    }
    .container {
        max-width: 100%;
        padding: 0 1cm;
    }
}

/*
--- 14. NEW: Vision Section Trust Stats ---
*/

/* Container for the new stats grid, adding space above it */
.vision-stats-container {
    margin-top: 5rem;
}

/* The grid layout for the stat cards */
.vision-stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 2rem;
}

/* The individual stat card styling */
.stat-item {
    background-color: #0c0101;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-subtle);
    border-top: 4px solid var(--accent-gold); /* Adds a premium gold accent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Interactivity: Hover effect for the cards */
.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

/* Icon Styling */
.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: inline-block; /* Needed for margin to apply correctly */
}

/* Number Styling */
.stat-item h2 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--accent-gold);
    margin: 0;
    line-height: 1;
}

/* Description Text Styling */
.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Responsive Grid for Desktop */
/* This media query activates for screens wider than 768px */
@media (min-width: 768px) {
    .vision-stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Switch to a three-column layout */
    }
}