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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(135deg, #1a237e, #283593);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
}

.logo span {
    color: #ff9800;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff9800;
}

.cta-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

.cta-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(40, 53, 147, 0.8)), url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.search-box input::placeholder {
    font-family: 'Nunito', sans-serif;
    color: #999;
}

.search-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

/* Listings Section */
.listings-section {
    padding: 5rem 5%;
    background: #f5f5f5;
}

.section-title {
    font-family: 'Merriweather', serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #1a237e;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #1a237e;
    background: white;
    color: #1a237e;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #1a237e;
    color: white;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.property-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border-color: #ff9800;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1), rgba(255, 152, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.property-card:hover::before {
    opacity: 1;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
}

.property-image-wrapper {
    position: relative;
    overflow: hidden;
}

.property-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.property-card:hover .property-image-overlay {
    opacity: 1;
}

.property-image-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.property-card:hover .property-image-overlay span {
    transform: translateY(0);
}

.property-info {
    padding: 1.5rem;
    transition: transform 0.4s ease;
}

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

.property-info h3 {
    font-family: 'Merriweather', serif;
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

.property-card:hover .property-info h3 {
    color: #283593;
    transform: translateX(5px);
}

.property-location {
    font-family: 'Nunito', sans-serif;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.property-card:hover .property-location {
    color: #1a237e;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.property-features span {
    transition: transform 0.3s ease, color 0.3s ease;
}

.property-card:hover .property-features span:hover {
    transform: translateY(-3px);
    color: #ff9800;
}

.property-price {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.property-price::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.property-card:hover .property-price::after {
    left: 100%;
}

.property-price:hover {
    animation: pricePulse 0.5s ease;
}

@keyframes pricePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.property-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.property-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.property-btn:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

.property-btn:hover::before {
    left: 100%;
}

.property-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

/* Featured badge animation */
.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    animation: badgeBounce 2s ease infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Card entrance animation variants */
.property-card.animate-from-left {
    animation: slideFromLeft 0.6s ease forwards;
}

.property-card.animate-from-right {
    animation: slideFromRight 0.6s ease forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Glow effect on card hover */
.property-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.property-card:hover::after {
    opacity: 1;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a237e, #283593);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat:nth-child(1) .stat-icon { animation-delay: 0s; }
.stat:nth-child(2) .stat-icon { animation-delay: 0.5s; }
.stat:nth-child(3) .stat-icon { animation-delay: 1s; }

.stat-icon:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    transform: scale(1.1) rotate(10deg);
    transition: all 0.3s ease;
}

.stat h3 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 900;
    color: #ff9800;
    margin-bottom: 0.5rem;
}

.stat p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #1a237e, #283593);
    text-align: center;
    color: white;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #0d1033;
    color: white;
    padding: 3rem 5% 1rem;
}

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

.footer-section h3 {
    color: #ff9800;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p, .footer-section li {
    color: #aaa;
    line-height: 2;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff9800;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
}

/* 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 {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a237e;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in {
    transform: none;
}

.animate-on-scroll.scale-up {
    transform: scale(0.8);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

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

/* Hero load animation */
.hero-content {
    animation: heroFadeUp 1s ease forwards;
}

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

/* Parallax hero */
.hero {
    background-attachment: fixed;
}

/* Stagger delays for property cards */
.property-card:nth-child(1) { transition-delay: 0s; }
.property-card:nth-child(2) { transition-delay: 0.1s; }
.property-card:nth-child(3) { transition-delay: 0.2s; }
.property-card:nth-child(4) { transition-delay: 0.3s; }
.property-card:nth-child(5) { transition-delay: 0.4s; }
.property-card:nth-child(6) { transition-delay: 0.5s; }
.property-card:nth-child(7) { transition-delay: 0.6s; }
.property-card:nth-child(8) { transition-delay: 0.7s; }
.property-card:nth-child(9) { transition-delay: 0.8s; }

/* Stagger delays for stats */
.stat:nth-child(1) { transition-delay: 0s; }
.stat:nth-child(2) { transition-delay: 0.15s; }
.stat:nth-child(3) { transition-delay: 0.3s; }

/* Stagger delays for footer sections */
.footer-section:nth-child(1) { transition-delay: 0s; }
.footer-section:nth-child(2) { transition-delay: 0.15s; }
.footer-section:nth-child(3) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1a237e;
        padding: 1rem;
        gap: 0;
    }

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

    .nav-links li {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hamburger {
        display: flex;
    }

    .cta-btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-box input {
        border-radius: 15px;
    }

    .search-btn {
        border-radius: 15px;
        margin-top: 0.5rem;
    }

    .stats {
        gap: 2rem;
    }
}