/* Front-page specific styles */

/* --- Global Variables (Optional, but highly recommended for consistency) --- */
:root {
    --font-primary: 'Inter', sans-serif;

    /* Light Theme Colors */
    --color-bg-light: #f8f9fa; /* Slightly off-white for body */
    --color-surface-light: #ffffff; /* For cards, modals etc. */
    --color-text-primary-light: #212529; /* Darker primary text */
    --color-text-secondary-light: #495057; /* Lighter secondary text */
    --color-text-subtle-light: #6c757d; /* For less important text */
    --color-border-light: #dee2e6; /* Subtle borders */
    --color-accent-primary: #007bff; /* A modern blue */
    --color-accent-primary-darker: #0056b3;
    --color-accent-secondary: #6f42c1; /* A nice purple as secondary accent */

    /* Dark Theme Colors (define these properly if you have a dark mode toggle) */
    --color-bg-dark: #121212; /* Very dark background */
    --color-surface-dark: #1e1e1e; /* Dark surface for cards */
    --color-text-primary-dark: #e9ecef;
    --color-text-secondary-dark: #adb5bd;
    --color-text-subtle-dark: #868e96;
    --color-border-dark: #343a40;
    --color-accent-primary-dark-theme: #3390ff; /* Lighter blue for dark theme */
    --color-accent-secondary-dark-theme: #9069d7;


    /* Spacing Units (examples) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 80px; /* Standard section padding */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- General Body Styles --- */
body {
    font-family: var(--font-primary);
    line-height: 1.7; /* Increased for readability */
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-light);
    color: var(--color-text-secondary-light); /* Default to secondary, primary for headings */
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary-light);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: var(--space-md);
}

h1 { font-size: 3.0rem; /* Example: 48px */ margin-bottom: var(--space-lg); }
h2 { font-size: 2.25rem; /* Example: 36px */ margin-bottom: var(--space-lg);} /* For .section-title */
h3 { font-size: 1.75rem; /* Example: 28px */ }
h4 { font-size: 1.25rem; /* Example: 20px */ }

.section-title { color: #0c0c0c !important;}

p {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-accent-primary-darker);
    text-decoration: underline;
}

