html {
    height: 100%; /* Make sure HTML takes up the full viewport height */
}

/* New Color Variables for easy management */
:root {
    --dark-blue: #013a6b;
    --medium-blue: #0077b6; /* Vibrant mid-blue */
    --light-blue: #00b4d8; /* Aqua/Sky blue */
    --accent-green: #2a9d8f; /* Teal-like green */
    --text-dark: #333333;
    --text-medium: #555555;
    --white: #FFFFFF;
    --light-grey-bg: #fcfcfc; /* Slightly lighter body background */
}

/* General Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-grey-bg);
    padding-top: 70px; /* Keep this line for space for the fixed nav bar */
    
    /* ADD these two lines for flexbox layout */
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1; /* This makes the main content area expand to fill available space */
}

/* Footer (Initial Block) */
footer {
    background-color: var(--dark-blue); /* Solid dark blue */
    /* background: linear-gradient(to right, var(--dark-blue), #002c5c); /* Uncomment to try a subtle gradient */
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

footer p { font-size: 0.9rem; }


/* Navigation */
nav {
    background: linear-gradient(to right, var(--dark-blue), var(--medium-blue)); /* Consistent gradient for top bar */
    padding: 1rem 2rem; /* Adjusted padding for better spacing */
    display: flex; /* Enable flexbox */
    justify-content: space-between; /* Space out logo and links */
    align-items: center; /* Vertically align items */
    position: fixed; /* Make it fixed at the top */
    width: 100%; /* Take full width */
    top: 0; /* Position at the very top */
    left: 0; /* Align to the left edge */
    z-index: 1000; /* Ensure it stays on top of other content */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Style for the logo link */
.nav-logo-link {
    display: flex; /* Allow logo and text to be side-by-side */
    align-items: center; /* Vertically align logo and text */
    text-decoration: none; /* Remove underline from logo link */
    color: var(--white); /* Ensure text is white */
    font-size: 1.5rem; /* Adjust font size for company name */
    font-weight: 700;
    gap: 10px; /* Space between logo image and text */
}

/* Style for the logo image */
.nav-logo {
    height: 50px; /* Adjust logo height */
    width: auto; /* Maintain aspect ratio */
}

/* Styles for navigation links */
nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #d0e8f2; /* Lighter hover color for nav links */
}

.nav-links-group {
    display: flex; /* Make it a flex container */
    gap: 3rem; /* Space between the links within the group */
    align-items: center; /* Vertically align links in the group */
}


/* --- Hamburger Menu (Mobile Navigation) --- */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other content */
    position: absolute; /* Position relative to nav */
    right: 20px; /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-blue); /* Color of the bars */
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Styles for when the hamburger menu is active (e.g., in an 'X' shape) */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile-specific navigation behavior */
@media (max-width: 768px) {
    .nav-links-group {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Below the fixed nav bar */
        left: 0;
        width: 100%;
        background-color: var(--white); /* Background for the dropdown menu */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        pointer-events: none; /* Disable interaction when hidden */
    }

    .nav-links-group.active {
        display: flex; /* Show when active */
        opacity: 1;
        transform: translateY(0);
        pointer-events: all; /* Enable interaction when active */
    }

    .nav-links-group a {
        padding: 0.8rem 20px;
        text-align: center;
        color: var(--dark-blue);
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .nav-links-group a:hover {
        background-color: var(--light-grey-bg);
    }

    .hamburger-menu {
        display: flex; /* Show hamburger icon on mobile */
    }

    /* Adjust nav bar itself for mobile if needed */
    nav {
        justify-content: space-between; /* Push logo left, hamburger right */
        padding: 0 15px; /* Adjust padding for mobile nav */
    }
}


/* Hero Section */
.hero {
    /* Main background image */
    background-image: url('https://via.placeholder.com/1200x400/013a6b/00b4d8?text=Modern+Water+Plant'); /* Ensure this URL is correct or use your own image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Ensure it doesn't repeat */
    position: relative; /* Needed for pseudo-element overlay */
    padding: 8rem 1rem;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 0; /* Changed to 0 as overlay will be z-index: 1 */
}

/* Add a semi-transparent gradient overlay to the hero for better text readability and branding */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Increased opacity for better contrast */
    background: linear-gradient(135deg, rgba(1, 58, 107, 0.85) 0%, rgba(0, 119, 182, 0.85) 100%); /* Changed to 0.85 */
    z-index: 1;
}

