/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #0da271;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    margin-right: 30px;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray);
    max-width: 600px;
}

/* Search Container */
.search-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.search-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.search-tab.active {
    color: var(--primary);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    bottom: -1px;
    left: 0;
}

.search-tab:hover {
    color: var(--primary);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
}

.search-field {
    display: flex;
    align-items: center;
    background-color: var(--light);
    border-radius: var(--border-radius-sm);
    padding: 0 15px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.search-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-field i {
    color: var(--gray);
    margin-right: 10px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 15px 0;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--dark);
    outline: none;
}

.search-field select {
    cursor: pointer;
}

.search-btn {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.hero-stats .stat p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* Featured Properties */
.featured-properties {
    background-color: var(--light);
}

.properties-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.property-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-badge.featured {
    background-color: var(--accent);
}

.property-badge.new {
    background-color: var(--secondary);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.property-location i {
    color: var(--primary);
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

.feature span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* How It Works */
.how-it-works {
    background-color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Top Agents */
.top-agents {
    background-color: var(--light);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.agent-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.agent-image {
    height: 200px;
    overflow: hidden;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.agent-card:hover .agent-image img {
    transform: scale(1.05);
}

.agent-info {
    padding: 25px;
}

.agent-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.agent-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.agent-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Neighborhoods */
.neighborhoods {
    background-color: white;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.neighborhood-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 300px;
}

.neighborhood-image {
    width: 100%;
    height: 100%;
}

.neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.neighborhood-card:hover .neighborhood-image img {
    transform: scale(1.05);
}

.neighborhood-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 25px;
}

.neighborhood-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.neighborhood-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Sell Property */
.sell-property {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.sell-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.sell-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.sell-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.sell-features {
    margin-bottom: 30px;
}

.sell-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: white;
}

.sell-features li i {
    color: var(--secondary);
}

.sell-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sell-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.sell-form h3 {
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.sell-form .form-group {
    margin-bottom: 20px;
}

.sell-form input,
.sell-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.sell-form input:focus,
.sell-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sell-form button {
    width: 100%;
    margin-top: 10px;
}

/* Testimonials */
.testimonials {
    background-color: var(--light);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    display: none;
}

.testimonial-card.active {
    display: block;
}

.testimonial-content {
    margin-bottom: 30px;
}

.rating {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--light-gray);
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary);
    margin-top: 5px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }
    
    .sell-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .search-tabs {
        flex-wrap: wrap;
    }
    
    .search-tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .sell-btns {
        flex-direction: column;
    }
    
    .sell-btns .btn {
        width: 100%;
        text-align: center;
    }
}