/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lora:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
    --color-bg: #f8f8fa; /* Whitish */
    --color-text: #333333;
    --color-accent: #8A2BE2; /* BlueViolet */
    --color-accent-light: #a96ded; /* Lighter purple for interactions */
    --color-accent-pastel: #E6E6FA; /* Lavender */
    --color-card-bg: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-shadow-hover: rgba(0, 0, 0, 0.08);
    --holographic-gradient: linear-gradient(135deg, #f8acff 0%, #a27df1 50%, #89f7fe 100%);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --section-padding: 60px 20px;
    --container-max-width: 900px;
}

/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem; /* Adjust as needed */
}

h2 {
    font-size: 2.2rem; /* Adjust as needed */
    margin-bottom: 1.5em;
}

/* Links */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-accent-light);
    text-decoration: underline;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Main Content Layout */
main > section {
    padding: var(--section-padding);
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Utility Classes (Optional but helpful) */
.text-center {
    text-align: center;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0; /* Vertical padding, horizontal handled by container */
    /* Apply blur and semi-transparent background */
    background-color: rgba(248, 248, 250, 0.8); /* Use --color-bg with alpha */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: 0 1px 3px var(--color-shadow); /* Subtle shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.header-content {
    /* max-width: var(--container-max-width); */ /* Use % instead */
    max-width: 80vw; /* Set width to 80% of viewport width */
    margin: 0 auto; /* Center the content */
    padding: 0 20px; /* Horizontal padding */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space for potential nav items */
}

.header-title {
    font-family: var(--font-serif);
    font-size: 1.5rem; /* Adjust size as needed */
    font-weight: 700;
    color: var(--color-text); /* Match body text color */
}

/* Remove default styling from header title link */
.header-title-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent or use var(--color-text) */
}

.header-title-link:hover,
.header-title-link:focus {
    text-decoration: none !important; /* Ensure no underline on hover/focus */
    color: inherit;
}

/* Navigation Styles */
header nav {
    display: flex;
    gap: 35px; /* Increased spacing */
}

header nav a {
    color: var(--color-text); /* Match header title color */
    text-decoration: none;
    font-weight: 400; /* Regular weight */
    font-size: 0.9rem; /* Made links tinier */
    padding: 5px 0; /* Add some padding for easier clicking */
    position: relative; /* For underline effect */
    transition: color 0.3s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

header nav a:hover,
header nav a:focus {
    color: var(--color-accent); /* Highlight color on hover/focus */
    text-decoration: none; /* Remove default underline */
}

header nav a:hover::after,
header nav a:focus::after {
    width: 100%; /* Underline effect on hover/focus */
}

/* Ensure main content starts below sticky header */
/* Optional: Add padding-top to body or first element if overlap occurs */
/* body {
    padding-top: 70px; /* Adjust based on actual header height */
/* } */

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding if icon size is sufficient */
    z-index: 1100; /* Above header content */
    font-size: 1.5rem; /* Control icon size */
    line-height: 1; /* Ensure button height matches icon */
    color: var(--color-text);
}

/* Initially hide the close icon */
.menu-toggle .fa-times {
    display: none;
}

/* Show close icon and hide bars icon when menu is open */
.menu-toggle[aria-expanded="true"] .fa-times {
    display: inline-block;
}

.menu-toggle[aria-expanded="true"] .fa-bars {
    display: none;
}

/* Responsive Header / Mobile Menu */
@media (max-width: 768px) {
    header nav#main-nav {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background-color: rgba(248, 248, 250, 0.95); /* Slightly more opaque */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 20px;
        box-shadow: 0 3px 5px var(--color-shadow);
        flex-direction: column;
        align-items: center;
        gap: 15px;
        opacity: 0;
        transform: translateY(-10px); /* Start slightly above */
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    header nav#main-nav.is-open {
        display: flex; /* Show when open */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    header nav#main-nav a {
        padding: 10px 0;
        font-size: 1.1rem; /* Slightly larger for mobile */
        width: 100%;
        text-align: center;
    }
    
    header nav#main-nav a::after {
        display: none; /* Hide underline effect on mobile */
    }

    .menu-toggle {
        display: block; /* Show hamburger */
    }
}

