/* ===== Self-Hosted Fonts (GDPR compliant - no Google tracking) ===== */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3399ff;
    --secondary-color: #2d3748;
    --accent-color: #00b4d8;
    --accent-warm: #f59e0b;        /* Gold/amber for brand differentiation */
    --accent-warm-dark: #d97706;   /* Darker gold for hover states */
    --accent-warm-light: #fbbf24;  /* Lighter gold for highlights */
    --text-color: #1a202c;
    --text-light: #4a5568;         /* Improved contrast for AAA compliance */
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --success-color: #2f855a;
    --error-color: #c53030;

    /* Spacing Scale (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Typography Scale (1.25 ratio - Major Third) */
    --text-xs: 0.8rem;      /* 12.8px */
    --text-sm: 0.9rem;      /* 14.4px */
    --text-base: 1rem;      /* 16px */
    --text-md: 1.125rem;    /* 18px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 1.875rem;   /* 30px */
    --text-3xl: 2.25rem;    /* 36px */
    --text-4xl: 3rem;       /* 48px */

    /* Icon Sizes */
    --icon-sm: 20px;
    --icon-md: 24px;
    --icon-lg: 32px;
    --icon-xl: 48px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Misc */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --focus-ring: 0 0 0 3px rgba(0, 102, 204, 0.4);
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ===== Focus Styles ===== */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Heading font - Space Grotesk for modern, techy feel */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero h1,
.service-card h3,
.nav-links a {
    font-family: 'Space Grotesk', 'Segoe UI', -apple-system, sans-serif;
}

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

ul {
    list-style: none;
}

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

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--space-9) 0;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    color: var(--secondary-color);
    position: relative;
}

/* Gold accent underline for section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-warm);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.container:has(.section-badge) {
    text-align: center;
}

.container:has(.section-badge) .section-title {
    margin-top: 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Accent Button - Distinctive brand color for key CTAs */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-dark));
    color: white;
    border-color: var(--accent-warm);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-warm-light), var(--accent-warm));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Hero accent button override for white border context */
.hero-buttons .btn-accent {
    border-color: var(--accent-warm);
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

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

.nav-logo img {
    height: 70px;
    transition: var(--transition);
}

.nav-logo .nav-logo-dark {
    display: none;
}

.nav-logo .nav-logo-white {
    display: block;
}

.navbar.scrolled .nav-logo img {
    height: 55px;
}

.navbar.scrolled .nav-logo .nav-logo-dark {
    display: block;
}

.navbar.scrolled .nav-logo .nav-logo-white {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: white;
    position: relative;
    padding: 5px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--accent-warm);
}

/* Language Switcher */
.nav-lang {
    font-weight: 700 !important;
    /* Touch target: 44px minimum for WCAG compliance */
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem !important;
    border: 2px solid currentColor;
    border-radius: var(--radius-md);
    margin-left: var(--space-2);
    font-size: var(--text-sm) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.nav-lang::after {
    display: none !important;
}

.flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--text-color);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a365d 50%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Decorative geometric shapes */
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::after {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 25px;
    padding-bottom: 20px;
    position: relative;
    animation: fadeInUp 1s ease 0.1s backwards;
}

/* Orange accent line below tagline */
.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--accent-warm);
    border-radius: 2px;
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-5);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-7);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.8s backwards;
}

.hero-availability svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-warm);
    flex-shrink: 0;
}

.hero-availability strong {
    color: var(--accent-warm);
}

.hero-buttons .btn-secondary {
    color: white;
    border-color: white;
}

.hero-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

.hero-scroll a:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== About Section ===== */
.about {
    background-color: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.about-text p strong {
    color: var(--primary-color);
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Staggered animation delays for cards */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 50ms; }
.service-card:nth-child(3) { transition-delay: 100ms; }
.service-card:nth-child(4) { transition-delay: 150ms; }
.service-card:nth-child(5) { transition-delay: 200ms; }
.service-card:nth-child(6) { transition-delay: 250ms; }

/* Reset delay on hover for immediate response */
.services-grid:hover .service-card {
    transition-delay: 0ms;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
}

.service-icon svg {
    width: var(--icon-lg);
    height: var(--icon-lg);
    color: white;
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--space-5);
}

/* Featured Card Variant */
.service-card.featured {
    border: 2px solid var(--accent-warm);
    position: relative;
}

.service-card.featured::before {
    content: 'Highlight';
    position: absolute;
    top: -12px;
    right: var(--space-5);
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-dark));
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
}