/* --- Utility Classes (Optional) --- */
.container-max {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.section-padding {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: calc(var(--space-section) * 0.75);
        padding-bottom: calc(var(--space-section) * 0.75);
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}


/* --- Front Page Container --- */
.front-page-container {
    width: 100%;
    overflow-x: hidden;
}

/* --- Common Card Styles --- (This can be a base, then extended) */
.card-base {
    background-color: var(--color-surface-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    overflow: hidden; /* Important for child elements with radius */
}
.card-base:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Specific Card Header/Content might be needed if structure is consistent */
.card-header { /* This style was from your original structure */
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 { /* Assuming h3 inside card-header for card titles */
    font-size: 1.375rem; /* ~22px */
    margin-bottom: 0; /* Override default h3 margin */
}

.item-count {
    background-color: var(--color-accent-primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px; /* Pill shape */
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh; /* Use min-height for flexibility */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xxl) 8%; /* More responsive padding */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-primary) 100%); /* Example gradient */
    color: #fff; /* Text color for hero section */
}
.hero-section::before { /* Optional: Subtle overlay pattern or texture */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background-image: url('path/to/subtle-pattern.svg'); */
    /* opacity: 0.05; */
    z-index: 0;
}

.hero-content {
    z-index: 1; /* Above pseudo-element */
    max-width: 650px;
    text-align: left; /* Default for desktop */
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 800; /* Bolder for impact */
    margin-bottom: var(--space-lg);
    color: #fff; /* Ensure high contrast on gradient */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-xl);
    color: rgba(255,255,255,0.85); /* Slightly transparent white */
    font-weight: 400;
    max-width: 550px;
}

.cta-button {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background-color: var(--color-surface-light); /* Contrasting button on dark hero */
    color: var(--color-accent-primary); /* Text color matches accent */
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600; /* Bolder button text */
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.cta-button:hover {
    background-color: #f0f0f0; /* Slightly darker white */
    color: var(--color-accent-primary-darker);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}
.cta-button.primary { /* A primary variant */
    background-color: var(--color-accent-primary);
    color: #fff;
}
.cta-button.primary:hover {
    background-color: var(--color-accent-primary-darker);
    color: #fff;
}


.hero-visual {
    position: relative;
    width: 45%; /* Slightly more space */
    max-width: 500px;
    height: auto; /* Let aspect ratio define */
    z-index: 1;
    display: flex; /* For easier positioning of floating cards */
    align-items: center;
    justify-content: center;
}

.floating-card { /* These are inside hero-visual */
    position: absolute; /* Keep absolute positioning relative to hero-visual */
    background-color: rgba(255,255,255,0.9); /* Slightly transparent for depth */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); /* More pronounced shadow */
    width: 280px; /* Slightly larger */
    padding: var(--space-lg); /* Use padding instead of fixed height */
    overflow: visible; /* Allow shadows to extend */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.floating-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Darker subtle border */
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.floating-card .card-header h3 {
    font-size: 1.1rem;
    color: var(--color-text-primary-light); /* Ensure contrast */
}
.floating-card:hover {
    transform: translateY(-8px) rotate(-2deg); /* Add slight rotation */
    box-shadow: 0 25px 30px -10px rgba(0,0,0,0.2);
}

.card-1 { top: -20px; left: -50px; transform: rotate(-5deg); }
.card-2 { top: 120px; left: 80px; transform: rotate(3deg); z-index: 2; } /* example */
.card-3 { top: 250px; left: -30px; transform: rotate(-2deg); } /* example */


@media (max-width: 992px) { /* Tablet and below */
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: var(--space-section); /* More top padding */
    }
    .hero-content {
        max-width: 100%;
        text-align: center; /* Ensure centered text on mobile */
        margin-bottom: var(--space-xxl);
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        width: 80%;
        max-width: 400px; /* Control size on mobile */
        margin-top: 0; /* Reset margin */
        height: 350px; /* Give it some explicit height for card positioning */
    }
    /* Adjust floating card positions for stacked hero */
    .card-1 { top: 0; left: 50%; transform: translateX(-60%) rotate(-5deg); width: 220px; }
    .card-2 { top: 80px; left: 50%; transform: translateX(-40%) rotate(3deg); z-index: 2; width: 220px; }
    .card-3 { top: 180px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 200px; }
}


/* --- Features Section (Focus Scroll with Pinning) --- */
.features-section {
    position: relative; /* Needed for z-index stacking context if title overlaps */
    padding-top: var(--space-section); /* Add padding to the top of the entire section */
    padding-bottom: var(--space-section); /* Add padding to the bottom of the entire section */
    padding-left: 5%;
    padding-right: 5%;
    background-color: var(--color-surface-light);
    /* overflow: hidden;  Be careful with overflow:hidden on parent of pinned element */
}

.features-section .section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-xl); /* Reduced margin-bottom for tighter spacing to pinned container */
    color: var(--color-text-primary-light);
    line-height: 1.3;

    position: sticky;
    top: 0; /* Stick to the very top of the viewport */
    background-color: rgba(255, 255, 255, 0.95); /* Slightly more opaque for better readability */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100; /* High z-index to be above other content in section */
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-sm);
    /* Ensure the title doesn't cause horizontal scroll if its content is too wide */
    width: 100%; 
    box-sizing: border-box; /* Include padding in width calculation */
}

.features-container {
    max-width: 600px;
    min-height: 500px; /* Adjust based on card content, ensure it's enough for one card + some breathing room */
    margin: 0 auto; /* Centering the container */
    position: relative; /* Crucial for absolute positioning of child cards */
    /* border: 1px dashed red; */ /* For debugging layout */
    /* Add some top margin if the sticky title takes up too much space or feels too close */
    /* margin-top: var(--space-lg);  -- This might be needed if sticky title is very tall */
}

