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

/* Google-inspired Color Palette */
:root {
    --google-blue: #1A73E8; /* Primary blue for accents, buttons */
    --google-blue-dark: #174ea6; /* Darker blue for hover */
    --text-primary: #202124; /* Dark grey for main text (Google Black) */
    --text-secondary: #5f6368; /* Medium grey for secondary text (Google Grey) */
    --text-light: #ffffff; /* White for light backgrounds */
    --bg-light: #f8f9fa; /* Light grey for sections */
    --card-bg: #ffffff; /* White for cards */
    --border-color: #dadce0; /* Light grey for borders */
    --footer-bg: #202124; /* Dark background for footer, matching header vibe */
    --contact-form-bg: #fcfcfc; /* A very light shade of off-white for the contact form */
    --light-neutral-bg: #f0f0f0; /* New light neutral background for removed dark blue sections */
}

body {
    font-family: 'Roboto', sans-serif; /* Primary font for body text */
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.submit-btn{display: inline-block;
    background-color: var(--google-blue);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 4px; /* Slightly less rounded, more modern */
    text-decoration: none;
    font-weight: 500; /* Medium weight */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);}

.container {
    max-width: 90%; /* UPDATED: Increased to 90% */
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* UPDATED: All h1, h2, h3, h4 (if present) tags centered */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Heading font for impact, similar to Google Sans */
    margin-bottom: 20px;
    color: var(--text-primary); /* Default heading color */
    text-align: center; /* UPDATED: All headings centered */
}

h1 {
    font-size: 3.5em;
    color: var(--text-light); /* Hero text is white */
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    /* This rule will ensure h3s are centered unless specifically overridden by a more specific rule */
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-secondary); /* Main paragraph color */
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.2em;
    color: var(--text-secondary); /* Secondary descriptive text */
}

a {
    color: var(--google-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--google-blue-dark);
}


.btn {
    display: inline-block;
    background-color: var(--google-blue);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 4px; /* Slightly less rounded, more modern */
    text-decoration: none;
    font-weight: 500; /* Medium weight */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--google-blue-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header & Navigation */
.hero {
    /* Changed background to a lighter, more neutral image */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/banner.gif') no-repeat center center/cover;
    color: var(--text-light);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly transparent background for nav */
    z-index: 1000;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-light); /* Logo is white on dark nav */
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--google-blue);
    border-bottom: 2px solid var(--google-blue);
}

.hero-content {
    max-width: 900px;
    padding-top: 80px; /* Space for fixed nav */
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--text-light); /* Hero text is white */
}

/* Burger menu for mobile */
.burger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.about-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Lighter shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* More prominent shadow on hover */
}

.about-item .icon-lg {
    font-size: 3em;
    color: var(--google-blue); /* Google blue icons */
    margin-bottom: 20px;
}

/* --- Services Section Options --- */

/* Base Service Card for all options */
.service-category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* For h3 inside service cards, to ensure they are centered */
.service-category-card h3 {
    text-align: center; /* Ensures heading inside card is centered */
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Stack icon and text */
    align-items: center; /* Center icon and text horizontally */
}

.service-icon {
    font-size: 2.5em; /* Larger icon for visual prominence */
    margin-right: 0; /* Remove margin right as it's stacked */
    margin-bottom: 15px; /* Space between icon and text */
    color: var(--google-blue);
}

.service-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

/* UPDATED: Underline sub-option with blue color, thin line - applied to all */
.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--google-blue); /* Thin blue underline */
    font-size: 1.05em;
    color: var(--text-secondary);
    text-align: center; /* UPDATED: Centered text alignment for sub-options */
}


/* OPTION 1: Grid with Animated Flip Cards */
/* Outer wrapper for full width content inside sections */
.service-flip-grid-outer,
.accordion-container-outer {
    max-width: 100%; /* Allows it to take full width */
    width: 100%;
    padding: 0 20px; /* Add horizontal padding for content */
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 40px auto 0 auto; /* Top margin for spacing */
}

