:root {
    /* Theme Colors from Audit */
    --primary-color: #9437FF; /* #007bff primary blue color before*/
    --primary-color-darker: #7720DB; /* #0056b3 darker blue color before*/
    --accent-color-gradient-start: #52B2FF; /* For hero title gradient */
    --accent-color-gradient-stop: #9437FF; /* #A043D1 darker blue color before, now same as primary */

    /* Text Colors */
    --text-color-dark: #2a2a2a; /* General dark text, headings, footer bg */
    --text-color-medium: #333;
    --text-color-light: #555;
    --text-color-on-dark-bg: #ccc; /* e.g., Footer text */
    --text-color-on-dark-bg-hover: #fff; /* e.g., Footer text hover */
    --text-color-on-dark-bg-muted: #aaa; /* New for footer muted text */
    --text-color-on-accent: #fff; /* Text on primary/accent colored backgrounds */
    --text-color-placeholder: #666; /* New for placeholder text */
    --text-color-logo-placeholder-muted: #777; /* New for muted logo item */

    /* Background Colors */
    --background-color-light-gray: #f8f9fa;
    --background-color-white: #fff;
    --background-color-white-hover: #f0f0f0; /* New for white button hover */
    --background-color-dark: var(--text-color-dark); /* Footer background, aliased to --text-color-dark */
    --background-color-placeholder: #e9ecef; /* New for placeholder background */

    /* Border Colors */
    --border-color-light: #eaeaea;
    --border-color-medium: #e0e0e0;
    --border-color-dark: #444;

    /* Highlight & Semantic Colors */
    --highlight-yellow-bg: #ffe96a;
    --highlight-yellow-text: #222;
    --success-color-green: #28a745;

    /* Main theme variables (can be overridden by user/OS preferences later) */
    --text-color: var(--text-color-dark); /* Default text color */
    --bg-color: var(--background-color-white); /* Default background */
    --heading-color: var(--text-color-dark); /* Default heading color */
    --text-color-secondary: var(--text-color-light); /* Default secondary text color */
}

/* Add Google Font import at the beginning */
@import url('https://fonts.googleapis.com/css?family=Inter:700,800&display=swap');

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--background-color-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    /* font-size: 1.5rem; Removed */
    /* font-weight: bold; Removed */
    /* color: #2a2a2a; Removed */
    /* Ensure the logo container doesn't collapse */
    line-height: 0; /* Prevent extra space */
}

.logo a {
    display: inline-block; /* Correct display for link around image */
}

.logo img {
    height: 50px; /* Increased from 40px */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it scales down */
    vertical-align: middle; /* Align nicely with nav text */
}

.logo span {
    font-weight: normal; /* If we want to style 'FAT' differently, TBD */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color); /* Primary accent color for hover */
}

.button-primary {
    background-color: var(--primary-color); /* Primary accent color */
    color: var(--text-color-on-accent);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: var(--primary-color-darker); /* Darker shade for hover */
    color: var(--text-color-on-accent);
}

.button-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-on-accent);
}

main {
    flex-grow: 1;
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

/* New Hero Styles */
#hero.hero { /* Scope to the hero section */
    padding: 80px 0 60px; /* Adjust vertical padding as needed, remove horizontal */
    text-align: left;
    background-color: transparent;
    display: block;
    min-height: auto;
    /* Content alignment will be handled by the inner .container */
}

/* Ensure container styles are correct */
.container {
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 0 2rem; /* Consistent horizontal padding */
}

/* Make the hero section's .container a flex container */
#hero.hero .container {
    display: flex;
    align-items: center; /* Vertically align text and image */
    justify-content: space-between; /* Distribute space */
    gap: 2rem; /* Add some space between text and image */
}

/* New styles for the inner content box */
.hero-content-box {
    max-width: 700px;   /* As per user's original request */
    /* We want this to define the width of the text block, not necessarily 50% */
    flex-basis: 50%; /* Changed from 60% to give more space to image */
    flex-shrink: 0; /* Prevent text box from shrinking too much */
    padding: 24px;      /* As per user's original request */
    margin-left: -24px; /* Pull left to counteract its own left padding for alignment */
    /* margin-right: auto; No longer needed with flex */
    text-align: left;
    /* Add background/border/etc. here if this box should visually stand out */
}

