:root {
    --main-font: 'Raleway', sans-serif;
    --lead-font: 'Roboto Slab', serif;

}

body {
    margin: 0;
    padding-top: 10px;
    font-family: var(--main-font);
    color: #333;
}

section>div,
header,
footer,
aside>div {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}


h1 {
    font-size: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h,
header {
    font-family: var(--lead-font);
    font-weight: 300;
}

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

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    padding: 1rem;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: darkblue;
    background-color: rgba(211, 211, 211, 0.273);
}

@media (max-width: 600px) {
    header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    header h1 {
        text-align: center;
        width: 100%;
    }
}

/* *********************** */
/* MOBILE NAV              */
/* *********************** */
/* Hide menu toggle on desktop */
.menu-toggle {
    display: none;
}

/* Mobile styles */
@media (max-width: 600px) {
    header h1 {
        text-align: left;
        width: auto;
    }

    header nav {
        display: none;
    }

    /* Show the toggle button on mobile */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
        /* Ensure it's on top */
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
        transition: transform 0.3s ease-in-out;
    }

    .hamburger::before {
        transform: translateY(-8px);
    }

    .hamburger::after {
        transform: translateY(6px);
    }

    /* Full-screen menu */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        /* Start off-screen */
        z-index: 999;
    }

    .mobile-nav.open {
        transform: translateX(0);
        /* Slide in */
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav a {
        font-size: 2em;
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }

    /* Transform hamburger to 'X' when open */
    .menu-toggle[aria-expanded="true"] .hamburger {
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .hamburger::before,
    .menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: translateY(0) rotate(90deg);
        opacity: 0;
    }
}

/* *********************** */
/* HOME PAGE LEAD          */
/* *********************** */

#lead {
    background-color: transparent;
    /* Or a very light gray if you prefer */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: left;
}

#lead>div {
    max-width: 800px;
}

.lead-pre-heading {
    font-size: 1.1em;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;

}

#lead h2 {
    font-family: var(--lead-font);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.lead-body {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.lead-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #333;
    border: 2px solid #333;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lead-cta:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 600px) {
    #lead {
        text-align: left;
    }
}

/* *********************** */
/* KEY OFFERINGS           */
/* *********************** */

#services-intro {
    background-color: #f7f7f7;
}

.services-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    /* Default to a single column on mobile */
    flex-direction: column;
    gap: 2rem;
}

.services-container article {
    background-color: white;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.services-container article:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-container h2 {
    font-family: var(--lead-font);
    font-weight: 300;
    margin-bottom: 1rem;
}

.services-container a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    color: #333;
    border: 2px solid #333;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.services-container a:hover {
    background-color: #333;
    color: #fff;
}

/* Two-column layout on desktop */
@media (min-width: 768px) {
    .services-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* *********************** */
/* HOME PAGE EXAMPLE SITES */
/* *********************** */

.scroll-gallery {
    color: white;
    overflow: hidden;
    width: 100%;
    /* Combine the linear-gradient with the background image */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/banners/andyone--WW8jBak7bo-unsplash.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.scroll-track {
    display: flex;
    width: max-content;
    animation: scroll-left 60s linear infinite;
    gap: 2rem;
}

.scroll-gallery figure {
    flex: 0 0 auto;
    width: 250px;
    text-align: center;
}

.scroll-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-gallery figcaption {
    font-size: 0.8em;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* *********************** */
/* HOME PAGE MORE SERVICES */
/* *********************** */

#more-services {
    background-color: transparent;
    padding: 3rem 2rem;
    border-top: 2px solid #ccc;
}

.more-services-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.more-services-container h2 {
    margin-bottom: 1.5rem;
}

.more-services-container article {
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

.more-services-container article:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.more-services-content h3 {
    margin-bottom: 0.5rem;
}

.more-services-container a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #333;
    border: 2px solid #333;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.more-services-container a:hover {
    background-color: #333;
    color: #fff;
}

@media (min-width: 768px) {
    .more-services-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* *********************** */
/* HOME PAGE TESTIMONIALS  */
/* *********************** */

#testimonials {
    background-color: #f7f7f7;
    /* padding: 3rem 2rem; */
    border-top: 2px solid #ccc;
}

.testimonials-container {
    max-width: 1000px;
    margin: auto;
}

.testimonials-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    background-color: #fff;
    border: 1px solid #ddd;
}

.testimonial {
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1em;
    line-height: 1.6;
}

.testimonial-author {
    text-align: right;
    margin-top: 1rem;
    font-size: 0.9em;
    color: #666;
}

@media (min-width: 768px) {
    .testimonial-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* *********************** */
/* HOME PAGE MEET CALUM  */
/* *********************** */

#meet {
    background-color: transparent;
    color: #333;
}

.meet-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.meet-image-container {
    width: 250px;
    height: 250px;
    border: 2px solid #ccc;
    border-radius: 50%;
}

.meet-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@media (min-width: 601px) {
    .meet-content {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: clamp(3rem, 6vw, 4rem);
        text-align: left;
    }
}

/* *********************** */
/* HOME PAGE TECHNOLOGIES  */
/* *********************** */

#technologies {
    padding: 30px 0;
    text-align: center;
    color: whitesmoke;
    background: center / cover no-repeat url('/images/banners/pexels-cottonbro-4065137.webp');
}

.tech-logos {
    display: flex;
    justify-content: space-between;
    height: 60px;
    padding: 0 2em;
    fill: whitesmoke;
}

/* This is the key for mobile responsiveness */
@media (max-width: 600px) {
    .tech-logos {
        justify-content: flex-start;
        /* Align to the left for scrolling */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        padding: 0 1rem;
        /* Adjust padding for smaller screens */
    }
}


/* *********************** */
/* CONTACT PAGE STYLES     */
/* *********************** */

#contact-page {
    background-color: #f7f7f7;
    padding: 3rem 2rem;
    border-top: 2px solid #ccc;
}

.contact-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-container h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-details a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.map-container {
    width: 100%;
    height: 350px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-form-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.contact-form-container button {
    display: inline-block;
    padding: 0.75rem 2rem;
    color: #fff;
    background-color: #333;
    border: 2px solid #333;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form-container button:hover {
    background-color: #555;
    border-color: #555;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-info,
    .contact-form-container {
        flex: 1;
    }
}