/* ===== MOBILE SPECIFIC STYLES ===== */

/* Mobile Header */
@media (max-width: 768px) {
    .header {
        padding: 10px;
        flex-direction: column;
        gap: 0.75rem;
        position: fixed;
    }

    .header__nav {
        justify-content: space-between;
    }

    .header__nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-gray);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .header__nav-links--open {
        display: flex;
    }

    .header__mobile-menu-button {
        display: block !important;
        background: none;
        border: none;
        color: var(--light-gray);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .header__language-selector {
        order: -1;
    }

    .header__cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        padding-top: 92px;
        height: calc(100vh - 92px);
    }
    .hero__text-content {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    .hero__title {
        font-size: 24px;
        padding: 0 0.5rem;
        line-height: 1.2;
        display: block;
        text-align: center;
        max-width: 100%;
        width: 100%;
        /* word-wrap: break-word; */
        /* overflow-wrap: break-word; */
        hyphens: auto;
        letter-spacing: -1px;
        box-sizing: border-box;
        white-space: normal;
    }

    .hero__title br {
        display: block;
        line-height: 1.2;
    }

    .hero__tag {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 60px;
        font-size: 22px;
        margin: 20px 0;
    }

    .hero__content {
        margin-top: 0;
    }

    .hero__scroll-indicator {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {

    
    .hero__text-content {
        padding: 0 0.25rem;
        margin-top: 20px;
    }
    
}

/* Desktop Footer - Reset mobile changes */
@media (min-width: 769px) {
    .footer__section {
        order: unset !important;
        margin-bottom: 0 !important;
    }
    
    .footer__section:first-child {
        order: unset !important;
        margin-right: 140px !important;
        margin-bottom: 0 !important;
    }
    
    .footer__section:nth-child(2),
    .footer__section:nth-child(3) {
        order: unset !important;
    }
    
    .footer__section:first-child {
        display: block !important;
        gap: unset !important;
    }
    
    .footer__logo {
        order: unset !important;
        margin-bottom: 1.5rem !important;
    }
    
    .footer__cta-button {
        order: unset !important;
        margin-top: 1rem !important;
    }
}

/* Mobile Services */
@media (max-width: 768px) {
    .services {
        padding: 0 10px;
    }

    .services__title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .services__card {
        padding: 2rem 1.5rem;
        text-decoration: none;
    }

    .services__card-title {
        font-size: 1.3rem;
    }

    .services__card-description {
        font-size: 0.9rem;
        margin-top: 1rem;
        line-height: 1.5;
    }

    .services__card-button {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Statistics */
@media (max-width: 768px) {
    .statistics {
        padding: 60px 30px;
        height: 100%;
    }

    .statistics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        align-items: start;
        justify-items: stretch;
    }

    .statistics__content {
        position: relative;
        width: calc(100% - 20px);
        bottom: 122px;
        height: auto;
        min-height: 100%;
    }

    .statistics__circle {
        width: 120px;
        height: 120px;
        font-size: 32px;
        margin: 0 auto;
    }

    .statistics__description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .statistics__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .statistics__info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    .statistics__info-title {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: 20px;
        margin: 0;
        padding: 0;
    }
    .statistics__info-description {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        margin-top: 15px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    .statistics__item:hover::after {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .statistics__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
        justify-items: stretch;
        display: grid;
    }

    .statistics__content {
        width: 100%;
        display: block;
    }

    .statistics__circle {
        width: 120px;
        height: 120px;
        font-size: 32px;
        margin: 0 auto;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 10px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 60px 30px;
        text-align: center;
    }
    .footer__grid {
        padding: 0;
        gap: 0;
    }

    .footer__section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer__section:first-child {
        order: 1;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer__section:nth-child(2) {
        margin-top: 60px;
        margin-bottom: 0;
        order: 2;
    }

    .footer__section h3 {
        font-size: 20px;
    }

    .footer__section:nth-child(2) h3,
    .footer__links li,
    .footer__section:nth-child(3) h3,
    .footer__contact-info a,
    .footer__contact-info p {
        margin-bottom: 45px;
    }

    .footer__contact-info a,
    .footer__social-icons {
        font-size: 20px;
    }

    .footer__social-icons a,
    .footer__contact-info div {
        margin-bottom: 0px;
    }

    .footer__section:nth-child(3) {
        order: 3;
        margin-bottom: 0;
    }
    
    .footer__section:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer__logo {
        order: 1;
        margin-bottom: 0;
    }
    
    .footer__cta-button {
        order: 2;
        margin-top: 0;
    }

    .footer__section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer__logo {
        font-size: 32px;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .footer__logo br {
        display: none;
    }

    .footer__cta-button {
        width: 70%;
        padding: 1rem;
        font-size: 1rem;
    }

    .footer__social-icons {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .footer__social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .footer__contact-info p {
        font-size: 18px;
        margin-bottom: 45px;
    }
}

/* Mobile Modals */
@media (max-width: 768px) {
    .services__modal-content,
    .footer__modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10px;
        border-radius: 10px;
        height: calc(100vh - 92px);
        
    }

    .services__modal-close,
    .footer__modal-close {
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }

    .footer__contact-form input,
    .footer__contact-form textarea {
        width: 100%;
        /* margin-bottom: 1rem; */
        font-size: 1rem;
    }

    .footer__contact-form button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Mobile Touch Interactions */
@media (max-width: 768px) {
    .services__card,
    .statistics__item,
    .footer__social-icons a {
        -webkit-tap-highlight-color: rgba(96, 255, 160, 0.2);
    }

    .header__cta-button,
    .footer__cta-button,
    .cta-button {
        -webkit-tap-highlight-color: rgba(96, 255, 160, 0.3);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 80px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .services,
    .statistics,
    .footer {
        padding: 2rem 1rem;
    }
}

/* Mobile Animation Optimizations */
@media (max-width: 768px) {
    .services__card:hover {
        transform: none;
    }

    .statistics__item:hover .statistics__circle {
        transform: none;
        box-shadow: none;
    }

    /* Reduce animations on mobile for better performance */
    .hero__scroll-indicator {
        animation-duration: 3s;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-5px);
        }
        60% {
            transform: translateX(-50%) translateY(-2px);
        }
    }
}

/* Mobile Accessibility */
@media (max-width: 768px) {
    .header__mobile-menu-button:focus,
    .header__cta-button:focus,
    .footer__cta-button:focus,
    .cta-button:focus {
        outline: 2px solid var(--primary-green);
        outline-offset: 2px;
    }

    .services__card:focus,
    .statistics__item:focus {
        outline: 2px solid var(--primary-green);
        outline-offset: 4px;
    }
}

@media (max-width: 768px) {
    .header {
        
    }
    .header__content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .header__logo {
        margin-left: 5px;
    }

    .header__mobile {
        position: absolute;
        right: 25px;
    }

    .services__modal-content,
    .footer__modal-content {
        background-color: var(--dark-gray);
        border: 1px solid var(--medium-gray);
        border-radius: 20px;
        max-width: 500px;
        width: 90%;
        position: relative;
        background: rgba(237, 255, 246, 0.281);
        border: 1px solid rgba(196, 170, 170, 0.226);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .hero {
        will-change: transform;
    }

    .services__card,
    .statistics__circle {
        will-change: transform;
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .hero__scroll-indicator {
            animation: none;
        }

        .services__card,
        .statistics__circle {
            transition: none;
        }
    }
}