/* Styles for the hero image */
.hero-image-container {
    flex-basis: 70%; /* Changed from 60% to make image larger */
    text-align: right; /* Align image to the right if it's smaller than container */
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    display: block; /* Add display block to remove extra space under image */
    /* border-radius: 8px; */ /* Remove Optional: slight rounding of image corners */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */ /* Remove Optional: subtle shadow */
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5em;
    color: var(--heading-color); /* Use theme color */
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--accent-color-gradient-start) 0%, var(--accent-color-gradient-stop) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 2em;
    color: var(--text-color-secondary); /* Use theme color */
    line-height: 1.6;
}

.hero-sub .json-highlight {
    background: var(--highlight-yellow-bg);
    color: var(--highlight-yellow-text);
    border-radius: 4px;
    padding: 0 6px;
    font-weight: 600;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-on-accent);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.7em 2em;
    border: none;
    border-radius: 12px;
    margin-right: 1em;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(110, 82, 255, 0.1);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none; /* Ensure link looks like a button */
}

.cta-btn:hover {
    /* background: linear-gradient(90deg, var(--accent-color-gradient-stop) 0%, var(--accent-color-gradient-start) 100%); */
    background: var(--primary-color-darker);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); /* Adjusted to generic darker shadow */
    transform: translateY(-2px);
}

.cta-free {
    font-size: 1.1rem;
    color: var(--text-color-secondary); /* Use theme color */
    vertical-align: middle;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color-dark);
}

/* Footer Styles */
footer {
    background-color: var(--background-color-dark);
    color: var(--text-color-on-dark-bg);
    padding: 3rem 2rem 1rem; /* More padding at top, less at bottom */
    margin-top: auto; /* Ensures footer is at the bottom of the content */
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem; /* Center content and add margin below */
    gap: 2rem; /* Space between columns */
}

.footer-column {
    flex: 1; /* Allow columns to grow */
    min-width: 200px; /* Minimum width before wrapping */
    margin-bottom: 1.5rem; /* Space below each column on wrap */
}

.footer-logo-column .logo {
    /* font-size: 1.8rem; Removed */
    /* color: #fff; Removed */
    margin-bottom: 0.5rem;
}

.footer-logo-column .logo img {
    height: 45px; /* Slightly larger logo in footer */
    width: auto;
    /* Optional: Add a filter if you want a white version for the dark footer */
    /* filter: brightness(0) invert(1); */
}

.footer-logo-column .tagline {
    font-size: 0.9rem;
    color: var(--text-color-on-dark-bg-muted);
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--text-color-on-dark-bg-hover); /* White headings for footer columns */
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    color: var(--text-color-on-dark-bg); /* Light grey for links */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-color-on-dark-bg-hover); /* White on hover */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border-color-dark); /* Separator line */
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-color-on-dark-bg-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-bottom ul li a {
    color: var(--text-color-on-dark-bg-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom ul li a:hover {
    color: var(--text-color-on-dark-bg-hover); /* White on hover */
    text-decoration: underline;
}

/* Utility Classes (can be expanded) - Deleted after code audit that mentioned it was not used (only a duplicate of the .container class)
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
} */

/* Features Section */
section#features {
    background-color: var(--background-color-white); /* White background for features section */
    padding: 4rem 2rem;
}

section#features h2 {
    font-size: 2.2rem; /* Slightly larger than generic section h2 */
    margin-bottom: 3rem;
    color: var(--text-color-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto; /* Center the grid */
}

.feature-item {
    background-color: var(--background-color-light-gray); /* Light background for each feature item */
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    /* font-size: 2.5rem; Removed as we are using SVG size */
    color: var(--primary-color); /* Primary color for icon, will be inherited by SVG fill */
    margin-bottom: 1rem;
    line-height: 1; 
    display: inline-block; /* Changed from block to allow centering if text-align is center on parent */
    /* In a real case, this would be an <img> or SVG or icon font */
    /* display: block; Ensure it takes its own line if needed */
    /* line-height: 1; Adjust line height for potentially tall characters */
}

.feature-icon svg {
    width: 48px; /* Control SVG size */
    height: 48px;
    fill: currentColor; /* Inherit color from .feature-icon parent */
    vertical-align: middle; /* Helps align SVG with text if needed elsewhere */
}

.feature-item h3 {
    font-size: 1.4rem;
    color: var(--text-color-medium);
    margin-bottom: 0.75rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.5;
}

/* Pricing Section */
section#pricing {
    background-color: var(--background-color-light-gray); /* Light background for pricing */
    padding: 4rem 2rem;
}

