/* ===================================
   RESPONSIVE CSS - HI GROUP
   =================================== */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --container-padding: 1.5rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    /* Navigation Mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left var(--transition-base);
        align-items: flex-start;
        overflow-y: auto;
    }

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

    .language-switcher {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    /* Mobile menu animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

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

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

    /* Service Icons */
    .service-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

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

    /* Sections */
    .services,
    .products,
    .clients,
    .why-higroup,
    .contact {
        padding: var(--spacing-lg) 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: var(--text-3xl);
    }

    /* Service Cards */
    .service-card,
    .product-card {
        padding: 1.5rem;
    }

    .card-icon,
    .why-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg,
    .why-icon svg {
        width: 25px;
        height: 25px;
    }

    /* Clients Grid */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Why Grid */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-info {
        padding: 2rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
        --text-2xl: 1.125rem;
        --container-padding: 1rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

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

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

    /* Service Icons */
    .service-icons {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .service-icon {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .icon-circle svg {
        width: 24px;
        height: 24px;
    }

    /* Cards */
    .service-card,
    .product-card,
    .contact-info {
        padding: 1.25rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-sm);
    }

    /* Features List */
    .features-list li {
        font-size: var(--text-sm);
        padding-left: 1.25rem;
    }

    /* Clients */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .client-logo {
        padding: 0.5rem;
    }

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

    /* Why Cards */
    .why-icon {
        width: 60px;
        height: 60px;
    }

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

    /* Contact Items */
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-brand h3 {
        font-size: var(--text-xl);
    }

    .footer-column h4 {
        font-size: var(--text-base);
    }

    .footer-column ul li {
        font-size: var(--text-sm);
    }
}

/* Very Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    :root {
        --text-5xl: 1.5rem;
        --text-4xl: 1.375rem;
        --container-padding: 0.75rem;
    }

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

    .section-header h2 {
        font-size: 1.375rem;
    }

    .service-card,
    .product-card,
    .contact-info,
    .why-card {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
    }
}

/* Landscape Orientation Fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    #particleCanvas,
    .header,
    .mobile-menu-toggle,
    .hero-buttons,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section-header h2,
    .hero-title {
        color: black;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .client-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

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

    .hero-title,
    .hero-subtitle,
    .hero-buttons,
    .service-icons,
    .service-icon {
        animation: none !important;
    }
}

/* Hover Support Detection */
@media (hover: none) {
    .service-card:hover,
    .product-card:hover,
    .client-logo:hover,
    .why-card:hover .why-icon,
    .service-icon:hover .icon-circle {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}