/* ========================================
   RESPONSIVE.CSS - MichelDouglas.dev
   ======================================== */

/* ========== BREAKPOINTS ========== */
/*
    Mobile:  < 640px
    SM:      640px - 767px
    MD:      768px - 1023px
    LG:      1024px - 1279px
    XL:      1280px - 1399px
    2XL:     1400px+

    Header:  colapsa em 1170px (limite máximo para os links do nav)
*/

/* ========== HEADER MOBILE (1170px) ========== */
/* Menu colapsa aqui pois é o limite máximo para agrupar todos os links */
@media (max-width: 1170px) {

    /* Header */
    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6);
        gap: var(--space-1);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-xl);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .header-nav.active {
        transform: translateX(0);
    }

    .nav-link {
        position: relative;
        padding: var(--space-4);
        width: 100%;
    }

    .nav-link::before {
        bottom: 8px;
        left: var(--space-4);
        transform: translateX(0) scaleX(0);
        transform-origin: left;
        width: 70px;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        transform: translateX(0) scaleX(1);
    }

    .btn-cta {
        width: 100%;
        margin-left: 0;
        margin-top: var(--space-4);
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========== SERVIÇOS - ALINHAMENTO IMAGEM/TEXTO (1350px) ========== */
/* Abaixo deste ponto a imagem fica mais curta que o texto por ser height:auto.
   A solução é esticar o card (stretch) e fazer a imagem cobrir o espaço todo. */
@media (max-width: 1350px) {

    .service-card {
        align-items: stretch;
    }

    .service-image-box {
        height: 100%;
        min-height: 280px;
    }

    .service-image-box img {
        height: 100%;
        object-fit: cover;
    }

    /* Com imagens em altura total, o gap padrão (40px) fica apertado */
    .services-grid {
        gap: var(--space-20);
    }
}

/* ========== PROCESSO - CASCATA REDUZIDA (1400px) ========== */
/* A partir daqui o texto do process-content começa a sobrepor os cards */
@media (max-width: 1400px) {

    /* Empurra o bloco de cards para baixo, longe do conteúdo de texto */
    .process-steps {
        margin-top: var(--space-20);
    }

    /* Reduz os offsets da cascata proporcionalmente */
    .process-card:nth-child(2) {
        margin-top: -30px;
    }

    .process-card:nth-child(3) {
        margin-top: -60px;
    }
}

/* ========== TABLET & BELOW (1024px) ========== */
@media (max-width: 1024px) {

    /* Container */
    .container {
        padding: 0 var(--space-6);
    }

    /* Hero */
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero p {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .clients-logos {
        gap: var(--space-6);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .about-content {
        padding-right: 0;
        order: 1;
    }

    .about-visual {
        order: 2;
        min-height: 400px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }

    .service-card.featured {
        order: -1;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .portfolio-item {
        margin-bottom: var(--space-6);
    }

    .portfolio-item-info {
        padding: var(--space-6);
    }

    .portfolio-item h3 {
        font-size: var(--text-xl);
    }

    .portfolio-tags {
        gap: var(--space-2);
        margin-top: var(--space-4);
    }

    .portfolio-tag {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .portfolio-overlay {
        position: relative;
        background: transparent;
        opacity: 1;
    }

    .portfolio-overlay-content {
        position: relative;
        transform: none;
        opacity: 1;
    }

    /* Process/Methodology */
    .process-section {
        padding: var(--space-20) 0;
    }

    .process-intro {
        margin-bottom: var(--space-16);
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .process-step {
        padding: var(--space-8);
        position: relative;
    }

    .process-step-number {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-4);
    }

    .process-step h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }

    .process-deliverables {
        margin-top: var(--space-6);
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .deliverable-item {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
    }

    .process-visual {
        display: none;
        /* Hide complex graphics on tablets */
    }

    /* Remove cascata: grid vai 1 coluna e o texto ocupa mais altura */
    .process-steps {
        margin-top: var(--space-12);
    }

    .process-card:nth-child(2),
    .process-card:nth-child(3) {
        margin-top: 0;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .contact-content {
        order: 1;
    }

    .contact-visual {
        order: 2;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .footer-brand {
        grid-column: span 2;
    }

    .scroll-top-btn {
        right: var(--space-6);
    }
}

/* ========== PROCESSO - CARDS EMPILHADOS (959px) ========== */
/* 3 cards lado a lado ficam sem formatação abaixo de 959px */
@media (max-width: 959px) {

    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin-top: var(--space-12);
    }

    .process-card {
        min-height: auto;
    }

    .process-card:nth-child(1),
    .process-card:nth-child(2),
    .process-card:nth-child(3) {
        margin-top: 0;
    }
}

/* ========== MOBILE (768px) ========== */
@media (max-width: 768px) {

    .header-brand .logo .logo-img {
        height: 18px;
        width: 282px;
        min-width: 282px;
    }

    .logo-wrapper {
        max-width: 282px;
    }

    .header.scrolled .logo-wrapper {
        max-width: 32px;
    }

    .header {
        padding: var(--space-3) 0;
    }

    .header-inner {
        padding: 0 var(--space-4);
        max-width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
        padding: var(--space-2);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-white);
        border-radius: 2px;
        transition: all var(--transition-base);
    }

    .hero {
        min-height: 100svh;
        padding: 0;
    }

    .hero-content {
        padding: 0 var(--space-6);
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        line-height: 1.15;
        text-align: left;
        margin-bottom: var(--space-8);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .title-line-1 {
        display: block;
        font-size: inherit;
        line-height: 1.2;
        text-align: left;
        align-self: flex-start;
    }

    /* FORÇA "ideias em" para nova linha NO MOBILE */
    .break-mobile {
        display: block;
        /* Quebra a linha aqui! */
    }

    .title-line-2 {
        display: block;
        font-size: inherit;
        line-height: 1.2;
        text-align: left;
    }

    /* Remove espaços extras */
    .title-line-1 {
        margin-bottom: 0;
    }

    /* Typewriter container */
    .typewriter-container {
        display: block;
        width: 100%;
        text-align: left;
    }

    .typewriter-word {
        display: inline;
        font-size: inherit;
    }

    .typewriter-cursor {
        margin-left: -8px;
    }

    .hero p {
        font-size: var(--text-base);
        margin-bottom: var(--space-20);
        line-height: 1.6;
        padding: 0 var(--space-2);
        text-align: left;
    }

    .hero-clients {
        gap: var(--space-6);
    }

    .clients-label {
        font-size: var(--text-base);
        text-align: center;
    }

    .clients-logos {
        gap: var(--space-4);
    }

    .clients-logos img {
        height: 18px;
    }

    /* Typography */
    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .section-description {
        font-size: var(--text-base);
    }


    /* Sections Spacing */
    .about-section,
    .services-section,
    .portfolio-section,
    .process-section,
    .contact-section {
        padding: var(--space-20) 0;
    }

    /* ===================================
   ABOUT SECTION - MOBILE
=================================== */


    .about-section {
        padding: var(--space-16) 0;
    }

    .about-section .container {
        padding: 0 var(--space-6);
    }


    /* Grid 1 coluna */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Visual oculto no mobile — sem espaço residual */
    .about-visual {
        display: none;
    }

    .about-content {
        order: 1;
        padding: 0;
        width: 100%;
    }

    /* Tag */
    .about-section .section-tag {
        font-size: var(--text-xs);
        margin-bottom: var(--space-4);
    }

    /* Título */
    .about-section .section-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: var(--space-6);
    }

    /* Texto */
    .about-text {
        margin-bottom: var(--space-10);
    }

    .about-text p {
        font-size: var(--text-base);
        line-height: 1.7;
        margin-bottom: var(--space-4);
        color: var(--text-gray-dark);
    }

    /* Floating tags e bg ocultos no mobile — ocupam espaço desnecessário */
    .float-tag,
    .float-el,
    .bg-code {
        display: none;
    }

    /* Skills Keywords */
    .skills-keywords {
        margin-top: var(--space-12);
        padding-top: var(--space-8);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .keywords-track li {
        font-size: 0.95rem;
        font-weight: 600;
        padding: 0 var(--space-6);
    }

    /* ===================================
   SERVICES SECTION - MOBILE
=================================== */
    .services-section .section-header-center {
        text-align: left;
        margin-bottom: var(--space-12);
        padding: 0;
    }

    .services-section .section-tag {
        text-align: left;
    }

    .services-section .section-title {
        text-align: left;
    }

    .services-section .section-description {
        text-align: left;
    }

    .service-card {
        padding: 0 !important;
        gap: var(--space-6) !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        /* Remove grid */
        background: transparent !important;
    }

    .service-card.featured {
        padding: 0 !important;
        gap: var(--space-6) !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        background: transparent !important;
    }

    /* Container da section */
    .services-section {
        padding: var(--space-16) 0;
    }

    .services-section .container {
        padding: 0 var(--space-6);
    }

    /* Grid principal */
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-20);
    }

    /* Conteúdo */
    .service-content {
        padding: 0 !important;
        margin: 0;
        order: 1;
    }

    /* Ícone */
    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-icon i {
        font-size: 1.75rem;
    }

    /* Tag vermelha */
    .service-card span {
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
        color: var(--primary-accent);
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
    }

    /* Título */
    .service-card h3 {
        font-size: var(--text-xl);
        line-height: 1.3;
        color: var(--text-dark);
    }

    /* Imagem */
    .service-image-box {
        order: 2;
        height: 280px;
        width: 100%;
        padding: 0;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .service-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Descrição */
    .service-card>p {
        order: 3;
        font-size: var(--text-base);
        line-height: 1.7;
        color: var(--text-gray-dark);
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ===================================
       PROCESS SECTION - MOBILE ONLY
    =================================== */

    .process-section {
        padding-top: var(--space-20);
        padding-bottom: var(--space-6);
    }

    .process-section .container {
        padding: 0 var(--space-6);
    }

    /* Grid vira 1 coluna */
    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .process-content {
        order: 1;
    }

    .process-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: var(--space-4);
    }

    .process-description p {
        font-size: var(--text-base);
        line-height: 1.7;
        margin-bottom: var(--space-3);
    }

    /* Esconde visual */
    .process-visual {
        display: none;
    }

    /* Steps em coluna */
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* REMOVE CASCATA - SÓ NO MOBILE */
    .process-card:nth-child(1) {
        margin-top: 0;
    }

    .process-card:nth-child(2) {
        margin-top: 0;
    }

    .process-card:nth-child(3) {
        margin-top: 0;
    }

    /* Cards */
    .process-card {
        padding: var(--space-8);
        min-height: auto;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: var(--space-3);
    }

    .card-number {
        font-size: var(--text-xs);
    }

    .card-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-3);
    }

    .card-text {
        font-size: var(--text-base);
        line-height: 1.7;
    }

    /* ===================================
   PORTFOLIO SECTION - MOBILE
=================================== */

    .portfolio-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        background: var(--bg-primary);
        /* Mesma cor do Process */
    }

    .portfolio-swiper-container {
        margin: 0;
        padding: 0;
    }

    .portfolio-swiper {
        padding-bottom: 0 !important;
    }

    .swiper-wrapper {
        align-items: stretch !important;
    }

    .swiper-slide {
        height: auto !important;
    }

    /* Slide vira coluna (texto em cima, imagem embaixo) */
    .portfolio-slide {
        grid-template-columns: 1fr !important;
        grid-template-rows: 280px 360px !important;
        /* ALTURA FIXA para texto E imagem */
        min-height: unset !important;
        padding: 0;
        gap: 0 !important;
        height: 640px !important;
    }

    /* Conteúdo (texto) primeiro */
    .portfolio-content {
        order: 1;
        height: 280px !important;
        overflow: hidden;
        padding: 0 var(--space-6) var(--space-20) var(--space-6) !important;
        background: var(--bg-primary);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: var(--space-3);
    }

    /* Header do slide */
    .portfolio-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .portfolio-label,
    .portfolio-category {
        font-size: var(--text-xs);
    }

    /* Título */
    .portfolio-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-shrink: 0;
    }

    /* Descrição */
    .portfolio-description {
        font-size: var(--text-sm);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-shrink: 0;
        flex-grow: 1;
    }

    /* Botão */
    .portfolio-btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
        width: fit-content;
        flex-shrink: 0;
    }

    /* Imagem (depois do texto) */
    .portfolio-visual {
        order: 2;
        height: 360px !important;
        width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
    }

    .portfolio-visual::before {
        display: none !important;
    }

    /* REMOVE TODOS OS TRANSFORMS - CRÍTICO! */
    .portfolio-visual img,
    [data-project="semed"] .portfolio-visual img,
    [data-project="quitinete"] .portfolio-visual img,
    [data-project="e-cesta"] .portfolio-visual img,
    [data-project="next"] .portfolio-visual img {
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }

    /* Hover também zerado */
    [data-project="semed"]:hover .portfolio-visual img,
    [data-project="quitinete"]:hover .portfolio-visual img,
    [data-project="e-cesta"]:hover .portfolio-visual img,
    [data-project="next"]:hover .portfolio-visual img {
        transform: none !important;
    }

    /* Paginação (dots) */
    .portfolio-controls {
        position: absolute;
        bottom: var(--space-4);
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        width: 100%;
    }

    .portfolio-swiper .swiper-pagination {
        justify-content: center;
    }

    .portfolio-swiper .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.5);
    }

    .portfolio-swiper .swiper-pagination-bullet-active {
        width: 24px;
        background: var(--text-white);
    }

    /* Contact */
    .contact-title {
        font-size: var(--text-3xl);
    }

    .contact-description {
        font-size: var(--text-base);
    }

    .contact-form {
        padding: var(--space-8);
    }

    .form-group {
        margin-bottom: var(--space-4);
    }

    /* Footer */
    .footer {
        padding: var(--space-16) 0 var(--space-6);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: var(--space-4);
    }

    .footer-bottom .copyright {
        text-align: right;
    }

    .footer .container {
        position: static;
    }

    .scroll-top-btn {
        right: var(--space-4);
        width: 45px;
        height: 45px;
        top: -22.5px;
        bottom: unset;
    }
}

