canvas {
    position: fixed !important;
    top: 0 !important;
    left: -100px !important;
    width: calc(100% + 200px) !important;
    height: 120% !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

html {
    overflow-y: scroll; /* Mantém apenas uma barra de rolagem */
    overflow-x: hidden;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Remove a segunda barra */
    min-height: 100vh;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding-bottom: 120px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    max-width: 100%;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

/* Novo estilo para o grid de fundo */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

.grid-column {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Velocidades mais lentas e suaves para cada coluna */
.grid-column:nth-child(1) {
    animation: scrollDown 120s linear infinite;
}

.grid-column:nth-child(2) {
    animation: scrollUp 150s linear infinite;
}

.grid-column:nth-child(3) {
    animation: scrollDown 180s linear infinite;
}

.grid-column img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.2);
    transition: opacity 2s ease-in-out;
    opacity: 0.7;
    will-change: transform;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0%);
    }
}

@keyframes scrollUp {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Adiciona easing para suavizar ainda mais o movimento */
.grid-column {
    animation-timing-function: linear;
    transition: transform 0.5s ease-out;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .background-grid {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .grid-column {
        gap: 0.25rem;
    }
}

/* Animação suave quando as imagens são trocadas */
@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 0.7; }
    80% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* Ajustando cada imagem para ter um tempo diferente de animação */
.background-grid img:nth-child(3n) {
    animation-delay: 2s;
}

.background-grid img:nth-child(3n+1) {
    animation-delay: 4s;
}

.background-grid img:nth-child(3n+2) {
    animation-delay: 6s;
}

/* Ajuste para garantir que o conteúdo fique acima do background */
.main-header,
.hero,
.reviews-section,
.contact-page,
.projects-page,
.contact-form,
.projects-grid {
    position: relative;
    z-index: 5;
    background: transparent;
}

.tap-container {
    position: fixed;
    z-index: 1;
    filter: blur(1.5px) brightness(0.95) contrast(0.9) saturate(0.9);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tap-container:not(.tap-visible) {
    opacity: 0;
    pointer-events: none;
}

.tap-left {
    left: -80px;
    transform: scaleX(-1);
}

.tap-right {
    right: -80px;
}

.tap-image {
    width: 240px;
    height: 300px;
    object-fit: contain;
}

:root {
    --primary-color: #FFD700;
    --secondary-color: #F4B860;
    --text-color: #333;
    --header-height: 80px;
}

.main-header {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 80px;
    padding: 0.5rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajuste do logo */
.main-header .logo {
    width: 180px;
    margin-top: 10px;
    padding-bottom: 5px; /* Espaço extra embaixo do logo */
}

.main-header .logo img {
    width: 100%;
    height: auto;
    display: block; /* Garante que a imagem se comporte corretamente */
}

/* Ajuste da navegação */
.main-header .main-nav {
    display: flex;
    gap: 30px; /* Espaço entre os links */
    margin-right: 50px; /* Move os botões para a esquerda */
}

/* Estilo base dos botões de navegação */
.main-header .main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efeito de hover */
.main-header .main-nav a:hover {
    color: #ffd700; /* Cor dourada */
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Efeito de click */
.main-header .main-nav a:active {
    transform: translateY(1px);
}

/* Estilo para o link ativo */
.main-header .main-nav a.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 2px solid #ffd700;
}

/* Efeito de linha animada embaixo do link */
.main-header .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-header .main-nav a:hover::after {
    width: 100%;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 10px 15px;
        flex-direction: column; /* Organiza elementos em coluna */
        justify-content: center;
        gap: 10px; /* Espaço entre logo e navegação */
    }

    .main-header .logo {
        margin: 0; /* Remove margens existentes */
        width: 160px; /* Ajusta tamanho para mobile */
    }

    .main-header .main-nav {
        margin: 0; /* Remove margens existentes */
        padding: 5px 0;
        gap: 25px; /* Espaço entre os links */
        justify-content: center; /* Centraliza os links */
        width: 100%; /* Ocupa toda largura */
    }

    .main-header .main-nav a {
        font-size: 0.95rem; /* Mantém fonte legível */
        padding: 6px 12px;
    }

    .main-header .main-nav a:hover {
        transform: translateY(-1px); /* Reduz o movimento em mobile */
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 360px) {
    .main-header {
        padding: 8px 10px;
    }

    .main-header .main-nav {
        gap: 15px;
    }
}

.hero {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Previne rolagem adicional */
    padding: 80px 20px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: transparent;
    width: 100%;
    max-width: 100vw;
}

.hero h1,
.hero .subtitle,
.section-title {
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Efeito de pulso suave */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(244, 184, 96, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(244, 184, 96, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(244, 184, 96, 0.3);
    }
}

/* Efeito de brilho */
@keyframes shine {
    0% {
        background-position: -100% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    z-index: 10;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 184, 96, 0.3);
    min-width: 250px;
    border: none;
    text-align: center;
    margin: 20px 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--secondary-color) 0%,
        #FFD700 50%,
        var(--secondary-color) 100%
    );
    background-size: 200% auto;
    z-index: -1;
    transition: 0.5s;
}

.cta-button::after {
    content: '→';
    margin-left: 10px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 184, 96, 0.5);
}

.cta-button:hover::before {
    background-position: 100% center;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 184, 96, 0.3);
}