/* Adjust header content padding if needed on mobile */
/* .header-content {
    padding: 0 15px; 
}*/

/* Add initial styles later */
#hero {
    position: relative;
    padding: 0; /* Remove default padding so video spans full */
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center; /* Center overlay vertically */
    justify-content: center; /* Center overlay horizontally */
    overflow: hidden; /* Hide overflowing video */
    max-width: none; /* Override main > section constraint */
}

/* Add dark overlay */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Black at 70% opacity */
    z-index: 0; /* Sit between video (-1) and overlay (1) */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio, cover entire area */
    z-index: -1; /* Place behind overlay */
    filter: saturate(0);
}

.hero-overlay {
    position: relative; /* Stay on top of video */
    z-index: 1;
    max-width: 40vw; /* Reduced width */
    text-align: center;
    padding: 0 20px; /* Horizontal breathing room */
}

.hero-overlay .subtitle {
    font-size: 1.3rem;
    color: var(--color-bg); /* Ensure readability over video */
    margin-top: 0.5em;
    margin-left: auto;
    margin-right: auto;
}

.hero-overlay h1 {
    font-size: 3.5rem; /* Same as original */
    margin-bottom: 0.25em;
    background: var(--holographic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .hero-overlay {
        max-width: 80vw; /* Keep wider on mobile */
    }
    .hero-overlay h1 {
        font-size: 2.8rem;
    }
    .hero-overlay .subtitle {
        font-size: 1.1rem;
    }
}

/* ===== Two-Column About Section ===== */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 80vw; /* Consistent with header */
    margin-left: auto;
    margin-right: auto;
    padding: var(--section-padding);
    text-align: left;
}

.about-text {
    flex-basis: 55%;
    flex-shrink: 1;
}

.about-image {
    flex-basis: 40%;
    flex-shrink: 0;
}

.about-image img {
    border-radius: 30px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 4px 15px var(--color-shadow);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .about-text {
        order: 2;
    }
    .about-image {
        order: 1;
        max-width: 300px;
        margin: 0 auto;
    }
}

#about {
    /* Add some extra bottom padding if needed, otherwise defaults are fine */
    padding-bottom: 40px; 
}

#about p {
    margin-left: 0;
    margin-right: 0;
    max-width: none; /* Use full width of column */
    margin-bottom: 30px; /* Space between text and button */
}


.cta-buttons a {
    display: inline-block; /* Prevent height change on hover */
    padding: 12px 25px;
    border: 1px solid var(--color-accent);
    background-color: var(--color-bg);
    color: var(--color-accent);
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease; /* Faster transition */
    margin: 10px;
    position: relative; /* Needed for potential pseudo-elements */
    overflow: hidden; /* Hide gradient overflow if needed */
    z-index: 1;
    box-shadow: 0 5px 15px var(--color-shadow);
}


/* Smaller version of the CTA button for use in cards */
a.cta-button-small {
    padding: 8px 18px; /* Reduced padding */
    font-size: 0.65rem; /* Smaller font size */
    /* Inherits other styles from .cta-buttons a */
}

.cta-buttons a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--holographic-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit; /* Match parent's border radius */
}

.cta-buttons a:hover,
.cta-buttons a:focus {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
}

.cta-buttons a:hover::before,
.cta-buttons a:focus::before {
     opacity: 1; /* Show gradient background on hover/focus */
}

/* Example for specific button styling if needed later (e.g., outline style) */
/* .cta-buttons a.secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-buttons a.secondary:hover,
.cta-buttons a.secondary:focus {
    background-color: var(--color-accent-pastel);
    color: var(--color-accent);
} */

/* LinkedIn specific icon/style can be added later if we use SVGs */
.cta-buttons a.linkedin {
    /* Add specific styles for LinkedIn if different from base */
}

