/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* ===== MOBILE: 320px - 767px ===== */
@media screen and (max-width: 767px) {

    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: -5px 0 30px var(--shadow);
        padding: 80px 40px 40px;
        transition: right 0.4s ease;
        z-index: 100;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
    }

    .nav__link {
        font-size: 1.25rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        color: var(--text-primary);
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
        padding: 5px;
    }

    .nav__toggle span {
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hero */
    .hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__image {
        order: -1;
    }

    .hero__img {
        width: 250px;
        height: 250px;
    }

    .hero__image-glow {
        width: 300px;
        height: 300px;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__social {
        justify-content: center;
    }

    .scroll-down {
        display: none;
    }

    /* Section */
    .section {
        padding: 60px 0;
    }

    .section__subtitle {
        margin-bottom: 35px;
    }

    /* About */
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat {
        padding: 20px 10px;
    }

    .stat__number {
        font-size: 2rem;
    }

    .skills__grid {
        grid-template-columns: 1fr;
    }

    /* Certifications */
    .certifications__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Packages */
    .packages__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .package--popular {
        transform: none;
    }

    .package--popular:hover {
        transform: translateY(-10px);
    }

    /* Process */
    .process__timeline {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .process__step::after {
        display: none;
    }

    .process__step {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .step__number {
        margin: 0;
        flex-shrink: 0;
    }

    /* Portfolio */
    .portfolio__tabs {
        flex-direction: column;
        align-items: center;
    }

    .portfolio__gallery {
        grid-template-columns: 1fr;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 25px 20px;
    }

    .project-card__icon {
        font-size: 2.5rem;
    }

    /* Benefits */
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 30px 25px;
    }

    .benefit-card__icon {
        font-size: 3rem;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 300px;
    }

    /* FAQ */
    .faq__question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .faq__answer p {
        padding: 0 20px 18px;
    }

    /* Contact */
    .contact__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact__form {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }

    .form__group--full {
        grid-column: span 1;
    }

    .form__submit {
        grid-column: span 1;
    }

    /* Footer */
    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer__links ul {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Floating elements */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 80px;
    }

    /* Map */
    .map__container iframe {
        height: 300px;
    }
}

/* ===== TABLET: 768px - 1024px ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Navigation */
    .nav__list {
        gap: 20px;
    }

    .nav__link {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero__content {
        gap: 40px;
    }

    .hero__img {
        width: 300px;
        height: 300px;
    }

    .hero__image-glow {
        width: 350px;
        height: 350px;
    }

    /* About */
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__stats {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Packages */
    .packages__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .package {
        padding: 30px 20px;
    }

    /* Process */
    .process__timeline {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .step__content h3 {
        font-size: 0.85rem;
    }

    .step__content p {
        font-size: 0.75rem;
    }

    /* Portfolio */
    .portfolio__gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Benefits */
    .benefits__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .benefit-card {
        padding: 25px 15px;
    }

    /* Contact */
    .contact__content {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }

    /* Footer */
    .footer__content {
        gap: 30px;
    }
}

/* ===== DESKTOP: 1025px - 1440px ===== */
@media screen and (min-width: 1025px) and (max-width: 1440px) {

    /* Container */
    .container {
        max-width: 1100px;
    }

    /* Process timeline connect lines */
    .process__step:not(:last-child)::after {
        display: block;
    }
}

/* ===== LARGE DESKTOP: 1441px+ ===== */
@media screen and (min-width: 1441px) {

    /* Container */
    .container {
        max-width: 1300px;
    }

    /* Typography scale up */
    html {
        font-size: 18px;
    }

    /* Hero image */
    .hero__img {
        width: 450px;
        height: 450px;
    }

    .hero__image-glow {
        width: 500px;
        height: 500px;
    }
}

/* ===== HOVER STATES (Desktop) ===== */
@media (hover: hover) and (pointer: fine) {
    .nav__link:hover {
        color: var(--primary);
    }

    .btn:hover {
        transform: translateY(-3px);
    }

    .skill:hover {
        transform: translateX(10px);
    }

    .cert-card:hover,
    .package:hover,
    .project-card:hover,
    .benefit-card:hover {
        transform: translateY(-10px);
    }

    .gallery__item:hover img {
        transform: scale(1.1);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonials__track {
        animation: none;
    }

    .hero__image-glow {
        animation: none;
    }

    .whatsapp-float {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .header,
    .scroll-down,
    .whatsapp-float,
    .scroll-top,
    .theme-toggle,
    .testimonials__carousel {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero__img {
        width: 200px;
        height: 200px;
    }
}