/* !!! IMPORTANT OVERRIDES !!! */
html, body {
    background: #09090f !important;
    color: #ffffff !important;
}

body {
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(121, 114, 255, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 0% 100%, rgba(0, 213, 255, 0.1) 0%, transparent 35%) !important;
    background-attachment: fixed !important;
    overflow-x: hidden !important; /* Prevent horizontal scrolling */
}

section, main, footer, .section, nav, header, #feedback, #roi-calculator, #comparison, #reviews, #language-support, #decision-flowchart, #choose {
    background: transparent !important;
}

/* Fix hero image */
.hero {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-top: -76px !important; /* Account for nav height */
    padding: 0 !important;
    z-index: 1 !important;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

.hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: brightness(0.4) !important;
}

.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(9, 9, 15, 0.7), rgba(9, 9, 15, 0.5)) !important;
    z-index: 1 !important;
}

.hero .container {
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    padding-top: 100px !important; /* Ensure content is below navbar */
    max-width: 1200px !important;
    width: 100% !important;
}

/* Ensure consistent section styling */
section, .section {
    padding: 4rem 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    position: relative !important; /* Ensure proper stacking */
    z-index: 2 !important; /* Higher than hero background, lower than nav */
}

section:first-of-type {
    padding-top: 0 !important;
}

section + section {
    margin-top: 0 !important;
}