.service-card.featured .service-icon {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-dark));
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-list li {
    padding-left: var(--space-5);
    position: relative;
    color: var(--text-color);
    font-size: var(--text-sm);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Technology Stack Badges */
.service-tech-stack {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.tech-label {
    font-size: var(--text-xs);
    color: var(--text-light);
    font-weight: 500;
}

.tech-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--secondary-color);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== EPLAN Section ===== */
.eplan {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-color) 100%);
}

.eplan-intro {
    max-width: 800px;
    margin: 0 auto var(--space-7);
    text-align: center;
}

.eplan-intro p {
    font-size: var(--text-md);
    color: var(--text-light);
}

/* Differentiated EPLAN cards - smaller, horizontal accent */
.eplan .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

.eplan .service-card {
    padding: var(--space-6) var(--space-5);
    border-left: 4px solid var(--accent-warm);
    border-top: none;
}

.eplan .service-card:hover {
    border-left-color: var(--primary-color);
    transform: translateY(-5px) translateX(3px);
}

.eplan .service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.eplan .service-icon svg {
    width: var(--icon-md);
    height: var(--icon-md);
}

.eplan .service-card h3 {
    font-size: var(--text-lg);
}

.eplan .service-card p {
    font-size: var(--text-sm);
}

.eplan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.eplan-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

.eplan-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eplan-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.eplan-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.eplan-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.eplan-normen {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.eplan-normen h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.eplan-normen > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.normen-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.norm-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== Why Us Section ===== */
.why-us {
    background-color: var(--secondary-color);
    color: white;
}

.why-us .section-title {
    color: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
}

.why-us-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.5;
    margin-bottom: 15px;
}

.why-us-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.why-us-item p {
    color: rgba(255, 255, 255, 0.9); /* Improved contrast: was 0.8 */
    font-size: 0.95rem;
}

/* why-us-item on light backgrounds (outside .why-us section) */
.section:not(.why-us) .why-us-item h3 {
    color: var(--secondary-color);
}

.section:not(.why-us) .why-us-item p {
    color: var(--text-light);
}

/* ===== Social Proof Section ===== */
.social-proof {
    background-color: var(--bg-light);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 0 60px;
}

.testimonials-track {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-card.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-arrow:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.carousel-arrow:hover svg {
    stroke: white;
}

.carousel-arrow:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.15);
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.2);
}

.carousel-arrow:focus-visible svg {
    stroke: var(--primary-color);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--secondary-color);
    transition: stroke var(--transition-fast);
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0; /* Touch targets are 44px, visual dots remain 12px */
    margin-top: 16px;
}

.carousel-dot {
    /* Touch target: 44x44px minimum for WCAG compliance */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visual dot indicator */
.carousel-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    transition: all var(--transition-fast);
}

.carousel-dot:hover::after {
    border-color: var(--primary-color);
}

.carousel-dot:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.2);
}

.carousel-dot:focus-visible::after {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.3);
}

.carousel-dot.active::after {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Legacy grid (keeping for backwards compatibility) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.testimonials-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

/* Industry Badges */
.industry-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-7);
}

.industry-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: 500;
}

.industry-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.industry-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--secondary-color);
    transition: all var(--transition-fast);
}

.industry-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.testimonials-cta {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

.testimonials-cta p {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Testimonial card in carousel gets these additional styles */
.testimonials-carousel .testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    justify-content: space-between;
}

.testimonials-carousel .testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Grid testimonial cards (legacy/fallback) */
.testimonials-grid .testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-quote {
    margin-bottom: 15px;
}

.testimonial-quote svg {
    width: var(--icon-lg);
    height: var(--icon-lg);
    color: var(--primary-color);
    opacity: 0.4;
}

.testimonial-content p {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    color: var(--text-color);
    font-size: 1rem;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-lg);
}

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

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
    line-height: 1;
    color: white;
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* Certifications */
.certifications {
    text-align: center;
}

.certifications h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.cert-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cert-badge:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cert-badge svg {
    width: 24px;
    height: 24px;
    color: var(--success-color);
}

.cert-badge span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

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

    .cert-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Team Section ===== */
.team-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: 40px;
}

.team-title {
    font-size: 1.5rem;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.team-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #d97706 100%);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.team-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.team-info h4 {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Partner Network */
.partner-network {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin-top: var(--space-7);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.partner-network-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
}

.partner-network-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.partner-network-content h4 {
    font-size: var(--text-md);
    color: var(--secondary-color);
    margin-bottom: var(--space-2);
}

.partner-network-content p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .partner-network {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===== Download CTA ===== */
.download-cta {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--primary-color);
}

.download-cta-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.download-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-cta-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.download-cta-text {
    flex: 1;
}

.download-cta-text h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.download-cta-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.btn-download {
    flex-shrink: 0;
}

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

    .download-cta {
        padding: 30px 20px;
    }
}

