/* Importação de fonte alternativa do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Fonte personalizada */
@font-face {
    font-family: 'EurostileExtendedBlack';
    src: url('../fonts/eurostile-extended-black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Remove scrollbars para WebKit browsers */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Previne overflow horizontal em todos os elementos */
* {
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Remove scrollbars de todos os elementos */
*::-webkit-scrollbar {
    display: none;
}

*:not(.partners-track) {
    max-width: 100%;
}

/* Página de Carregamento */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-tap-hint {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 1000;
    animation: tapPulse 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-tap-hint p {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(155, 89, 182, 0.9));
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', 'Arial', sans-serif;
}

.mobile-tap-hint::before {
    content: '👆';
    font-size: 40px;
    animation: tapBounce 1.5s infinite;
}

@keyframes tapPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes tapBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.main-content {
    transition: opacity 0.25s ease-in;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

body {
    font-family: 'Orbitron', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Aplicar fonte a todos os elementos */
*, *::before, *::after {
    font-family: 'Orbitron', 'Arial', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.15s ease;
    margin-top: 20px;
}

.navbar.visible {
    top: 0;
}

.nav-container {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 60px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(1);
    transition: all 0.3s ease;
}

.nav-logo a:hover .logo-img {
    filter: brightness(0) saturate(100%) opacity(0.8);
}

.nav-logo a:hover {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 15px;
    font-family: 'Orbitron', 'Arial', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: rgba(0, 0, 0, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.nav-link.active::after {
    display: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.15s;
}

/* Seções */
.section {
    min-height: 100vh;
    padding: 100px 0 50px;
    display: block;
    overflow-x: hidden;
}

.section.active {
    display: block;
}

.section h1,
.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 2.5rem;
}

.section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Home Section */
#home {
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

#home h1,
#home p {
    color: white;
}

/* Home Content */
.home-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 80vh;
    width: 100%;
    padding-bottom: 10vh;
}

.home-buttons {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    min-width: 200px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.25s ease;
}

.home-btn:hover::before {
    left: 100%;
}

.home-btn:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-text {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
    font-weight: 300;
}

.btn-simulacao:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
}

.btn-sobre:hover {
    background: rgba(218, 204, 204, 0.3);
    border-color: #A69F8C;
}

/* About Section */
#sobre {
    background-color: #A69F8C;
    overflow-x: hidden;
}

/* Contact Section */
#contato {
    background-color: #A69F8C;
    padding: 60px 0;
    overflow-x: hidden;
}

/* Correções para remover espaço em branco entre seções */
@media screen and (max-width: 1024px) {
    #simulacao {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    #contato {
        padding-top: 0;
        margin-top: 0;
    }
    
    .simulation-form-container {
        margin-bottom: 0;
    }
    
    .contact-content {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 768px) {
    #simulacao {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    #contato {
        padding: 0;
        margin-top: 0;
    }
    
    .simulation-form-container {
        margin-bottom: 0;
    }
    
    .contact-content {
        margin-top: 1rem;
        margin-bottom: 0;
        gap: 1rem;
    }
}

@media screen and (max-width: 320px) {
    #simulacao {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    #contato {
        padding: 0;
        margin-top: 0;
    }
    
    .simulation-form-container {
        margin-bottom: 0;
    }
    
    .contact-content {
        margin-top: 0.5rem;
        margin-bottom: 0;
        gap: 0.5rem;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* Partners Section */
.partners-section {
    margin-top: 4rem;
    text-align: center;
}

.partners-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.partners-carousel {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    align-items: center;
    animation: scroll-left 30s linear infinite;
    width: calc(200% + 40px);
}

.partner-logo {
    height: 60px;
    width: auto;
    margin: 0 20px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

/* Botões */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    text-align: left;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #2c3e50;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.15s ease;
}

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



/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
    overflow: visible;
    width: 100%;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #d1d5db;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Info Section */
.info-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.info-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #000000;
}