.section-intro {
    max-width: 800px !important;
    margin: 0 auto 2rem auto !important;
    text-align: center !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.container > h2, section > h2, .section > h2 {
    margin-bottom: 2.5rem !important;
    text-align: center !important;
    font-size: 2.25rem !important;
    color: #ffffff !important;
}

/* Consistent component styling */
.feedback-form, .calculator-container, .tool-card, .comparison-card, .matrix-container, .flowchart-container, .recommendation-card, .result-card {
    background: #16162a !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25) !important;
}

/* Fix text colors */
h1, h2, h3, h4, h5, h6, p, span, label, a {
    color: #ffffff !important;
}

p, .text-gray-600, .text-gray-700 {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Modern Reset & Base Styles */
:root {
    /* Core Colors */
    --color-bg: #09090f;
    --color-bg-light: #16162a;
    --color-surface: #16162a;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.65);
    --color-border: rgba(255, 255, 255, 0.08);

    /* Accent Colors */
    --color-accent-1: #ff6b9d;
    --color-accent-2: #00e6c0;
    --color-success: #00cc77;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.3);

    /* Sizes & Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;

    /* Improved spacing and rhythm */
    --section-spacing: 4rem;
    --card-spacing: 2rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
    background: var(--color-bg);
    background-image: 
        radial-gradient(circle at 25% 5%, rgba(121, 114, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 25%, rgba(0, 213, 255, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
}

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

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

a:hover {
    color: var(--color-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    margin-bottom: var(--space-4);
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-10) 0;
    position: relative;
    background: var(--color-bg);
}

.section:first-of-type {
    padding-top: 0;
}

.section:not(:last-child) {
    margin-bottom: var(--section-spacing);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title h2 {
    font-weight: 800;
    color: var(--color-text);
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Header & Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Very high z-index to ensure it's always on top */
    background: rgba(9, 9, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-height: 70px; /* Ensure minimum height */
}

.nav.scrolled {
    background: rgba(9, 9, 15, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
}

.nav-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    z-index: 1001;
    display: none;
    position: relative;
}

.nav-toggle svg {
    width: 28px;
    height: 28px;
    stroke: white;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.nav-toggle:hover svg {
    stroke: #7972ff;
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(121, 114, 255, 0.5);
}

/* Mobile Nav Styles - Improved accessibility */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-toggle {
        display: block !important;
        transition: color 0.2s ease;
        font-size: 2rem !important;
        position: relative !important;
        z-index: 2001 !important;
    }
    
    .nav-toggle:hover, .nav-toggle:focus {
        color: #7972ff;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 80% !important;
        max-width: 320px !important;
        background: rgba(22, 22, 42, 0.98) !important;
        z-index: 2000 !important;
        flex-direction: column !important;
        padding: 5rem 2rem 2rem !important;
        transition: all 0.3s ease-in-out !important;
        overflow-y: auto !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5) !important;
        pointer-events: auto !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links.active {
        right: 0 !important;
        transform: translateX(0) !important;
    }
    
    /* Add visual focus indicators */
    .nav-links a:focus {
        outline: 2px solid #7972ff;
        outline-offset: 4px;
        border-radius: 4px;
    }

    .nav-links li {
        margin: 0 !important;
        padding: 0.75rem 0 !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: block !important;
    }
    
    .nav-links li:last-child {
        border-bottom: none !important;
    }

    .nav-links a {
        color: white !important;
        font-size: 1.25rem !important;
        display: block !important;
        width: 100% !important;
        padding: 0.5rem 0 !important;
        position: relative !important;
        z-index: 2001 !important;
    }
    
    .nav-links a:hover {
        color: #7972ff !important;
    }
}

/* Background overlay for mobile menu */
     .nav-overlay {
    display: none;
         position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
         background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
         opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
     }

     .nav-overlay.active {
    display: block;
         opacity: 1;
}

/* Improve button accessibility */
.nav-toggle:focus {
    outline: 2px solid #7972ff;
    border-radius: 4px;
}

/* Fix mobile container padding & section spacing */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
    }
    
    /* Adjust section padding on mobile */
    section, .section {
        padding: 3rem 0 !important;
    }
    
    section:first-of-type {
        padding-top: 0 !important;
    }

    /* Smaller headings on mobile */
    .container > h2, section > h2, .section > h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix hero section for mobile */
    .hero .container {
        padding-top: 70px !important; /* Adjusted for mobile */
        z-index: 10 !important;
    }
    
    .hero h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-top: 2rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    /* Add spacing between hero CTA buttons on mobile */
    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* Make hero buttons full width on mobile */
    .hero-cta .btn {
        width: 100% !important;
        max-width: 300px !important;
    }
    
    /* Ensure tool-grid displays properly on mobile */
    .tool-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Improve tool card layout on mobile */
    .tool-card {
        padding: 1.25rem !important;
    }
    
    /* Make table scroll horizontally on mobile */
    .comparison-table-container {
        width: 100%;
        overflow-x: auto;
    }
    
    /* Make AdSense responsive on mobile */
    .adsbygoogle {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Hero Section - restore full section */
.hero {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: -76px !important; /* Account for nav height */
    padding: 0 !important;
    z-index: 1 !important;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

.hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: brightness(0.4) !important;
}

.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(9, 9, 15, 0.7), rgba(9, 9, 15, 0.5)) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important; /* Above background, below navbar */
    padding-top: 80px !important; /* Clear the navbar */
    width: 100% !important;
}

.hero h2 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    background: linear-gradient(to right, #ffffff, #a5a5ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1.5rem !important;
    margin-top: 1rem !important;
}

.hero p {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    max-width: 800px !important;
    margin: 0 auto 2.5rem auto !important;
}

/* Buttons */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background: #7972ff !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(121, 114, 255, 0.3) !important;
}

.btn-secondary {
    background: #16162a !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-primary:hover, .btn-submit:hover, #calculate-roi:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(121, 114, 255, 0.4) !important;
}

.btn-secondary:hover {
    border-color: #7972ff !important;
}

/* Cards and Grids */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
     color: var(--color-text);
}

.card-content {
    color: var(--color-text-muted);
}

/* Tool Cards - Enhanced Layout */
.tool-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tool-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(121, 114, 255, 0.3), rgba(0, 213, 255, 0.3));
    z-index: -1;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
}

.tool-card-header h3 {
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--color-text), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star-rating {
    display: flex;
    margin-bottom: var(--space-2);
    font-size: 1rem;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

.tool-price {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    margin-top: var(--space-1);
}

.tool-card-body {
    flex-grow: 1;
    margin-bottom: var(--space-6);
}

.tool-card-body p {
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

.tool-card-body h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    margin-top: var(--space-5);
    color: var(--color-text);
}

.tool-card-body ul {
    margin-bottom: var(--space-5);
}

.tool-card-body li {
    margin-bottom: var(--space-3);
    padding-left: var(--space-5);
}

.tool-card-footer {
    margin-top: auto;
}

.tool-card-footer .btn {
    width: 100%;
}

/* Comparison cards - Enhanced Layout */
.comparison-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.comparison-card {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.comparison-card h3 {
    margin-top: 0;
    text-align: center;
    color: #2563eb;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.comparison-card .features-container {
    flex-grow: 1;
    margin-bottom: 15px;
}

.comparison-card .feature-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comparison-card .feature-name {
    font-weight: 500;
  
}

.comparison-card .feature-value {

    text-align: right;
}

.comparison-card .card-button-container {
    margin-top: auto;
}

.comparison-card .btn {
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 10px 12px;
}

/* Mobile responsiveness for comparison cards */
@media (max-width: 768px) {
    .comparison-cards-container {
        flex-direction: column;
    }
    
    .comparison-card {
        margin-top: 20px;
        width: 100%;
        max-width: none;
    }
    
    .comparison-card .card-button-container {
        margin-top: 15px;
    }
}

/* Footer */
footer {
    padding: var(--space-8) 0;
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    margin-top: var(--section-spacing);
    background: var(--color-bg);
}

footer nav {
    margin: var(--space-4) 0;
}

footer a {
    color: var(--color-text-muted);
    margin: 0 var(--space-2);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--color-text);
}

.disclosure {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Animations & Effects */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.hero h2 {
    animation: fadeUp 1s ease-out forwards;
}

.hero p {
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Hover animations for cards */
.tool-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                border-color 0.5s ease;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Button effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                color 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
     width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: -1;
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-secondary-dark));
    color: white;
}

/* Animate nav links */
.nav-links a::after {
    transition: width 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95), 
                left 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 13px;
    margin-bottom: 8px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 16px); opacity: 0; }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Floating background particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