/* ========== SMALL MOBILE (480px) ========== */
@media (max-width: 480px) {

        /* Header */
        .header-brand .logo .logo-img {
            height: 18px;
        }

        .header.scrolled .logo-wrapper {
            max-width: 32px;
        }

        /* Hero */
        .hero h1 {
            font-size: clamp(2rem, 10vw, 3.5rem);
        }

        .hero-tag {
            font-size: var(--text-xs);
            padding: var(--space-1) var(--space-3);
        }

        /* Buttons */
        .btn-primary,
        .btn-secondary,
        .btn-cta {
            padding: var(--space-3) var(--space-4);
            font-size: var(--text-sm);
        }

        /* About */
        .about-text p {
            font-size: var(--text-base);
        }

        .float-tag.tag-1,
        .float-tag.tag-3 {
            width: 150px;
        }

        .float-tag.tag-2 {
            width: 170px;
        }

        /* Services */
        .service-card {
            padding: var(--space-8);
        }

        /* Portfolio */
        .portfolio-item-image {
            height: 200px;
        }

        .portfolio-item-info {
            padding: var(--space-4);
        }

        .portfolio-meta {
            gap: var(--space-2);
        }

        /* Process */
        .process-step {
            padding: var(--space-5);
        }

        .process-step-header {
            gap: var(--space-3);
        }

        .process-step-number {
            width: 36px;
            height: 36px;
            font-size: var(--text-base);
        }

        .process-step h3 {
            font-size: var(--text-base);
        }

        .deliverable-item {
            padding: 0.25rem 0.5rem;
            font-size: 0.7rem;
        }

        /* Contact */
        .contact-form {
            padding: var(--space-6);
        }

        .btn-submit {
            padding: var(--space-3) var(--space-6);
        }
    }

    /* ========== VERY SMALL MOBILE (360px) ========== */
    @media (max-width: 360px) {

        /* Container */
        .container {
            padding: 0 var(--space-4);
        }

        /* Hero */
        .hero h1 {
            font-size: clamp(1.75rem, 9vw, 2.5rem);
        }

        .hero p {
            font-size: var(--text-sm);
        }

        /* Sections */
        .section-title {
            font-size: var(--text-2xl);
        }

        /* Portfolio */
        .portfolio-item-image {
            height: 180px;
        }

        /* Process */
        .process-step {
            padding: var(--space-4);
        }

        .process-step-number {
            width: 32px;
            height: 32px;
            font-size: var(--text-sm);
        }

        /* Footer */
        .social-links a {
            width: 36px;
            height: 36px;
        }
    }

