/* ===================================================================
   TABLE OF CONTENTS
   ===================================================================
   1.  GLOBAL STYLES & VARIABLES
   2.  UTILITY & COMPONENT STYLES
   3.  HEADER & NAVIGATION
   4.  PAGE-SPECIFIC SECTIONS
   5.  FOOTER
   6.  RESPONSIVENESS (MEDIA QUERIES)
=================================================================== */

/* ================================================= */
/* 1. GLOBAL STYLES & VARIABLES                      */
/* ================================================= */
:root {
    --color-primary: #004d99; /* Deep Professional Blue */
    --color-secondary: #f4f4f4; /* Light Gray Background */
    --color-accent: #ff6600; /* Orange for CTAs and highlights */
    --color-text: #333;
    --color-white: #fff;
    --font-stack: 'Montserrat', 'Arial', sans-serif; /* Montserrat for headings, Arial/sans-serif for fallback */
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-stack); /* Default body font */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}
a:hover {
    color: var(--color-accent);
}
main section {
    padding: 80px 5%; /* Consistent vertical padding for main sections */
    text-align: center;
}
h1,h2,h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}
h1 {
    font-size: 2.8em;
}
h2 {
    font-size: 2em;
    position: relative;
    padding-bottom: 15px;
}
h3 {
    font-size: 1.5em;
}
h2::after { /* Underline effect for H2 */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* ================================================= */
/* 2. UTILITY & COMPONENT STYLES                     */
/* ================================================= */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s, color 0.3s;
    border: 2px solid transparent; /* Default transparent border */
    cursor: pointer;
    letter-spacing: 1px;
}
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent); /* Primary buttons have accent border */
}
.btn-primary:hover {
    background-color: #e65c00; /* Slightly darker accent on hover */
    border-color: #e65c00;
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4); /* Subtle glow */
    color: var(--color-white);
}
.btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}
.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.btn-white:hover {
    background-color: transparent; /* Transparent background on hover */
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-2px);
}
.page-intro-hero { /* Hero section for internal pages */
    background-color: var(--color-secondary);
    padding: 80px 5%;
    text-align: center;
}
.page-intro-hero h1 {
    font-size: 2.5em;
}
.lead-text { /* Larger, descriptive text */
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.3em;
    font-weight: 300;
    color: #444;
}
.container { /* General purpose content wrapper */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================================= */
/* 3. HEADER & NAVIGATION                            */
/* ================================================= */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
}
.header-top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 5%;
    display: flex;
    justify-content: flex-end; /* Pushes content to the right */
    gap: 30px;
    font-size: 0.85em;
    align-items: center;
}
.header-top-bar p a,
.header-top-bar p a span { /* Targets both the anchor and the span inside it */
    color: var(--color-white);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-top-bar p a:hover,
.header-top-bar p a:hover span {
    color: var(--color-accent);
}
.header-top-bar .top-bar-icon {
    height: 26px; /* Larger icon size for clarity */
    width: 56px; /* Adjust width as needed for your icon aspect ratio */
    object-fit: contain; /* Prevents stretching */
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
}
.main-nav .logo {
    width: 250px;
    height: 70px;
}
.main-nav .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav-right { /* Container for nav-links and CTA button */
    display: flex;
    align-items: center;
    gap: 25px;
}
.main-nav .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px; /* Space between navigation items */
}
.main-nav .nav-links li a {
    padding: 10px 15px;
    display: block;
    color: var(--color-text);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    background-color: transparent;
    transition: color 0.3s ease;
}
.main-nav .nav-links li a::after { /* Underline effect on hover for nav links */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease-out;
}
.main-nav .nav-links li a:hover {
    color: var(--color-primary); /* Change text color on hover */
    background-color: transparent;
}
.main-nav .nav-links li a:hover::after {
    width: 100%;
}
.cta-desktop-only { /* Specific styling for desktop CTA in nav */
    padding: 10px 20px;
    font-size: 0.8em;
}
/* Mobile menu specific elements - hidden by default */
.menu-toggle {
    display: none; /* Hide the checkbox */
}
.hamburger {
    display: none; /* Hide the hamburger icon by default (desktop view) */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px; /* 3 * 3px for spans + 2 * 6px for gaps = 21px */
    cursor: pointer;
    padding: 3px 0;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* ================================================= */
/* 4. PAGE-SPECIFIC SECTIONS                         */
/* ================================================= */
/* --- Home Page Hero --- */
.hero {
    background-color: #333; /* Fallback for no image */
    background-image: url('../images/hero-bg.jpg'); /* Default hero image */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--color-white);
    padding: 150px 5%;
    position: relative;
    transition: background-image 0.5s ease-in-out; /* Smooth transition if image changes dynamically */
}
.hero::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* 50% black overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.hero h1 {
    color: var(--color-accent); /* Accent color for hero heading */
}
.hero p {
    margin-bottom: 50px;
    font-size: 1.2em;
    font-weight: 300;
}
.trust-bar { /* Bottom bar on hero section */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 77, 153, 0.95); /* Semi-transparent primary blue */
    color: var(--color-white);
    padding: 15px 5%;
    z-index: 3;
    font-weight: 500;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 10px;
}
.cta-banner { /* General purpose CTA banner */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/cta.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 80px 5%; /* Consistent padding */
}
.cta-banner h2 {
    color: var(--color-white);
}
.cta-banner p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 1.2em;
}

