/* --- Root Variables for Colors and Fonts --- */
:root {
    --midnight-blue: #001f3f;
    --charcoal-gray: #333333;
    --luxe-gold: #D4AF37;
    --warm-off-white: #F8F8F8;
    --success-green: #25D366;
    --error-red: #dc3545;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-lato: 'Lato', sans-serif;
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes zoomIn {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}


/* --- General Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-lato);
    background-color: var(--warm-off-white);
    color: var(--charcoal-gray);
    line-height: 1.6;
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    color: var(--midnight-blue);
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-montserrat);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--luxe-gold);
    color: var(--midnight-blue);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}


/* --- Modal / Pop-up Form --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-family: var(--font-montserrat);
    color: var(--midnight-blue);
    margin-bottom: 10px;
    font-weight: 400; /* or 300  */
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input,
.modal-content select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-lato);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
}

.modal-content select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

/* --- Success & Error Alert Dialogs --- */
.alert-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-dialog.show {
    opacity: 1;
}

.alert-dialog .alert-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.alert-dialog.show .alert-content {
    transform: scale(1);
}

.alert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-icon.success {
    background-color: var(--success-green);
}

.alert-icon.error {
    background-color: var(--error-red);
}

.alert-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 4;
}

.alert-content h3 {
    font-family: var(--font-montserrat);
    color: var(--midnight-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.alert-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
}

/* --- Header & Navbar --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(248, 248, 248, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 150px;
    height: 150px;
}

.logo span {
    font-family: var(--font-montserrat);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ========== UPDATE: SELECTOR CHANGED TO EXCLUDE .nav-btn ========== */
.nav-links a:not(.nav-btn) {
    text-decoration: none;
    color: var(--charcoal-gray);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--luxe-gold);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--luxe-gold);
    color: var(--midnight-blue);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    /* Explicitly remove underline */
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.nav-btn::after {
    display: none !important;
}

/* --- Hamburger Menu Styles --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 24px;
    height: 24px;
    padding: 0;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--midnight-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.close-menu-btn {
    display: none;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-family: var(--font-montserrat);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--midnight-blue);
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: backwards;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0, 100% 0%, 100% 100%, 0% 100%);
    animation: zoomIn 1.5s ease-out;
}

/* --- Stats Section --- */
.stats-container {
    display: flex;
    margin-top: 40px;
    gap: 40px;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--luxe-gold);
}

.stat-label {
    font-size: 1rem;
    color: var(--charcoal-gray);
}
/* ========== UPDATE: FEATURED PROPERTIES SECTION RESTYLED ========== */
.scroll-wrapper {
    position: relative;
}

.featured-properties-list {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 4px 4px 20px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
.featured-properties-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.property-card {
    width: 350px;
    flex-shrink: 0;
    scroll-snap-align: center; /* Changed from 'start' to 'center' */
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--charcoal-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Center all text inside the card */
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.property-card img {
    width: 100%;
    height: 250px; /* Slightly taller image */
    object-fit: cover;
    display: block;
}

.property-info {
    padding: 25px;
}

/* REMOVED .developer-name style */
/* .developer-name {
    display: inline-block;
    background-color: var(--light-gray);
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
} */

.property-info h3 {
    font-family: var(--font-montserrat);
    font-size: 1.5rem; /* Larger font */
    color: var(--midnight-blue);
    margin: 0 0 10px 0;
    font-weight: 700;
}

/* NEW STYLES for specs and location */
.property-specs {
    font-size: 1rem;
    color: var(--charcoal-gray);
    margin-bottom: 15px;
}

.property-location {
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.property-location i {
    color: var(--luxe-gold);
}


.scroll-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.scroll-btn {
    background-color: var(--warm-off-white);
    border: 2px solid #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--charcoal-gray);
    transition: all 0.3s ease;
}

.scroll-btn:hover:not(:disabled) {
    background-color: var(--luxe-gold);
    color: var(--midnight-blue);
    border-color: var(--luxe-gold);
    transform: scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-family: var(--font-montserrat);
    color: var(--midnight-blue);
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: flex-start;
}

.contact-form {
    flex-grow: 0;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-lato);
    font-size: 1rem;
    background-color: white;
}

.contact-form select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

/* --- Footer --- */

footer {
    background-color: var(--midnight-blue);
    color: white;
    padding: 60px 0; /* Increased padding */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Adjusted gap */
}

.footer-logo span {
    color: var(--warm-off-white);
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
}
/* ========== UPDATE: SOCIAL ICON STYLES CHANGED ========== */
.social-media {
    display: flex;
    gap: 25px; /* Adjusted gap */
    margin-top: 5px;
}

.social-icon {
    /* REMOVED background, width, height, border-radius */
    color: var(--warm-off-white);
    text-decoration: none;
    font-size: 1.5rem; /* Adjusted icon size */
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--luxe-gold);
    transform: translateY(-3px);
}

/* ========== UPDATE: NEW STYLES FOR FOOTER LINKS ========== */
.footer-links a, .footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem; /* Smaller font size */
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--luxe-gold);
}

.footer-legal {
    color: #a9a9a9; /* Lighter color for separators */
}

.copyright {
    font-size: 0.8rem; /* Smaller font size */
    color: #a9a9a9;
    margin-top: 10px;
}
/* footer {
    background-color: var(--midnight-blue);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo span {
    color: var(--warm-off-white);
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--warm-off-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--luxe-gold);
    color: var(--midnight-blue);
    transform: translateY(-3px);
} */

/* --- Floating WhatsApp Button --- */
#whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: transform 0.3s ease;
}

#whatsapp-fab:hover {
    transform: scale(1.1);
}

#whatsapp-fab svg {
    width: 32px;
    height: 32px;
}

.fab-label {
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--charcoal-gray);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}

#whatsapp-fab:hover .fab-label {
    visibility: visible;
    opacity: 1;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        max-width: 55%;
    }

    .hero-image-container {
        width: 50%;
        clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0% 100%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .nav-btn {
        font-size: 1.2rem;
        display: inline-block;
        width: auto;
    }

    .hamburger-menu {
        display: flex;
    }

    #hero {
        min-height: 70vh;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        clip-path: none;
        z-index: 1;
    }

    .hero-image-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 31, 63, 0.5);
    }

    .hero-image-container img {
        filter: blur(4px);
    }

    .hero-container {
        padding-top: 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 0;
    }

    .hero-title,
    .stat-label {
        color: var(--warm-off-white);
    }

    .stats-container {
        justify-content: center;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .contact-form {
        width: 100%;
        max-width: 500px;
        padding: 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .property-card {
        width: 80vw;
    }
    .featured-properties-list {
        padding: 20px 10vw; /* 10vw is (100vw - 80vw card width) / 2 */
    }
}