/* ========== LANDSCAPE MOBILE ========== */
@media (max-height: 500px) and (orientation: landscape) {

        .hero {
            min-height: auto;
            padding: var(--space-20) 0;
        }

        .hero h1 {
            font-size: var(--text-3xl);
            margin-bottom: var(--space-3);
        }

        .hero p {
            margin-bottom: var(--space-6);
        }

        .hero-cta {
            margin-bottom: var(--space-8);
        }

        .hero-clients {
            display: none;
        }

        .scroll-indicator {
            display: none;
        }

        /* Process adjustments */
        .process-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: var(--space-4);
        }

        .process-step {
            padding: var(--space-4);
        }
    }

/* ========== LARGE SCREENS (1440px+) ========== */
@media (min-width: 1440px) {

        .section-title {
            font-size: var(--text-5xl);
        }

        .hero h1 {
            font-size: 4.5rem;
        }

        .about-text p {
            font-size: var(--text-xl);
        }

        .service-card h3 {
            font-size: var(--text-3xl);
        }

        .service-card>p {
            font-size: var(--text-lg);
        }

        /* Portfolio */
        .portfolio-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-10);
        }

        .portfolio-item-image {
            height: 400px;
        }

        /* Process */
        .process-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-10);
        }

        .process-step {
            padding: var(--space-10);
        }
    }