section#pricing h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Make cards of same height if content differs */
}

.pricing-plan {
    background-color: var(--background-color-white);
    border: 1px solid var(--border-color-medium);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column; /* Align items vertically */
    justify-content: space-between; /* Push button to bottom */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pricing-plan.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Adjusted to generic darker shadow */
    position: relative;
    transform: scale(1.05); /* Make recommended plan slightly larger */
}

.pricing-plan.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-plan h3 {
    font-size: 1.6rem;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color); /* Primary color for price */
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-color-light);
    margin-left: 0.25rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1; /* Allows this section to grow, pushing button down */
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5em; /* Space for a pseudo-element checkmark */
    position: relative;
}

.plan-features li::before {
    content: '✓'; /* Checkmark */
    color: var(--success-color-green); /* Green color for checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-plan .button-outline,
.pricing-plan .button-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-top: auto; /* Ensure button is at the bottom */
}

/* Documentation Section */
section#documentation {
    background-color: var(--background-color-white); /* White background */
    padding: 4rem 2rem;
}

section#documentation h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

/* .section-subtitle is already defined and can be reused here */

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.documentation-card {
    background-color: var(--background-color-light-gray); /* Light background for cards */
    border: 1px solid var(--border-color-medium);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.documentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.doc-icon {
    /* font-size: 2.5rem; Removed as we use SVGs */
    color: var(--primary-color); /* Primary color, will be inherited by SVG fill */
    margin-bottom: 1rem;
    line-height: 1;
    display: inline-block; /* To center within the card's text-align: center */
}

.doc-icon svg {
    width: 48px; /* Consistent size with feature icons */
    height: 48px;
    fill: currentColor;
    vertical-align: middle;
}

.documentation-card h3 {
    font-size: 1.4rem;
    color: var(--text-color-medium);
    margin-bottom: 0.75rem;
}

.documentation-card p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.5;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 1.5rem;
}

.button-link {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0; /* Minimal padding, more like a link */
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.button-link:hover {
    color: var(--primary-color-darker);
    border-bottom-color: var(--primary-color-darker);
}

/* Integration Section */
section#integration {
    background-color: var(--background-color-white); /* White background */
    padding: 4rem 2rem;
}

section#integration h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

/* .section-subtitle is already defined and can be reused */

.integration-grid {
    display: grid;
    /* Adjust columns for typical logo displays, e.g., 4-6 per row */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 2rem;
    max-width: 1000px; /* Adjust max-width as needed */
    margin: 3rem auto 0; /* Add some top margin from subtitle */
    align-items: center; /* Vertically align items */
}

.integration-item {
    background-color: var(--background-color-light-gray); /* Light background for each item */
    border: 1px solid var(--border-color-medium);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Ensure a minimum height for visual consistency */
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.integration-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.integration-logo-placeholder {
    font-size: 0.9rem;
    color: var(--text-color-placeholder);
    background-color: var(--background-color-placeholder);
    width: 80px; /* Placeholder size */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.integration-item p {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    font-weight: 500;
}

/* Why Choose Us Section */
section#why-choose-us {
    background-color: var(--background-color-white); /* White background */
    padding: 4rem 2rem;
}

section#why-choose-us h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    text-align: center;
}

/* .section-subtitle is already defined and can be reused here, ensure it's centered if not already */
/* If .section-subtitle text-align isn't center, we might need a specific one or add text-align:center to #why-choose-us .container */

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; /* Slightly more gap */
    max-width: 1200px;
    margin: 3rem auto 0;
}

.reason-item {
    text-align: center;
    padding: 1.5rem;
    /* No background or border for a cleaner look on a white section bg, TBD */
}

.reason-icon svg {
    width: 56px; /* Slightly larger icons for this section */
    height: 56px;
    fill: var(--primary-color); /* Primary color */
    margin-bottom: 1.5rem;
}

.reason-item h3 {
    font-size: 1.5rem;
    color: var(--text-color-medium);
    margin-bottom: 0.75rem;
}

