/* =====================================================
   SOCIAL RECRUITING AGENTUR - STYLESHEET
   Mobile-First, SEO-Optimized, Conversion-Focused
   ===================================================== */

/* CSS Variables for consistent theming */
:root {
    /* famefact Brand Colors - Primary */
    --primary-color: #bbd8a7;        /* Positive green */
    --primary-dark: #a8c495;         /* Darker green */
    --secondary-color: #a287c1;      /* Iris */
    --accent-color: #F8CBAD;         /* Light Orange */
    --text-dark: #0D0D0D;           /* Off-Black */
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;             /* White */
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #bbd8a7;        /* Positive green */
    --error-color: #ef4444;

    /* famefact Secondary Colors */
    --greige: #D5CDC3;
    --dustygreen: #DDEBD3;
    --light-mauve: #C9B1D3;
    --icy-blue: #DEEBF7;
    --light-orange: #F8CBAD;

    /* Shadows and effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --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 10px 10px -5px rgba(0, 0, 0, 0.04);
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-medium);
}

/* =====================================================
   CONTAINER & LAYOUT
   ===================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section {
    padding: 3rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header {
    background-color: var(--bg-white);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Futura', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.logo-period {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-bottom: 0.25rem;
    display: block;
}

.logo-tagline {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
    text-decoration: none;
}

.nav-links .cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.nav-links .cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* =====================================================
   BURGER MENU STYLES
   ===================================================== */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.burger-line {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Burger menu animation when active */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--light-mauve) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-stats .stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-orange);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-weight: 500;
}

/* =====================================================
   STATS GRID
   ===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card h4 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.stat-card p {
    margin: 0;
    font-size: 0.875rem;
}

/* =====================================================
   TABLES
   ===================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 0.5rem;
    overflow: hidden;
}

.comparison-table thead {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background-color: var(--bg-light);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   TEAM SECTION
   ===================================================== */

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

.team-member {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-member h4 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 1rem;
    display: block;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

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

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background-color: var(--bg-light);
    border: 4px solid var(--primary-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.testimonial-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-stars span {
    font-size: 1.5rem;
    color: #FFD700;
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
    display: block;
}

@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
    }
}

/* =====================================================
   CASE STUDY RESULTS SECTION
   ===================================================== */

.case-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.case-result-card {
    background-color: var(--bg-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.case-result-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.case-result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.case-result-content {
    padding: 1.5rem;
}

.case-result-description {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-result-company {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.case-result-stats {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

@media (max-width: 767px) {
    .case-results-grid {
        grid-template-columns: 1fr;
    }
    
    .case-result-image {
        height: 180px;
    }
}

/* =====================================================
   PRESS SECTION
   ===================================================== */

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin: 2rem 0;
}

.press-logo {
    padding: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
}

.press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.press-logo img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .press-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .press-logo img {
        max-width: 150px;
    }
}

/* =====================================================
   CONTENT IMAGES & VISUAL BREAKS
   ===================================================== */

.content-image-section {
    margin: 4rem 0;
    text-align: center;
}

.content-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.content-image-wide {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   HIGHLIGHT STATS SECTION
   ===================================================== */

.highlight-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.highlight-stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    color: white;
    transition: var(--transition);
}

.highlight-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
}

.highlight-stat-card h3 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.highlight-stat-card p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: white;
    line-height: 1.5;
}

.stat-source {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.9;
    display: block;
}

/* =====================================================
   CTA BANNER SECTION
   ===================================================== */

.cta-banner-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
    padding: 5rem 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(187,216,167,0.1)"/><stop offset="100%" style="stop-color:rgba(187,216,167,0)"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}

.cta-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-banner-content p {
    font-size: 1.25rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .content-image {
        max-width: 100%;
    }
    
    .highlight-stats-section {
        grid-template-columns: 1fr;
    }
    
    .highlight-stat-card h3 {
        font-size: 3rem;
    }
    
    .cta-banner-section {
        padding: 3rem 0;
    }
    
    .cta-banner-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-banner-content p {
        font-size: 1rem;
    }
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.cta-box {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    margin: 2rem 0;
    border: 2px solid var(--primary-color);
}

.cta-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.cta-button-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 1.5rem 0;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-button-large:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.small-print {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* =====================================================
   FINAL STATS
   ===================================================== */

.final-stats {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 0.75rem;
}

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

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.faq-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

/* =====================================================
   RESPONSIVE - TABLET (768px and up)
   ===================================================== */

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }

    .container {
        padding: 0 2rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 2rem;
    }
}

/* =====================================================
   RESPONSIVE - DESKTOP (1024px and up)
   ===================================================== */

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }

    .hero {
        padding: 8rem 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .content-section {
        padding: 5rem 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 4rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }
}

