/* Base Styles - Modern White Theme */
:root {
    --primary: #0a0a2a;
    --secondary: #0066cc;
    --accent: #00a896;
    --light: #ffffff;
    --dark: #000000;
    --gray: #4a4a4a;
    --light-gray: #f8f9fa;
    --border: #eaeaea;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 1);
    --section-padding: 100px 0;
}


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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--primary);
    overflow-x: hidden;
    background-color: var(--light);
    font-weight: 400;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ef2e2e
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    z-index: 1;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow);
}

.btn:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

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

/* Header - Fixed Alignment */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
    margin-left: 5px;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section - Fixed Alignment */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--primary);
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    gap: 50px;
}

.hero-text {
    flex: 1;
    padding-top: 40px;
    animation: fadeInLeft 0.8s ease;
}

.hero-form-container {
    flex: 1;
    max-width: 500px;
    animation: fadeInRight 0.8s ease;
    padding-top: 40px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    line-height: 1.15;
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--gray);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.form-card {
    background: var(--light);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-card h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Property Section */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.property-img {
    height: 280px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.property-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: var(--shadow);
}

.property-content {
    padding: 30px;
}

.property-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.6rem;
}

.property-location {
    color: var(--gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.property-location i {
    margin-right: 8px;
    color: var(--secondary);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    flex: 1;
}

.feature i {
    display: block;
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

/* Pricing Table */
.pricing-table {
    overflow-x: auto;
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th,
td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.price-highlight {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Location Advantages */
.location-section {
    background: linear-gradient(to right, white 50%, var(--light-gray) 50%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.location-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.location-content,
.location-img {
    flex: 1;
    min-width: 300px;
}

.location-content {
    padding-right: 60px;
}

.location-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
    border: 1px solid var(--border);
}

.location-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.advantages-list {
    list-style: none;
    margin-top: 40px;
}

.advantages-list li {
    margin-bottom: 25px;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
}

.advantages-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary);
    font-size: 1.3rem;
    background: rgba(0, 102, 204, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

/* Gallery */
.gallery {
    background: var(--light-gray);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info {
    color: white;
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
    border-color: var(--secondary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--secondary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    background: white;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Popup Form */
.popup-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.popup-form.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.popup-form.active .popup-content {
    transform: translateY(0);
}

.popup-header {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header h3 {
    font-size: 1.8rem;
}

.popup-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
    border-color: var(--secondary);
}

.popup-body {
    padding: 40px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Quote Button */
.quote-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive - Improved Mobile Compatibility */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 50px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-form-container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .section-title h2 {
        font-size: 2.4rem;
    }

    .location-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .location-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        border: 1px solid var(--border);
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 20px 0;
    }

    .hero {
        padding-top: 90px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .quote-btn {
        left: 20px;
        bottom: 20px;
    }

    .whatsapp-btn {
        right: 20px;
        bottom: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 80px 0;
    }

    .hero {
        min-height: 100vh;
        padding-bottom: 60px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .form-container,
    .popup-body {
        padding: 30px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .popup-content {
        width: 95%;
    }
}

/* Make popup fill the screen height and enable scrolling inside */
.popup-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* ✅ Scroll entire popup if content overflows */
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Popup content adjustments */
.popup-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    /* ✅ Limit height to viewport */
    overflow-y: auto;
    /* ✅ Scroll content if taller than screen */
    -webkit-overflow-scrolling: touch;
    /* ✅ Smooth scroll on iOS */
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .popup-content {
        max-height: 95vh;
        width: 100%;
        margin: 0;
        border-radius: 0;
        /* Full-screen modal on small devices */
    }
}