/* --- About Us Page --- */
.history-values {
    padding: 80px 5%;
}
.history-values .two-col-grid { /* Two column layout */
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    text-align: left;
}
.history-values .text-block,
.history-values .values-block {
    flex: 1;
}
.history-values .values-block h2 {
    text-align: left;
    margin-bottom: 15px;
}
.history-values .values-block h2::after { /* Adjust h2 underline for left alignment */
    left: 0;
    transform: translateX(0);
}
.history-values .values-block ul {
    list-style: none;
    padding-left: 0;
}
.history-values .values-block li { /* Custom list item styling */
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
}
.history-values .values-block li::before { /* Checkmark icon */
    content: '\2713'; /* Unicode checkmark */
    color: var(--color-accent);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* --- Services Page --- */
.service-detail {
    padding: 20px 5% 80px;
}
.service-item {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 80px;
    text-align: left;
}
.service-item.layout-reversed { /* Reverses order for alternating sections */
    flex-direction: row-reverse;
}
.service-item .service-image,
.service-item .service-content {
    flex: 1;
}
.service-item .service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.service-content h2 {
    text-align: left;
    font-size: 1.8em;
}
.service-content h2::after { /* Adjust h2 underline for left alignment */
    left: 0;
    transform: translateX(0);
}
.service-content ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.service-content ul li { /* Custom list item styling for services */
    padding-left: 30px;
    margin-bottom: 10px;
    background: url('/assets/images/check-icon.svg') no-repeat left 5px; /* Path to your check icon */
    background-size: 20px;
}


/* --- Projects Page (& Home Expertise Section) --- */
.projects-gallery {
    background-color: #fff;
    padding: 80px 5%; /* Ensure consistent padding */
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid */
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}
.project-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.project-card .project-image img {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    object-fit: cover;
}
.project-card .project-content {
    padding: 25px;
}
.project-card .project-category {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.client-logos-section { /* Section for client logos */
    padding: 60px 5%;
    background-color: var(--color-secondary);
}
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.client-logos img { /* Styling for individual client logos */
    max-height: 80px; /* Max height to prevent logos from being too large */
    width: auto;
    object-fit: contain;
    filter: grayscale(80%); /* Desaturate logos */
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.client-logos img:hover {
    filter: grayscale(0%); /* Full color on hover */
    opacity: 1;
}

/* --- Home Process Section --- */
.process-section {
    background-color: var(--color-secondary);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns for process steps */
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
    text-align: left;
}
.process-step {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--color-primary); /* Accent line at the top */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden; /* Ensures step number doesn't overflow */
}
.step-number { /* Large number in background */
    font-size: 3em; /* Adjusted size */
    font-weight: 700;
    color: rgba(0, 77, 153, 0.1); /* Very light primary color */
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 1;
    line-height: 1; /* Prevent extra space above/below number */
}
.process-step h3 {
    position: relative;
    z-index: 2; /* Ensures text is above background number */
}
.process-step p {
    position: relative;
    z-index: 2;
    color: #555;
}

/* --- Home Testimonials Section --- */
.testimonials-section {
    background-color: #fff;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for testimonials */
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0;
}
.testimonial-card {
    background-color: var(--color-secondary);
    padding: 35px;
    border-radius: 8px;
    text-align: left;
}
.testimonial-card blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin: 0 0 20px;
    font-style: italic;
    color: #444;
}
.testimonial-card cite {
    font-style: normal;
}
.testimonial-card cite strong {
    display: block;
    color: var(--color-primary);
}
.testimonial-card cite span {
    font-size: 0.9em;
    color: #555;
}

/* --- Privacy Policy Page --- */
.privacy-content {
    background-color: var(--color-white);
    padding: 80px 5%; /* Added top padding */
    padding-bottom: 80px;
}
.privacy-content .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.privacy-content h2 {
    text-align: left;
    font-size: 1.6em;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}
.privacy-content h2::after { /* Remove underline for privacy H2s */
    display: none;
}
.privacy-content p,
.privacy-content ul {
    margin-bottom: 20px;
    color: #555;
}
.privacy-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

/* --- Contact Page --- */
.contact-section {
    padding: 0 5% 80px;
    background-color: #fff;
    margin-top: -50px; /* Pulls it up visually to overlap the hero */
    position: relative;
    z-index: 2; /* Ensures it sits above previous sections if overlapped */
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left panel 1 part, right form 1.5 parts */
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Subtle shadow for floating effect */
    border-radius: 8px;
    overflow: hidden; /* Ensures child elements respect border-radius */
}
.contact-details-panel {
    background-color: var(--color-secondary);
    padding: 50px;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    justify-content: flex-start; /* Align content to the top */
}
.contact-details-panel h3 {
    text-align: left;
    color: var(--color-primary);
    margin-bottom: 30px;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px; /* Space between the list and the map */
}
.contact-info-list li {
    display: flex;
    align-items: flex-start; /* Aligns icon to the top of text */
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.contact-info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.contact-info-list li a {
    color: var(--color-text);
}
.contact-info-list li a:hover {
    color: var(--color-accent);
}
.contact-info-list svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.map-container {
    width: 100%;
    margin-top: auto; /* Pushes the map to the bottom of the flex container */
    border-radius: 4px;
    overflow: hidden;
    flex-grow: 1; /* Allows map container to grow and fill available space */
    min-height: 200px; /* Minimum height for the map */
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Removes potential extra space below iframe */
}

.contact-form-panel {
    padding: 50px;
    text-align: left;
}
.contact-form-panel h3 {
    text-align: left;
    color: var(--color-primary);
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Montserrat', sans-serif; /* Consistent font inside form fields */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}
.contact-form-panel .btn-primary {
    width: auto; /* Allow button to size naturally */
    margin-top: 20px;
}

/* ================================================= */
/* 5. FOOTER                                         */
/* ================================================= */
.site-footer {
    background-color: #1a1a1a;
    color: #a9a9a9;
    padding: 40px 5% 0; /* Removed bottom padding, will be handled by copyright bar */
    font-size: 0.9em;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px; /* Space above copyright bar */
    padding-bottom: 0; /* Removed bottom padding here */
    border-bottom: none; /* Removed border */
}

.footer-brand-column {
    flex: 2;
    min-width: 300px;
    text-align: left;
}
.footer-contact-social-column {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-logo-img {
    width: 200px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-tagline {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.5;
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin-bottom: 0; /* Removed bottom margin as social links are moved */
}
.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}
.footer-contact-info li a,
.footer-contact-info li span {
    color: #a9a9a9;
    line-height: 1.4;
    font-size: 0.95em;
}
.footer-contact-info li a:hover {
    color: var(--color-accent);
}
.footer-contact-info svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Updated styles for the screen-wide copyright bar */
.footer-copyright-wrapper { /* New wrapper for screen-wide background */
    background-color: #111; /* Dark background for the entire bar */
    color: #888;
    padding: 20px 0; /* Padding will be managed by inner container */
    font-size: 0.8em;
}

.footer-copyright-bar {
    max-width: 1200px; /* Re-introduce max-width to inner content */
    margin: 0 auto; /* Center the inner content */
    padding: 0 15px; /* Add horizontal padding for inner content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-copyright-bar p {
    margin: 0;
    /* Removed flex-grow to allow social icons to take space */
    text-align: left;
    font-size: 1em; /* Bigger font size for copyright line */
}

/* Social links within the copyright bar */
.footer-copyright-bar .social-links {
    display: flex;
    gap: 15px; /* Spacing between icons */
    /* Removed margin-left: auto; to align left with copyright text */
    order: -1; /* Place social links before copyright text on desktop */
    margin-right: 20px; /* Space between icons and copyright text */
}
.footer-copyright-bar .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Slightly bigger icons */
    height: 36px; /* Slightly bigger icons */
    background-color: transparent;
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.3s, fill 0.3s;
}
.footer-copyright-bar .social-links a:hover {
    transform: translateY(-2px); /* Subtle lift */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
}
.footer-copyright-bar .social-links svg {
    width: 18px; /* Bigger SVG icon size */
    height: 18px; /* Bigger SVG icon size */
    fill: #999; /* Default icon color */
    transition: fill 0.3s;
}
.footer-copyright-bar .social-links a:hover svg {
    fill: var(--color-accent); /* Orange on hover */
}


/* ================================================= */
/* 6. RESPONSIVENESS (MEDIA QUERIES)                 */
/* ================================================= */
@media (max-width: 1100px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    .service-item.layout-reversed {
        flex-direction: column;
    }
    .service-content h2,
    .service-content h2::after {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .lead-text { font-size: 1.1em; }
    .hero { padding: 100px 5%; }
    .trust-bar { font-size: 0.9em; padding: 10px 5%; }
    .process-grid,
    .testimonial-grid,
    .contact-container,
    .history-values .two-col-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .process-step h3, .process-step p,
    .testimonial-card blockquote, .testimonial-card cite,
    .history-values .text-block, .history-values .values-block {
        text-align: center;
    }
    .history-values .values-block h2,
    .history-values .values-block h2::after {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-details-panel {
        order: 2;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .contact-form-panel {
        order: 1;
    }
    .contact-details-panel h3, .contact-form-panel h3 {
        text-align: center;
    }
    .contact-info-list li {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    .contact-info-list li span {
        text-align: center;
    }

    /* Footer adjustments for 900px */
    .footer-main {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    .footer-brand-column,
    .footer-contact-social-column {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    .footer-logo-img {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-contact-info {
        align-items: center;
    }
    /* Copyright bar on smaller screens */
    .footer-copyright-wrapper { /* Ensure wrapper padding is applied */
        padding: 15px 0; /* Adjust vertical padding for smaller screens */
    }
    .footer-copyright-bar {
        flex-direction: column; /* Stack social and copyright */
        gap: 15px; /* Space between them */
        text-align: center;
    }
    .footer-copyright-bar p {
        text-align: center; /* Center copyright text */
        order: 2; /* Put copyright text below icons on mobile */
    }
    .footer-copyright-bar .social-links {
        margin-right: 0; /* Remove right margin */
        justify-content: center; /* Center social links when stacked */
        order: 1; /* Put social icons above copyright text on mobile */
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    .main-nav {
        position: relative;
        padding: 10px 5%;
    }
    .main-nav .logo {
        width: 200px;
        height: 55px;
    }
    .nav-right .nav-links,
    .nav-right .cta-desktop-only {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    /* Mobile menu animation */
    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .menu-toggle:checked ~ .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .menu-toggle:checked ~ .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-secondary);
    }
    .menu-toggle:checked ~ .nav-links li:last-child {
        border-bottom: none;
    }
    .menu-toggle:checked ~ .nav-links li a {
        padding: 15px;
        color: var(--color-primary);
    }
    .menu-toggle:checked ~ .nav-links li a::after {
        width: 0;
    }
    .menu-toggle:checked ~ .nav-links li a:hover {
        background-color: var(--color-secondary);
    }

    /* Footer responsiveness for 768px and below */
    .footer-main {
        gap: 30px;
    }
    .footer-brand-column,
    .footer-contact-social-column {
        flex: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    .hero { padding: 80px 5%; }
    .hero p { font-size: 1.1em; }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .contact-details-panel, .contact-form-panel {
        padding: 30px;
    }
    .contact-info-list li {
        flex-direction: column;
        gap: 5px;
    }
    .contact-info-list svg {
        margin-top: 0;
    }
    .footer-contact-info li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-copyright-wrapper { /* Ensure wrapper padding is applied */
        padding: 10px 0; /* Further adjust vertical padding for very small screens */
    }
}