#services-option-flip-cards .service-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px; /* For 3D flip effect */
    /* Remove margin-top as it's handled by outer wrapper now */
    max-width: 1200px; /* Constrain grid content */
    margin: 0 auto; /* Center grid content */
}

#services-option-flip-cards .flip-card {
    background-color: transparent;
    height: 300px; /* Fixed height for consistent flip */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Soft shadow for card */
}

#services-option-flip-cards .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 8px;
}

#services-option-flip-cards .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

#services-option-flip-cards .flip-card-front,
#services-option-flip-cards .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    /* Reusing service-category-card styles for base look */
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: none; /* Shadow handled by flip-card parent */
}

#services-option-flip-cards .flip-card-front h3 {
    text-align: center; /* Already centered by global h3, but explicitly here for clarity */
    margin-bottom: 0;
    flex-direction: column;
}
#services-option-flip-cards .flip-card-front .service-icon {
    margin-right: 0;
    margin-bottom: 15px;
    font-size: 2.5em; /* Larger icon for front */
}


#services-option-flip-cards .flip-card-back {
    transform: rotateY(180deg);
    text-align: center; /* Ensure back content is centered */
    overflow-y: auto; /* Allow scrolling for long lists */
}

#services-option-flip-cards .flip-card-back .back-title {
    text-align: center; /* Ensure back title is centered */
    margin-bottom: 15px;
    color: var(--google-blue);
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    width: 100%;
}

#services-option-flip-cards .service-list-back ul {
    grid-template-columns: 1fr; /* Stack list items vertically */
    gap: 5px;
    margin-top: 10px;
}
#services-option-flip-cards .service-list-back li {
    font-size: 0.95em;
    padding: 5px 0;
}


/* OPTION 2: Tabbed Interface */
#services-option-tabs .tabs-container {
    max-width: none; /* No max width */
    width: 100%; /* Full width */
    margin: 40px auto 0; /* Keep margin auto for vertical spacing, will stretch horizontally */
    background-color: var(--card-bg);
    border-radius: 0; /* Remove border-radius to align with full width */
    box-shadow: none; /* Remove shadow if it spans full width */
    padding: 0 20px; /* Internal horizontal padding for content */
    box-sizing: border-box;
}

/* Ensure the main heading and description for this section are centered */
#services-option-tabs h2,
#services-option-tabs .section-description {
    text-align: center; /* Centered text alignment */
}

#services-option-tabs .tabs-nav {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    max-width: 1200px; /* Constrain inner nav */
    margin: 0 auto; /* Center inner nav */
}

#services-option-tabs .tab-button {
    flex-grow: 1;
    padding: 18px 20px;
    border: none;
    background-color: transparent;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center; /* Ensure button text is centered */
}

#services-option-tabs .tab-button:hover:not(.active) {
    background-color: #e9ecef;
    color: var(--text-primary);
}

#services-option-tabs .tab-button.active {
    color: var(--google-blue);
    border-bottom: 3px solid var(--google-blue);
    background-color: var(--card-bg);
}

#services-option-tabs .tab-icon {
    font-size: 1.2em;
}

#services-option-tabs .tabs-content {
    padding: 30px; /* Keep internal padding */
    max-width: 1200px; /* Constrain inner content */
    margin: 0 auto; /* Center inner content */
}

#services-option-tabs .tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

#services-option-tabs .tab-pane.active {
    display: block;
}

/* OPTION 3: Accordion/Collapsible Panels */
#services-option-accordion .accordion-container {
    max-width: 1200px; /* Constrain content width */
    margin: 0 auto; /* Center content */
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

#services-option-accordion .accordion-item {
    border-bottom: 1px solid var(--border-color);
}

#services-option-accordion .accordion-item:last-child {
    border-bottom: none;
}

#services-option-accordion .accordion-header {
    width: 100%;
    background-color: var(--card-bg);
    padding: 20px 30px;
    border: none;
    text-align: center; /* Centered header for accordion */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

