/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #2c3e50;
    color: #ffffff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

/* Hero Section */
.hero {
    min-height: 400px;
    background: #3498db; /* A shade of blue */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 0;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero .btn {
    display: inline-block;
    color: #ffffff;
    background: #e74c3c; /* A shade of red */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: #c0392b;
}

/* Section Styling */
section {
    padding: 40px 0;
    background: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
}

section h3 {
    color: #34495e;
    margin-top: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

section h4 {
    color: #34495e;
    margin-top: 15px;
}

/* Valuation Service Section */
.valuation-service .case-study {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.valuation-service table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.valuation-service th,
.valuation-service td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.valuation-service th {
    background-color: #f2f2f2;
    color: #333;
}

.valuation-service .image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.valuation-service .image-gallery img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 calc(50% - 15px); /* Two images per row on larger screens */
    min-width: 300px; /* Minimum width for images */
}

.valuation-service .overall-comparison {
    margin-top: 40px;
    padding: 20px;
    background: #eaf2f8;
    border-radius: 8px;
}

.valuation-service .overall-comparison ul {
    list-style: disc;
    margin-left: 20px;
}

/* About Ayou Section */
.about-ayou .ayou-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-ayou .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.about-ayou p {
    max-width: 800px;
    margin: 10px auto;
    font-size: 1.1em;
}

.about-ayou a {
    color: #3498db;
    text-decoration: none;
}

.about-ayou a:hover {
    text-decoration: underline;
}

/* Contact Us Section */
.contact-us {
    text-align: center;
    background: #2c3e50;
    color: #ffffff;
    padding: 50px 0;
}

.contact-us h2 {
    color: #ffffff;
}

.contact-us p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-us a {
    color: #77aaff;
    text-decoration: none;
    font-weight: bold;
}

.contact-us a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background: #333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Header Mobile Optimization */
    header {
        padding-top: 15px;
        min-height: auto;
    }

    header h1 {
        float: none;
        text-align: center;
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    header nav {
        float: none;
        text-align: center;
        margin-top: 0;
    }

    header nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    header nav ul li {
        display: block;
        padding: 5px 8px;
    }

    header a {
        font-size: 14px;
        padding: 8px 12px;
        display: block;
        border-radius: 4px;
        background: rgba(255,255,255,0.1);
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 300px;
        padding: 30px 0;
        text-align: center;
    }

    .hero h2 {
        font-size: 1.8em;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .hero .btn {
        padding: 12px 20px;
        font-size: 0.9em;
        display: block;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Section Mobile Optimization */
    section {
        padding: 30px 0;
        margin-bottom: 15px;
    }

    section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    section h3 {
        font-size: 1.4em;
        margin-top: 25px;
    }

    section h4 {
        font-size: 1.2em;
        margin-top: 20px;
    }

    section h5 {
        font-size: 1.1em;
        margin-top: 15px;
    }

    /* Table Mobile Optimization */
    .valuation-service table {
        font-size: 0.85em;
        margin-top: 15px;
        margin-bottom: 15px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .valuation-service th,
    .valuation-service td {
        padding: 6px 4px;
        word-wrap: break-word;
        min-width: 80px;
    }

    .valuation-service th {
        font-size: 0.8em;
    }

    /* Case Study Mobile */
    .valuation-service .case-study {
        padding: 15px;
        margin-bottom: 20px;
    }

    .valuation-service .case-study p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* Image Gallery Mobile */
    .valuation-service .image-gallery {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .valuation-service .image-gallery img {
        flex: none;
        width: 100%;
        min-width: auto;
        max-width: 100%;
        height: auto;
    }

    /* Overall Comparison Mobile */
    .valuation-service .overall-comparison {
        margin-top: 25px;
        padding: 15px;
    }

    .valuation-service .overall-comparison p {
        font-size: 0.9em;
        line-height: 1.4;
    }

    .valuation-service .overall-comparison ul {
        margin-left: 15px;
    }

    .valuation-service .overall-comparison li {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 5px;
    }

    /* About Ayou Mobile */
    .about-ayou .ayou-profile {
        padding: 0 10px;
    }

    .about-ayou .profile-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .about-ayou p {
        font-size: 0.95em;
        line-height: 1.5;
        margin: 8px auto;
    }

    /* Contact Us Mobile */
    .contact-us {
        padding: 40px 0;
    }

    .contact-us h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .contact-us p {
        font-size: 1em;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    /* Footer Mobile */
    footer {
        padding: 15px 0;
    }

    footer p {
        font-size: 0.85em;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 0 5px;
    }

    header h1 {
        font-size: 1.3em;
    }

    header a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.5em;
    }

    .valuation-service table {
        font-size: 0.75em;
    }

    .valuation-service th,
    .valuation-service td {
        padding: 4px 2px;
        min-width: 60px;
    }

    .about-ayou .profile-photo {
        width: 120px;
        height: 120px;
    }

    .contact-us h2 {
        font-size: 1.4em;
    }
}