/* ===== FAQ Section (Main Page) ===== */
.faq {
    background-color: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item-main {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item-main:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item-main summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item-main summary::-webkit-details-marker {
    display: none;
}

.faq-item-main summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item-main[open] summary::after {
    content: '−';
}

.faq-item-main summary:hover {
    color: var(--primary-color);
}

/* FAQ Content Styling (animation handled by JS) */
.faq-content {
    overflow: hidden;
}

.faq-content > p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item-main[open] summary::after {
    transform: rotate(180deg);
}

.faq-cta-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Certification Links ===== */
.cert-badge-link {
    text-decoration: none;
    cursor: pointer;
}

.cert-badge-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.cert-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px;
    font-style: italic;
}

/* ===== Portfolio Section ===== */
.portfolio {
    background-color: white;
}

/* Portfolio Carousel */
.portfolio-carousel {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 60px;
}

.portfolio-track {
    position: relative;
    overflow: hidden;
}

.portfolio-carousel .portfolio-card {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-carousel .portfolio-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.portfolio-carousel .carousel-arrow {
    top: 45%;
}

.portfolio-dots {
    margin-top: 30px;
}

/* Legacy portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.portfolio-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-placeholder svg {
    width: 40px;
    height: 40px;
    color: white;
}

.portfolio-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.portfolio-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.portfolio-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.detail-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.portfolio-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.portfolio-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
}

.portfolio-highlights li:last-child {
    margin-bottom: 0;
}

.portfolio-link {
    display: inline-block;
    margin-top: var(--space-4);
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.portfolio-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Contact Section ===== */
.contact {
    background-color: white;
}

/* Contact Urgency Banner */
.contact-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    max-width: 500px;
    margin: 0 auto var(--space-6);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 180, 216, 0.08));
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--primary-color);
    font-weight: 500;
}

.contact-urgency svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

/* Contact Process Steps */
.contact-process {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-process .process-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.contact-process .process-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-md);
    flex-shrink: 0;
}

.contact-process .process-step-content h4 {
    font-size: var(--text-sm);
    color: var(--secondary-color);
    margin: 0;
    font-weight: 600;
}

.contact-process .process-step-content p {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin: 0;
}

.contact-process .process-arrow {
    flex-shrink: 0;
}

.contact-process .process-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .contact-process {
        flex-direction: column;
        gap: var(--space-4);
    }

    .contact-process .process-arrow {
        transform: rotate(90deg);
    }

    .contact-process .process-step {
        width: 100%;
        justify-content: flex-start;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.contact-map {
    margin-top: var(--space-4);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-height: 200px;
}

.contact-map iframe {
    display: block;
    border-radius: var(--border-radius-lg);
    width: 100%;
    height: 100%;
}

/* Map Consent (GDPR) */
.map-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
}

.map-consent-content {
    text-align: center;
    max-width: 280px;
}

.map-consent-content svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: var(--space-3);
}

.map-consent-content p {
    margin: 0 0 var(--space-3);
    color: var(--text-light);
    font-size: var(--text-sm);
}

.map-consent-content p:first-of-type {
    color: var(--text-color);
    font-size: var(--text-base);
}

.map-consent-note {
    margin-top: var(--space-3) !important;
    font-size: var(--text-xs) !important;
    color: var(--text-light) !important;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-details h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-details a,
.contact-details p {
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* ===== Contact Form ===== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-light);
}

/* Placeholder contrast - WCAG 1.4.3 compliant (4.5:1 ratio) */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #5a6577;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

/* Label animation on focus */
.form-group label {
    transition: color 0.2s ease;
}

.form-group:focus-within label {
    color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Character Count */
.char-count {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
}

/* Checkbox Group */
.form-group-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

.form-group-checkbox input[type="checkbox"] {
    /* Visual size */
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    /* Expanded touch target */
    position: relative;
}

/* Invisible touch target expansion */
.form-group-checkbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.form-group-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0;
    padding-top: 2px;
}

.form-group-checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-group-checkbox label a:hover {
    color: var(--primary-dark);
}