#featured,
#trusted {
    /* Override general section max-width */
    max-width: none; 
    /* Keep padding, but maybe adjust horizontal padding if needed */
    padding-left: 0; /* Remove side padding if fade handles edges */
    padding-right: 0; /* Remove side padding if fade handles edges */
    background-color: var(--color-card-bg);
}

#featured h2,
#trusted h2 {
     /* Re-apply max-width to the titles within the full-width section */
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Add back horizontal padding for title alignment */
    padding-right: 20px;
    margin-bottom: 1.5em; /* Ensure consistent spacing below title */
}

/* New wrapper for carousel content alignment */
.carousel-content-wrapper {
    max-width: 80vw; /* Match header width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Match header horizontal padding */
    padding-right: 20px;
    box-sizing: border-box; 
}

.logo-carousel {
    /* Container for the logo list */
    margin-top: 30px; /* Keep top margin */
    overflow: hidden; /* Hide the overflowing logos */
    position: relative; /* Needed for pseudo-element fading */
    width: 100%; /* Fill the wrapper */
    /* Removed max-width, margin-left/right, padding-left/right */
    box-sizing: border-box; /* Keep box-sizing */
}

/* Fade effects - might need adjustment if section bg changes */
.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px; /* Increased width of the fade */
    z-index: 2; /* Above the logos, below potential content */
    pointer-events: none; /* Don't block interaction */
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-card-bg) 0%, transparent 100%); /* Ensure gradient uses correct BG */
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-card-bg) 0%, transparent 100%); /* Ensure gradient uses correct BG */
}

.logo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping */
    width: max-content; /* Ensure width accommodates all items */
    /* Animation will be added here */
}

.logo-list li {
    display: flex; /* Use flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    margin: 0 20px; /* Spacing between logos */
    height: 60px; /* Example fixed height */
    width: 150px; /* Give each cell a fixed width */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.logo-list img {
    /* max-height: 50px; */ /* Removed this constraint */
    width: auto; /* Let browser determine width based on height/aspect ratio */
    max-width: 100%; /* Ensure image doesn't overflow li width */
    max-height: 100%; /* Ensure image doesn't overflow li height */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-list img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Special handling for white logos on white background - Removed rules below */
/* .logo-list li.white-logo {
    background-color: rgba(0, 0, 0, 0.03); 
    border-radius: var(--border-radius-sm); 
} */

/* .logo-list li.white-logo img {
    filter: none; 
    opacity: 1;
} */

.logo-placeholder {
    /* Styles remain largely the same */
    display: inline-block;
    padding: 10px 15px; /* Adjust padding */
    border: 1px dashed var(--color-accent-pastel);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--color-accent);
    min-height: 50px;
    min-width: 100px; /* Give placeholders some width */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    text-align: center;
}

/* Add Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Scroll by half the width (since content is duplicated) */
        transform: translateX(-50%); 
    }
}

#services {
    /* Specific styles for Services */
    background-color: var(--color-bg); /* Match main background */
}

.services-container {
    /* Container for the service cards */
    display: grid;
    gap: 40px; /* Space between cards */
}

.service-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px var(--color-shadow);
    overflow: hidden; /* Ensure image corners are clipped */
    display: flex;
    align-items: stretch; /* Make children stretch to full height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Override section center align */
    min-height: 350px; /* Added minimum height for desktop */
}

.service-card:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
}

.service-text {
    padding: 30px;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text block vertically */
}

.service-image {
    flex-basis: 45%; /* Adjusted image width */
    flex-shrink: 0;
    position: relative; /* For potential overlays if needed */
}

/* Alternating layout using order */
.card-left .service-image {
    order: 1;
}
.card-left .service-text {
    order: 2;
}

.card-right .service-image {
    order: 2;
}
.card-right .service-text {
    order: 1;
}

.service-card h3 {
    font-family: var(--font-serif);
    margin-bottom: 10px; /* Space below title */
    font-size: 1.5rem;
    /* color: var(--color-accent); Remove if not desired */
}

.labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* margin-bottom: 15px; Remove - No space needed below labels */
    margin-top: auto; /* Push labels to the bottom if extra space */
}