#services-option-accordion .accordion-header:hover {
    background-color: var(--bg-light);
}

#services-option-accordion .accordion-header h3 {
    margin-bottom: 0;
    text-align: center; /* Ensure h3 inside accordion header is centered */
    flex-grow: 1; /* Allows h3 to take available space */
}

#services-option-accordion .accordion-icon {
    margin-left: 20px;
    transition: transform 0.3s ease;
    color: var(--google-blue);
}

#services-option-accordion .accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

#services-option-accordion .accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    background-color: var(--bg-light); /* Light background for content when open */
}

#services-option-accordion .accordion-content.active {
    max-height: 300px; /* Arbitrary max height, adjust if content is much longer */
    padding: 20px 30px;
}

/* Projects Section */
.projects-section {
    background-color: var(--light-neutral-bg); /* Changed background */
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Flexbox for internal layout */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push button to bottom */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

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

.project-card h3 {
    padding: 15px 20px 0;
    margin-bottom: 10px;
    color: var(--text-primary); /* Heading color */
    text-align: center; /* Ensure project card h3 is centered */
}

.project-card p {
    padding: 0 20px; /* Adjust padding for descriptions */
    font-size: 0.95em;
    color: var(--text-secondary); /* Secondary text for descriptions */
    margin-bottom: 10px; /* Reduce margin to make space for long desc and button */
}

.project-card .project-long-desc {
    padding: 0 20px 15px; /* Add bottom padding only to long desc when visible */
    margin-top: 0; /* Remove extra margin from long desc */
}

.project-card .read-more-btn {
    display: block;
    padding: 15px 20px;
    background-color: var(--bg-light);
    color: var(--google-blue);
    font-weight: 500;
    text-align: right;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to the bottom */
}

.project-card .read-more-btn:hover {
    background-color: var(--border-color);
}

/* Hidden class for toggle */
.hidden {
    display: none;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-style: italic;
    text-align: center;
}

.testimonial-card p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.testimonial-card .client-name {
    font-weight: 500; /* Medium weight */
    color: var(--google-blue);
    font-style: normal;
}

/* Contact Section (Form Only) */
.contact-form-wrapper {
    max-width: none; /* No max width */
    width: 100%; /* Full width */
    margin: 40px auto 0 auto; /* Keep margin auto for vertical spacing, will stretch horizontally */
    background-color: var(--contact-form-bg); /* Light off-white background */
    border-radius: 0; /* Remove border-radius for full width */
    box-shadow: none; /* Remove shadow if it spans full width */
    padding: 40px 20px; /* Internal padding including horizontal */
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-form-wrapper h3 {
    text-align: center; /* Center form heading */
    color: var(--text-primary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    max-width: 600px; /* Constrain form inputs for readability */
    margin-left: auto;
    margin-right: auto;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--google-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2); /* Subtle blue glow on focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 100px; /* Set a minimum height for textarea */
}

.contact-form-wrapper .btn { /* Target the button within the form wrapper */
    display: block; /* Make button span full width of its content area */
    max-width: 300px; /* Or a comfortable max width for the button */
    margin: 20px auto 0 auto; /* Center the button */
}


.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--footer-bg); /* Dark background */
    color: var(--text-light); /* White text */
    padding: 60px 20px 30px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border for dark footer */
    max-width: 1200px; /* Constrain footer content */
    margin: 0 auto; /* Center footer content */
}

.footer-brand, .footer-contact-info, .footer-nav {
    flex: 1;
    min-width: 250px; /* Ensure columns don't get too narrow */
}

.footer-brand h3, .footer-contact-info h3, .footer-nav h3 {
    color: var(--text-light); /* Footer headings are white */
    text-align: center; /* Centered text alignment */
    margin-bottom: 20px;
}

.footer-brand p, .footer-contact-info p {
    color: rgba(255, 255, 255, 0.8); /* Lighter text for dark footer */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center; /* To center contact info lines */
}

