/**
 * GC Technologies - Mobile Responsive Styles
 * Optimized for devices < 768px
 */

@media (max-width: 767px) {
    /* Typography */
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
        --container-padding: 1rem;
    }

    /* Header */
    .navbar {
        padding: var(--space-3) 0;
    }

    .navbar-wrapper {
        gap: var(--space-4);
    }

    .logo-img {
        height: 28px;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-6);
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    body.rtl .navbar-menu {
        transform: translateX(100%);
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--space-4);
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: var(--space-2);
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .navbar-actions {
        margin-top: var(--space-4);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        min-height: 420px;
        margin-top: 60px;
    }

    .hero-carousel {
        height: 420px;
    }

    .hero-content {
        padding: var(--space-6) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }

    .hero-arrow-prev {
        left: var(--space-3);
    }

    .hero-arrow-next {
        right: var(--space-3);
    }

    /* Solutions Grid */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .solution-card:nth-child(1),
    .solution-card:nth-child(2),
    .solution-card:nth-child(3),
    .solution-card:nth-child(4),
    .solution-card:nth-child(5),
    .solution-card:nth-child(6) {
        grid-column: span 1;
    }

    .solution-card {
        padding: var(--space-6);
    }

    .solution-icon {
        width: 48px;
        height: 48px;
        font-size: var(--text-xl);
    }

    .solution-title {
        font-size: var(--text-xl);
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: var(--text-2xl);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .stat-label {
        font-size: var(--text-sm);
    }

    /* Grid System */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Sections */
    .section {
        padding: var(--space-12) 0;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-subtitle {
        font-size: var(--text-base);
    }

    /* CTA */
    .cta-card {
        padding: var(--space-12) var(--space-5);
    }

    .cta-title {
        font-size: var(--text-3xl);
    }

    .cta-description {
        font-size: var(--text-base);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-button {
        width: 100%;
    }

    /* Back to Top */
    .back-to-top {
        bottom: var(--space-5);
        right: var(--space-5);
        width: 40px;
        height: 40px;
    }

    body.rtl .back-to-top {
        right: auto;
        left: var(--space-5);
    }

    /* Search */
    .search-container {
        width: 95%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-submit {
        width: 100%;
    }

    /* Cards */
    .card {
        padding: var(--space-5);
    }

    .card-img {
        height: 160px;
    }
}