.feature-card {
    background-color: var(--color-surface-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    min-height: 420px; /* Ensure this is less than .features-container min-height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;

    /* Core positioning for GSAP centering */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%; /* Adjust width as needed, should be less than features-container max-width */
    max-width: 500px; /* Example max-width */

    /* GSAP will handle transforms, opacity, and visibility. 
       So, we remove initial CSS transform/opacity/visibility here.
       transition: opacity var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
       ^^^ This CSS transition might interfere with GSAP's control, remove it or ensure GSAP overwrites it.
    */
}

.feature-card .card-header {
    border-bottom: none;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
}
.feature-card .card-header h3 {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--color-text-primary-light);
    margin-bottom: var(--space-xs);
}
.feature-card .card-content p {
    font-size: 1rem;
    color: var(--color-text-secondary-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex-grow: 0;
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin: var(--space-md) auto 0;
    color: #fff;
    background-color: var(--color-accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.feature-icon svg {
    width: 28px;
    height: 28px;
}
.feature-card:hover .feature-icon {
    background-color: var(--color-accent-primary-darker);
    transform: scale(1.1);
}


/* --- Benefits Section --- */
.benefits-section {
    padding: var(--space-section) 5%;
    background-color: var(--color-bg-light); /* Or a slightly different shade like #eef2f9 */
}
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}
.benefit-item { /* Extends .card-base implicitly or explicitly */
    background-color: var(--color-surface-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.benefit-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-lg);
    color: var(--color-accent-primary);
    /* background-color: color-mix(in srgb, var(--color-accent-primary) 15%, transparent); */
    background-color: rgba(0, 123, 255, 0.1); /* Lighter accent bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-item h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary-light);
}
.benefit-item p {
    color: var(--color-text-secondary-light);
    font-size: 0.95rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: var(--space-section) 5%;
    background-color: var(--color-surface-light); /* Can be same as cards or body */
}
.testimonials-container {
    display: flex;
    flex-wrap: wrap; /* Keep wrap for responsiveness */
    gap: var(--space-xl);
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonial-card { /* Extends .card-base */
    background-color: var(--color-surface-light); /* Or a slightly different shade */
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 380px; /* Slightly wider for more text */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border-left: 4px solid var(--color-accent-primary); /* Accent border */
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.testimonial-content {
    font-style: italic;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary-light);
    font-size: 1.05rem; /* Slightly larger for quotes */
    line-height: 1.8;
    position: relative;
    padding-left: var(--space-lg); /* Space for quote icon */
}
.testimonial-content::before { /* Quotation mark styling */
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--color-accent-primary);
    opacity: 0.3;
    position: absolute;
    left: -var(--space-sm);
    top: -var(--space-md);
}
.testimonial-author {
    font-weight: 600;
    color: var(--color-text-primary-light);
    text-align: right;
    font-size: 0.9rem;
}
.testimonial-author::before {
    content: "— "; /* Em dash */
}


/* --- Call to Action Section --- */
.cta-section {
    padding: var(--space-section) 5%;
    background-color: var(--color-accent-secondary); /* Using secondary accent */
    color: #fff; /* White text on dark bg */
    text-align: center;
}
.cta-content {
    max-width: 800px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
    color: #fff; /* Ensure contrast */
    font-weight: 700;
}
.cta-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: var(--space-xl);
    color: rgba(255,255,255,0.85);
    max-width: 650px; /* Constrain paragraph width */
    margin-left: auto;
    margin-right: auto;
}
/* Reuse .cta-button styles, or create a variant */
.cta-section .cta-button {
    background-color: var(--color-surface-light);
    color: var(--color-accent-secondary); /* Text color to match section bg */
    font-size: 1.05rem;
    padding: calc(var(--space-md) * 1.2) calc(var(--space-xl) * 1.2); /* Slightly larger */
}
.cta-section .cta-button:hover {
    background-color: #f0f0f0;
    color: var(--color-accent-secondary); /* Keep text color consistent */
}

/* --- Footer --- */
.front-page-footer {
    background-color: var(--color-text-primary-light); /* Dark footer */
    color: var(--color-text-subtle-dark); /* Using a lighter text from dark theme vars for contrast */
    padding: var(--space-xxl) 5%;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping */
    gap: var(--space-lg);
}
.footer-logo {
    margin-bottom: var(--space-md); /* For mobile stacking */
}
.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: #fff; /* Brighter logo text */
}
.footer-logo p {
    font-size: 0.875rem;
    margin-bottom: 0;
}
.footer-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--color-text-subtle-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: #fff; /* Brighter hover for links */
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

/* ... existing code ... */

/* --- Dark Mode Styles --- */
html.dark .features-section {
    background-color: var(--color-bg-dark);
}

html.dark .feature-card {
    background-color: var(--color-surface-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); /* Adjusted shadow for dark */
}

html.dark .feature-card .card-header h3 {
    color: var(--color-text-primary-dark);
}