.footer-contact-info p i {
    margin-right: 10px;
    color: var(--text-light); /* Icons are white */
    font-size: 1.1em;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8); /* Lighter text for dark footer */
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--google-blue); /* Still blue on hover for contrast */
}

.social-links {
    margin-top: 20px;
    text-align: center; /* Centering social links */
}

.social-links a {
    font-size: 1.8em; /* Slightly smaller social icons */
    margin-right: 15px;
    color: var(--text-light); /* Icons are white */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--google-blue); /* Blue on hover for contrast */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #ffffff; /* UPDATED: Copyright text is explicitly white */
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        max-width: 95%; /* Adjust container width for smaller screens */
    }

    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.3em;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--text-primary); /* Use dark background for mobile nav */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 100px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.5em;
        color: var(--text-light); /* Ensure links are white on dark background */
    }

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

    .burger {
        display: block;
        z-index: 1001; /* Ensure burger is above nav links */
    }
    /* Change burger color for light background if needed */
    .burger div {
        background-color: var(--text-light); /* Still white for contrast on transparent header */
    }


    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Adjustments for service option layouts on smaller screens */
    .service-flip-grid-outer,
    .accordion-container-outer {
        padding: 0 10px; /* Less padding on smaller screens */
    }

    #services-option-flip-cards .flip-card {
        height: auto; /* Allow height to adjust for content */
    }
    #services-option-flip-cards .flip-card-front,
    #services-option-flip-cards .flip-card-back {
        position: relative; /* Remove absolute positioning for stacking */
        transform: none !important; /* Disable flip on smaller screens */
        backface-visibility: visible;
    }
    #services-option-flip-cards .flip-card:hover .flip-card-inner {
        transform: none; /* Disable flip on smaller screens */
    }
    #services-option-flip-cards .flip-card-inner {
        transform-style: flat; /* Disable 3D transform */
        box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Apply shadow directly */
    }
    #services-option-flip-cards .flip-card-back {
        display: block; /* Show back content always */
        margin-top: 20px; /* Space between front and back content */
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
    }
    #services-option-flip-cards .flip-card-back .back-title {
        display: none; /* Hide duplicate title */
    }


    #services-option-tabs .tabs-container {
        padding: 0 10px; /* Less padding on smaller screens */
        border-radius: 0; /* No border radius */
        box-shadow: none; /* No shadow */
    }
    #services-option-tabs .tabs-nav {
        flex-direction: column; /* Stack tabs vertically */
        max-width: 100%; /* Allow nav to take full available width */
        margin: 0; /* Remove auto margin */
    }
    #services-option-tabs .tab-button {
        justify-content: flex-start;
        border-bottom: 1px solid var(--border-color);
    }
    #services-option-tabs .tab-button.active {
        border-right: 3px solid var(--google-blue);
        border-bottom: none; /* Remove bottom border for active tab */
    }
    #services-option-tabs .tabs-content {
        max-width: 100%; /* Allow content to take full available width */
        margin: 0; /* Remove auto margin */
        padding: 20px 10px; /* Adjust padding */
    }


    .service-list ul {
        grid-template-columns: 1fr; /* Stack services on smaller screens */
    }

    .contact-form-wrapper {
        width: 85%; /* Ensure full width on smaller screens */
        max-width: none;
        padding: 30px 10px; /* Adjust padding */
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        max-width: 95%; /* Match general container for footer content */
    }

    .footer-brand h3, .footer-contact-info h3, .footer-nav h3 {
        text-align: center; /* Centering for mobile stacked footer */
    }
    .footer-brand p, .footer-contact-info p {
        justify-content: flex-start; /* Adjust for mobile stacked layout */
    }
    .social-links {
        text-align: left; /* Adjust for mobile stacked layout */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .section-padding {
        padding: 60px 0;
    }
    nav {
        padding: 15px 20px;
    }
    .logo {
        font-size: 1.5em;
    }

    .about-grid, .project-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .section-description {
        margin-bottom: 40px;
    }
}

/* Animations for Tabbed and Accordion content */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}