:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #0078D4; /* Lighter Blue */
    --accent-color: #FDB813; /* A warm accent, like yellow/gold */
    --expert-name-color: #92b57c; /* Green from profile popup example */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #fff;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* --- Global Resets & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}
a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
#hero {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero .hero-content {
    max-width: 750px;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #e0a00b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- General Section Styling (Applied to Home Page sections) --- */
section.home-section {
    padding: 60px 20px;
}

section.home-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

section.home-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Styling for content on new pages (About, Contact, Service Detail) --- */
.page-section {
    padding: 60px 20px;
    background-color: var(--white);
}
.page-section.bg-light-gray {
    background-color: var(--light-gray);
}
.page-section.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.page-section.bg-primary h1,
.page-section.bg-primary h2,
.page-section.bg-primary h3 {
    color: var(--white);
}
.page-section.bg-primary h2::after {
    background-color: var(--accent-color);
}


.page-section > .container > h1,
.page-section > .container > h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}
.page-section > .container > h1::after,
.page-section > .container > h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Teaser section on Home page */
.teaser-section {
    padding: 40px 20px;
    text-align: center;
}
.teaser-section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}
.teaser-section p {
    font-size: 1.1em;
}


/* --- Services Section (on services.html and potentially homepage) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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


.service-card img.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--secondary-color);
    flex-grow: 0;
}

.service-card p {
    font-size: 0.95em;
    color: var(--dark-gray);
    flex-grow: 1;
    margin-bottom: 0;
}

/* --- About Page Content (inside a .page-section) --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

/* --- Contact Form (inside a .page-section) --- */
#contact-form-section {
    /* Uses .page-section.bg-primary styles */
}

#contact-form-section .contact-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, .25);
}

#contact-form button.cta-button {
    width: 100%;
    margin-top: 10px;
}

#form-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-color);
}


/* --- Individual Service Detail Pages (inside a .page-section) --- */
.service-detail-page .service-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.service-detail-page .service-icon-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-detail-page .service-header h1 {
    font-size: 2.2em;
    margin-bottom: 0;
    text-align: center;
}
.service-detail-page .service-header h1::after {
    display: none;
}


.service-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-detail-content h2 {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: left;
}
.service-detail-content h2::after {
    display: none;
}


.service-detail-content p {
    line-height: 1.7;
    margin-bottom: 1.2em;
}

.service-detail-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

.service-detail-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-detail-page .service-cta {
    margin-top: 40px;
    text-align: center;
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}
.service-detail-page .service-cta p {
    margin-bottom: 15px;
}
.service-detail-page .service-cta .cta-button {
    display: inline-block;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* --- City Links Section --- */
.city-links-section {
    background-color: var(--light-gray);
    padding: 60px 20px;
}

.city-links-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.city-links-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.city-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 20px;
}

.city-links-grid a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95em;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-links-grid a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* --- Hire Page Specific Styles --- */

/* Hire Hero Section */
.hire-hero-section {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hire-hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--white); /* Redundant as inherited, but fine */
}

.hire-hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hire-main-cta {
    padding: 15px 35px;
    font-size: 1.15em;
}

/* Expert Listing Section */
.expert-listing-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
}
.expert-listing-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.expert-grid {
    display: grid;
    /* Desktop: Exactly 4 columns by default */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.expert-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.expert-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--light-gray);
}

.expert-name {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.expert-rating {
    font-size: 0.9em;
    color: var(--dark-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.expert-rating .star-icon {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 1.1em;
}

.expert-skills {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.expert-skills span {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    border: 1px solid #ddd;
}
/* .expert-cta is a .cta-button. Apply specific overrides here or ensure order in CSS */
/* If .expert-cta should be blue, and .cta-button is yellow: */
a.cta-button.expert-cta { /* More specific selector */
    margin-top: auto;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.95em;
    padding: 10px 20px;
}
a.cta-button.expert-cta:hover {
    background-color: var(--primary-color);
}


/* How It Works Section */
.how-it-works-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
}
.how-it-works-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.how-it-works-item {
    padding: 20px;
}

.how-it-works-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    
}

.how-it-works-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    
}

/* FAQ Hiring Section */
.faq-hiring-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
}
.faq-hiring-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-content h2 { /* Sub-questions */
    font-size: 1.7em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}
.faq-content h2::after {
    display: none;
}
.faq-content h2:first-of-type {
    margin-top: 0;
    text-align: center;
}
.faq-content h2:first-of-type::after {
    display: block;
}


.faq-content p {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

/* Portfolio Gallery Section */
.portfolio-gallery-section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.portfolio-gallery-section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.portfolio-gallery-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: var(--white);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.portfolio-item .portfolio-caption {
    padding: 12px 15px;
    text-align: center;
    font-size: 0.9em;
    color: var(--dark-gray);
    margin: 0;
}


/* ================================== */
/* === MODAL POPUP STYLES (NEW) === */
/* ================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(4px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Higher than header */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    display: flex; /* Shown by JS */
    opacity: 1;
}

.modal {
    background: var(--white);
    padding: 40px;
    padding-top: 80px; /* Make space for the overlapping image */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    /* This negative margin pulls the image up to sit on the edge of the modal box */
    margin: -155px auto 20px;
    position: relative;
    z-index: 1;
    border: 5px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: var(--light-gray); /* In case image is slow to load */
}