/* Logo animation */
.logo::before {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover::before {
    transform: scale(1.2) rotate(360deg);
}

/* Section transitions */
section {
    transition: opacity 0.5s ease;
}

/* Comparison table row effects */
.comparison-table tbody tr {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.comparison-table tbody tr:hover {
    transform: scale(1.01);
    background-color: var(--color-surface);
}

/* Responsive accessibility for animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Tool Grid - Restored Bento Box Style */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

#reviews .tool-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.tool-card {
    background: #16162a;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.tool-card-header {
    margin-bottom: 1rem;
}

.tool-card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tool-card-body {
    flex: 1;
}

.tool-card-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.tool-card-body ul li {
    margin-bottom: 0.5rem;
}

.tool-card-footer {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Star Rating Styles */
.star-rating {
    display: inline-flex;
    color: #FFD700;
    margin-right: 0.5rem;
}

.tool-price {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Reviews Section Fixes */
#reviews h2 {
    margin-bottom: 2rem;
}

/* Comparison Table Fixes */
.comparison-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(22, 22, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-weight: 600;
    background-color: rgba(22, 22, 42, 0.7);
}

.comparison-table a {
    color: #7972ff;
    text-decoration: none;
    transition: color 0.2s;
}

.comparison-table a:hover {
    text-decoration: underline;
    color: #00D5FF;
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .tool-card {
        margin-bottom: 1rem !important;
        padding: 1.25rem !important;
    }
    
    .tool-card-header h3 {
        font-size: 1.125rem !important;
    }
    
    .tool-card-body p, .tool-card-body li {
        font-size: 0.9375rem !important;
    }
    
    .comparison-controls {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .filter-controls {
        width: 100% !important;
    }
    
    .view-controls {
    width: 100% !important;
    }
    
    .comparison-table-container {
        overflow-x: auto !important;
        margin-bottom: 1.5rem !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .comparison-table {
        min-width: 768px !important; /* Force horizontal scroll on small screens */
    }
    
    /* Flowchart fixes */
    .flowchart-container {
        padding: 1.25rem !important;
    }
    
    .choices-container {
    display: flex !important;
    flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* Matrix container */
    .matrix-container {
        overflow-x: auto !important;
        padding-bottom: 1rem !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .language-matrix {
        min-width: 768px !important;
    }
    
    /* Fix button spacing */
    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9375rem !important;
    }
}

/* Cookie Consent Banner Improvements */
#cookie-consent-banner {
    background: rgba(22, 22, 42, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 1rem 1.5rem;
}

#cookie-consent-banner .container {
    max-width: 1200px;
    margin: 0 auto;
}

#cookie-consent-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

#cookie-consent-banner a {
    color: #7972ff;
    transition: color 0.2s ease;
}

#cookie-consent-banner a:hover {
    color: #00D5FF;
    text-decoration: underline;
}

#cookie-consent-banner button {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

#cookie-consent-accept {
    background: linear-gradient(90deg, #7972ff, #00D5FF);
    color: white;
}

#cookie-consent-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(121, 114, 255, 0.4);
}

#cookie-consent-reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#cookie-consent-reject:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Mobile Improvements for Cookie Banner */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem;
    }
    
    #cookie-consent-banner .container {
        flex-direction: column;
        padding: 0;
    }
    
    #cookie-consent-banner p {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    #cookie-consent-banner .flex {
        display: flex;
        justify-content: center;
    width: 100%;
        gap: 0.75rem;
    }
    
    #cookie-consent-banner button {
        flex: 1;
        min-width: auto;
        max-width: 150px;
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
}