.label {
    background-color: var(--color-accent-pastel); /* Lavender background */
    color: var(--color-text); /* Dark text for contrast */
    padding: 3px 10px; /* Reduced padding */
    border-radius: 50px; /* Pill shape */
    font-size: 0.75rem; /* Tinier font size */
    font-weight: 500; /* Medium font weight */
    white-space: nowrap;
}

/* Add styles for the service description */
.service-description {
    font-size: 0.9rem; /* Make text smaller */
    color: #555; /* Slightly muted color */
    margin-bottom: 15px; /* Space below description (acts as spacer) */
    line-height: 1.5; /* Adjust line height for readability */
    text-align: left; /* Align text left within the card text container */
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    /* object-position: top; /* REMOVED - Default is center */
    /* No border-radius needed here if .service-card has overflow:hidden */
}

/* Specific object-position for first two service cards */
.service-card:nth-child(1) .service-image img {
    object-position: bottom; /* Anchor first card image to the bottom */
}

.service-card:nth-child(2) .service-image img {
    object-position: top; /* Anchor second card image to the top */
}

/* Responsive adjustments for Service Cards */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column; /* Stack image and text */
    }

    /* Reset order when stacked */
    .service-card .service-image,
    .service-card .service-text {
        order: initial !important; /* Use important to override */
    }

    .service-image {
        flex-basis: auto; /* Reset basis */
        height: 200px; /* Fixed height for images on mobile */
    }

    .service-text {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* Adjust spacing within #contact section */
#contact h2 {
    margin-bottom: 0.75em; /* Reduce space below heading */
}

#contact p {
    margin-bottom: 30px; /* Increase space below paragraph, before buttons */
}

footer {
    /* Specific styles for Footer */
    /* background-color: rgba(248, 248, 250, 0.8); Match header background */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); Safari support */
    /* background-color: var(--color-bg); Use solid background color */
    /* background-color: #eeeeee; Light grey for subtle separation */
    background-color: #ffffff; /* Pure white background */
    color: var(--color-text); /* Dark text for light background */
    padding: 40px 20px;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    /* Initial styles for social icons */
}

.social-icon {
    display: inline-flex; /* Use inline-flex for alignment */
    align-items: center;
    justify-content: center;
    width: 44px; /* Circle size */
    height: 44px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%; /* Make it a circle */
    text-decoration: none;
    font-size: 1.2rem; /* Adjust icon size if using text/font icon */
    margin: 0 8px; /* Space between icons */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Ensure gradient inherits radius */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Optional: Add gradient hover like CTA */
.social-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--holographic-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.social-icon:hover,
.social-icon:focus {
    transform: scale(1.1);
    background-color: transparent; /* Show gradient */
    color: white; /* Keep text white */
    text-decoration: none;
}

.social-icon:hover::before,
.social-icon:focus::before {
     opacity: 1;
}

footer p {
    font-size: 0.9rem;
    color: #555; /* Darker grey for better contrast on light bg */
    margin-top: 20px;
}

/* Scroll Margin for Sticky Header */
#services,
#trusted,
#contact {
    scroll-margin-top: 70px; /* Adjust this value based on actual header height */
}

/* Apply sticky styles to the placeholder */
#header-placeholder {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Apply blur and semi-transparent background */
    background-color: rgba(248, 248, 250, 0.8); /* Use --color-bg with alpha */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: 0 1px 3px var(--color-shadow); /* Subtle shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* Header Styles (Styles for elements *inside* the placeholder) */
#header-placeholder header {
    /* Remove positioning styles from the inner header if they exist */
    position: static; /* Reset position */
    padding: 15px 0; /* Keep the original padding */
    background-color: transparent; /* Inherit from placeholder */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Keep original .header-content styles, but ensure they apply inside the placeholder */
#header-placeholder .header-content {
    /* max-width: var(--container-max-width); */ /* Use % instead */
    max-width: 80vw; /* Set width to 80% of viewport width */
    margin: 0 auto; /* Center the content */
    padding: 0 20px; /* Horizontal padding */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space for potential nav items */
}

