:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --background-alt-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e9ecef;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}

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

/* Hero Section */
.hero {
    background-color: var(--background-alt-color);
    padding: 6rem 1.5rem 3rem; /* Top padding accounts for fixed header */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    width: 100%;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* Services */
.services {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-card .icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
}

/* About */
.about {
    background-color: var(--background-alt-color);
    padding: 3rem 1.5rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-content {
    max-width: 800px;
    text-align: center;
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.testimonial-card {
    background: var(--background-alt-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
}

.testimonial-card blockquote p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    color: var(--text-color);
}

.testimonial-author span a {
    color: var(--primary-color);
}

.testimonial-author span a:hover {
    text-decoration: underline;
}

/* Contact */
.contact {
    padding: 4rem 2rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

footer p {
    color: #cccccc;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        margin: 1rem 0; /* Add details for better spacing */
    }

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

/* =========================================
   Desktop Styles (min-width: 768px)
   ========================================= */
@media (min-width: 768px) {

    nav {
        padding: 1rem 2rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 8rem 2rem 4rem;
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero-content {
        margin: 0;
        text-align: left;
        flex: 1;
        padding-right: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.25rem;
        margin: 0 0 2rem;
    }

    .btn {
        width: auto; /* Return to natural width */
    }

    /* Services Grid adjustments */
    .services {
        padding: 2rem;
    }

    /* About adjustments */
    .about {
        padding: 4rem 2rem;
    }

    .about-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .about-content {
        text-align: left;
        flex: 1;
        padding-left: 3rem;
        order: 2; /* Text on right */
    }

    .about-image {
        flex: 1;
        order: 1; /* Image on left */
    }

    .about-content .section-title {
        text-align: left;
    }

    /* Contact adjustments */
    .contact {
        padding: 4rem 2rem;
    }
}