.reason-item p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Trusted By Section */
section#trusted-by {
    background-color: var(--background-color-light-gray); /* Light grey background */
    padding: 3rem 2rem;
    text-align: center;
}

section#trusted-by h2 {
    font-size: 1.8rem; /* Slightly smaller heading for this section */
    margin-bottom: 2.5rem;
    color: var(--text-color-medium);
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem; /* Row and column gap */
    max-width: 1000px;
    margin: 0 auto;
}

.logo-item {
    /* Placeholder styling for logos */
    font-size: 1.1rem;
    color: var(--text-color-logo-placeholder-muted);
    /* In a real scenario, you would use <img> tags and style them, often with a filter for grayscale */
    /* e.g., filter: grayscale(100%); opacity: 0.7; */
    padding: 0.5rem 1rem;
    min-width: 120px; /* Ensure some minimum width */
}

/* CTA Section */
section#cta {
    background-color: var(--primary-color); /* Primary color background */
    color: var(--text-color-on-accent); /* White text */
    padding: 4rem 2rem;
    text-align: center;
}

section#cta .container {
    max-width: 800px; /* Content within CTA can be a bit narrower */
}

section#cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color-on-accent); /* Ensure heading is white */
}

section#cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.9; /* Slightly less prominent than heading */
}

section#cta .button-primary {
    background-color: var(--background-color-white); /* White button on blue background */
    color: var(--primary-color); /* Blue text */
    padding: 0.8rem 2rem; /* Make it a bit larger */
    font-size: 1.1rem;
    border: 2px solid var(--background-color-white); /* Optional: white border */
}

section#cta .button-primary:hover {
    background-color: var(--background-color-white-hover);
    color: var(--primary-color-darker);
    border-color: var(--background-color-white-hover);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100; /* Above nav links */
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 20px;
    position: relative;
}

.hamburger-icon .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-medium); /* Was #333 */
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger-icon .line:nth-child(1) {
    top: 0;
}

.hamburger-icon .line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon .line:nth-child(3) {
    top: 100%;
    transform: translateY(-100%);
}

/* Hamburger to X animation when nav is active */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments for navigation AND HERO SECTION */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background-color: #fff; /* White background for dropdown */
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eaeaea;
    }

    .nav-links.nav-active {
        display: flex; /* Show when active */
    }

    nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid #f0f0f0; /* Separator for links */
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    nav ul li .button-outline,
    nav ul li .button-primary {
        display: block;
        margin: 0.5rem auto;
        width: calc(100% - 2rem); /* Full width with padding */
    }

    .logo img {
        height: 40px; /* Slightly smaller logo on mobile */
    }

    /* Combined and refined Hero Section mobile styles */
    #hero.hero .container {
        flex-direction: column; /* Stack text and image vertically */
        padding-top: 2rem; 
        padding-bottom: 2rem;
        align-items: flex-start; /* Align stacked items to the left */
    }

    .hero-content-box {
        flex-basis: auto; /* Allow content box to take natural height */
        width: 100%; /* Full width */
        max-width: 100%; /* Ensure it doesn't overflow */
        margin-left: 0;   /* Reset margin */
        margin-right: 0;  /* Align to left */
        padding-top: 24px;    /* Specific padding */
        padding-right: 24px;  /* Specific padding */
        padding-bottom: 24px; /* Specific padding */
        padding-left: 0;      /* Specific padding */
        text-align: left; /* Text left-aligned */
        order: 1; /* Display text above image */
        margin-bottom: 2rem; /* Space below text block */
    }

    .hero-title {
        font-size: 2.5rem; /* Adjust title size for mobile */
    }

    .hero-sub {
        font-size: 1rem; /* Adjust subtitle size for mobile */
    }

    .hero-image-container {
        flex-basis: auto; /* Allow image container to take natural height */
        width: 100%; /* Full width */
        text-align: center; /* Center image */
        order: 2; /* Display image below text */
        margin-bottom: 2rem; /* Add space between image and text */
        margin-top: 0; /* Reset top margin */
    }

    .hero-image-container img {
        max-width: 100%; /* Image scales down fully */
        height: auto; 
        margin: 0 auto; /* Center the image if it's smaller than 100% */
    }
}

/* Scroll Animation Utilities */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px); /* Optional: slight upward movement */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
} 