html.dark .feature-card .card-content p {
    color: var(--color-text-secondary-dark);
}

html.dark .feature-icon {
    color: var(--color-bg-dark); /* Text on icon */
    background-color: var(--color-accent-primary-dark-theme);
}

html.dark .hero-section {
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent-secondary) 70%, black) 0%, color-mix(in srgb, var(--color-accent-primary) 70%, black) 100%);
}

html.dark .hero-title {
    color: #fff;
}

html.dark .hero-subtitle {
    color: rgba(255,255,255,0.8);
}

html.dark .cta-button {
    background-color: var(--color-surface-dark);
    color: var(--color-accent-primary-dark-theme);
}

html.dark .cta-button:hover {
    background-color: color-mix(in srgb, var(--color-surface-dark) 90%, white);
}

html.dark .cta-button.primary {
    background-color: var(--color-accent-primary-dark-theme);
    color: var(--color-bg-dark);
}

html.dark .cta-button.primary:hover {
    background-color: color-mix(in srgb, var(--color-accent-primary-dark-theme) 85%, white);
}

html.dark .benefits-section {
    background-color: var(--color-surface-dark);
}

html.dark .benefit-icon {
    color: var(--color-accent-primary-dark-theme);
    background-color: rgba(51, 144, 255, 0.15);
}

html.dark .testimonials-section {
    background-color: var(--color-bg-dark);
}

html.dark .testimonial-card {
    background-color: var(--color-surface-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

html.dark .testimonial-content::before {
    color: var(--color-accent-primary-dark-theme);
}

html.dark .cta-section {
    background-color: var(--color-accent-secondary-dark-theme);
    color: #fff;
}

html.dark .front-page-footer {
    background-color: #0c0c0c;
    color: var(--color-text-subtle-dark);
}

html.dark .footer-logo h3 {
    color: #fff;
}

html.dark .footer-links a {
    color: var(--color-text-subtle-dark);
}

html.dark .footer-links a:hover {
    color: #fff;
}

html.dark .section-title {
    color: #fff !important;
}

html.dark .testimonial-content {
    color: #fff !important;
}

html.dark .testimonial-author {
    color: #ccc;
}

html.dark .benefit-item {
    color: #fff !important;
    background-color: #121212 !important;
}

html.dark .benefit-item h3 {
    color: #fff !important;
}

html.dark .benefit-item p {
    color: #aaa !important;
}

html.dark .features-section h2 {
    color: #fff !important;
    background-color: transparent !important;
}
/* --- Theme Toggle Button --- */
.theme-toggle {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    background-color: rgba(255,255,255,0.3); /* Initial transparency */
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-secondary-light);
    cursor: pointer;
    z-index: 1000; /* Ensure it's on top */
    width: 44px; /* Slightly larger */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.theme-toggle:hover {
    background-color: rgba(255,255,255,0.7);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.theme-toggle svg {
    width: 22px;
    height: 22px;
}
.dark-mode .theme-toggle {
    background-color: rgba(30,30,30,0.5);
    border-color: rgba(255,255,255,0.1);
    color: var(--color-text-primary-dark);
}
.dark-mode .theme-toggle:hover {
    background-color: rgba(45,45,45,0.8);
}


/* --- Responsive adjustments (Consolidated) --- */
/* Specific overrides for smaller elements were in original, keep if needed */
/* General responsive typography and spacing already handled above with clamp and media queries */

/* Adjustments for features section based on your previous CSS */
@media (max-width: 768px) {
    .features-container {
        min-height: 400px; /* Ensure enough space for one card */
        /* Adjust max-width if needed for smaller screens */
        /* max-width: 90%; */
    }
    .feature-card {
        padding: var(--space-lg);
        min-height: 380px; /* Adjust card height for mobile if necessary */
        /* max-width: 90%; */ /* Ensure card fits within its container on mobile */
    }
    .features-section .section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.25rem); /* Slightly smaller title on mobile */
        margin-bottom: var(--space-lg); /* Adjust spacing */
    }
}

/* Dark mode overrides using html.dark for specificity */
html.dark .theme-toggle {
    background-color: rgba(30,30,30,0.5);
    border-color: rgba(255,255,255,0.1);
    color: var(--color-text-primary-dark);
}
html.dark .theme-toggle:hover {
    background-color: rgba(45,45,45,0.8);
}