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

footer {
    color: white;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2f2f2f;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;  /* Reduced from 20px */
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.7); /* Darker background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

header.scrolled .logo,
header.scrolled .nav-links li a {
    color: #fff;
}

header.scrolled .nav-links li a:hover {
    color: #ff5a5f;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 50px;  /* Added to maintain consistent height */
}

.logo {
    font-size: 20px;  /* Slightly reduced from 24px */
    font-weight: 600;
    color: #fff;
}

header.scrolled .logo {
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    font-size: 14px;  /* Slightly reduced from 15px */
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    padding: 6px 16px;  /* Reduced from 8px 20px */
    transition: color 0.3s;
}

header.scrolled .nav-links li a {
    color: #fff;
}

.nav-links li a:hover {
    color: #007bff;
}

header.scrolled .nav-links li a:hover {
    color: #ff5a5f;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: auto; /* Change from 100vh to auto */
    min-height: 100vh; /* Ensure minimum height covers viewport */
    background: url('vdf.jpg') no-repeat center center/cover;
    margin-bottom: 60px; /* Add space after hero section */
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: visible;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap; /* Change to nowrap for desktop */
    gap: 2rem; /* Add gap between content and form */
    position: relative; /* Add this */
    z-index: 2; /* Add this */
}

.hero-content {
    flex: 1; /* Allow content to take available space */
    text-align: left; /* Align text to left */
    color: #fff;
    max-width: 600px; /* Limit width */
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-bar {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    width: 300px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    margin-right: 0.5rem;
}

.search-bar button {
    padding: 15px 35px;
    border-radius: 50px;
    background: #ff5a5f;
    font-weight: 500;
    transition: transform 0.3s ease;
    color: white;
    border: none;
    cursor: pointer;
}

.search-bar button:hover {
    transform: translateY(-2px);
}

/* Featured Properties */
.featured-properties {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-properties h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.featured-properties h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #ff5a5f;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

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

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 25px;
}

.property-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.price {
    color: #ff5a5f;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    justify-content: space-between;
}

/* Property Popup Styles */
.property-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    overflow-y: auto;
}

.property-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 2rem;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #ff5a5f;
}

.popup-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.popup-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.popup-details-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-details-item i {
    color: #ff5a5f;
}

/* Filters Section */
.filters {
    padding: 30px 5%;
    background: white;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-container select {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 20px;
    font-size: 14px;
    color: #495057;
    flex: 1;
    min-width: 200px;
}

#filterBtn {
    background: #ff5a5f;
    padding: 12px 30px;
    font-weight: 500;
    transition: transform 0.3s ease;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#filterBtn:hover {
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 80px 5%;
}

.contact-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactForm input,
#contactForm textarea {
    background: white;
    border: 1px solid #e9ecef;
    padding: 15px;
    font-size: 14px;
    border-radius: 4px;
}

#contactForm textarea {
    min-height: 150px;
}

#contactForm button {
    background: #ff5a5f;
    padding: 15px 40px;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.3s ease;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#contactForm button:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #2f2f2f;
    padding: 80px 5% 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.social-links a {
    font-size: 20px;
    color: white;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff5a5f;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Luxurious House Section */
.luxurious-house {
    position: relative;
    padding: 80px 5%;
    text-align: center;
    background: white;
    margin-top: 0; /* Reset margin */
}

.spacer {
    height: 30px;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.empty-space {
    height: 15px;
}

.tb-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ff5a5f;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.tb-btn:hover {
    transform: translateY(-2px);
}

.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.counter-item {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
    text-align: left; /* Add this line */
}

.counter-icon {
    width: 60px;
    height: 60px;
    background: #ff5a5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Change from margin: 0 auto */
    color: white;
    font-size: 22px;
}

.counter-number {
    font-size: 60px;
    font-weight: 600;
    color: #2f2f2f;
    margin: 15px 0 10px;
    text-align: left; /* Add this line */
}

.counter-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-align: left; /* Add this line */
}

/* Animation classes */
.animated {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-bar input,
    .search-bar button {
        width: 100%;
        margin: 5px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;  /* Reduced from 70px */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        transition: 0.3s;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .filter-container {
        flex-direction: column;
    }
    
    .filter-container select,
    #filterBtn {
        width: 100%;
        margin: 5px 0;
    }

    .counter-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .counter-number {
        font-size: 40px;
    }

    .counter-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero-inner {
        flex-direction: column;
        flex-wrap: wrap;
        padding: 20px;
        height: 100%; /* Add this */
        justify-content: flex-start; /* Add this */
        padding-top: 80px; /* Add this to create space below header */
    }

    .hero-content {
        text-align: center;
        margin-top: 0; /* Change from 60px */
        padding: 1rem;
        position: relative; /* Add this */
        z-index: 3; /* Add this */
        width: 100%; /* Add this */
        max-width: 100%; /* Add this */
    }

    .hero {
        height: auto; /* Change from fixed height */
        min-height: 100vh; /* Add this */
        padding-bottom: 40px; /* Add padding at the bottom */
    }

    .hero-inner {
        flex-direction: column;
        flex-wrap: wrap;
        padding: 20px;
        margin-top: 60px; /* Space for header */
        overflow: visible;
    }

    .appointment-form-container {
        width: 90%;
        margin: 20px auto;
        max-width: 400px;
        position: relative;
        z-index: 2;
    }

    .luxurious-house {
        position: relative;
        z-index: 1;
        padding-top: 40px; /* Add padding at top */
        margin-top: 0;
        background: white;
    }

    .hero-content {
        text-align: center;
        margin-top: 60px;
        padding: 1rem;
    }

    .appointment-form-container {
        width: 90%;
        margin: 20px auto;
        max-width: 400px;
    }

    .hero h1 {
        font-size: 2rem; /* Reduce heading size on mobile */
    }

    .hero p {
        font-size: 1rem; /* Reduce paragraph size on mobile */
    }

    .hero-container {
        margin-bottom: 0; /* Remove margin on mobile */
    }

    .hero {
        padding-bottom: 20px; /* Reduce bottom padding */
    }

    .hero-inner {
        padding-bottom: 40px; /* Add padding to create space for form */
    }
}

/* Appointment Form Styles */
.appointment-form-container {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 400px; /* Fixed width for desktop */
    flex-shrink: 0; /* Prevent form from shrinking */
    margin-top: 0; /* Reset margin for desktop */
    margin-left: auto;
    margin-right: auto;
}

.appointment-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: black;
}

.appointment-form p {
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    color: black;
    text-shadow: none; /* Add this line to explicitly remove any text shadow */
}

.appointment-form input,
.appointment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.appointment-form textarea {
    height: 100px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: black;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 3px 8px 0 0;
    padding: 0;
}

.checkbox-container label {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.appointment-form button {
    background: #ff5a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    width: 100%;
}

.appointment-form button:hover {
    background: #e04a4f;
}

/* Meet Agent Section */
.meet-agent {
    padding: 80px 5%;
    background: #f8f9fa;
}

.agent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.agent-image {
    flex: 1;
    max-width: 400px;
}

.agent-image img {
    width: 100%;
    border-radius: 8px;
}

.agent-info {
    flex: 2;
}

.agent-info h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.agent-info h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ff5a5f;
}

.agent-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.agent-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2f2f2f;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.agent-contact a:hover {
    color: #ff5a5f;
}

.agent-contact i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .agent-container {
        flex-direction: column;
    }

    .agent-image {
        max-width: 100%;
    }
}