/* ========== ULTRA WIDE (1920px+) ========== */
@media (min-width: 1920px) {

        .container {
            max-width: 1600px;
        }

        .hero h1 {
            font-size: 5rem;
        }

        .portfolio-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

/* ========== PRINT STYLES ========== */
@media print {

        /* Esconde elementos não necessários */
        .header,
        .hero-video,
        .hero-overlay,
        .scroll-indicator,
        .mobile-menu-toggle,
        .btn-cta,
        .scroll-top-btn,
        .contact-form,
        .social-links,
        .float-tag,
        .portfolio-overlay,
        .process-visual {
            display: none !important;
        }

        /* Ajusta cores para impressão */
        body {
            background: white;
            color: black;
        }

        .section-tag,
        .skill-tag,
        .portfolio-tag,
        .deliverable-item {
            border: 1px solid black;
            color: black;
            background: white;
        }

        /* Remove sombras e animações */
        * {
            box-shadow: none !important;
            animation: none !important;
            transition: none !important;
        }

        /* Page breaks */
        section {
            page-break-inside: avoid;
        }

        h1,
        h2,
        h3 {
            page-break-after: avoid;
        }

        .portfolio-item,
        .process-step {
            page-break-inside: avoid;
            margin-bottom: 20px;
        }
    }

/* ========== ACCESSIBILITY - HIGH CONTRAST ========== */
@media (prefers-contrast: high) {

        :root {
            --text-gray: #666666;
            --text-gray-dark: #444444;
        }

        .service-card,
        .portfolio-item,
        .process-step,
        .contact-form {
            border-width: 3px;
        }

        .btn-primary,
        .btn-cta {
            font-weight: var(--font-bold);
        }

        .portfolio-tag,
        .deliverable-item {
            border-width: 2px;
        }
    }

/* ========== DARK MODE SYSTEM PREFERENCE ========== */
@media (prefers-color-scheme: dark) {

        /* Já definido em variables.css com [data-theme="dark"] */
        /* Adicione aqui se quiser auto-dark mode baseado em preferência do sistema */

    }

/* ========== TOUCH DEVICES ========== */
@media (hover: none) and (pointer: coarse) {

        /* Remove hover effects em dispositivos touch */
        .service-card:hover,
        .portfolio-item:hover,
        .process-step:hover,
        .skill-tag:hover {
            transform: none;
        }

        /* Aumenta área de toque */
        .nav-link,
        .btn-primary,
        .btn-secondary,
        .btn-cta {
            min-height: 44px;
            /* WCAG AA */
        }

        /* Remove efeitos de hover que não funcionam bem em touch */
        .portfolio-overlay {
            opacity: 0.9;
        }

        /* Touch-friendly portfolio */
        .portfolio-item {
            cursor: default;
        }

        .portfolio-overlay-content {
            position: static;
            opacity: 1;
            transform: none;
        }
    }

/* ========== PERFORMANCE OPTIMIZATIONS ========== */

/* Reduz animações para usuários com preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {

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

        .float-tag,
        .process-visual,
        .portfolio-overlay,
        .scroll-indicator {
            animation: none;
        }
    }

/* ========== CUSTOM UTILITIES FOR PORTFOLIO & PROCESS ========== */

/* Portfolio específico */
@media (max-width: 768px) {
    .portfolio-filter {
        display: none;
        /* Hide filters on mobile if you have them */
    }

    .portfolio-load-more {
        width: 100%;
        margin-top: var(--space-8);
    }
}

/* Process/Methodology específico */
@media (max-width: 1024px) {
    .process-timeline {
        display: none;
        /* Hide complex timeline graphics */
    }

    .process-step::before {
        display: none;
        /* Hide connecting lines between steps */
    }
}

/* ========================================================
   STYLE.CSS — CTA section / Footer
   ======================================================== */

@media (max-width: 900px) {
    .floating-elements {
        display: none;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .float-badge.excellence {
        position: static;
        margin-bottom: 20px;
        transform: none;
        animation: none;
        background: #f5f5f5;
    }
}

@media (max-width: 768px) {
    .footer .container {
        position: static;
        padding-top: var(--space-10);
    }

    .scroll-top-btn {
        right: var(--space-6);
        top: -25px;
        bottom: unset;
    }
}

/* ========== EXTRA SMALL (395px) ========== */
@media (max-width: 395px) {
    .clients-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        gap: var(--space-6);
    }
}