/* Ensure hero content (h1, p, button) is above the overlay */
.hero h1,
.hero p,
.hero .hero-button {
    z-index: 2; /* Place above the overlay (z-index: 1) */
    position: relative; /* Needed for z-index to work on these elements */
}

.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 3px 3px 6px rgba(0,0,0,0.5); }
.hero p { font-size: 1.4rem; margin-bottom: 2rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.4); }

/* Hero Button */
.hero-button {
    background: var(--accent-green); /* Changed to accent green */
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.hero-button:hover {
    background-color: #248a7f; /* Slightly darker accent green */
    transform: translateY(-3px) scale(1.02); /* More noticeable lift and slight growth */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}


/* General Section Styling */
.section { padding: 4rem 2rem; max-width: 1000px; margin: auto; }
.section h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--dark-blue); /* Changed heading color */
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.section h2::after { /* Underline effect for H2 */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--medium-blue); /* Changed underline color */
    border-radius: 2px;
}
.section p {
    color: var(--text-medium); /* Softer text color */
    font-size: 1.05rem;
}


/* Service Cards */
.service-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}
.service-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.service-card h3 {
    color: var(--medium-blue); /* Changed heading color */
    margin-bottom: 1rem;
    font-size: 1.7rem;
}
.service-card p {
    color: var(--text-medium); /* Softer text color */
    font-size: 1.05rem;
}


