

@media (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }

    .hero-grid {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 70px;
    }

    
    .reveal-left,
    .reveal-right {
        transform: translateY(20px);
    }
    .reveal-left.revealed,
    .reveal-right.revealed {
        transform: translateY(0);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(12, 12, 13, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 24px 32px;
        gap: 12px;
        transition: right var(--transition-normal);
        z-index: 999;
        display: flex;
        align-items: stretch;
    }

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

    .navbar-menu li {
        width: 100%;
        text-align: center;
        display: block !important;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 20px;
        border-radius: var(--border-radius-sm);
        display: block;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.9);
        transition: all var(--transition-fast);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--color-accent);
        color: var(--color-white);
    }

    .mobile-only-cta {
        display: block !important;
        margin-top: 16px;
        width: 100%;
    }

    .mobile-only-cta .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

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

    .about-image-badge {
        bottom: -10px;
        right: 10px;
    }

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

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

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

    .process-grid::before {
        display: none;
    }

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

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
        --navbar-height: 70px;
    }

    h1 { font-size: clamp(2rem, 7vw, 3rem); }
    h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
    h3 { font-size: clamp(1.3rem, 4vw, 1.8rem); }

    .section-header {
        margin-bottom: 40px;
    }

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

    .stat-item {
        padding: 32px 16px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    
    .about-features {
        grid-template-columns: 1fr;
    }

    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    
    .testimonial-inner {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .mv-card {
        padding: 32px;
    }

    
    .companies-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    
    .usages-grid {
        grid-template-columns: 1fr !important;
    }

    
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    
    .page-hero {
        padding: 130px 0 70px;
    }

    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    
    /* Mobile Bottom Nav & Body Adjustment */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

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

    .whatsapp-float {
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(64px + env(safe-area-inset-bottom));
        background: rgba(12, 12, 13, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 998;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 500;
        transition: all var(--transition-fast);
        gap: 2px;
        flex: 1;
        height: 100%;
    }

    .mobile-nav-icon {
        color: rgba(255, 255, 255, 0.6);
        transition: all var(--transition-fast);
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--color-accent);
    }

    .mobile-nav-item.active .mobile-nav-icon {
        color: var(--color-accent);
        transform: translateY(-2px);
    }

    .mobile-nav-item:not(:last-child) {
        position: relative;
    }

    .mobile-nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 30px;
        background: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
        --container-padding: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    
    .hero {
        min-height: 100svh;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

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

    .btn-lg {
        padding: 14px 32px;
    }

    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    
    .product-card-image {
        height: 180px;
    }

    
    .navbar-menu {
        width: 100%;
    }

    .logo-primary {
        font-size: 0.85rem;
    }

    .logo-secondary {
        font-size: 0.55rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    
    .section-badge {
        font-size: 0.75rem;
    }

    
    .footer-wave svg {
        height: 60px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 16px;
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        left: 16px;
        right: auto;
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    
    .page-hero {
        padding: 110px 0 60px;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (hover: none) {
    .product-card:hover,
    .service-card:hover,
    .advantage-card:hover,
    .company-card:hover,
    .contact-info-card:hover,
    .about-feature:hover {
        transform: none;
    }

    .btn:hover::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .stagger-children > * {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@media print {
    .navbar,
    .footer,
    .back-to-top,
    .whatsapp-float,
    .preloader,
    .hero-particles,
    .hero-shape {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* Optimization for desktop screens with limited height (such as 1920x1080) */
@media (min-width: 1025px) and (max-height: 980px) {
    .hero-content {
        padding-top: calc(var(--navbar-height) - 10px);
    }
    
    .hero-grid {
        gap: 30px;
        min-height: calc(100vh - var(--navbar-height) + 10px);
    }
    
    .hero-badge {
        margin-bottom: 16px;
        padding: 6px 16px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.2rem);
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        margin-bottom: 30px;
    }
    
    .hero-stats {
        padding-top: 20px;
        gap: 30px;
    }
    
    .hero-stat-value {
        font-size: 1.8rem;
    }
    
    .hero-card-stack {
        max-width: 400px;
    }
    
    .hero-floating-card {
        padding: 16px;
    }
    
    .hero-floating-card.card-1 {
        top: 4%;
    }
    
    .hero-floating-card.card-2 {
        top: 38%;
    }
    
    .hero-floating-card.card-3 {
        bottom: 4%;
    }
    
    .hero-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
    }
    
    .hero-card-title {
        font-size: 0.9rem;
    }
    
    .hero-card-desc {
        font-size: 0.75rem;
    }
    
    .hero-scroll-indicator {
        bottom: 15px;
    }
}

/* Extra optimization for very short desktop viewports (e.g. height under 800px) */
@media (min-width: 1025px) and (max-height: 800px) {
    .hero-grid {
        gap: 20px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 3.5vw, 2.6rem);
        margin-bottom: 12px;
    }
    
    .hero-badge {
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .hero-buttons {
        margin-bottom: 20px;
    }
    
    .hero-stats {
        padding-top: 16px;
    }
    
    .hero-card-stack {
        max-width: 340px;
    }
}