/* Fix for main sections that aren't displaying properly */
main {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
}

/* Ensure button hover states work */
.btn:hover {
    transform: translateY(-2px) !important;
}

/* Remove existing z-index issues */
section::before, section::after,
.hero::before, .hero::after {
    z-index: auto !important;
}

/* Ensure forms display properly */
.feedback-form-container, .calculator-container {
    position: relative !important;
    z-index: 5 !important;
}

/* ROI Calculator & Feedback Form Styles */
.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #16162a;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.calculator-inputs, 
.calculator-results {
    flex: 1;
    min-width: 300px;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 22, 42, 0.8);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #7972ff;
    box-shadow: 0 0 0 2px rgba(121, 114, 255, 0.2);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 22, 42, 0.8);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%237972ff' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.form-select:focus {
    outline: none;
    border-color: #7972ff;
    box-shadow: 0 0 0 2px rgba(121, 114, 255, 0.2);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 22, 42, 0.8);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #7972ff;
    box-shadow: 0 0 0 2px rgba(121, 114, 255, 0.2);
}

#calculate-roi, 
.btn-submit {
    background: linear-gradient(90deg, #7972ff, #00D5FF);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(121, 114, 255, 0.3);
}

#calculate-roi:hover, 
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(121, 114, 255, 0.4);
}

#efficiency-value {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: 600;
    color: #7972ff;
}