/* Additional responsive adjustments for larger screens */
@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }

    .hero-stats {
        max-width: 1000px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
        min-height: 70vh;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    h2 {
        font-size: 1.5rem;
    }
}


/* =====================================================
   MOBILE OPTIMIZATION (below 768px)
   ===================================================== */

@media (max-width: 767px) {
    /* Show burger menu on mobile */
    .burger-menu {
        display: flex;
    }
    
    /* Mobile Navigation */
    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        text-align: left;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 2rem 2rem;
        gap: 0;
        margin: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem;
        display: block;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-links .cta-button {
        margin-top: 1rem;
        border-radius: 0.5rem;
        text-align: center;
    }

    /* Hero adjustments */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    /* Typography - mobile scaling */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Tables - make scrollable */
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* CTA */
    .cta-box {
        padding: 1.5rem;
    }

    .cta-button-large {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Touch targets - minimum 48px for accessibility */
    .nav-links a,
    .cta-button,
    .cta-button-large,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form inputs touch optimization */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        min-height: 48px;
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Grid layouts stack on mobile */
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Flex layouts wrap */
    [style*="display: flex"][style*="gap"] {
        flex-wrap: wrap;
    }
    
    /* Images full width on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Blockquotes mobile */
    blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
        font-size: 0.95rem;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    header,
    footer,
    .cta-section,
    .hero-stats {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    table, blockquote {
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: var(--text-dark);
    }
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS
   ===================================================== */

/* GPU acceleration for smooth transforms */
.stat-card,
.team-member,
.faq-item,
.cta-button-large {
    will-change: transform;
}

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

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

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

/* =====================================================
   BREADCRUMB & NAVIGATION FIXES
   ===================================================== */

/* Hide browser-generated breadcrumbs or path elements that show > symbols */
nav::before,
nav::after,
header::before,
header::after,
.breadcrumb,
.breadcrumbs,
.nav-breadcrumb,
.breadcrumb-list,
[aria-label*="breadcrumb"],
[aria-label*="Breadcrumb"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any elements containing just > symbols */
*:contains("> > >"),
*:contains(">>>"),
*:contains("> >") {
    display: none !important;
}

/* Clean up any navigation-related elements that might show path info */
.nav-path,
.page-path,
.path-info {
    display: none !important;
}

/* =====================================================
   IMPRESSUM PAGE SPECIFIC STYLES
   ===================================================== */

.hero-impressum {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-impressum h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-impressum .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.legal-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.legal-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.legal-card p {
    margin-bottom: 0;
    color: var(--text-medium);
}

.legal-text-block {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.legal-text-block h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.legal-text-block p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.team-section {
    margin-top: 4rem;
    text-align: center;
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS - LAZY LOADING
   ===================================================== */

/* Lazy loading - images show immediately */
img[loading="lazy"] {
    opacity: 1;
}

/* Aspect ratio boxes to prevent layout shift */
.aspect-ratio-box {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-box--16-9 {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-ratio-box--4-3 {
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.aspect-ratio-box--1-1 {
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
}

.aspect-ratio-box img,
.aspect-ratio-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   MOBILE-SPECIFIC HOVER STATES (Convert to Tap)
   ===================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .stat-card:hover,
    .team-member:hover,
    .testimonial-card:hover,
    .case-result-card:hover {
        transform: none;
    }
    
    /* Add active/tap states instead */
    .stat-card:active,
    .team-member:active,
    .testimonial-card:active,
    .case-result-card:active {
        transform: scale(0.98);
    }
    
    .cta-button:active,
    .cta-button-large:active {
        transform: scale(0.97);
    }
    
    /* Remove hover transform on links */
    a:hover {
        transform: none;
    }
    
    a:active {
        opacity: 0.7;
    }
}

/* =====================================================
   MOBILE LAYOUT IMPROVEMENTS
   ===================================================== */

/* Ensure content doesn't overflow viewport */
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Prevent text from being too wide */
@media (max-width: 767px) {
    p, li, td {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Safe area padding for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    header,
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* =====================================================
   MOBILE TYPOGRAPHY ENHANCEMENTS
   ===================================================== */

@media (max-width: 767px) {
    /* Better line height for readability */
    body {
        line-height: 1.6;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    /* Prevent orphans */
    p {
        orphans: 3;
        widows: 3;
    }
    
    /* Better spacing between sections */
    .content-section + .content-section {
        margin-top: 0;
    }
}

/* =====================================================
   MOBILE SCROLLBAR STYLING
   ===================================================== */

@media (max-width: 767px) {
    /* Custom scrollbar for tables */
    .comparison-table::-webkit-scrollbar {
        height: 6px;
    }
    
    .comparison-table::-webkit-scrollbar-track {
        background: var(--bg-light);
    }
    
    .comparison-table::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
}

/* =====================================================
   MOBILE FORM OPTIMIZATION
   ===================================================== */

@media (max-width: 767px) {
    /* Form groups */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Labels */
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 0.95rem;
    }
    
    /* Inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.875rem;
        font-size: 16px; /* Prevents iOS zoom */
        border: 2px solid var(--border-color);
        border-radius: 0.5rem;
        transition: border-color 0.3s ease;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--primary-color);
    }
    
    /* Checkbox and radio touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
        margin-right: 0.5rem;
    }
    
    /* Contact form popup mobile */
    .contact-popup-content {
        width: 95%;
        max-width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .contact-form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-form-buttons button {
        width: 100%;
    }
}

/* =====================================================
   CLS (Cumulative Layout Shift) PREVENTION
   ===================================================== */

/* Reserve space for images to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero image container */
.hero {
    min-height: 400px;
}

@media (max-width: 767px) {
    .hero {
        min-height: 300px;
    }
}

/* Team/testimonial image placeholders */
.team-photo,
.testimonial-image img {
    background-color: var(--bg-light);
}

/* =====================================================
   MOBILE NAVIGATION ACCESSIBILITY
   ===================================================== */

@media (max-width: 767px) {
    /* Focus trap for mobile menu */
    .nav-links.active {
        position: fixed;
        display: flex;
    }
    
    /* Overlay for menu */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Focus styles for mobile navigation */
    .nav-links a:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: -3px;
    }
}

/* =====================================================
   MOBILE PERFORMANCE HINTS
   ===================================================== */

/* Optimize rendering */
@media (max-width: 767px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* GPU acceleration for transforms */
    .nav-links,
    .burger-menu,
    .contact-popup {
        will-change: transform;
        transform: translateZ(0);
    }
}

.team-section h2 {
    margin-bottom: 1rem;
}

.team-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

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

.team-card {
    background-color: var(--bg-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.team-content {
    padding: 1.5rem;
}

.team-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.team-role {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-medium);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .hero-impressum h1 {
        font-size: 2rem;
    }
    .hero-impressum .hero-subtitle {
        font-size: 1rem;
    }
    .legal-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-image {
        height: 250px;
    }
}


/* =====================================================
   CLIENT TRUST LOGOS SECTION
   ===================================================== */

.clients-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.clients-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.clients-carousel::-webkit-scrollbar {
    height: 8px;
}

.clients-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.clients-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.clients-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.client-logo {
    flex: 0 0 auto;
    padding: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    scroll-snap-align: start;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    max-width: 150px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .client-logo img {
        max-width: 120px;
        max-height: 50px;
    }
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS - LAZY LOADING
   ===================================================== */

/* Lazy loading - images show immediately */
img[loading="lazy"] {
    opacity: 1;
}

/* Aspect ratio boxes to prevent layout shift */
.aspect-ratio-box {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-box--16-9 {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-ratio-box--4-3 {
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.aspect-ratio-box--1-1 {
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
}

.aspect-ratio-box img,
.aspect-ratio-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   ADDITIONAL RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Small mobile devices (420px and down) */
@media (max-width: 420px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .content-section {
        padding: 1.5rem 0;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .nav-links.active {
        right: 0;
        width: 100%;
    }
}

/* Mobile devices (576px and down) */
@media (max-width: 576px) {
    .hero-stats .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .cta-banner-content h2 {
        font-size: 1.5rem;
    }
}

/* Tablet landscape and small desktop (992px and down) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .stats-grid,
    .team-grid,
    .case-results-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Large desktop (1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
}

/* =====================================================
   MOBILE-SPECIFIC HOVER STATES (Convert to Tap)
   ===================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .stat-card:hover,
    .team-member:hover,
    .testimonial-card:hover,
    .case-result-card:hover {
        transform: none;
    }
    
    /* Add active/tap states instead */
    .stat-card:active,
    .team-member:active,
    .testimonial-card:active,
    .case-result-card:active {
        transform: scale(0.98);
    }
    
    .cta-button:active,
    .cta-button-large:active {
        transform: scale(0.97);
    }
    
    /* Remove hover transform on links */
    a:hover {
        transform: none;
    }
    
    a:active {
        opacity: 0.7;
    }
}

/* =====================================================
   MOBILE LAYOUT IMPROVEMENTS
   ===================================================== */

/* Ensure content doesn't overflow viewport */
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Prevent text from being too wide */
@media (max-width: 767px) {
    p, li, td {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Safe area padding for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    header,
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* =====================================================
   MOBILE SCROLLBAR STYLING
   ===================================================== */

@media (max-width: 767px) {
    /* Custom scrollbar for tables */
    .comparison-table::-webkit-scrollbar {
        height: 6px;
    }
    
    .comparison-table::-webkit-scrollbar-track {
        background: var(--bg-light);
    }
    
    .comparison-table::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
}

/* =====================================================
   MOBILE FORM OPTIMIZATION
   ===================================================== */

@media (max-width: 767px) {
    /* Form groups */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Labels */
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 0.95rem;
    }
    
    /* Inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.875rem;
        font-size: 16px; /* Prevents iOS zoom */
        border: 2px solid var(--border-color);
        border-radius: 0.5rem;
        transition: border-color 0.3s ease;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--primary-color);
    }
    
    /* Checkbox and radio touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
        margin-right: 0.5rem;
    }
    
    /* Contact form popup mobile */
    .contact-popup-content {
        width: 95%;
        max-width: 95%;;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .contact-form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-form-buttons button {
        width: 100%;
    }
}

/* =====================================================
   CLS (Cumulative Layout Shift) PREVENTION
   ===================================================== */

/* Hero image container */
.hero {
    min-height: 400px;
}

@media (max-width: 767px) {
    .hero {
        min-height: 300px;
    }
}

/* Team/testimonial image placeholders */
.team-photo,
.testimonial-image img {
    background-color: var(--bg-light);
}

/* =====================================================
   MOBILE NAVIGATION ACCESSIBILITY
   ===================================================== */

@media (max-width: 767px) {
    /* Overlay for menu */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Focus styles for mobile navigation */
    .nav-links a:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: -3px;
    }
}

/* =====================================================
   MOBILE PERFORMANCE HINTS
   ===================================================== */

/* Optimize rendering */
@media (max-width: 767px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* GPU acceleration for transforms */
    .nav-links,
    .burger-menu,
    .contact-popup {
        will-change: transform;
        transform: translateZ(0);
    }
}