.modal-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: var(--expert-name-color); /* Using the new variable */
    margin-bottom: 5px;
    font-weight: 700;
}

.modal-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-weight: 600;
}

.modal-bio {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.7;
    text-align: left;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}


/* --- Responsive Design --- */

/* Medium screens (tablets, smaller desktops) */
@media (min-width: 769px) and (max-width: 1024px) { /* More specific range for tablets */
    .service-detail-page .service-header {
        flex-direction: row;
        text-align: left;
        gap: 25px;
    }
    .service-detail-page .service-header h1 {
        text-align: left;
    }
    .expert-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
    }
}
/* Alternative for slightly larger tablets / small laptops */
@media (min-width: 1025px) and (max-width: 1200px) {
    .expert-grid {
        grid-template-columns: repeat(3, 1fr); /* Still 3, or could be 4 if space allows */
    }
}


/* Small screens (mobile phones and tablets in portrait) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header .nav-container {
        height: 60px;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 3px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin: 0;
    }
    header nav ul li a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    header nav ul li:last-child a {
        border-bottom: none;
    }
    header nav ul li a:hover,
    header nav ul li a.active {
        background-color: var(--light-gray);
    }


    .hamburger {
        display: block;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #hero {
        padding: 60px 20px;
        min-height: 50vh;
    }
    #hero h1 {
        font-size: 2.2em;
    }
    #hero p {
        font-size: 1.1em;
    }
    .cta-button {
        padding: 12px 24px;
        font-size: 1em;
    }


    section.home-section h2,
    .page-section > .container > h1,
    .page-section > .container > h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    section.home-section h2::after,
    .page-section > .container > h1::after,
    .page-section > .container > h2::after {
        width: 50px;
        height: 3px;
    }


    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        padding: 20px;
    }
    .service-card h3 {
        font-size: 1.3em;
    }

    #contact-form {
        padding: 25px;
    }

    .service-detail-page .service-header h1 {
        font-size: 1.8em;
    }
    .service-detail-content h2 {
        font-size: 1.4em;
    }
    .service-detail-page .service-icon-large {
        width: 60px;
        height: 60px;
    }

    /* City Links Section Responsive */
    .city-links-section h2 {
        font-size: 1.8em;
    }
    .city-links-section h2::after {
        width: 50px;
        height: 3px;
    }
    .city-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 8px 15px;
    }
    .city-links-grid a {
        font-size: 0.9em;
    }

    /* Responsive Adjustments for Hire Page at 768px */
    .hire-hero-section h1 {
        font-size: 2.2em;
    }
    .expert-listing-section h2,
    .how-it-works-section h2,
    .faq-hiring-section h2 {
        font-size: 1.9em;
    }
    .faq-content h2 {
        font-size: 1.5em;
    }
    .expert-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible 1 or 2 columns */
    }
    
    /* Portfolio responsive */
    .portfolio-gallery-section h3 {
        font-size: 1.6em;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .portfolio-item img {
        height: 200px;
    }

    /* Modal Responsive */
    .modal {
        padding: 25px;
        padding-top: 60px; /* Space for smaller image */
    }
    .modal-image {
        width: 120px;
        height: 120px;
        margin: -85px auto 15px; /* Adjust for smaller image */
    }
    .modal-name {
        font-size: 1.8em;
    }
    .modal-title {
        font-size: 1.1em;
    }
    .modal-bio {
        font-size: 0.95em;
    }
}

/* Extra small screens (older phones) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    #hero h1 {
        font-size: 1.8em;
    }
    #hero p {
        font-size: 1em;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
        width: 100%;
        display: block;
        text-align: center;
    }
    .service-detail-page .service-cta .cta-button {
        width: 100%;
    }


    #contact-form {
        padding: 20px;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95em;
    }

    section.home-section,
    .page-section {
        padding: 40px 15px;
    }
    .city-links-section {
         padding: 40px 15px;
    }


    /* City Links Section Responsive for extra small screens */
    .city-links-section h2 {
        font-size: 1.6em;
    }

    .city-links-grid {
        grid-template-columns: 1fr;
        gap: 8px 10px;
    }

    .city-links-grid a {
        padding: 10px 5px;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    /* Responsive Adjustments for Hire Page at 480px */
    .hire-hero-section h1 {
        font-size: 1.8em;
    }
    .hire-hero-section p {
        font-size: 1.1em;
    }
    .expert-grid {
        grid-template-columns: 1fr; /* Stack expert cards */
    }
    .how-it-works-grid {
        grid-template-columns: 1fr; /* Stack how-it-works items */
    }
    .faq-content h2 {
        font-size: 1.3em;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column, this is good */
        gap: 20px;
    }
     .portfolio-item img {
        height: 240px;
    }
}
#contact-page {
    text-align: center;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.contact-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--light-text);
}

/* --- The New Contact Cards --- */
.contact-methods-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Allows cards to stack on smaller screens */
    margin-top: 40px;
}

.contact-card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px; /* Max width for each card */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.contact-card p {
    color: var(--light-text);
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.contact-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px; /* Pill-shaped button */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: var(--primary-hover);
}


/* --- Footer Styles (Basic) --- */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* --- Responsive Design --- */
.hamburger { /* Assuming basic hamburger styles */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    header ul {
        display: none; /* Hide nav links for a JS-powered menu */
    }
    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .contact-methods-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center;
    }
    .contact-card {
        max-width: 90%; /* Allow cards to take up more width on mobile */
    }
}