.calculator-results h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-card {
    background: rgba(22, 22, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(121, 114, 255, 0.3);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00D5FF;
}

.result-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.roi-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.roi-note p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Feedback Form Styles */
.feedback-form-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: #16162a;
    border-radius: 1.25rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: none;
    background: transparent;
    box-shadow: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
     display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #FFD700;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .calculator-inputs, 
    .calculator-results {
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .result-card {
        padding: 0.75rem;
    }
    
    .result-value {
        font-size: 1.25rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    #calculate-roi, 
.btn-submit {
        width: 100%;
    }
    
    .feedback-form-container {
        padding: 1.5rem;
    }
    
    .rating-input label {
        font-size: 1.5rem;
    }
}

/* Color-coding styles for tool cards */
.tool-card[data-category="free"] {
    border-left: 4px solid #00cc77;
}

.tool-card[data-category="paid"] {
    border-left: 4px solid #f59e0b;
}

.tool-card[data-category="freemium"] {
    border-left: 4px solid #7972ff;
}

/* Additional tool card enhancements */
.tool-highlight {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(121, 114, 255, 0.1);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7972ff;
    margin-top: 0.5rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.tool-badge.popular {
    background: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
}

.tool-badge.new {
    background: rgba(0, 230, 192, 0.1);
    color: #00e6c0;
}

/* Fix choices-container styles */
.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.choice-btn {
    padding: 1rem;
    background: rgba(22, 22, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
}

.choice-btn:hover {
    background: rgba(121, 114, 255, 0.1);
    border-color: #7972ff;
    transform: translateY(-2px);
}

/* Fix language matrix styles */
.language-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.language-matrix th,
.language-matrix td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-matrix th {
    font-weight: 600;
    background-color: rgba(22, 22, 42, 0.7);
    position: sticky;
    top: 0;
    z-index: 10;
}

.language-matrix td {
    background: rgba(22, 22, 42, 0.5);
}

.language-matrix tr:hover td {
    background: rgba(22, 22, 42, 0.7);
}

/* Matrix color coding */
.excellent, .good, .moderate {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
    text-align: center;
}

.excellent {
    background: rgba(0, 204, 119, 0.15);
    color: #00cc77;
}

.good {
    background: rgba(121, 114, 255, 0.15);
    color: #7972ff;
}

.moderate {
    background: rgba(255, 159, 28, 0.15);
    color: #ff9f1c;
}

.matrix-legend {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.legend-color.excellent {
    background: rgba(0, 204, 119, 0.8);
}

.legend-color.good {
    background: rgba(121, 114, 255, 0.8);
}

.legend-color.moderate {
    background: rgba(255, 159, 28, 0.8);
}

.legend-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.matrix-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Matrix mobile swipe indicator */
.matrix-container::after {
    content: "← Swipe to view more →";
    display: none;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 0;
    background: rgba(22, 22, 42, 0.9);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 1.25rem 1.25rem;
    transition: opacity 0.3s ease;
}

.matrix-container.has-overflow::after {
    display: block;
}

.matrix-container.scrolled::after {
    opacity: 0;
    pointer-events: none;
}

/* Decision Flowchart Styling */
.flowchart-container {
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(22, 22, 42, 0.7);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.flowchart-question {
    background: rgba(16, 16, 32, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flowchart-result {
    background: rgba(16, 16, 32, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Hidden by default, shown via JS */
}

#current-question {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    color: #fff;
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.choice-btn {
    padding: 1rem 1.5rem;
    background: rgba(22, 22, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    font-size: 1rem;
}

.choice-btn:hover {
    background: rgba(121, 114, 255, 0.2);
    border-color: #7972ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

#restart-flowchart {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#restart-flowchart:hover {
    background: rgba(121, 114, 255, 0.2);
    border-color: #7972ff;
    transform: translateY(-2px);
}

.recommendation-card {
    background: rgba(22, 22, 42, 0.9);
    border-radius: 1rem;
    padding: 1.75rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#recommendation-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
}

#recommendation-reason {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

#recommendation-link {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #7972ff, #00D5FF);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#recommendation-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(121, 114, 255, 0.4);
}

/* Comparison styles */
.comparison-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.comparison-controls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(22, 22, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.recommendation-cta .btn {
    margin-top: 1.5rem;
    display: inline-block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .choices-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Matrix Styles */
    .matrix-container {
        padding: 1rem;
        margin-bottom: 3rem;
        overflow-x: auto;
    }
    
    .matrix-container::after {
        display: block;
    }
    
    .language-matrix {
        min-width: 650px;
    }
    
    .language-matrix th,
    .language-matrix td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .excellent, .good, .moderate {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .matrix-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    /* Mobile Flowchart Styles */
    .flowchart-container {
        padding: 1.25rem;
    }
    
    .flowchart-question,
    .flowchart-result {
        padding: 1.25rem;
    }
    
    #current-question {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .choices-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .choice-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-header h3 {
        margin-bottom: 1rem;
    }
    
    #restart-flowchart {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .recommendation-card {
        padding: 1.25rem;
    }
    
    #recommendation-name {
        font-size: 1.25rem;
    }
    
    /* Mobile Tool Grid */
    .tool-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile Comparison Controls */
    .comparison-controls {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .filter-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .matrix-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        width: calc(100% + 2rem);
    }
    
    .matrix-legend {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flowchart-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        width: calc(100% + 2rem);
    }
}