/* ========== MOBILE MENU ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active a {
    animation: menuItemIn 0.5s ease forwards;
}

.mobile-menu.active a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu.active a:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu.active a:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-menu.active a:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes menuItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a:hover {
    color: var(--accent-1);
    transform: translateX(10px);
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .mockup-window {
        max-width: 400px;
        transform: perspective(1000px) rotateY(0deg) rotateX(5deg);
    }

    @keyframes floatMockup {

        0%,
        100% {
            transform: perspective(1000px) rotateY(0deg) rotateX(5deg) translateY(0);
        }

        50% {
            transform: perspective(1000px) rotateY(0deg) rotateX(3deg) translateY(-10px);
        }
    }

    .floating-elements {
        display: none;
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-step:nth-child(2) {
        border-right: none;
    }

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

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

    .testimonial-slot:nth-child(3) {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item::after {
        display: none;
    }

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

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    section {
        padding: 5rem 1.5rem;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .mockup-window {
        max-width: 100%;
        transform: none;
        animation: fadeIn 1s ease forwards 0.5s, floatMockupMobile 6s ease-in-out infinite 1.5s;
    }

    @keyframes floatMockupMobile {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }

    .mockup-content {
        padding: 16px;
        min-height: 200px;
    }

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

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

    .process-step {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem 1.5rem;
    }

    .process-step:last-child {
        border-bottom: none;
    }

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

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

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .cta-section,
    .contact-section {
        padding: 6rem 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        order: -1;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .marquee-item {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

    .stat-item {
        padding: 1.5rem;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-progress,
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}