/* PC NINJA ONLINE - MOBILE APP-LIKE DESIGN */
/* Complete mobile optimization for better UX */

@media (max-width: 768px) {
    /* RESET AND BASE STYLES */
    * {
        box-sizing: border-box;
    }

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: #050a12;
        font-size: 14px;
    }

    /* HEADER - STICKY AND CLEAN */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 0.75rem 0;
        background: #050a12;
        border-bottom: 1px solid rgba(66, 222, 255, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }

    .logo-img {
        height: 32px;
        width: auto;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .logo-text h1 {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        margin: 0;
        font-weight: 700;
    }

    .logo-text p {
        font-size: 0.6rem;
        margin: 0;
        opacity: 0.7;
    }

    .lang-toggle {
        display: flex;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.6rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .lang-btn.active {
        background: #42deff;
        color: #050a12;
        border-color: #42deff;
    }

    .cta-btn {
        display: none !important;
    }

    /* NAVIGATION - HORIZONTAL SCROLL */
    .nav-scroll {
        display: flex;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(66, 222, 255, 0.05);
    }

    .nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        padding: 0.5rem 0.875rem;
        border-radius: 20px;
        font-size: 0.65rem;
        font-weight: 600;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .nav-item:active {
        background: rgba(66, 222, 255, 0.2);
        border-color: #42deff;
        color: #42deff;
    }

    .nav-desktop {
        display: none !important;
    }

    /* MAIN CONTENT */
    main {
        flex: 1;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
    }

    /* SECTIONS */
    section {
        padding: 1.5rem 0;
        width: 100%;
    }

    section:first-of-type {
        padding-top: 1rem;
    }

    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    /* TYPOGRAPHY */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin: 0 0 1rem 0;
        font-weight: 700;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 0 0 0.75rem 0;
        font-weight: 700;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.4;
        margin: 0 0 0.5rem 0;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0 0 1rem 0;
    }

    .section-title {
        font-size: 0.7rem;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        opacity: 0.8;
    }

    .section-intro {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 1rem;
        opacity: 0.8;
    }

    /* EYEBROW */
    .eyebrow {
        display: inline-block;
        padding: 0.375rem 0.875rem;
        border-radius: 20px;
        font-size: 0.6rem;
        letter-spacing: 0.18em;
        background: rgba(66, 222, 255, 0.1);
        border: 1px solid rgba(66, 222, 255, 0.3);
        color: #42deff;
        margin-bottom: 1rem;
    }

    /* CARDS */
    .card,
    .service-card,
    .jump-card,
    .trust-item {
        padding: 1.25rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        margin-bottom: 0.75rem;
    }

    .card:active,
    .service-card:active,
    .jump-card:active,
    .trust-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }

    .card-header,
    .jump-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .card-icon,
    .jump-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1.25rem;
    }

    .card-label,
    .jump-tag {
        font-size: 0.6rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        opacity: 0.7;
    }

    .card-text,
    .jump-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0;
    }

    /* BUTTONS */
    .btn {
        display: inline-block;
        padding: 1.25rem 1rem;
        border-radius: 12px;
        font-size: 0.875rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 48px;
        text-align: center;
        text-decoration: none;
        width: 100%;
    }

    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .btn-primary {
        background: linear-gradient(135deg, #42deff 0%, #00d9ff 100%);
        color: #050a12;
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .btn-lime {
        background: linear-gradient(135deg, #a6ff4d 0%, #7dd32a 100%);
        color: #050a12;
    }

    .btn-cyan {
        background: rgba(66, 222, 255, 0.1);
        color: #42deff;
        border: 1px solid rgba(66, 222, 255, 0.3);
    }

    /* GRIDS */
    .hero-cards,
    .services-grid,
    .quick-jump,
    .trust-items,
    .contact-grid,
    .overlay-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .buttons-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    /* FORM INPUTS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        width: 100%;
        padding: 1rem;
        font-size: 16px !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        margin-bottom: 1rem;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        background: rgba(66, 222, 255, 0.1);
        border-color: rgba(66, 222, 255, 0.5);
        box-shadow: 0 0 20px rgba(66, 222, 255, 0.1);
    }

    textarea {
        min-height: 120px;
        resize: vertical;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-label {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    /* FOOTER */
    footer {
        margin-top: auto;
        padding: 2rem 1rem;
        background: linear-gradient(180deg, rgba(5, 10, 18, 0.8) 0%, rgba(5, 10, 18, 0.95) 100%);
        border-top: 1px solid rgba(66, 222, 255, 0.1);
        width: 100%;
    }

    .footer-content {
        display: grid;
        gap: 1.5rem;
    }

    .footer-text h3 {
        font-size: 1.125rem;
        margin: 0 0 0.5rem 0;
    }

    .footer-text p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin: 0 0 0.75rem 0;
        opacity: 0.8;
    }

    .footer-text .copyright {
        font-size: 0.75rem;
        opacity: 0.6;
    }

    .social-links {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .social-link {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .social-link:active {
        background: rgba(66, 222, 255, 0.2);
        border-color: #42deff;
        color: #42deff;
    }

    /* WHATSAPP BUTTON - FIXED POSITION */
    .whatsapp-btn {
        position: fixed;
        bottom: 1.5rem;
        right: 1rem;
        z-index: 999;
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
        background: linear-gradient(135deg, #a6ff4d 0%, #7dd32a 100%);
        box-shadow: 0 8px 24px rgba(166, 255, 77, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .whatsapp-btn:active {
        transform: scale(0.95);
        box-shadow: 0 4px 12px rgba(166, 255, 77, 0.2);
    }

    .whatsapp-icon {
        font-size: 1.5rem;
    }

    .whatsapp-text {
        display: none;
    }

    /* HERO IMAGE */
    .hero-image {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .hero-overlay {
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }

    .overlay-cards {
        gap: 0.75rem;
    }

    .overlay-card {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .overlay-label {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
        opacity: 0.7;
    }

    .overlay-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0;
    }

    /* TRUST SECTION */
    .trust-box {
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .trust-title {
        font-size: 0.75rem;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        opacity: 0.7;
    }

    .trust-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }

    .trust-items {
        gap: 0.75rem;
    }

    .trust-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    /* CONTACT FORM */
    #contact-form {
        display: grid;
        gap: 0;
    }

    .contact-box {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .contact-info {
        display: grid;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .contact-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: #fff;
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }

    .contact-link:active {
        background: rgba(66, 222, 255, 0.1);
        border-color: #42deff;
    }

    /* NOTIFICATIONS */
    .notification {
        position: fixed;
        top: 1rem;
        right: 1rem;
        left: 1rem;
        z-index: 10000;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 0.875rem;
        font-weight: 600;
        max-width: calc(100% - 2rem);
    }

    /* PREVENT ZOOM ON INPUT */
    input,
    textarea,
    select,
    button {
        font-size: 16px !important;
    }

    /* SMOOTH SCROLLING */
    html {
        scroll-behavior: smooth;
    }

    /* PREVENT DOUBLE TAP ZOOM */
    input,
    button,
    a {
        touch-action: manipulation;
    }

    /* PREVENT HORIZONTAL SCROLL */
    body,
    html {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* TOUCH FEEDBACK */
    button,
    a,
    input,
    textarea {
        -webkit-tap-highlight-color: rgba(66, 222, 255, 0.1);
    }

    /* SAFE AREA SUPPORT */
    @supports (padding: max(0px)) {
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        header {
            padding-left: max(0, env(safe-area-inset-left));
            padding-right: max(0, env(safe-area-inset-right));
        }

        footer {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
            padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }

        .whatsapp-btn {
            bottom: max(1.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
            right: max(1rem, env(safe-area-inset-right));
        }
    }

    /* LANDSCAPE MODE */
    @media (max-height: 500px) and (orientation: landscape) {
        header {
            padding: 0.5rem 0;
        }

        main {
            padding-bottom: 1rem;
        }

        section {
            padding: 1rem 0;
        }

        h1 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        h2 {
            font-size: 1.125rem;
            margin-bottom: 0.5rem;
        }

        .btn {
            padding: 0.875rem 0.75rem;
            min-height: 44px;
        }
    }

    /* VERY SMALL PHONES (< 360px) */
    @media (max-width: 360px) {
        .container {
            padding: 0 0.75rem;
        }

        h1 {
            font-size: 1.5rem;
        }

        h2 {
            font-size: 1.25rem;
        }

        .btn {
            padding: 1rem 0.875rem;
            font-size: 0.75rem;
        }

        .whatsapp-btn {
            width: 56px;
            height: 56px;
            bottom: 1rem;
            right: 0.75rem;
        }

        .nav-item {
            padding: 0.375rem 0.625rem;
            font-size: 0.6rem;
        }
    }

    /* LARGE PHONES/TABLETS (480px - 768px) */
    @media (min-width: 480px) and (max-width: 768px) {
        .hero-cards,
        .services-grid,
        .quick-jump {
            grid-template-columns: repeat(2, 1fr);
        }

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

        h1 {
            font-size: 2rem;
        }

        h2 {
            font-size: 1.625rem;
        }
    }
}

/* PWA STANDALONE MODE */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }

    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

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