/* Media queries para o botão */
@media (max-width: 768px) {
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

/* Ajustando o container do botão */
.hero .cta-button-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

footer {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    color: #666; /* Cor do texto mais suave */
    font-size: 0.9rem;
    margin-top: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
}

footer p {
    margin: 0;
    opacity: 0.8;
}

.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 2rem 1rem;
    min-height: calc(100vh - 4rem); /* Altura total menos padding */
    background: transparent;
}

.contact-page h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: center;
}

.contact-page .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-form {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.contact-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(244, 184, 96, 0.15);
    background: #fff;
}

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

.submit-button {
    width: 100%;
    padding: 1.2rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 8px;
    background: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 184, 96, 0.4);
    background: #e5a754;
}

.submit-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-page {
        padding: 1rem;
    }
    
    .contact-form {
        width: 95%;
        padding: 1rem;
    }
    
    .contact-page h1 {
        font-size: 2rem;
    }
}

/* Estilos específicos para a página de projetos */
.projects-page {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.projects-page h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-card:active {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    aspect-ratio: 9/16;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-info {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    transform: none;
}

.project-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.project-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Hover effect apenas na imagem */
.project-card:hover img {
    transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 480px) {
    .project-info {
        padding: 0.75rem;
    }

    .project-info h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .project-info p {
        font-size: 0.8rem;
    }
}

/* Responsividade ajustada para manter proporção */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

.reviews-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2rem 2rem 5rem;
    margin-top: -6rem; /* Move a seção para cima */
    background: transparent;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.reviews-section h2 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: inline-block;
}

.review-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.review {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.review.active {
    position: relative;
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.review-wrapper {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(244,184,96,0.2);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 0.2rem;
}

.review-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    font-style: italic;
    quotes: """ """;
    padding: 0 1rem;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    text-align: center;
    position: relative;
}

.verified {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-footer {
    text-align: center;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.indicator.active {
    background: var(--secondary-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

@media (max-width: 768px) {
    .review-wrapper {
        min-height: 450px;
    }
    
    .review {
        padding: 2rem 1.5rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .review-text {
        font-size: 1rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-button.prev { left: -10px; }
    .carousel-button.next { right: -10px; }
    
    .reviews-section {
        margin-top: -2rem;
        padding: 1rem 1rem 4rem;
    }
    
    .reviews-section h2 {
        font-size: 2rem;
        padding: 10px 20px;
        max-width: 95%;
    }
}

.projects-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-media-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.project-media-card:hover {
    transform: translateY(-5px);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.media-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .projects-media-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem auto;
    z-index: 1001;
}

.modal-header {
    padding: 0 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.modal-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.media-container {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Garante que os controles fiquem acima da imagem em tela cheia */
.close-modal {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: white;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.close-modal:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.close-modal:active {
    transform: scale(0.95);
    background: rgb(200, 35, 51);
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .close-modal {
        width: 36px;
        height: 36px;
        font-size: 20px;
        right: 15px;
        top: 15px;
    }
}

.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    animation: attention 2s infinite;
}

/* Animação de atenção constante */
@keyframes attention {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

.nav-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: none; /* Para o efeito de atenção quando hover */
    transform: translateY(-50%) scale(1.1);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(255, 255, 255, 0.8);
}

.nav-button.prev {
    left: 20px;
}

.nav-button.next {
    right: 20px;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .nav-button {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    .nav-button.prev {
        left: 10px;
    }
    
    .nav-button.next {
        right: 10px;
    }

    /* Ajusta a animação para mobile */
    @keyframes attention {
        0% {
            transform: translateY(-50%) scale(1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        50% {
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        100% {
            transform: translateY(-50%) scale(1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
    }
}

.modal-info-wrapper {
    position: relative;
    z-index: 1002; /* Aumentado o z-index */
    background: rgba(255, 255, 255, 0.95);
    margin-top: 1rem;
    border-radius: 8px;
    pointer-events: auto; /* Garante que os eventos de toque funcionem */
}

.media-counter {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.project-description {
    line-height: 1.6;
    color: #333;
    padding-bottom: 30px;
    -webkit-user-select: text;
    user-select: text;
}

/* Estilos para imagem em tela cheia */
.media-container img:fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: black;
    z-index: 1001;
}

/* Suporte para diferentes navegadores */
.media-container img:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: black;
    z-index: 1001;
}

.media-container img:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: black;
    z-index: 1001;
}

.media-container img:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: black;
    z-index: 1001;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .close-modal,
    .nav-button {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 0.5rem;
    }

    .modal-info-wrapper {
        margin-top: 0.5rem;
        max-height: 30vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Melhora a rolagem no iOS */
    }
}

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.success-message.active {
    opacity: 1;
}

.success-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-width: 90%;
    width: 400px;
}

.success-message.active .success-content {
    transform: translateY(0);
}

.success-content h3 {
    color: #4CAF50;
    margin: 1rem 0;
}

.close-success {
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-success:hover {
    background: #45a049;
}

/* Animação do checkmark */
.checkmark {
    width: 52px;
    height: 52px;
    margin: 0 auto;
}

.checkmark-circle {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.media-container img {
    transform-origin: center;
    transition: transform 0.1s ease-out;
    touch-action: none; /* Previne comportamentos padrão de toque */
}

/* Estilos específicos para vídeos no modal */
.media-container video {
    max-width: 90%;
    max-height: 90%;
    pointer-events: auto; /* Permite controles do vídeo */
}

.media-container video:fullscreen,
.media-container video:-webkit-full-screen,
.media-container video:-moz-full-screen,
.media-container video:-ms-fullscreen {
    pointer-events: auto;
}

/* Garantindo que o conteúdo principal fique acima do background */
main {
    position: relative;
    z-index: 1;
    overflow: hidden;
    flex: 1;
    background: transparent;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Ajustes para o hero section */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }
}

/* Ajustes para o footer */
@media (max-width: 768px) {
    .background-grid,
    .background-overlay {
        transform: none !important; /* Desativa o parallax em telas menores */
    }
}

/* Remover possíveis backgrounds de outras seções */
.reviews-section {
    background: transparent;
}

/* Remover qualquer margin ou padding do final da página */
section:last-child,
div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ajuste para garantir que o conteúdo não crie espaços em branco */
.container,
.content-wrapper {
    background: transparent;
    margin-bottom: 0;
}

/* Correção para possíveis problemas de margin collapse */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden; /* Previne rolagem horizontal */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px); /* Ajusta para o tamanho do header */
    background: transparent;
}

/* Ajustes específicos para o background na página de projetos */
.projects-page .background-grid {
    display: none !important;
}

/* Ajusta o fundo da página de projetos para um tom neutro */
.projects-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Garantir que as colunas na página de projetos se comportem igual à home */
.projects-page .grid-column {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: none !important; /* Remove transformações específicas */
}

.projects-page .grid-column img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.2);
    transition: opacity 2s ease-in-out;
    opacity: 0.7;
    will-change: transform;
}

/* Remover quaisquer estilos específicos que possam estar interferindo */
.projects-page {
    position: relative;
    z-index: 1;
    background: transparent;
}

.projects-grid {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Manter as animações consistentes com a home */
.projects-page .grid-column:nth-child(1) {
    animation: scrollDown 120s linear infinite !important;
}

.projects-page .grid-column:nth-child(2) {
    animation: scrollUp 150s linear infinite !important;
}

.projects-page .grid-column:nth-child(3) {
    animation: scrollDown 180s linear infinite !important;
}

/* Ajustes mobile específicos para a página de projetos */
@media (max-width: 768px) {
    .projects-page .background-grid {
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
    
    .projects-page .grid-column {
        transform: none !important;
    }
}

/* Estilo para o cabeçalho da página de projetos */
.projects-page .main-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)) !important;
    padding: 2rem 1rem !important;
    text-align: center !important;
    color: white !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
}

.projects-page .main-header h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    color: white !important;
}

.projects-page .main-header p {
    font-size: 1.2rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    opacity: 0.9 !important;
    color: white !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .projects-page .main-header {
        padding: 1.5rem 1rem !important;
    }

    .projects-page .main-header h1 {
        font-size: 2rem !important;
    }

    .projects-page .main-header p {
        font-size: 1rem !important;
    }
}

/* Reset de outros estilos que podem estar interferindo */
.projects-page .main-header::before,
.projects-page .main-header::after {
    display: none !important;
}

.projects-page .main-header * {
    position: relative !important;
    z-index: 2 !important;
}

/* Estilo para títulos principais */
.hero h1, 
.contact-page h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7),
                 -1px -1px 0 rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Estilo para subtítulos */
.hero .subtitle,
.contact-page .subtitle {
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 6px;
    backdrop-filter: blur(3px);
}

/* Estilo para o título "Clientes felizes" */
.reviews-section h2 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: inline-block;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h1,
    .contact-page h1 {
        font-size: 2.2rem;
        padding: 12px 20px;
    }

    .hero .subtitle,
    .contact-page .subtitle {
        font-size: 1.2rem;
        padding: 8px 15px;
    }

    .reviews-section h2 {
        font-size: 2rem;
        padding: 10px 20px;
        max-width: 95%;
    }
}

/* Efeito de borda luminosa */
.hero h1,
.contact-page h1,
.reviews-section h2 {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); /* Borda dourada sutil */
}

/* Container para textos principais */
.text-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Ajustes para melhorar a rolagem em mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: relative;
        -webkit-overflow-scrolling: touch; /* Melhora rolagem no iOS */
    }

    .background-grid,
    .background-overlay {
        position: fixed !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto; /* Remove will-change em mobile */
    }

    .hero,
    .reviews-section,
    main {
        position: relative;
        z-index: 1;
        -webkit-overflow-scrolling: touch;
    }

    /* Garante que o conteúdo seja rolável */
    .main-content {
        position: relative;
        z-index: 2;
    }
}

/* Previne interação com o background em mobile */
@media (hover: none) and (pointer: coarse) {
    .background-grid,
    .background-overlay {
        pointer-events: none;
    }
}

/* Ajuste específico para o container principal do index */
.hero {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Previne rolagem adicional */
}

/* Ajuste do background para evitar rolagem dupla */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

/* Ajuste da seção de reviews */
.reviews-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Container principal */
main {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Remover qualquer overflow adicional */
.background-overlay,
.main-header,
.main-content {
    overflow: hidden;
}
