/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a3a5f;
    --accent: #e67e22;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333333;
    --transition: all 0.3s ease;
    --container-max-width: min(1200px, 92vw);
    --section-padding: clamp(2rem, 4vw, 4rem);
    --mobile-padding: clamp(1rem, 3vw, 1.5rem);
    --border-radius: 8px;
}

body {
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: clamp(14px, 1.5vw, 16px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: clamp(0.6rem, 1.5vw, 0.8rem) var(--mobile-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    flex-shrink: 0;
    z-index: 1002;
}

.logo-icon {
    width: clamp(32px, 4vw, 38px);
    height: clamp(32px, 4vw, 38px);
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.logo-text {
    font-weight: bold;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--accent);
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    margin: 2px 0;
    transition: var(--transition);
    transform-origin: center;
}

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

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

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

/* Desktop Navigation */
nav {
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: clamp(0.85rem, 1.25vw, 0.95rem);
    padding: 0.4rem 0;
    position: relative;
    white-space: nowrap;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover:after,
nav a:focus:after {
    width: 100%;
}

nav a:hover,
nav a:focus {
    color: var(--accent);
    outline: none;
}

nav a.active {
    color: var(--accent);
    font-weight: 600;
}

nav a.active::after {
    width: 100%;
}

/* CTA Button - Fixed Stretching */
.cta-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: clamp(0.5rem, 1.2vw, 0.65rem) clamp(0.8rem, 1.5vw, 1.2rem);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.85rem, 1.25vw, 0.95rem);
    min-height: 40px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    outline: none;
}

/* Mobile Navigation Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== */
/* MOBILE RESPONSIVE STYLES */
/* ==================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    nav a:after {
        display: none;
    }

    nav a.active {
        background-color: rgba(230, 126, 34, 0.1);
        color: var(--accent);
        padding-left: 1rem;
        border-radius: 4px;
    }

    /* Hide desktop CTA button in mobile nav */
    .cta-button.mobile-hidden {
        display: none;
    }

    /* Mobile CTA Button in Navigation */
    .mobile-cta-container {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-cta-container .cta-button {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        min-height: 50px;
    }
}

/* ==================== */
/* TABLET STYLES */
/* ==================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        gap: 1.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== */
/* LARGE DESKTOP OPTIMIZATIONS */
/* ==================== */

@media (min-width: 1200px) {
    .header-container {
        padding: 0.8rem 0;
    }
}

/* ==================== */
/* ACCESSIBILITY & TOUCH IMPROVEMENTS */
/* ==================== */

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none;
    }
    
    nav a:hover:after {
        width: 0;
    }
    
    nav a:active {
        background-color: rgba(230, 126, 34, 0.1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
    
    .menu-toggle span {
        transition: none;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Utility class for mobile CTA */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 3rem var(--mobile-padding);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../static/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%);
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('your-image-path.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%);
    z-index: 2;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    max-width: min(800px, 90vw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
    max-width: min(600px, 90%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttonN {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: clamp(0.75rem, 1.5vw, 0.9rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    text-decoration: none;
    min-height: 50px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-buttonN::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-buttonN:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.cta-buttonN:hover::before {
    left: 100%;
}

.cta-buttonN:active {
    transform: translateY(-1px);
}

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

.hero-content::before {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1rem;
    border-radius: 2px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* Enhanced Section Styles */
section {
    padding: var(--section-padding) var(--mobile-padding);
}

.section-header {
    text-align: center;
    max-width: min(800px, 90vw);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    color: var(--dark);
    font-size: clamp(0.95rem, 1.75vw, 1.1rem);
    line-height: 1.6;
}

/* Enhanced Services Section */
.services {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services .section-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    max-width: var(--container-max-width);
    margin: 0 auto 3rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.service-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--primary), #2c5282);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent), #d35400);
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 60px;
}

.service-features {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.service-features li {
    padding: 0.6rem 0;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.6rem;
    font-size: 1em;
    transition: all 0.3s ease;
}

.service-features li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.service-features li:hover::before {
    transform: scale(1.2);
    color: #d35400;
}

.services-cta {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
}

.services-cta .cta-button {
    background: linear-gradient(135deg, var(--primary), #2c5282);
    color: white;
    border: none;
    padding: clamp(0.9rem, 1.5vw, 1.1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    text-decoration: none;
    min-height: 55px;
    box-shadow: 0 8px 25px rgba(26, 58, 95, 0.3);
    position: relative;
    overflow: hidden;
}

.services-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.services-cta .cta-button:hover {
    background: linear-gradient(135deg, var(--accent), #d35400);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.4);
}

.services-cta .cta-button:hover::before {
    left: 100%;
}

.services-cta .cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Competitive Advantages Section */
.advantages {
    padding: var(--section-padding) 0;
    background: white;
    position: relative;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.advantage-card {
    background: white;
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.02), rgba(230, 126, 34, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-number {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), #d35400);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.4s ease;
}

.advantage-card:hover .advantage-number {
    transform: scale(1.1) rotate(10deg);
}

.advantage-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--primary), #2c5282);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent), #d35400);
}

.advantage-card:hover .advantage-icon::before {
    left: 100%;
}

.advantage-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.advantage-card h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.advantage-card:hover h3::after {
    width: 50px;
}

.advantage-card p {
    color: var(--text);
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin: 0;
    opacity: 0.9;
}

/* Stats Section */
.advantage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    max-width: var(--container-max-width);
    margin: 3rem auto 0;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.03) 0%, rgba(230, 126, 34, 0.03) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.advantage-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 58, 95, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(230, 126, 34, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px 8px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.6rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    font-size: 0.7em;
    margin-left: 2px;
    opacity: 0.8;
}

.stat-label {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    position: relative;
    padding: 0.4rem 0;
}

.stat-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 1px;
    opacity: 0.7;
}

.stat-number.counting {
    animation: pulse 0.6s ease-in-out;
}

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

/* Enhanced Impact Section */
.impact {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 58, 95, 0.1) 0%, transparent 50%);
}

.impact .section-header h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.impact .section-header h2::after {
    background: linear-gradient(135deg, var(--accent), #f97316);
}

.impact .section-header p {
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.impact-stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.impact-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(26, 58, 95, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.impact-stat:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 126, 34, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(230, 126, 34, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.impact-stat:hover::before {
    opacity: 1;
}

.impact-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--accent), #f97316);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.impact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.impact-stat:hover .impact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
}

.impact-stat:hover .impact-icon::before {
    left: 100%;
}

.impact-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.impact-number::after {
    content: attr(data-target);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--accent), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-stat:hover .impact-number::after {
    opacity: 1;
}

.impact-label {
    font-size: clamp(1rem, 1.75vw, 1.15rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.6rem;
    position: relative;
    display: inline-block;
}

.impact-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.impact-stat:hover .impact-label::after {
    width: 50px;
}

.impact-description {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.impact-stat:hover .impact-description {
    color: #cbd5e1;
    opacity: 1;
}

.impact-number.counting {
    animation: pulseGlow 0.6s ease-in-out;
}

@keyframes pulseGlow {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 0 rgba(230, 126, 34, 0);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(230, 126, 34, 0.6);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 0 rgba(230, 126, 34, 0);
    }
}

/* Testimonials Preview */
.impact-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: var(--container-max-width);
    margin: 3rem auto 2.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-preview {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.testimonial-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(26, 58, 95, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-preview:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 126, 34, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(230, 126, 34, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonial-preview:hover::before {
    opacity: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: clamp(0.95rem, 1.75vw, 1.05rem);
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 0;
    font-size: 3rem;
    color: var(--accent);
    font-family: serif;
    opacity: 0.6;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.author-avatar {
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.testimonial-preview:hover .author-avatar {
    transform: scale(1.1);
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.testimonial-preview:hover .author-avatar::before {
    left: 100%;
}

.author-info h4 {
    color: white;
    font-size: clamp(1rem, 1.75vw, 1.15rem);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.author-info p {
    color: #94a3b8;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.testimonial-preview:hover .author-info p {
    color: #cbd5e1;
    opacity: 1;
}

.impact-cta {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.impact-cta .cta-button {
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: white;
    border: none;
    padding: clamp(0.9rem, 1.5vw, 1.1rem) clamp(2rem, 4vw, 3rem);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1rem, 1.75vw, 1.15rem);
    text-decoration: none;
    min-height: 60px;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.impact-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.impact-cta .cta-button:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(249, 115, 22, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.impact-cta .cta-button:hover::before {
    left: 100%;
}

.impact-cta .cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: white;
    padding: clamp(3rem, 6vw, 5rem) var(--mobile-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.final-cta-content {
    max-width: min(800px, 90vw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.final-cta p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    opacity: 0.9;
    color: #e2e8f0;
    max-width: min(600px, 90%);
    margin-left: auto;
    margin-right: auto;
}

.final-cta-buttons {
    display: flex;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: white;
    border: none;
    padding: clamp(0.9rem, 1.5vw, 1.1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    text-decoration: none;
    min-height: 55px;
    box-shadow: 
        0 8px 25px rgba(230, 126, 34, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(234, 88, 12, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: clamp(0.9rem, 1.5vw, 1.1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    text-decoration: none;
    min-height: 55px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.cta-secondary:hover::before {
    opacity: 1;
}

.cta-contact-info {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-contact-info p {
    font-size: clamp(0.95rem, 1.75vw, 1.05rem);
    margin-bottom: 1.25rem !important;
    opacity: 0.8;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-method i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
}

.contact-method span {
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #f1f5f9;
}

/* Enhanced Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: clamp(2.5rem, 4vw, 3.5rem) var(--mobile-padding) 1.5rem;
    position: relative;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #d35400);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: scale(1.1);
}

.footer-logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.footer-tagline {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.85rem;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.25rem;
    color: white;
    font-size: clamp(1rem, 1.75vw, 1.15rem);
    font-weight: 600;
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.contact-item:hover i {
    color: #d35400;
}

.contact-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.85rem;
}

.contact-text small {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 0.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 1.25vw, 0.95rem);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
    transform: translateX(5px);
    outline: none;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
    width: 20px;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.social-link:hover,
.social-link:focus {
    background-color: var(--accent);
    transform: translateY(-3px);
    outline: none;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.newsletter-input {
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: 2px solid var(--accent);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: transparent;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-height: 40px;
}

.newsletter-btn:hover,
.newsletter-btn:focus {
    background-color: #d35400;
    transform: translateY(-2px);
    outline: none;
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.25vw, 0.85rem);
}

.footer-legal {
    display: flex;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 1.25vw, 0.85rem);
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--accent);
    outline: none;
}

.footer-legal a:hover::after,
.footer-legal a:focus::after {
    width: 100%;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    :root {
        --container-max-width: min(1200px, 92vw);
    }
    
    .header-container {
        padding: 0.6rem var(--mobile-padding);
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    nav a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .header-container {
        position: relative;
    }

    .cta-button.mobile-hidden {
        display: none;
    }

    /* Mobile layout adjustments */
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-legal {
        justify-content: center;
    }
    
    /* Improved touch targets */
    button, 
    .cta-button, 
    .cta-primary, 
    .cta-secondary,
    .newsletter-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Section padding adjustments */
    section {
        padding: clamp(1.5rem, 3vw, 2.5rem) var(--mobile-padding);
    }
    
    .hero {
        min-height: 50vh;
        padding: clamp(2rem, 6vw, 4rem) var(--mobile-padding);
    }
}

@media (max-width: 480px) {
    /* Small mobile optimizations */
    .services-grid,
    .advantages-grid,
    .impact-stats,
    .impact-testimonials,
    .advantage-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .service-card,
    .advantage-card,
    .impact-stat,
    .testimonial-preview,
    .stat-item {
        padding: 1.25rem 1rem;
    }
    
    .footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .testimonial-text {
        padding-left: 1rem;
    }
    
    .testimonial-text::before {
        font-size: 2.5rem;
        top: -5px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    :root {
        --container-max-width: min(1400px, 85vw);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.75rem;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-max-width: min(1600px, 80vw);
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .menu-toggle,
    .cta-button,
    .footer-legal,
    .social-links,
    .newsletter-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero,
    .final-cta {
        background: white !important;
        color: black !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --accent: #ffa500;
        --dark: #000000;
        --text: #000000;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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

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

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
.cta-button:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Loading animations for elements */
.service-card,
.advantage-card,
.stat-item,
.impact-stat,
.testimonial-preview {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2),
.advantage-card:nth-child(2),
.stat-item:nth-child(2),
.impact-stat:nth-child(2) {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.service-card:nth-child(3),
.advantage-card:nth-child(3),
.stat-item:nth-child(3),
.impact-stat:nth-child(3) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.service-card:nth-child(4),
.stat-item:nth-child(4),
.impact-stat:nth-child(4) {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .advantage-card:hover,
    .stat-item:hover,
    .impact-stat:hover,
    .testimonial-preview:hover,
    .contact-method:hover {
        transform: none;
    }
    
    .cta-button:hover,
    .cta-primary:hover,
    .cta-secondary:hover,
    .services-cta .cta-button:hover,
    .impact-cta .cta-button:hover {
        transform: none;
    }
    
    .service-card:active,
    .advantage-card:active,
    .stat-item:active,
    .impact-stat:active,
    .testimonial-preview:active {
        transform: scale(0.98);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .advantage-card,
    .stat-item,
    .impact-stat,
    .testimonial-preview,
    .services-cta .cta-button,
    .impact-cta .cta-button,
    .cta-primary,
    .cta-secondary,
    .service-icon,
    .advantage-icon,
    .impact-icon,
    .advantage-number {
        transition: none;
    }
    
    .service-card:hover,
    .advantage-card:hover,
    .stat-item:hover,
    .impact-stat:hover,
    .testimonial-preview:hover {
        transform: none;
    }
    
    .service-card::before,
    .service-icon::before,
    .advantage-icon::before,
    .impact-icon::before,
    .services-cta .cta-button::before,
    .impact-cta .cta-button::before,
    .cta-primary::before,
    .cta-secondary::before {
        display: none;
    }
}