/* 
   Modern Real Estate Design System
   Inspired by Ypopinfra Colors and Sobha Structure
*/

:root {
    --primary-color: #DE332F;
    --secondary-color: #DC3545;
    --text-color: #212529;
    --text-muted: #6C757D;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(222, 51, 47, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.h-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.h-feature i {
    color: var(--primary-color);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-outline {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* Hero Enquiry Form */
.enquiry-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.enquiry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.enquiry-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Highlights Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Amenities Section */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.amenity-item {
    background: var(--bg-light);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.amenity-item:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.amenity-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.amenity-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer Section */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(100);
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
    font-size: 0.8rem;
}

/* Price List Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.price-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.price-card.popular {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: -35px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 1;
}

.pc-header {
    background: var(--bg-light);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pc-header h4 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.pc-area {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.pc-body {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1;
}

.pc-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
}

.pc-booking {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pc-footer {
    padding: 20px;
    background: var(--bg-light);
}

/* Floor Plans Section Update */
.blur-image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.blurred-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: blur(10px);
    transition: var(--transition);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
}

.blur-overlay i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blur-overlay span {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
}

.floor-plan-card:hover .blurred-image {
    transform: scale(1.05);
}

/* Floor Plans Section Existing */
.floor-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.floor-plan-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.floor-plan-card:hover {
    transform: translateY(-5px);
}

.floor-plan-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.fp-info {
    padding: 25px;
    text-align: center;
}

.fp-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.fp-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Location Section */
.map-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(222, 51, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    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);
}

/* Builder Section */
.builder-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.builder-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.builder-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.builder-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.builder-stats .stat .count {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
}

.builder-stats .stat p {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
}

.builder-logo img {
    max-width: 100%;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.builder-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideDown 0.4s ease;
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design Update */
@media (max-width: 768px) {
    .builder-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .builder-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* Existing Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-features,
    .hero-btns {
        justify-content: center;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}