/* Button Loading State */
.btn {
    position: relative;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn.loading .btn-text {
    opacity: 0.7;
}

.btn.loading .btn-arrow {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

.btn.loading {
    pointer-events: none;
    background-color: var(--primary-dark);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ===== CRO Enhancements ===== */

/* Label optional styling */
.label-optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

/* Button with arrow */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-cta:hover .btn-arrow {
    transform: translateX(4px);
}

.btn.loading .btn-arrow {
    display: none;
}

/* Form trust signals */
.form-trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trust-signal svg {
    width: 18px;
    height: 18px;
    color: var(--success-color);
    flex-shrink: 0;
}

/* Testimonial result badges */
.testimonial-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Testimonial Footer with Share */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.testimonial-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.testimonial-share:hover {
    background: #0077b5;
    color: white;
}

.testimonial-share svg {
    width: 18px;
    height: 18px;
}

/* Team LinkedIn Link */
.team-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.team-linkedin:hover {
    background: #0077b5;
    color: white;
}

.team-linkedin svg {
    width: 16px;
    height: 16px;
}

/* Footer Social Section */
.footer-social {
    min-width: 200px;
}

.footer-social h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #0077b5;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-cta {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Portfolio Share Buttons */
.portfolio-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-email:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 997;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-sticky-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.mobile-sticky-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    /* Add padding to footer to account for sticky bar */
    .footer {
        padding-bottom: 80px;
    }

    /* Adjust FABs position when sticky bar is visible */
    .fab-container {
        bottom: 90px;
    }

    .back-to-top {
        bottom: 90px;
    }

    .chat-widget {
        bottom: 160px;
    }

    /* Form trust signals stack on mobile */
    .form-trust-signals {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .mobile-sticky-cta {
        padding: 10px 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-sticky-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .fab-container {
        bottom: 80px;
    }

    .back-to-top {
        bottom: 80px;
    }

    .chat-widget {
        bottom: 150px;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 90px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links h4,
.footer-services h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-services li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-warm);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    gap: 10px;
}

.footer-bottom > p:first-child {
    color: rgba(255, 255, 255, 0.7); /* Improved contrast: was 0.5 */
    font-size: 0.9rem;
}

.footer-trademarks {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7); /* Improved contrast: was 0.5 */
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 8px;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-body a {
    color: var(--primary-color);
    word-break: break-word;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Link button style (for inline modal triggers) */
.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.link-button:hover {
    color: var(--primary-dark);
}

/* Footer legal buttons */
.footer-legal button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0;
    font-family: inherit;
    transition: var(--transition);
}

.footer-legal button:hover {
    color: white;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.5rem;
        color: white;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 80px 20px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .about-features {
        gap: 30px;
    }

    .eplan-card {
        flex-direction: column;
        text-align: center;
    }

    .eplan-card-icon {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .why-us-item {
        padding: 20px 10px;
    }

    .why-us-number {
        font-size: 2.5rem;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--secondary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 480px) {
    .back-to-top {
        left: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== Floating Action Buttons ===== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.fab svg {
    width: 24px;
    height: 24px;
    color: white;
}

.fab-phone {
    background: linear-gradient(135deg, var(--success-color), #38a169);
}

.fab-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(47, 133, 90, 0.4);
}

.fab-chat {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.fab-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.fab-chat .icon-close {
    display: none;
}

.fab-chat.active .icon-chat {
    display: none;
}

.fab-chat.active .icon-close {
    display: block;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== Chat Widget ===== */
.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    overflow: hidden;
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.chat-header-info strong {
    display: block;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition);
    margin: -5px;
}

.chat-close:hover {
    opacity: 1;
}

.chat-close svg {
    width: 24px;
    height: 24px;
}

.chat-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

/* FAQ Widget Styles */
.faq-widget {
    margin-bottom: 20px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--bg-light);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--border-color);
}

.faq-item p {
    padding: 12px 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* Chat Contact Options */
.chat-contact-options {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.chat-contact-options > p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.chat-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.chat-contact-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.chat-contact-btn.whatsapp {
    background: #25D366;
    color: white;
}

.chat-contact-btn.whatsapp:hover {
    background: #128C7E;
}

.chat-contact-btn.phone {
    background: var(--primary-color);
    color: white;
}

.chat-contact-btn.phone:hover {
    background: var(--primary-dark);
}

.chat-contact-btn.form {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.chat-contact-btn.form:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}

.chat-contact-btn.form svg {
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab {
        width: 50px;
        height: 50px;
    }

    .fab-tooltip {
        display: none;
    }

    .chat-widget {
        bottom: 90px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

/* ===== Print Styles ===== */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hero-scroll,
    .fab-container,
    .chat-widget,
    .back-to-top,
    .modal,
    .skip-link,
    .section-cta,
    .btn,
    form {
        display: none !important;
    }

    /* Reset backgrounds and colors for printing */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 20px 0;
    }

    .hero h1,
    .hero-subtitle {
        color: black !important;
        animation: none !important;
    }

    .why-us {
        background: white !important;
        color: black !important;
    }

    .why-us .section-title,
    .why-us-item h3,
    .why-us-item p {
        color: black !important;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 18pt;
        color: black;
    }

    /* Show URLs for links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    a[href^="mailto"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    /* Cards and grids */
    .service-card,
    .testimonial-card,
    .portfolio-card,
    .eplan-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        display: block;
    }

    .service-card,
    .testimonial-card,
    .portfolio-card {
        margin-bottom: 20px;
    }

    /* Footer */
    .footer {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }

    .footer-content {
        display: block;
    }

    .footer-brand p,
    .footer-links a,
    .footer-services li,
    .footer-bottom p {
        color: black !important;
    }

    .footer-logo {
        filter: invert(1);
    }

    /* Stats */
    .stats-grid {
        background: white !important;
        border: 1px solid #ccc;
    }

    .stat-item {
        color: black !important;
    }
}

/* ===== Reduced Motion ===== */
@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;
    }

    .hero-logo,
    .hero h1,
    .hero-subtitle,
    .hero-buttons {
        animation: none !important;
    }

    .hero-scroll {
        animation: none !important;
    }

    .animate-ready {
        opacity: 1 !important;
        transform: none !important;
    }

    .service-card:hover,
    .testimonial-card:hover,
    .cert-badge:hover {
        transform: none !important;
    }

    .btn:hover {
        transform: none !important;
    }
}

/* ===== Testimonials Carousel Mobile ===== */
@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0 50px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .testimonials-carousel .testimonial-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel,
    .portfolio-carousel {
        padding: 0 40px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .carousel-dots {
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .portfolio-carousel {
        padding: 0 50px;
        margin-top: 30px;
    }

    .portfolio-carousel .portfolio-card {
        border-radius: var(--border-radius-md);
    }
}

/* ===== Safe Area Insets (iPhone X+, notched devices) ===== */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }

    .hero {
        padding-top: calc(100px + env(safe-area-inset-top));
    }

    .fab-container {
        right: calc(30px + env(safe-area-inset-right));
        bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .back-to-top {
        left: calc(30px + env(safe-area-inset-left));
        bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .chat-widget {
        right: calc(30px + env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    @media (max-width: 480px) {
        .fab-container {
            right: calc(20px + env(safe-area-inset-right));
            bottom: calc(20px + env(safe-area-inset-bottom));
        }

        .back-to-top {
            left: calc(20px + env(safe-area-inset-left));
            bottom: calc(20px + env(safe-area-inset-bottom));
        }

        .chat-widget {
            right: calc(20px + env(safe-area-inset-right));
            left: calc(20px + env(safe-area-inset-left));
        }
    }
}

/* ===== Ultra-narrow screens (Galaxy Fold, small devices) ===== */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .hero-logo {
        width: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .nav-logo img {
        height: 50px;
    }

    .navbar.scrolled .nav-logo img {
        height: 45px;
    }

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

    .why-us-number {
        font-size: 2rem;
    }

    .service-card {
        padding: 25px 15px;
    }

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

    .contact-form {
        padding: 25px 15px;
    }

    .modal-content {
        margin: 10px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .fab {
        width: 46px;
        height: 46px;
    }

    .chat-widget {
        left: 10px;
        right: 10px;
    }
}

/* ===== Landscape phone optimization ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px 40px;
    }

    .hero-logo {
        width: 150px;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-scroll {
        display: none;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        max-height: 65vh;
    }

    .section {
        padding: 50px 0;
    }
}

/* ===== Exit Intent Popup ===== */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.exit-popup.active .exit-popup-content {
    transform: scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.exit-popup-close:hover {
    background: var(--border-color);
}

.exit-popup-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
}

.exit-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.exit-popup-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.exit-popup h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.exit-popup-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.exit-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.exit-popup-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.exit-popup-benefits li svg {
    width: 20px;
    height: 20px;
    stroke: var(--success-color, #38a169);
    flex-shrink: 0;
}

.exit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exit-popup-cta {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    justify-content: center;
}

.exit-popup-dismiss {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.exit-popup-dismiss:hover {
    color: var(--text-color);
}

/* Exit popup responsive */
@media (max-width: 480px) {
    .exit-popup-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .exit-popup h3 {
        font-size: 1.5rem;
    }

    .exit-popup-icon {
        width: 60px;
        height: 60px;
    }

    .exit-popup-icon svg {
        width: 28px;
        height: 28px;
    }
}
