/* ============================================
   RESPONSIVE STYLES
   Mobile-first responsive design with comprehensive mobile optimizations
   ============================================ */

/* ============================================
   SMOOTH SCROLLING & MOBILE OPTIMIZATION
   ============================================ */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

* {
    -webkit-touch-callout: none;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    max-width: 100%;
}

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

a,
button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================
   TABLETS AND BELOW (768px)
   ============================================ */
@media screen and (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 20px;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }

    section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* ============================================
       HEADER & NAVIGATION
       ============================================ */
    .header {
        padding: 10px 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .header-container {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        z-index: 1002;
        position: relative;
    }

    .logo img {
        max-height: 40px;
    }

    /* Show menu toggle button on mobile */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
        position: relative;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--primary-color);
        transition: all 0.3s ease;
        border-radius: 3px;
    }

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

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

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

    /* Hide nav menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 0 30px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    /* Show mobile-only nav links on mobile */
    .nav-links.mobile-only {
        display: flex;
        flex-direction: column;
    }

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

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 30px;
        text-align: right;
        font-size: 1.05rem;
    }

    .nav-links a::after {
        display: none;
    }

    /* Header actions in mobile menu */
    .header-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 20px 30px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Language switcher in mobile menu */
    .language-switcher {
        width: 100%;
        padding: 0 30px 20px;
        margin: 0;
    }

    .lang-dropdown-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        justify-content: space-between;
    }

    .lang-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 10px;
        transform: none;
    }

    .language-switcher.active .lang-dropdown-menu {
        display: block;
    }

    .lang-option {
        padding: 14px 16px;
    }

    /* Mobile menu overlay */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease-out;
    }

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

    /* ============================================
      HERO SECTION
      ============================================ */
    .hero::before,
    .hero::after {
        display: none;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
        min-height: calc(100vh - 70px);
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        overflow: hidden;
        position: relative;
    }

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(
            circle at 30% 50%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 60%
        );
        pointer-events: none;
        z-index: 0;
    }

    .hero::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 100%
        );
        pointer-events: none;
        z-index: 0;
    }

    .hero-container {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
        overflow: visible;
        animation: fadeInUp 0.8s ease-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.35;
        margin-bottom: 20px;
        color: var(--white);
        font-weight: 800;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
        letter-spacing: -0.01em;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
        margin: 0 auto 28px;
        padding: 0;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.96);
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
        font-weight: 400;
        opacity: 0.96;
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 14px;
        margin-top: 0;
        margin-bottom: 0;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        display: flex;
        padding: 0 20px;
    }

    .hero-visual {
        display: none;
    }

    .hero-visual img {
        display: none;
    }

    /* ============================================
       BUTTONS
       ============================================ */
    .btn {
        width: auto;
        max-width: 50%;
        padding: 12px 20px;
        font-size: 0.88rem;
        display: flex;
        text-align: center;
        border-radius: 50px;
        font-weight: 700;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        margin: 0 auto;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        border: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    .btn::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition:
            width 0.6s,
            height 0.6s;
    }

    .btn:active::before {
        width: 300px;
        height: 300px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 0.88rem;
        max-width: 50%;
        min-height: 46px;
        font-weight: 700;
        letter-spacing: 0;
    }

    .hero-actions .btn {
        max-width: 50%;
        width: auto;
        margin: 0 auto;
        transform: translateZ(0);
        will-change: transform;
    }

    .hero-actions .btn:active {
        transform: translateY(1px);
        box-shadow:
            0 4px 14px rgba(0, 0, 0, 0.2),
            0 1px 4px rgba(0, 0, 0, 0.12);
    }

    .btn-primary {
        background: linear-gradient(135deg, #6366f1 0%, #5b47d8 100%);
        color: #ffffff;
        box-shadow:
            0 6px 24px rgba(0, 0, 0, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.1);
        font-weight: 700;
        text-shadow: none;
    }

    .btn-primary:active {
        background: linear-gradient(135deg, #5b47d8 0%, #4c3fb8 100%);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.15),
            0 1px 4px rgba(0, 0, 0, 0.08);
        transform: translateY(2px);
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        font-weight: 700;
    }

    .btn-secondary:active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(2px);
    }

    .btn-outline {
        background: #ffffff;
        color: #6366f1;
        border: 2px solid #6366f1;
        font-weight: 700;
    }

    .btn-outline:active {
        background: #f8f9fa;
        border-color: #5b47d8;
        color: #5b47d8;
    }

    /* Pricing section buttons */
    .pricing-card .btn-primary {
        background: linear-gradient(135deg, #6366f1 0%, #5b47d8 100%);
        color: #ffffff;
    }

    .pricing-card .btn-outline {
        background: #ffffff;
        color: #6366f1;
        border: 2px solid #6366f1;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        justify-content: center;
        display: flex;
        padding: 0 20px;
        width: 100%;
    }

    .cta-button {
        width: auto;
        max-width: 50%;
        padding: 12px 20px;
        margin: 0 auto;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 700;
        min-height: 46px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    /* ============================================
       FEATURES CAROUSEL
       ============================================ */
    .features-overview::before,
    .features-overview::after {
        display: none;
    }

    .features-overview {
        padding: 60px 0 !important;
        background: linear-gradient(
            135deg,
            #eff6ff 0%,
            #e0f2fe 50%,
            #f0f9ff 100%
        ) !important;
        position: relative;
        overflow: hidden;
    }

    .features-overview::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(147, 197, 253, 0.3) 50%,
            transparent 100%
        );
    }

    .features-carousel-container {
        padding: 0 20px;
        margin-top: 40px;
        overflow: hidden;
    }

    .features-carousel {
        max-width: 100%;
        overflow: hidden;
    }

    .features-carousel-track {
        gap: 20px;
    }

    .feature-card {
        flex: 0 0 calc(100vw - 80px);
        width: calc(100vw - 80px);
        max-width: 320px;
        padding: 40px 28px;
        margin: 10px auto;
        border-radius: 18px;
        text-align: center;
        animation: fadeIn 0.6s ease-out;
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    .feature-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .carousel-nav {
        display: flex;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .feature-icon {
        width: 75px;
        height: 75px;
        margin: 0 auto 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-title {
        font-size: 1.35rem;
        margin-bottom: 16px;
        line-height: 1.35;
        font-weight: 700;
        color: #1e293b;
    }

    .feature-description {
        font-size: 1.02rem;
        line-height: 1.7;
        color: #475569;
        opacity: 0.95;
    }

    .carousel-nav {
        width: 44px;
        height: 44px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .carousel-nav svg {
        width: 22px;
        height: 22px;
    }

    .carousel-dots {
        margin-top: 30px;
        gap: 10px;
    }

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

    .carousel-dot.active {
        width: 28px;
    }

    /* ============================================
       WHAT WE PROVIDE SECTION
       ============================================ */
    .what-we-provide::before,
    .what-we-provide::after {
        display: none !important;
    }

    .what-we-provide {
        padding: 60px 0 !important;
        overflow: visible;
        background: linear-gradient(
            135deg,
            #faf5ff 0%,
            #f3e8ff 50%,
            #fdf4ff 100%
        ) !important;
        position: relative;
    }

    .provide-container {
        padding: 0 20px;
        max-width: 100%;
    }

    .provide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }

    .provide-item {
        padding: 22px 20px;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: right;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 14px;
        min-height: 70px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin: 0 auto;
        width: 100%;
    }

    .checkmark {
        width: 26px;
        height: 26px;
        min-width: 26px;
        margin-left: 16px;
        flex-shrink: 0;
    }

    .provide-text {
        flex: 1;
        line-height: 1.7;
        font-weight: 500;
    }

    /* ============================================
       ALL FEATURES SECTION
       ============================================ */
    .all-features::before,
    .all-features::after {
        display: none !important;
    }

    .all-features {
        padding: 60px 0 !important;
        background: linear-gradient(
            135deg,
            #f8fafc 0%,
            #f1f5f9 50%,
            #f8fafc 100%
        ) !important;
        position: relative;
    }

    .features-container {
        padding: 0 20px;
        max-width: 100%;
        margin: 0 auto;
    }

    .features-categories {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 0 auto;
        max-width: 100%;
    }

    .category-block {
        padding: 0;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .category-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .features-list li {
        padding: 14px 0;
        font-size: 1rem;
        line-height: 1.6;
    }

    /* ============================================
       TESTIMONIALS SECTION
       ============================================ */
    .testimonials::before,
    .testimonials::after {
        display: none;
    }

    .testimonials {
        padding: 60px 0 !important;
        background: linear-gradient(
            135deg,
            #fffbeb 0%,
            #fff7ed 50%,
            #fff 100%
        ) !important;
        position: relative;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 0 auto;
        max-width: 100%;
    }

    .testimonial-card {
        padding: 35px 25px;
        border-radius: 16px;
    }

    .quote-icon {
        font-size: 2.8rem;
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .testimonial-text {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 25px;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
        border: 3px solid rgba(255, 255, 255, 0.5);
    }

    .author-name {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .author-role {
        font-size: 0.95rem;
    }

    /* ============================================
       PRICING SECTION
       ============================================ */
    .pricing-section::before,
    .pricing-section::after {
        display: none;
    }

    .pricing-section {
        padding: 60px 0 !important;
        background: linear-gradient(
            135deg,
            #dbeafe 0%,
            #e0f2fe 50%,
            #f0f9ff 100%
        ) !important;
        position: relative;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }

    .pricing-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
        order: -1;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        padding-top: 3.5rem;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .featured-badge {
        font-size: 0.8rem;
        padding: 8px 20px;
        top: 1rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 50px;
    }

    .plan-name {
        font-size: 1.9rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .plan-price {
        margin-bottom: 20px;
    }

    .plan-price .amount {
        font-size: 3.2rem;
        font-weight: 700;
    }

    .plan-price .currency {
        font-size: 1.5rem;
    }

    .plan-price .period {
        font-size: 1.05rem;
    }

    .plan-description {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .pricing-features {
        margin-bottom: 35px;
    }

    .pricing-features li {
        font-size: 1rem;
        padding: 12px 0;
        line-height: 1.5;
    }

    .pricing-note {
        margin-top: 35px;
        padding: 25px 20px;
        border-radius: 12px;
    }

    .pricing-note p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* ============================================
       FINAL CTA SECTION
       ============================================ */
    .final-cta::before,
    .final-cta::after {
        display: none;
    }

    .final-cta {
        padding: 70px 0 !important;
        text-align: center;
        background: linear-gradient(
            135deg,
            #667eea 0%,
            #764ba2 100%
        ) !important;
        color: var(--white);
        position: relative;
        overflow: hidden;
    }

    .final-cta::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(
            circle at 70% 30%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        );
        pointer-events: none;
    }

    .final-cta .section-title,
    .final-cta .section-subtitle,
    .final-cta .cta-title,
    .final-cta .cta-subtitle {
        color: #ffffff;
    }

    .cta-title {
        font-size: 1.85rem;
        margin-bottom: 14px;
        font-weight: 800;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    .cta-subtitle {
        font-size: 1.08rem;
        margin-bottom: 32px;
        opacity: 0.96;
    }

    .cta-button {
        width: auto;
        max-width: 50%;
        padding: 12px 20px;
        margin: 0 auto;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 700;
        min-height: 46px;
    }

    /* Final CTA section button */
    .final-cta .btn {
        width: auto;
        max-width: 50%;
        padding: 12px 20px;
        margin: 0 auto;
        font-size: 0.88rem;
        min-height: 46px;
    }

    .final-cta .btn-large {
        max-width: 50%;
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    /* ============================================
       SERVICES SECTION
       ============================================ */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 auto;
        max-width: 100%;
    }

    .service-card {
        padding: 28px 20px;
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    /* ============================================
       ABOUT SECTION
       ============================================ */
    .about::before,
    .about::after {
        display: none;
    }

    .about {
        padding: 50px 0;
        background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
    }

    .about-content {
        flex-direction: column;
        gap: 35px;
    }

    .about-text,
    .about-image {
        width: 100%;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    /* ============================================
       CONTACT SECTION
       ============================================ */
    .contact::before,
    .contact::after {
        display: none;
    }

    .contact {
        padding: 60px 0 !important;
        background: linear-gradient(
            135deg,
            #e0f2fe 0%,
            #f0f9ff 100%
        ) !important;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto 30px;
        max-width: 100%;
    }

    .contact-card {
        padding: 30px 25px;
        text-align: center;
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        animation: fadeIn 0.6s ease-out;
    }

    .contact-card:active {
        transform: translateY(2px);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    }

    .contact-card-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 18px;
    }

    .contact-card-icon svg {
        width: 30px;
        height: 30px;
    }

    .contact-card-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .contact-card-text {
        font-size: 1.05rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .contact-card-link {
        font-size: 1rem;
        padding: 10px 20px;
        display: inline-block;
        border-radius: 8px;
    }

    /* Contact Form */
    .contact-form {
        max-width: 100%;
        width: 100%;
        padding: 35px 25px;
        border-radius: 16px;
        margin: 0 auto;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }

    .form-group {
        margin-bottom: 20px;
        width: 100%;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
        display: block;
    }

    .contact-form textarea {
        min-height: 140px;
        resize: vertical;
        width: 100%;
    }

    .character-count {
        font-size: 0.85rem;
        text-align: right;
    }

    .submit-button {
        width: auto;
        max-width: 65%;
        padding: 16px 32px;
        font-size: 1.05rem;
        min-height: 56px;
        margin: 20px auto 0;
        display: block;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .submit-button:active {
        transform: translateY(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .submit-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition:
            width 0.6s,
            height 0.6s;
    }

    .submit-button:active::after {
        width: 300px;
        height: 300px;
    }

    /* ============================================
       FOOTER
       ============================================ */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        padding: 0 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        text-align: center;
        padding-bottom: 25px;
        margin-bottom: 0;
    }

    .footer-about {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-logo {
        width: 100%;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .footer-logo img {
        max-height: 50px;
        margin: 0 auto;
    }

    .footer-description {
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 90%;
        margin: 15px auto;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        width: 100%;
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.95rem;
        padding: 5px 0;
        display: block;
        color: #e5e7eb;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 25px;
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    .footer-bottom .language-switcher {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-bottom .lang-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
        min-width: 80px;
    }

    /* ============================================
       SECTION SPACING & TYPOGRAPHY
       ============================================ */
    section::before,
    section::after {
        display: none !important;
    }

    section {
        padding: 60px 0;
        overflow-x: hidden;
        position: relative;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 18px;
        line-height: 1.25;
        padding: 0 24px;
        font-weight: 800;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        letter-spacing: -0.02em;
    }

    .section-subtitle {
        font-size: 1.12rem;
        line-height: 1.7;
        margin-bottom: 44px;
        padding: 0 24px;
        color: var(--text-secondary);
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        opacity: 0.95;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.3;
        text-align: center;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        text-align: center;
    }

    h3 {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 14px;
        text-align: center;
    }

    p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 18px;
        max-width: 100%;
        text-align: center;
    }

    /* ============================================
       SCROLL TO TOP BUTTON
       ============================================ */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }

    /* Smooth page transitions */
    section {
        scroll-margin-top: 80px;
    }

    /* Better image loading */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   MOBILE DEVICES (480px and below)
   ============================================ */
@media screen and (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* ============================================
       HEADER
       ============================================ */
    .header {
        padding: 8px 0;
    }

    .header-container {
        padding: 0 16px;
    }

    .logo img {
        max-height: 36px;
    }

    .nav-menu {
        width: 90%;
        max-width: 340px;
    }

    .nav-links a {
        padding: 16px 25px;
        font-size: 1rem;
    }

    .header-actions {
        padding: 20px 25px;
    }

    .language-switcher {
        padding: 0 25px 15px;
    }

    .menu-toggle {
        padding: 8px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    /* ============================================
       HERO SECTION
       ============================================ */
    .menu-toggle {
        padding: 8px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .hero {
        padding: 50px 0;
        min-height: calc(100vh - 60px);
        width: 100%;
        max-width: 100vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        gap: 0;
        padding: 0;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 1.55rem;
        margin-bottom: 18px;
        line-height: 1.35;
        word-break: break-word;
        max-width: 100%;
        font-weight: 800;
        letter-spacing: -0.01em;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin: 0 auto 24px;
        padding: 0;
        line-height: 1.6;
        max-width: 100%;
        word-break: break-word;
        font-weight: 400;
        text-align: center;
    }

    .hero-actions {
        gap: 12px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        display: flex;
        align-items: stretch;
        justify-content: center;
    }

    .hero-actions .btn {
        padding: 10px 18px;
        font-size: 0.82rem;
        width: auto;
        max-width: 45%;
        min-height: 42px;
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }

    /* ============================================
       BUTTONS
       ============================================ */
    .btn {
        padding: 14px 32px;
        font-size: 0.95rem;
        width: auto;
        max-width: 100%;
        min-height: 50px;
        border-radius: 50px;
    }

    .btn-large {
        padding: 15px 36px;
        font-size: 1.02rem;
        max-width: 100%;
        border-radius: 50px;
    }

    /* ============================================
       FEATURES CAROUSEL
       ============================================ */
    .cta-button {
        width: auto;
        max-width: 45%;
        margin: 0 auto;
        padding: 10px 18px;
        border-radius: 50px;
        min-height: 42px;
    }

    /* Final CTA section button */
    .final-cta .btn {
        width: auto;
        max-width: 45%;
        padding: 10px 18px;
        margin: 0 auto;
        font-size: 0.82rem;
        min-height: 42px;
    }

    .final-cta .btn-large {
        max-width: 45%;
        padding: 10px 18px;
        font-size: 0.82rem;
    }

    .features-overview {
        padding: 50px 0;
    }

    .features-carousel-container {
        padding: 0 15px;
        margin-top: 30px;
        overflow: hidden;
    }

    .features-carousel {
        overflow: hidden;
    }

    .feature-card {
        flex: 0 0 calc(100vw - 70px);
        width: calc(100vw - 70px);
        max-width: 300px;
        padding: 30px 20px;
        margin: 0 auto;
        text-align: center;
    }

    .carousel-nav.prev {
        left: 2px;
    }

    .carousel-nav.next {
        right: 2px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 18px;
    }

    .feature-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .feature-description {
        font-size: 0.9rem;
    }

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

    .carousel-nav.prev {
        left: 2px;
    }

    .carousel-nav.next {
        right: 2px;
    }

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

    .carousel-dots {
        margin-top: 25px;
        gap: 8px;
    }

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

    .carousel-dot.active {
        width: 24px;
    }

    /* ============================================
       SECTIONS
       ============================================ */
    .what-we-provide,
    .all-features,
    .testimonials,
    .pricing-section,
    .final-cta,
    .about,
    .contact {
        padding: 40px 0;
    }

    .provide-grid {
        padding: 0;
    }

    .provide-item {
        padding: 20px 18px;
        font-size: 1rem;
        min-height: 65px;
    }

    .checkmark {
        width: 24px;
        height: 24px;
        min-width: 24px;
        margin-left: 14px;
        flex-shrink: 0;
    }

    .provide-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .category-block {
        padding: 22px 18px;
    }

    .category-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .features-list li {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    /* ============================================
       TESTIMONIALS
       ============================================ */
    .testimonial-card {
        padding: 24px 20px;
        margin: 0 auto;
        text-align: center;
    }

    .quote-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-role {
        font-size: 0.85rem;
    }

    /* ============================================
       PRICING
       ============================================ */
    .pricing-grid {
        gap: 25px;
        max-width: 100%;
    }

    .pricing-card {
        padding: 30px 20px;
        margin: 0 auto;
        text-align: center;
    }

    .featured-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        top: 0.8rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 50px;
    }

    .pricing-card.featured {
        padding-top: 3rem;
    }

    .plan-name {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .plan-price .amount {
        font-size: 2.5rem;
    }

    .plan-price .currency {
        font-size: 1.25rem;
    }

    .plan-price .period {
        font-size: 0.9rem;
    }

    .plan-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .pricing-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .features-list .check-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 0.7rem;
    }

    .pricing-note {
        padding: 18px;
        margin-top: 25px;
    }

    .pricing-note p {
        font-size: 1rem;
    }

    /* ============================================
       FINAL CTA
       ============================================ */
    .cta-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    /* ============================================
       CONTACT
       ============================================ */
    .contact-wrapper {
        gap: 30px;
        margin: 0 auto;
        max-width: 100%;
    }

    .contact-info-cards {
        gap: 14px;
        margin: 0 auto;
        max-width: 100%;
    }

    .contact-card {
        padding: 24px 20px;
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .contact-card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .contact-card-icon svg {
        width: 26px;
        height: 26px;
    }

    .contact-card-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .contact-card-text {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .contact-card-link {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 30px 20px;
        border-radius: 14px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .form-row {
        gap: 16px;
        width: 100%;
    }

    .form-group {
        margin-bottom: 18px;
        width: 100%;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .form-group label svg {
        width: 18px;
        height: 18px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 13px 16px;
        font-size: 0.95rem;
        border-radius: 9px;
        width: 100%;
        display: block;
    }

    .contact-form textarea {
        min-height: 130px;
        width: 100%;
    }

    .submit-button {
        padding: 14px 28px;
        font-size: 1rem;
        width: auto;
        max-width: 75%;
        margin: 16px auto 0;
        display: block;
    }

    /* ============================================
       FOOTER
       ============================================ */
    .footer {
        padding: 35px 0 18px;
    }

    .footer-container {
        padding: 0 16px;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px 15px;
        padding-bottom: 20px;
        margin-bottom: 0;
    }

    .footer-about {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-logo img {
        max-height: 45px;
    }

    .footer-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 4px 0;
    }

    .footer-bottom {
        margin-top: 0;
        padding-top: 20px;
    }

    .social-links {
        gap: 12px;
        margin-top: 16px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .footer-column h4 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
        gap: 16px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-bottom .lang-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
        min-width: 70px;
    }

    /* ============================================
       TYPOGRAPHY
       ============================================ */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 14px;
        padding: 0 16px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
        padding: 0 16px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.65;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
    }

    /* ============================================
       SCROLL TO TOP
       ============================================ */
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }

    /* ============================================
       UTILITIES
       ============================================ */
    .services-grid {
        gap: 16px;
        margin: 0 auto;
    }

    .service-card {
        padding: 24px 16px;
        margin: 0 auto;
        width: 100%;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (360px and below)
   ============================================ */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 12px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header {
        padding: 8px 0;
    }

    .header-container {
        padding: 0 12px;
    }

    .logo img {
        max-height: 32px;
    }

    .nav-menu {
        width: 95%;
        max-width: 100%;
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

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

    .language-switcher {
        padding: 0 20px 12px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .hero {
        padding: 85px 0 35px;
        min-height: calc(100vh - 40px);
    }

    .hero-container {
        gap: 25px;
        padding: 10px 0;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-title {
        font-size: 1.35rem;
        margin-bottom: 16px;
        line-height: 1.35;
        max-width: 100%;
        font-weight: 800;
        letter-spacing: -0.01em;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin: 0 auto 20px;
        line-height: 1.55;
        padding: 0;
        word-break: break-word;
        max-width: 100%;
        font-weight: 400;
        text-align: center;
    }

    .hero-actions {
        gap: 10px;
        padding: 0 12px;
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: center;
    }

    .hero-actions .btn {
        padding: 9px 16px;
        font-size: 0.78rem;
        width: auto;
        max-width: 40%;
        min-height: 40px;
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }

    .hero-visual img {
        display: none;
    }

    /* Final CTA section button */
    .final-cta .btn {
        width: auto;
        max-width: 40%;
        padding: 9px 16px;
        margin: 0 auto;
        font-size: 0.78rem;
        min-height: 40px;
    }

    .final-cta .btn-large {
        max-width: 40%;
        padding: 9px 16px;
        font-size: 0.78rem;
    }

    .provide-item {
        padding: 16px 14px;
        font-size: 0.9rem;
        min-height: 60px;
        margin: 0 auto;
        width: 100%;
    }

    .checkmark {
        width: 24px;
        height: 24px;
        min-width: 24px;
        margin-left: 10px;
    }

    .features-carousel-container {
        padding: 0 10px;
        overflow: hidden;
    }

    .feature-card {
        flex: 0 0 calc(100vw - 60px);
        width: calc(100vw - 60px);
        max-width: 280px;
        padding: 25px 18px;
        margin: 0 auto;
        text-align: center;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
    }

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        margin: 0 auto 16px;
    }

    .feature-title {
        font-size: 1.05rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

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

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

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

    .btn {
        padding: 13px 28px;
        font-size: 0.9rem;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        display: block;
        border-radius: 50px;
    }

    .pricing-card {
        padding: 26px 18px;
        margin: 0 auto;
        text-align: center;
    }

    .plan-price .amount {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 28px 22px;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }

    .form-group {
        width: 100%;
    }

    .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        display: block;
    }

    .submit-button {
        width: auto;
        max-width: 70%;
        margin: 16px auto 0;
        display: block;
    }

    .footer-container {
        padding: 0 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
        padding-bottom: 15px;
        margin-bottom: 0;
    }

    .footer-about {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .footer-links {
        gap: 5px;
    }

    .footer-links a {
        font-size: 0.85rem;
        padding: 3px 0;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-bottom {
        margin-top: 0;
        padding-top: 15px;
    }
}

/* ============================================
   LARGE TABLETS (769px - 991px)
   ============================================ */
@media screen and (min-width: 769px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .features-carousel {
        max-width: 90%;
    }

    .feature-card {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .contact-info-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .form-row {
        flex-direction: row;
    }

    .form-group {
        width: 50%;
    }
}

/* ============================================
   SMALL LAPTOPS (992px - 1199px)
   ============================================ */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .features-carousel {
        max-width: 90%;
    }

    .feature-card {
        flex: 0 0 280px;
        width: 280px;
        max-width: 280px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .provide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   DESKTOP (1200px - 1399px)
   ============================================ */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .features-carousel {
        max-width: 1300px;
    }

    .feature-card {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   EXTRA LARGE SCREENS (1400px+)
   ============================================ */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .features-carousel {
        max-width: 1400px;
    }

    .feature-card {
        flex: 0 0 320px;
        width: 320px;
        max-width: 320px;
    }
}

/* ============================================
   RTL RESPONSIVE ADJUSTMENTS
   ============================================ */
[dir="rtl"] .menu-toggle {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .nav-links {
    right: 20px;
    left: 20px;
}

@media screen and (max-width: 768px) {
    [dir="rtl"] .nav-links a {
        text-align: right;
    }

    [dir="rtl"] .lang-dropdown-menu {
        right: 0;
        left: auto;
    }

    [dir="rtl"] .checkmark {
        margin-left: 15px;
        margin-right: 0;
    }

    [dir="rtl"] .features-list .check-icon {
        margin-left: 12px;
        margin-right: 0;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin: 12px 0;
    }

    .hero-actions {
        margin-top: 20px;
    }

    section {
        padding: 30px 0;
    }

    .header {
        padding: 10px 0;
    }

    .nav-links {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .btn,
    .cta-button,
    .contact-card-link,
    .footer-links a,
    .social-icon,
    .carousel-nav,
    .nav-links a,
    .lang-option {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .pricing-card:hover,
    .testimonial-card:hover,
    .contact-card:hover,
    .provide-item:hover {
        transform: none;
    }

    /* Smoother scrolling on touch */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* Better form inputs */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }

    /* Better button touch feedback */
    button:active,
    .btn:active {
        opacity: 0.8;
        transform: scale(0.98);
    }

    /* Smooth carousel swiping */
    .features-carousel-track {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .menu-toggle,
    .language-switcher,
    .footer,
    .cta-buttons,
    .hero-actions,
    .carousel-nav,
    .carousel-dots,
    .scroll-to-top,
    .contact-form {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
    }

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

    .pricing-card,
    .testimonial-card,
    .feature-card {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ============================================
   HIGH DPI DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img,
    .feature-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@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;
    }

    .carousel-nav,
    .feature-card,
    .pricing-card,
    .testimonial-card {
        transition: none !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (Future enhancement)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment when implementing dark mode */
    /*
    :root {
        --background-color: #1a1a1a;
        --text-color: #f0f0f0;
        --primary-color: #7c3aed;
    }
    */
}
