/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f1c40f;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
}

.section-header h2:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header .subtitle {
    color: #777;
    font-size: 18px;
    font-weight: 300;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.logo .tagline {
    font-size: 14px;
    color: #777;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    color: var(--dark-color);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after, .nav-menu a.active:after {
    width: 100%;
}

.btn-contact {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-contact:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cmVhbCUyMGVzdGF0ZSUyMGhvdXNlfGVufDB8fDB8fHww&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.agent-photo-placeholder {
    width: 350px;
    height: 450px;
    background-color: #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.agent-photo-placeholder i {
    font-size: 100px;
    color: #aaa;
}

.agent-photo {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credential i {
    font-size: 20px;
    color: var(--secondary-color);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 30px;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
}

/* Listings Section */
.listings {
    padding: 100px 0;
    background-color: var(--light-color);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-bottom: 50px;
}

.listing-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.listing-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.listing-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-placeholder i {
    font-size: 60px;
    color: #aaa;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .property-image {
    transform: scale(1.1);
}

.listing-status {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 20px 20px 0;
}

.listing-details {
    padding: 20px;
}

.listing-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.listing-address {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.listing-price {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.listing-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 15px;
}

.listing-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #555;
}

.listing-features i {
    color: var(--secondary-color);
}

.view-all-container {
    text-align: center;
    margin-top: 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTh8fHJlYWwlMjBlc3RhdGV8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.testimonials .section-header h2 {
    color: white;
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial {
    flex-basis: 350px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.client-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.client-name {
    font-weight: 700;
    font-size: 18px;
}

.client-role {
    color: #ddd;
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(231, 76, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.contact-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 16px;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-status {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
    display: none;
    width: 100%;
}

.form-status.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
    display: block;
}

.form-status.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

.required {
    color: #e74c3c;
}

.privacy-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.privacy-link:hover {
    color: #c0392b;
}

.form-group.privacy-policy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.form-group.privacy-policy input {
    width: auto;
    margin-top: 5px;
}

.form-group.privacy-policy label {
    margin-bottom: 0;
    flex: 1;
}

input[aria-invalid="true"], 
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

#submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
    min-width: 0; /* Allows proper flex shrinking */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #bbb;
    font-size: 14px;
}

.footer h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.footer-links ul, .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    margin-left: 5px;
}

.footer-services li {
    color: #bbb;
}

.newsletter-form {
    margin-top: 20px;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 30px 0 0 30px;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #bbb;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #bbb;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 20px;
    }
    
    .agent-photo {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 30px 0;
        gap: 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .agent-photo-placeholder {
        width: 100%;
        max-width: 350px;
    }
    
    .agent-photo {
        width: 250px;
        height: 350px;
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contact-form form {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}