#header-placeholder .header-title {
    font-family: var(--font-serif);
    font-size: 1.5rem; /* Adjust size as needed */
    font-weight: 700;
    color: var(--color-text); /* Match body text color */
}

/* Remove default styling from header title link */
#header-placeholder .header-title-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent or use var(--color-text) */
}

#header-placeholder .header-title-link:hover,
#header-placeholder .header-title-link:focus {
    text-decoration: none !important; /* Ensure no underline on hover/focus */
    color: inherit;
}

/* Navigation Styles */
#header-placeholder header nav {
    display: flex;
    gap: 35px; /* Increased spacing */
}

#header-placeholder header nav a {
    color: var(--color-text); /* Match header title color */
    text-decoration: none;
    font-weight: 400; /* Regular weight */
    font-size: 0.9rem; /* Made links tinier */
    padding: 5px 0; /* Add some padding for easier clicking */
    position: relative; /* For underline effect */
    transition: color 0.3s ease;
}

#header-placeholder header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

#header-placeholder header nav a:hover,
#header-placeholder header nav a:focus {
    color: var(--color-accent); /* Highlight color on hover/focus */
    text-decoration: none; /* Remove default underline */
}

#header-placeholder header nav a:hover::after,
#header-placeholder header nav a:focus::after {
    width: 100%; /* Underline effect on hover/focus */
}

/* Style for the active navigation link */
#header-placeholder header nav a.nav-active {
    /* color: var(--color-accent); Already applied on hover, maybe make it default */
    font-weight: 600; /* Make it bold */
}

/* Force underline for active link */
#header-placeholder header nav a.nav-active::after {
    width: 100%; 
}

/* Mobile Menu Toggle Button */
#header-placeholder .menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding if icon size is sufficient */
    z-index: 1100; /* Above header content */
    font-size: 1.5rem; /* Control icon size */
    line-height: 1; /* Ensure button height matches icon */
    color: var(--color-text);
}

/* Initially hide the close icon */
#header-placeholder .menu-toggle .fa-times {
    display: none;
}

/* Show close icon and hide bars icon when menu is open */
#header-placeholder .menu-toggle[aria-expanded="true"] .fa-times {
    display: inline-block;
}

#header-placeholder .menu-toggle[aria-expanded="true"] .fa-bars {
    display: none;
}

/* Responsive Header / Mobile Menu */
@media (max-width: 768px) {
    #header-placeholder header nav#main-nav {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background-color: rgba(248, 248, 250, 0.95); /* Slightly more opaque */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 20px;
        box-shadow: 0 3px 5px var(--color-shadow);
        flex-direction: column;
        align-items: center;
        gap: 15px;
        opacity: 0;
        transform: translateY(-10px); /* Start slightly above */
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    #header-placeholder header nav#main-nav.is-open {
        display: flex; /* Show when open */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #header-placeholder header nav#main-nav a {
        padding: 10px 0;
        font-size: 1.1rem; /* Slightly larger for mobile */
        width: 100%;
        text-align: center;
    }
    
    #header-placeholder header nav#main-nav a::after {
        display: none; /* Hide underline effect on mobile */
    }

    #header-placeholder .menu-toggle {
        display: block; /* Show hamburger */
    }
}

/* Adjust header content padding if needed on mobile */
/* .header-content {
    padding: 0 15px; 
}*/

/* Add initial styles later */
#header-placeholder #hero {
    /* Override default section padding for full height/width control */
    padding: 0; 
    min-height: 70vh; /* Reduced viewport height */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content wrapper */
    max-width: none; /* Allow hero to span full width if needed */
    /* Optional subtle gradient background */
    /* background: linear-gradient(to bottom right, var(--color-bg), var(--color-accent-pastel)); */
}

#header-placeholder .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; /* Increased space between text and image */
    /* max-width: var(--container-max-width); */ /* Use % instead */
    max-width: 80vw; /* Match header width */
    width: 100%;
    padding: var(--section-padding); /* Add padding inside the content */
    text-align: left; /* Override parent's text-align: center */
    margin: 0 auto; /* Center hero content */
}

