:root {
    /* Cores Principais */
    --primary-purple: #9b6dff;
    --primary-navy: #1a2942;
    --primary-black: #000000;
    
    /* Cores de Fundo */
    --bg-white: #ffffff;
    --bg-light-gray: #f1f5f9;
    --bg-lavender: #f3f0ff;
    --bg-dark-navy: #0a1628;
    --bg-hero-left: #1a1a1a;
    
    /* Gradiente */
    --gradient-purple: linear-gradient(135deg, #9b6dff 0%, #c9a7ff 100%);
    
    /* Cores de Texto */
    --text-dark: #1a2942;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Bordas */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Hover */
    --purple-hover: #7c3aed;
    --purple-light: #e9d5ff;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    
    /* Transitions */
    --global-transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --image-transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-title .highlight {
    position: relative;
    display: inline-block;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--primary-purple);
    opacity: 0.3;
    z-index: -1;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--global-transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-black);
}

.btn-white:hover {
    background: var(--bg-light-gray);
    transform: translateY(-2px);
}

.btn-white-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-white-outline:hover {
    background: var(--text-white);
    color: var(--primary-black);
}

.btn-link {
    color: var(--primary-purple);
    background: transparent;
    padding: 14px 0;
}

.btn-link:hover {
    color: var(--purple-hover);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar {
    width: 100%;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 2rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-content .btn {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 0;
    width: 100%;
    min-height: calc(100vh - 80px);
}

.hero-left {
    background: #1F1F1F;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(20px, calc((100vw - var(--container-width)) / 2));
    padding-right: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-left .btn {
    align-self: flex-start;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.hero-title .highlight {
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--primary-purple);
    opacity: 0.4;
    z-index: -1;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-right {
    background: var(--bg-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-left: 40px;
    padding-right: max(20px, calc((100vw - var(--container-width)) / 2));
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-right .hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}
.hero-right::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.08) 100%);
    pointer-events:none;
}


/* Sobre Section */
.sobre {
    background: var(--bg-white);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.sobre-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Portfolio Destaque */
.portfolio-destaque {
    background: transparent;
    position: relative;
    z-index: 10;
    margin-bottom: -250px;
}

.portfolio-grid {
    display: flex;
    gap: 16px;
    height: 500px;
}

.portfolio-card {
    position: relative;
    flex: 1;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.35s ease;
}

/* quando passa o mouse no conjunto, todos os cards ficam iguais (33% cada) */
.portfolio-grid:hover .portfolio-card {
    flex: 1;
}

/* card em foco fica com o dobro de tamanho (50%) e os outros ficam com 25% cada */
.portfolio-card:hover {
    flex: 2;
    z-index: 10;
}

/* primeiro card já aberto ao carregar com 50% (flex: 2) */
.portfolio-card:first-child {
    flex: 2;
}

.portfolio-card:first-child .card-content {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:first-child::before {
    opacity: 0.95;
}

.portfolio-card:hover::before {
    opacity: 0.95;
}

.card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--image-transition);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: var(--text-white);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-card:hover .card-content {
    opacity: 1;
    transform: translateY(0);
}

.card-content h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Clientes Carousel */
.clientes {
    background: #f5f5ff;
    padding: 250px 0 60px;
    position: relative;
    z-index: 1;
}

.clientes-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.carousel-container {
    position: relative;
    max-width: var(--container-width); /* 1200px - mesmo das outras seções */
    margin: 0 auto;
    padding: 0 80px; /* espaço para os botões */
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    overflow: visible;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly; /* distribui igualmente */
    padding: 2rem 3rem; /* padding lateral para não encostar nas bordas */
    gap: 2rem; /* gap menor e mais consistente */
}

.client-logo {
    height: 80px;
    width: auto;
    max-width: 150px; 
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0; 
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    width: 48px;  /* era 40px */
    height: 48px; /* era 40px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--text-white);
}

.carousel-prev {
    left: 0px;
}

.carousel-next {
    right: 0px;
}

/* Benefícios */
.beneficios {
    background: #f5f5ff;
}

.beneficios .container {
    max-width: var(--container-width);
}

.beneficios-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.beneficio-card {
    background: var(--bg-lavender);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: transform 0.3s;
}

.beneficio-card.card-alt {
    background: var(--bg-light-gray);
}

.beneficio-card:hover {
    transform: translateY(-8px);
}

.beneficio-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.beneficio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.beneficio-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Portfolio Completo */
.portfolio {
    background: #f5f5ff;
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--primary-purple);
    color: var(--text-white);
}

.filter-btn:hover {
    background: var(--primary-purple);
    color: var(--text-white);
}

.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.item-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .item-image img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.item-category {
    display: block;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Processo Timeline */
.processo {
    background: #f5f5ff;
}

.processo-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
}

.processo-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0; /* Sem gap no desktop - cards colados */
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f5f0ff24; /* Step 00 - Mais claro */
    padding: 2rem;
    border-radius: 0;
    transition: transform 0.3s ease;
}

/* Primeiro card - arredondamento só na esquerda */
.timeline-step:first-child {
    border-radius: 16px 0 0 16px;
}

/* Último card - arredondamento só na direita */
.timeline-step:last-child {
    border-radius: 0 16px 16px 0;
}

.timeline-step:hover {
    transform: translateY(-5px);
}

/* Step 01 */
.timeline-step:nth-child(2) {
    background: #f5f0ff6e;
}

/* Step 02 */
.timeline-step:nth-child(3) {
    background: #f5f0ff94;
}

/* Step 03 */
.timeline-step:nth-child(4) {
    background: #F5F0FF;
}

/* Step 03 - texto escuro */
.timeline-step:nth-child(4) h3,
.timeline-step:nth-child(4) p,
.timeline-step:nth-child(4) .step-text p {
    color: var(--text-dark) !important;
}

.timeline-step:nth-child(4) .step-number {
    color: var(--primary-purple);
    opacity: 0.3;
}

.timeline-step:nth-child(4) .step-arrow {
    color: var(--primary-purple);
    opacity: 0.5;
}


/* Número do step */
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1;
    opacity: 0.3;
}

.timeline-step.active .step-number {
    opacity: 0.5;
}

.timeline-step.final .step-number {
    opacity: 0.5;
}

/* Conteúdo do step (texto + seta) */
.step-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

/* Texto (título e descrição) */
.step-text {
    flex: 1;
    text-align: left;
}

.step-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-step.final .step-text h3 {
    color: var(--text-white);
}

.step-text p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-step.final .step-text p {
    color: var(--text-white);
    opacity: 0.9;
}

/* Seta à direita */
.step-arrow {
    flex-shrink: 0;
    color: var(--primary-purple);
    opacity: 0.5;
}

.timeline-step.final .step-arrow {
    color: var(--text-white);
    opacity: 0.6;
}

/* Depoimentos */
.depoimentos {
    background: #f5f5ff;
}

.depoimentos .container {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.depoimento-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.depoimento-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.depoimento-cliente strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.depoimento-cliente span {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.depoimento-metrica {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.metrica-valor {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metrica-desc {
    color: var(--text-dark);
    font-weight: 600;
}

/* FAQ */
.faq {
    background: #f5f5ff;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.faq-left h2 {
    margin-bottom: 1rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.accordion-header:hover {
    background: var(--bg-light-gray);
}

.accordion-icon {
    flex-shrink: 0;
    stroke: var(--primary-purple);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease;
    visibility: hidden;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
    visibility: visible;
}

.accordion-content > * {
    min-height: 0;
}

.accordion-content p {
    padding: 0 2rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.7;
    transition: padding 0.3s ease;
}

.accordion-item:not(.active) .accordion-content p {
    padding: 0;
}

/* Contato */
.contato {
    background: #f5f5ff;
    padding-bottom: 100px;
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin-bottom: -250px;
}

.contato-left {
    background: var(--bg-white);
    padding: 4rem;
}

.contato-left .section-title {
    text-align: left;
    font-size: 2.5rem;
}

.contato-left .section-description {
    text-align: left;
    margin: 0 0 2rem 0;
}

.form-placeholder {
    background: var(--bg-light-gray);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.form-notice {
    color: var(--text-medium);
    font-style: italic;
}

.contato-right {
    background: var(--bg-dark-navy);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.contato-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/contato-right.webp');
    background-size: cover;
    background-position: center;
}

.contato-image::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--bg-dark-navy);
    color: var(--text-white);
    padding: 250px 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: var(--primary-purple);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
}

.social-btn:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-content,
    .sobre-content,
    .faq-content,
    .contato-content {
        grid-template-columns: 1fr;
    }
    
    .hero-left,
    .hero-right {
        min-height: 60vh;
    }
    
    .portfolio-grid,
    .beneficios-grid,
    .depoimentos-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-masonry {
        grid-template-columns: 1fr;
    }
    
    .processo-timeline {
        grid-template-columns: 1fr;
        gap: 2rem; /* Gap volta no mobile */
    }
    
    /* No mobile, todos os cards voltam a ter arredondamento completo */
    .timeline-step,
    .timeline-step:first-child,
    .timeline-step:last-child {
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Menu mobile aberto */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1001;
        gap: 1.5rem;
    }

    .navbar-actions .btn {
    display: none;
}

@media (min-width: 769px) {
    .nav-cta {
        display: none;
    }
}

    .nav-links.active li {
        margin: 0;
        text-align: center;
    }
    
    .nav-links.active a {
        padding: 1rem;
        font-size: 1.125rem;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ícone hamburger animado */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-left,
    .hero-right,
    .contato-left {
        padding: 40px 30px;
    }
    
    .sobre-buttons {
        flex-direction: column;
    }
    
    .portfolio-filters {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-social {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Animação para filtros do portfolio na home */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* Garantir que itens visíveis tenham animação suave */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.portfolio-item:not(.hidden) {
    animation: fadeInScale 0.4s ease-out;
}
/* ============================================
   OTIMIZAÇÕES MOBILE - Performance & UX
   ============================================ */

@media (max-width: 768px) {
    
    /* 1. HERO - Ocultar imagem no mobile (melhora LCP drasticamente) */
    .hero-right,
    .hero-image {
        display: none !important;
    }
    
    /* Hero content ocupa largura total e centraliza */
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    /* 2. PORTFOLIO DESTAQUE - Layout vertical com cards iguais */
    .portfolio-grid {
        display: flex;
        flex-direction: column;
        height: auto !important; /* Remove altura fixa */
        gap: 1.5rem;
    }
    
    .portfolio-card {
        width: 100% !important;
        height: auto !important; /* Remove altura 100% */
        min-height: 300px; /* Altura mínima para os cards */
        flex: none !important; /* Remove flex: 1 */
    }
    
    .portfolio-card .card-image {
        height: auto;
    }
    
    .portfolio-card .card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* 3. CONTATO - Ocultar imagem lateral no mobile */
    .contato-right,
    .contato-image {
        display: none !important;
    }
    
    /* Formulário ocupa largura total */
    .contato-left {
        max-width: 100%;
        width: 100%;
    }
    
    .contato-content {
        grid-template-columns: 1fr;
    }
    
    /* 4. BOTÕES - Ajustes para mobile (todos aparecem) */
    .hero-cta .btn-primary,
    .hero-buttons .btn-primary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-cta,
    .hero-buttons {
        justify-content: center;
    }
}

/* Fim das otimizações mobile */
