/* --- Variables --- */
:root {
    --primary-color: #C8947A; /* Rose Gold / Copper from brochure */
    --primary-dark: #A6755D;
    --secondary-color: #2A1635; /* Deep Purple / Plum from brochure */
    --accent-color: #3D224C;
    --text-color: #4A5568;
    --light-bg: #F8F5F9; /* Slight purple tint for light backgrounds */
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(42, 22, 53, 0.15);
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-white {
    color: var(--white) !important;
}

.section-subtitle {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(200, 148, 122, 0.4);
}

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

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

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 100%;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

/* --- Glassmorphism --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: 2.5rem;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(42, 22, 53, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
    font-weight: 400;
}

.nav-logo {
    height: 65px;
    max-height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: url(#remove-dark-bg); /* Applies the custom SVG filter to make dark background transparent */
    transition: var(--transition);
}

#navbar.scrolled .nav-logo {
    height: 55px;
    max-height: 55px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 22, 53, 0.95) 0%, rgba(42, 22, 53, 0.5) 50%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding-top: 100px; /* Prevent overlap with fixed navbar */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 148, 122, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.price-box {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(135deg, #E3B19A, #9E674F);
    padding: 15px 30px;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.price-box .starting-text {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-box .price-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.hero-content .title {
    color: var(--white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-form-container {
    width: 400px;
}

.hero-form-container h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.hero-form-container p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Forms */
.lead-form .form-group {
    margin-bottom: 1rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(200, 148, 122, 0.2);
}

/* --- Stats --- */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    display: inline-block;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 0;
}

.stat-item span {
    color: var(--primary-color);
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.about-image img {
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.experience-badge h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0;
}

.about-content {
    flex: 1;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* --- Amenities Section --- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.amenity-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.amenity-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(200, 148, 122, 0.2);
    border-bottom-color: var(--primary-color);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(200, 148, 122, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.amenity-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 22, 53, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* --- Floor Plans Section --- */
.tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.plan-wrapper {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.plan-image {
    flex: 2;
    background: #f9f9f9;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-image img {
    max-height: 500px;
    object-fit: contain;
}

.plan-details {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-details .area {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.plan-details ul {
    margin-bottom: 1.5rem;
}

.plan-details li {
    margin-bottom: 0.8rem;
    padding-left: 20px;
    position: relative;
}

.plan-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* --- Contact Section --- */
.contact {
    background: linear-gradient(rgba(42, 22, 53, 0.9), rgba(42, 22, 53, 0.9)), url('../JPEG/2059-Toppaz_Ground_Cam_018.jpg') center/cover fixed;
    color: var(--white);
}

.contact-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: rgba(255,255,255,0.7);
}

.contact-form-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form-wrapper h3 {
    color: var(--white);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
.premium-footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.8);
    padding-top: 80px;
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
    max-width: 500px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 0.2rem;
    font-size: 2rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.builder-name {
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-desc {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.rera-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.rera-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.rera-info strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.rera-info p {
    margin: 0;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1.1rem;
}

.footer-links-group {
    flex: 3;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links i {
    color: var(--primary-color);
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 25px 0;
    background: rgba(0,0,0,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- Floating Elements --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

#mobile-enquire-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    z-index: 99;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    position: relative;
    background: var(--white);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* --- Mobile Bottom CTA --- */
.mobile-cta-bar {
    display: none;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content .title {
        font-size: 3rem;
    }
    
    .about-container, .contact-container {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item.large, .gallery-item.wide {
        grid-column: span 2;
    }
    
    .plan-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }
    
    .hero-content .title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item h3, .stat-item span {
        font-size: 2rem;
    }
    
    .experience-badge {
        position: static;
        margin-top: 1rem;
        display: block;
    }

    .hero-form-container {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large, .gallery-item.wide {
        grid-column: span 1;
    }
    
    .nav-cta .btn {
        display: none;
    }
    
    #mobile-enquire-btn {
        display: block;
    }
    
    .floating-whatsapp {
        bottom: 80px; /* moved up slightly for cta bar */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        z-index: 1000;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.15);
    }
    
    .mobile-cta-bar a {
        flex: 1;
        text-align: center;
        padding: 15px 0;
        font-weight: 600;
        color: var(--white);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1.1rem;
    }
    
    .btn-call { background: var(--secondary-color); }
    .btn-wa { background: #25D366; }
    
    footer { padding-bottom: 70px; }
}