/* Project Grid */
.project-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}
.project-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.project-card .project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.4s ease-in-out; /* Add transition for smooth zoom */
}
.project-card:hover .project-image {
    transform: scale(1.05); /* Slightly zoom in the image on card hover */
}
.project-card .project-info {
    padding: 1.5rem;
    text-align: left;
}
.project-card h3 {
    color: var(--dark-blue); /* Changed heading color */
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}
.project-card p {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.project-card .btn-more-info {
    background-color: var(--accent-green); /* Changed to accent green */
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.project-card .btn-more-info:hover {
    background-color: #248a7f; /* Darker accent green */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}
.view-all-projects {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.2rem;
}
.view-all-projects a {
    color: var(--medium-blue); /* Changed link color */
    text-decoration: none;
    font-weight: 600;
}
.view-all-projects a:hover {
    text-decoration: underline;
}


/* Contact Section Styling */
.contact-details {
    background-color: #e6f3ff; /* Still a light blue, might adjust to a lighter shade from new palette if desired */
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    text-align: left;
}
.contact-details h3 {
    color: var(--dark-blue); /* Changed heading color */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.contact-details p {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.contact-details a {
    color: var(--medium-blue); /* Changed link color */
    text-decoration: none;
    font-weight: 600;
}
.contact-details a:hover {
    text-decoration: underline;
}
.contact-form-section h3 {
    color: var(--dark-blue); /* Changed heading color */
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}
/* Contact Form */
.contact-form { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.contact-form button {
    background: var(--accent-green); /* Changed to accent green */
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover { background-color: #248a7f; } /* Darker accent green */


/* Responsive adjustments for Contact Section */
@media (min-width: 768px) {
    #contact .section {
        display: flex;
        flex-wrap: wrap;
        gap: 4rem;
        align-items: flex-start;
    }
    .contact-details {
        flex: 1;
        min-width: 300px;
        margin-bottom: 0;
    }
    .contact-form-section {
        flex: 1.5;
        min-width: 350px;
    }
    .contact-form-section h3 {
         text-align: left;
    }
}


/* Footer (Duplicate for gradient - original is above) */
footer {
    background: linear-gradient(to right, var(--dark-blue), var(--medium-blue)); /* Added gradient */
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    margin-top: 40px; /* Added margin-top */
}


/* Small Adjustments for overall consistency */
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
p { margin-bottom: 1rem; }





/* Modal Overlay and Container */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity background */
    backdrop-filter: blur(8px); /* Blur effect for the background */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    opacity: 0; /* Start hidden for animation */
    transition: opacity 0.3s ease-in-out; /* Fade in animation */
}

/* Modal Content Box */
.modal-content {
    background-color: var(--white);
    margin: 8% auto; /* 8% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 700px; /* Max width of the modal */
    position: relative;
    transform: translateY(-50px); /* Start slightly above for animation */
    transition: transform 0.3s ease-in-out; /* Slide in animation */
}

/* When the modal is active, show it and animate */
.modal.active {
    display: flex; /* Use flex to center content */
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal.active .modal-content {
    transform: translateY(0); /* Slide to its final position */
}

/* Close Button */
.close-button {
    color: #aaa;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-blue);
    text-decoration: none;
    cursor: pointer;
}

/* Modal Content Specifics */
.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.modal-location {
    color: var(--medium-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-description {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.modal-details {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

/* Hide body overflow when modal is open to prevent scrolling */
body.modal-open {
    overflow: hidden;
}


/* Back to Top Button */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button 20px from the bottom */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap with other things */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--accent-green); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    width: 50px; /* Set a fixed width */
    height: 50px; /* Set a fixed height for a perfect circle */
    border-radius: 50%; /* Make it perfectly round */
    font-size: 24px; /* Adjust font size for the arrow/icon */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    /* Removed: transition, opacity properties */
}

#backToTopBtn:hover {
    background-color: #207a6f; /* Slightly darker on hover */
}





/* Scroll Reveal Animations */
.hidden-section {
    opacity: 0;
    transform: translateY(50px); /* Starts slightly below its final position */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible-section {
    opacity: 1;
    transform: translateY(0); /* Slides to its final position */
}



/* Media queries for general layout */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    /* Hero & Section adjustments (from previous general media queries) */
    .hero {
        padding: 80px 15px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section {
        padding: 40px 15px;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .service-cards-container,
    .project-grid-container {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }
    .modal-content {
        padding: 20px;
        margin: 10px; /* Smaller margin on small screens */
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-location, .modal-description {
        font-size: 0.95rem;
    }
    .contact-details, .contact-form-section {
        padding: 20px;
    }
}

/* Founder/CEO Section Styling (About Us - specific) */
.founder-section-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 1rem; /* Add some padding around the card */
}

.founder-card {
    background-color: var(--white);
    border-radius: 12px; /* Slightly less rounded than 10px, more than default. You can adjust this. */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.founder-card h3 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.founder-content {
    display: flex;
    flex-direction: column; /* Default to column on small screens */
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .founder-content {
        flex-direction: row; /* Row layout on larger screens */
        text-align: left;
        align-items: flex-start; /* Align photo and text to the top */
    }
    .founder-photo-container {
        flex-shrink: 0; /* Prevent photo from shrinking */
    }
    .founder-details {
        flex-grow: 1; /* Allow details to take remaining space */
    }
}

.founder-photo-container {
    width: 180px; /* Consistent size for the circle */
    height: 180px;
    border-radius: 50%; /* Perfect circle */
    overflow: hidden;
    border: 5px solid var(--medium-blue); /* Border for the photo */
    box-shadow: 0 0 0 5px rgba(0, 119, 182, 0.2); /* Subtle glow around the photo */
    transition: transform 0.3s ease;
}

.founder-photo-container:hover {
    transform: scale(1.05); /* Slight zoom on photo hover */
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure photo covers the circle */
    display: block;
}

.founder-details h4 {
    color: var(--dark-blue);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.founder-quote {
    font-family: 'Georgia', serif; /* A different, more classic font for the quote */
    font-style: italic; /* Italic text */
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 0 1rem; /* Add some horizontal padding for aesthetics */
}

.founder-signature {
    font-weight: 600;
    color: var(--medium-blue);
    font-size: 1rem;
    margin-top: 1rem;
}

.founder-social {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center; /* Center on small screens */
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .founder-social {
        justify-content: flex-start; /* Align to left on larger screens */
    }
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--medium-blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    background-color: var(--accent-green); /* Change color on hover */
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Our Clients Section */
.client-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    height: 450px; /* Fixed height for the carousel area */
    margin: 3rem auto;
    overflow: hidden; /* Ensures cards outside the view are not visible */
    position: relative;
    padding: 0 60px; /* Space for nav buttons */
    /* Add this line below for better touch interaction */
    touch-action: pan-y; /* Allows vertical scrolling but not horizontal default scroll within this element */
}

.client-cards-wrapper {
    position: relative; /* For absolute positioning of cards */
    width: 100%; /* Take full width of container */
    height: 100%; /* Take full height */
    display: flex; /* Still flex, but absolute positioning overrides it for the main display */
    justify-content: center; /* Initial centering */
    align-items: center;
}

.client-card {
    position: absolute; /* Absolute position for precise control */
    background-color: var(--white);
    border-radius: 12px; /* Less rounded corners */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    width: 320px; /* Fixed width for the cards */
    min-height: 300px; /* Ensure consistent height */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease, filter 0.6s ease, z-index 0s; /* Smooth transitions */
    pointer-events: none; /* Prevent direct clicks on inactive cards */
    opacity: 0; /* Hidden by default */
    filter: blur(5px); /* Initial blur */
    transform: scale(0.8); /* Smaller when hidden */
    z-index: 1; /* Default z-index */
}

/* Specific states for client cards */
.client-card.center-card {
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0) scale(1.05); /* Center and slightly larger */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
    left: 50%; /* Center it */
    transform: translateX(-50%) scale(1.05); /* Account for width to truly center */
    pointer-events: auto; /* Allow interaction with the center card */
}

.client-card.left-card {
    opacity: 0.6;
    filter: blur(3px);
    transform: translateX(calc(-100% - 20px)) scale(0.9); /* Position to left, smaller */
    z-index: 5;
    left: 50%; /* Start from center and move left */
    transform: translateX(calc(-50% - 350px)) scale(0.9); /* Adjust for card width and spacing */
}

.client-card.right-card {
    opacity: 0.6;
    filter: blur(3px);
    transform: translateX(calc(100% + 20px)) scale(0.9); /* Position to right, smaller */
    z-index: 5;
    left: 50%; /* Start from center and move right */
    transform: translateX(calc(-50% + 350px)) scale(0.9); /* Adjust for card width and spacing */
}

.client-photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-green);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.client-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.client-card h4 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.client-project-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-style: italic;
    line-height: 1.6;
}

/* --- Client Carousel Navigation Buttons --- */

/* Base styles for navigation buttons (desktop and general appearance) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7); /* Subtle white background */
    color: var(--dark-blue); /* Dark blue arrow color */
    border: 1px solid var(--medium-blue); /* Thin border as in sketch */
    border-radius: 8px; /* Rounded rectangular shape */
    width: 45px; /* Adjust width */
    height: 60px; /* Adjust height to be more rectangular */
    font-size: 2.5rem; /* Larger arrow characters */
    cursor: pointer;
    display: flex; /* Use flex to center content */
    justify-content: center;
    align-items: center;
    opacity: 0; /* HIDDEN BY DEFAULT */
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease; /* Smooth fade and hover */
    z-index: 10; /* Ensure buttons are above carousel cards */
}

.carousel-nav.prev-btn {
    left: 0px; /* Position on the left edge of the container */
}

.carousel-nav.next-btn {
    right: 0px; /* Position on the right edge of the container */
}

/* Show buttons on hover over the entire carousel container */
.client-carousel-container:hover .carousel-nav {
    opacity: 1; /* MAKE VISIBLE ON CONTAINER HOVER */
    /* Add a slight pop effect only when the container is hovered, but the button itself is not yet directly hovered */
    transform: translateY(-50%) scale(1.02);
}

/* Further hover effect for the buttons themselves for a more interactive feel */
.carousel-nav:hover {
    background-color: var(--light-blue); /* Brighter blue on individual button hover */
    border-color: var(--dark-blue); /* Darker border on individual button hover */
    transform: translateY(-50%) scale(1.1); /* More pronounced pop on individual button hover */
}


/* --- Responsive Adjustments for Carousel Navigation Buttons --- */
@media (max-width: 768px) {
    /* Adjustments for button size on smaller screens */
    .carousel-nav {
        width: 35px;
        height: 50px;
        font-size: 2rem;
        border-radius: 6px;
        left: 5px; /* Slightly more inward on small screens */
        right: 5px; /* Slightly more inward on small screens */
    }

    /* On mobile, remove the container hover scale effect as it can interfere with touch */
    .client-carousel-container:hover .carousel-nav {
        transform: translateY(-50%) scale(1.0); /* Reset scale on container hover for mobile */
    }

    /* Keep slight pop on individual button hover/tap for mobile consistency */
    .carousel-nav:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