#header-placeholder .hero-text {
    /* flex: 1; */ /* Remove this */
    flex-basis: 55%; /* Set specific basis */
    flex-shrink: 1; /* Allow shrinking if needed */
}

#header-placeholder #hero h1 {
    font-size: 3.5rem; /* Larger H1 for Hero */
    margin-bottom: 0.25em;
    /* color: var(--color-accent); *//* Use accent color for main title */
    /* Let's try the gradient here */
    background: var(--holographic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#header-placeholder .hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0; /* Remove default paragraph margin */
}

#header-placeholder .hero-image {
    flex-basis: 40%; /* Set specific basis */
    flex-shrink: 0; /* Prevent image container from shrinking */
}

#header-placeholder .hero-image img {
    border-radius: 30px; /* Increased rounded corners */
    width: 100%; /* Make image fill container */
    aspect-ratio: 1 / 1; /* Ensure square ratio */
    object-fit: cover; /* Cover the area, cropping if needed */
    box-shadow: 0 4px 15px var(--color-shadow);
}


/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    #header-placeholder #hero {
        min-height: auto; /* Adjust height on smaller screens */
        padding-top: 20px; /* Reduced padding top */
        padding-bottom: 40px;
    }

    #header-placeholder .hero-content {
        flex-direction: column; /* Stack text and image */
        text-align: center; /* Center text when stacked */
        gap: 30px;
    }

    #header-placeholder .hero-text {
        order: 2; /* Put text below image */
    }

    #header-placeholder .hero-image {
        order: 1; /* Put image above text */
        flex-basis: 300px; /* Adjusted image size for mobile */
        max-width: 300px; /* Ensure it doesn't exceed */
        margin: 0 auto; /* Center image container */
    }

     #header-placeholder #hero h1 {
        font-size: 2.8rem; 
    }

    #header-placeholder .hero-text .subtitle {
        font-size: 1.1rem;
    }
}


#header-placeholder #about {
    /* Add some extra bottom padding if needed, otherwise defaults are fine */
    padding-bottom: 40px; 
}

#header-placeholder #about p {
    max-width: 700px; /* Slightly narrower line width for readability */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; /* Space between text and button */
    font-size: 1.1rem;
}


#header-placeholder .cta-buttons a {
    display: inline-block; /* Prevent height change on hover */
    padding: 12px 25px;
    border: 1px solid var(--color-accent);
    background-color: var(--color-bg);
    color: var(--color-accent);
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease; /* Faster transition */
    margin: 5px;
    position: relative; /* Needed for potential pseudo-elements */
    overflow: hidden; /* Hide gradient overflow if needed */
    z-index: 1;
    box-shadow: 0 5px 15px var(--color-shadow);
}


/* Smaller version of the CTA button for use in cards */
#header-placeholder a.cta-button-small {
    padding: 8px 18px; /* Reduced padding */
    font-size: 0.65rem; /* Smaller font size */
    /* Inherits other styles from .cta-buttons a */
}

#header-placeholder .cta-buttons a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--holographic-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit; /* Match parent's border radius */
}

#header-placeholder .cta-buttons a:hover,
#header-placeholder .cta-buttons a:focus {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
}

#header-placeholder .cta-buttons a:hover::before,
#header-placeholder .cta-buttons a:focus::before {
     opacity: 1; /* Show gradient background on hover/focus */
}

/* Example for specific button styling if needed later (e.g., outline style) */
/* .cta-buttons a.secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-buttons a.secondary:hover,
.cta-buttons a.secondary:focus {
    background-color: var(--color-accent-pastel);
    color: var(--color-accent);
} */

/* LinkedIn specific icon/style can be added later if we use SVGs */
#header-placeholder .cta-buttons a.linkedin {
    /* Add specific styles for LinkedIn if different from base */
}

#header-placeholder #featured,
#header-placeholder #trusted {
    /* Override general section max-width */
    max-width: none; 
    /* Keep padding, but maybe adjust horizontal padding if needed */
    padding-left: 0; /* Remove side padding if fade handles edges */
    padding-right: 0; /* Remove side padding if fade handles edges */
    background-color: var(--color-card-bg);
}