.info-text {
    color: #2c3e50;
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Simulation Section */
.simulation-form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.simulation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.ddd-input {
    flex: 0 0 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.submit-btn {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .simulation-form-container {
        margin: 2rem 1rem 0;
        padding: 2rem;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .ddd-input {
        flex: 1;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item h3 {
    padding: 1rem;
    color: #2c3e50;
    text-align: center;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h3 {
    padding: 1rem 1rem 0.5rem;
    color: #2c3e50;
}

.blog-post p {
    padding: 0 1rem;
    text-align: left;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    padding: 0 1rem 1rem;
    display: block;
    font-weight: 500;
}

.read-more:hover {
    color: #2980b9;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.15s ease;
    font-family: 'Orbitron', 'EurostileExtendedBlack', 'Arial', sans-serif;
}

/* Garantir fonte em todos os elementos de texto */
label, span, div, a, li, td, th {
    font-family: 'Orbitron', 'EurostileExtendedBlack', 'Arial', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    text-align: left;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.contact-info p strong {
    color: #2c3e50;
}

/* Ícones de Redes Sociais */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2c5530;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
}

.social-icon:hover {
    background-color: #1a3a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 85, 48, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer link styles */
.footer-bottom a {
    color: #A69F8C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 0.6rem 0 0.2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: start;
}

.footer-section h3 {
    margin-bottom: 0.4rem;
    color: #A69F8C;
    font-size: 0.9rem;
}

.footer-section p {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.2rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #A69F8C;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    background: #34495e;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 0.75rem;
}

.social-links a:hover {
    background: #A69F8C;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.4rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.7rem;
}

/* Responsividade para Tablets */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        width: 85%;
        max-width: 500px;
        transform: translateX(-50%);
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        padding: 25px 0;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar.visible .nav-menu {
        top: 90px;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .container {
        max-width: 95%;
        padding: 0 25px;
    }
    
    .section {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .section h1 {
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
    }
    
    .service-card {
        max-width: 350px;
        margin: 0 auto;
    }

    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .simulation-form-container {
        max-width: 650px;
        margin: 3rem auto 0;
        padding: 3.5rem 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .simulation-form {
        width: 100%;
        max-width: 550px;
        gap: 2.25rem;
        align-items: center;
    }
    
    .form-row {
        justify-content: center;
        gap: 1.75rem;
    }
    
    .form-group {
        text-align: center;
        width: 100%;
    }
    
    .form-group input,
    .form-group select {
        text-align: center;
        padding: 1.15rem 1.4rem;
        font-size: 0.98rem;
    }
    
    .phone-input {
        justify-content: center;
        gap: 1rem;
    }
    
    .submit-btn {
        padding: 1.4rem 2.8rem;
        font-size: 1.05rem;
        margin: 2.75rem auto 0;
        display: block;
        width: fit-content;
        align-self: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .navbar {
        width: 95%;
        max-width: 900px;
    }
}

/* Responsividade para Mobile */
@media screen and (max-width: 768px) {
    /* Correção do background para mobile */
    #home {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 100vh;
    }
    
    /* Home buttons responsivos */
    .home-buttons {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .home-btn {
        min-width: 180px;
        padding: 1.5rem 1.5rem;
    }
    
    .btn-text {
        font-size: 1.1rem;
    }
    
    .btn-subtitle {
        font-size: 0.75rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 20px;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .partners-carousel {
        overflow-x: hidden;
        width: 100%;
    }
    
    .partners-track {
        width: calc(200% + 20px);
        animation: scroll-left 12s linear infinite;
    }
    
    .section {
        padding: 70px 0 30px;
        text-align: center;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        width: 90%;
        max-width: 400px;
        transform: translateX(-50%);
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        padding: 20px 0;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
        visibility: visible;
    }

    .navbar.visible .nav-menu {
        top: 90px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .simulation-form-container {
        max-width: 95%;
        margin: 3rem auto 0;
        padding: 3rem 2rem 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .simulation-form {
        width: 100%;
        max-width: 400px;
        gap: 2rem;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .form-group {
        text-align: center;
        width: 100%;
        max-width: 350px;
    }
    
    .form-group input,
    .form-group select {
        text-align: center;
        padding: 1.1rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .phone-input {
        justify-content: center;
        gap: 0.8rem;
        flex-direction: row;
        width: 100%;
    }
    
    .ddd-input {
        flex: 0 0 90px;
        text-align: center;
    }
    
    .submit-btn {
        padding: 1.25rem 2.5rem;
        font-size: 1rem;
        letter-spacing: 1.5px;
        margin: 2.5rem auto 0;
        display: block;
        width: fit-content;
        align-self: center;
        transition: none !important;
        cursor: default;
    }
    
    .submit-btn:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3) !important;
    }
    
    .submit-btn:active {
        transform: none !important;
    }
    
    .partners-carousel {
        text-align: center;
    }

    .social-icons {
        gap: 12px;
        margin-top: 15px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        max-width: 100%;
    }
    
    .service-card {
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }
    
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    

    
    .about-content {
        text-align: center;
        justify-items: center;
    }
    
    .contact-info {
        text-align: center;
        padding: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-section:nth-child(2) {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .footer-section h3 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .footer-section p {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .social-links {
        justify-content: center;
        gap: 0.4rem;
    }

    .footer {
        padding: 0.2rem 0 0.1rem;
        margin-top: -1.5rem;
    }

    .footer-bottom {
        padding-top: 0.15rem;
        font-size: 0.65rem;
    }
}

/* Seção de Informações Legais */
.footer-section:nth-child(2) {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Botão de Informações Legais */
.legal-info-btn {
    background-color: #000000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
    width: auto;
    min-width: 160px;
}

.legal-info-btn:hover {
    background-color: #202020;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(44, 85, 48, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal h2 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
    font-size: 0.9rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal h2 {
        font-size: 1.3rem;
    }
    
    .modal-body p {
        font-size: 0.85rem;
    }
    
    .legal-info-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        width: 100%;
        min-width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-section:nth-child(2) {
        text-align: center !important;
        align-items: center !important;
    }
}

@media screen and (max-width: 480px) {
    /* Correção do background para dispositivos móveis pequenos */
    #home {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 100vh;
        height: auto;
    }
    
    /* Home buttons para mobile pequeno */
    .home-content {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .home-buttons {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home-btn {
        min-width: 140px;
        padding: 1rem 1rem;
        min-height: 90px;
        flex: 1;
        max-width: 160px;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.7rem;
    }
    
    .partners-track {
        animation: scroll-left 15s linear infinite;
    }
    
    .submit-btn {
        margin: -1rem auto 0;
        display: block;
        width: fit-content;
        transition: none !important;
        cursor: default;
    }
    
    .submit-btn:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3) !important;
    }
    
    .submit-btn:active {
        transform: none !important;
    }
}

/* Media query para dispositivos muito pequenos (320px) */
@media screen and (max-width: 320px) {
    /* Home buttons para mobile extra pequeno */
    .home-content {
        min-height: 65vh;
        padding: 1.5rem 0;
    }
    
    .home-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home-btn {
        min-width: 120px;
        padding: 0.8rem 0.5rem;
        min-height: 80px;
        flex: 1;
        max-width: 140px;
    }
    
    .btn-text {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .btn-subtitle {
        font-size: 0.65rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .partners-carousel {
        overflow-x: hidden;
        width: 100%;
        padding: 10px 0;
    }
    
    .partners-track {
        width: calc(200% + 10px);
        animation: scroll-left 8s linear infinite;
    }

    .section {
        padding: 30px 0 15px;
        text-align: center;
    }

    .section h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .section h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .section p {
        text-align: center;
        font-size: 1rem;
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 15px;
    }
    
    .navbar {
        width: 95%;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        max-width: 100%;
    }
    
    .service-card {
        padding: 1rem;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }
    
    .simulation-form-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 5px;
    }
    
    .simulation-form {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-info {
        text-align: center;
        padding: 0.3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .partners-section {
        text-align: center;
        padding: 0 10px;
    }
    
    .info-content {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .footer {
        padding: 0.1rem 0 0.05rem;
        margin-top: -2rem;
    }
    
    .footer-content {
        gap: 0.2rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-bottom {
        padding-top: 0.1rem;
        font-size: 0.6rem;
    }
}