#header-placeholder #featured h2,
#header-placeholder #trusted h2 {
     /* Re-apply max-width to the titles within the full-width section */
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Add back horizontal padding for title alignment */
    padding-right: 20px;
    margin-bottom: 1.5em; /* Ensure consistent spacing below title */
}

/* New wrapper for carousel content alignment */
#header-placeholder .carousel-content-wrapper {
    max-width: 80vw; /* Match header width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Match header horizontal padding */
    padding-right: 20px;
    box-sizing: border-box; 
}

#header-placeholder .logo-carousel {
    /* Container for the logo list */
    margin-top: 30px; /* Keep top margin */
    overflow: hidden; /* Hide the overflowing logos */
    position: relative; /* Needed for pseudo-element fading */
    width: 100%; /* Fill the wrapper */
    /* Removed max-width, margin-left/right, padding-left/right */
    box-sizing: border-box; /* Keep box-sizing */
}

/* Fade effects - might need adjustment if section bg changes */
#header-placeholder .logo-carousel::before,
#header-placeholder .logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px; /* Increased width of the fade */
    z-index: 2; /* Above the logos, below potential content */
    pointer-events: none; /* Don't block interaction */
}

#header-placeholder .logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-card-bg) 0%, transparent 100%); /* Ensure gradient uses correct BG */
}

#header-placeholder .logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-card-bg) 0%, transparent 100%); /* Ensure gradient uses correct BG */
}

#header-placeholder .logo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping */
    width: max-content; /* Ensure width accommodates all items */
    /* Animation will be added here */
}

#header-placeholder .logo-list li {
    display: flex; /* Use flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    margin: 0 20px; /* Spacing between logos */
    height: 60px; /* Example fixed height */
    width: 150px; /* Give each cell a fixed width */
    flex-shrink: 0; /* Prevent items from shrinking */
}

#header-placeholder .logo-list img {
    /* max-height: 50px; */ /* Removed this constraint */
    width: auto; /* Let browser determine width based on height/aspect ratio */
    max-width: 100%; /* Ensure image doesn't overflow li width */
    max-height: 100%; /* Ensure image doesn't overflow li height */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

#header-placeholder .logo-list img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Special handling for white logos on white background - Removed rules below */
/* .logo-list li.white-logo {
    background-color: rgba(0, 0, 0, 0.03); 
    border-radius: var(--border-radius-sm); 
} */

/* .logo-list li.white-logo img {
    filter: none; 
    opacity: 1;
} */

#header-placeholder .logo-placeholder {
    /* Styles remain largely the same */
    display: inline-block;
    padding: 10px 15px; /* Adjust padding */
    border: 1px dashed var(--color-accent-pastel);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--color-accent);
    min-height: 50px;
    min-width: 100px; /* Give placeholders some width */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    text-align: center;
}

/* Add Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Scroll by half the width (since content is duplicated) */
        transform: translateX(-50%); 
    }
}

#header-placeholder #services {
    /* Specific styles for Services */
    background-color: var(--color-bg); /* Match main background */
}

#header-placeholder .services-container {
    /* Container for the service cards */
    display: grid;
    gap: 40px; /* Space between cards */
}

#header-placeholder .service-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px var(--color-shadow);
    overflow: hidden; /* Ensure image corners are clipped */
    display: flex;
    align-items: stretch; /* Make children stretch to full height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Override section center align */
    min-height: 350px; /* Added minimum height for desktop */
}

#header-placeholder .service-card:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
}

#header-placeholder .service-text {
    padding: 30px;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text block vertically */
}

#header-placeholder .service-image {
    flex-basis: 45%; /* Adjusted image width */
    flex-shrink: 0;
    position: relative; /* For potential overlays if needed */
}

/* Alternating layout using order */
#header-placeholder .card-left .service-image {
    order: 1;
}
#header-placeholder .card-left .service-text {
    order: 2;
}

#header-placeholder .card-right .service-image {
    order: 2;
}
#header-placeholder .card-right .service-text {
    order: 1;
}

#header-placeholder .service-card h3 {
    font-family: var(--font-serif);
    margin-bottom: 10px; /* Space below title */
    font-size: 1.5rem;
    /* color: var(--color-accent); Remove if not desired */
}

#header-placeholder .labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* margin-bottom: 15px; Remove - No space needed below labels */
    margin-top: auto; /* Push labels to the bottom if extra space */
}

#header-placeholder .label {
    background-color: var(--color-accent-pastel); /* Lavender background */
    color: var(--color-text); /* Dark text for contrast */
    padding: 3px 10px; /* Reduced padding */
    border-radius: 50px; /* Pill shape */
    font-size: 0.75rem; /* Tinier font size */
    font-weight: 500; /* Medium font weight */
    white-space: nowrap;
}

/* Add styles for the service description */
#header-placeholder .service-description {
    font-size: 0.9rem; /* Make text smaller */
    color: #555; /* Slightly muted color */
    margin-bottom: 15px; /* Space below description (acts as spacer) */
    line-height: 1.5; /* Adjust line height for readability */
    text-align: left; /* Align text left within the card text container */
}

#header-placeholder .service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    /* No border-radius needed here if .service-card has overflow:hidden */
}

#header-placeholder .service-card:nth-child(2) .service-image img {
    object-position: top; /* Anchor second card image to the top */
}

/* Responsive adjustments for Service Cards */
@media (max-width: 768px) {
    #header-placeholder .service-card {
        flex-direction: column; /* Stack image and text */
    }

    /* Reset order when stacked */
    #header-placeholder .service-card .service-image,
    #header-placeholder .service-card .service-text {
        order: initial !important; /* Use important to override */
    }

    #header-placeholder .service-image {
        flex-basis: auto; /* Reset basis */
        height: 200px; /* Fixed height for images on mobile */
    }

    #header-placeholder .service-text {
        padding: 25px;
    }

    #header-placeholder .service-card h3 {
        font-size: 1.5rem;
    }
}

/* Adjust spacing within #contact section */
#header-placeholder #contact h2 {
    margin-bottom: 0.75em; /* Reduce space below heading */
}

#header-placeholder #contact p {
    margin-bottom: 30px; /* Increase space below paragraph, before buttons */
}

#header-placeholder footer {
    /* Specific styles for Footer */
    /* background-color: rgba(248, 248, 250, 0.8); Match header background */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); Safari support */
    /* background-color: var(--color-bg); Use solid background color */
    /* background-color: #eeeeee; Light grey for subtle separation */
    background-color: #ffffff; /* Pure white background */
    color: var(--color-text); /* Dark text for light background */
    padding: 40px 20px;
    text-align: center;
}

#header-placeholder .social-links {
    margin-bottom: 20px;
}

#header-placeholder .social-links a {
    /* Initial styles for social icons */
}

#header-placeholder .social-icon {
    display: inline-flex; /* Use inline-flex for alignment */
    align-items: center;
    justify-content: center;
    width: 44px; /* Circle size */
    height: 44px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%; /* Make it a circle */
    text-decoration: none;
    font-size: 1.2rem; /* Adjust icon size if using text/font icon */
    margin: 0 8px; /* Space between icons */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Ensure gradient inherits radius */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Optional: Add gradient hover like CTA */
#header-placeholder .social-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--holographic-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

#header-placeholder .social-icon:hover,
#header-placeholder .social-icon:focus {
    transform: scale(1.1);
    background-color: transparent; /* Show gradient */
    color: white; /* Keep text white */
    text-decoration: none;
}

#header-placeholder .social-icon:hover::before,
#header-placeholder .social-icon:focus::before {
     opacity: 1;
}

#header-placeholder footer p {
    font-size: 0.9rem;
    color: #555; /* Darker grey for better contrast on light bg */
    margin-top: 20px;
}

/* Scroll Margin for Sticky Header */
#header-placeholder #services,
#header-placeholder #trusted,
#header-placeholder #contact {
    scroll-margin-top: 70px; /* Adjust this value based on actual header height */
}