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

body {
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    background-color: #f8f9fa;
    color: #333;
}

/* Esconde todas as barras de rolagem mas mantém a funcionalidade */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    mix-blend-mode: difference;
    height: 60px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background-color: #333;
    padding: 8px;
    border-radius: 4px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 2px 5px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 600;
}

/* Mobile Language Switcher */
.mobile-lang-switch {
    display: none;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-switch .lang-btn {
    font-size: 1rem;
    padding: 5px 10px;
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    perspective: 1px;
    transform-style: preserve-3d;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Section Styles */
.section {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
}

.section:not(:first-child) {
    margin-top: -25vh;  /* Reduced overlapping effect */
}

.section-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 0 10%;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Mudado de auto para hidden para evitar barra de rolagem extra */
}

/* First section has no border-radius on top */
#hero .section-content {
    border-radius: 0;
    box-shadow: none;
}

.text-content {
    flex: 1;
    z-index: 2;
    padding-right: 5%;
    max-width: 500px;
    margin-top: 80px; /* Espaço reduzido para o cabeçalho */
}

#contact .text-content {
    padding-top: 30px;
    padding-bottom: 30px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#contact .text-content::-webkit-scrollbar {
    display: none;
}

h1, h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #222;
}

.image-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-form p {
    margin: 0 0 8px 0; /* Reduzido para economizar espaço vertical */
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    width: 100%;
    background-color: white;
    display: block;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-form textarea::-webkit-scrollbar {
    display: none;
}

.contact-form textarea {
    height: 70px; /* Reduzido ainda mais para garantir que caiba */
    resize: none;
    margin-bottom: 5px;
    overflow-y: auto;
}

.email-contact {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}

.email-contact a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-contact a:hover {
    opacity: 0.7;
}

/* Hide honeypot field */
.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 2000;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #333;
}

/* Responsive Design */
@media (min-width: 1367px) {
    .text-content {
        margin-top: 100px; /* Reduzido para dar mais espaço ao formulário */
    }
}

@media (max-width: 1366px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .text-content {
        max-width: 450px;
        margin-top: 100px; /* Ajuste para esse breakpoint */
    }
}

@media (max-width: 1024px) {
    .section-content {
        flex-direction: column;
        padding: 3rem 10%;
    }
    
    .text-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
        margin-top: 80px;
    }
    
    #contact .text-content {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .image-container {
        width: 100%;
        height: 300px;
    }
    
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .section-content {
        flex-direction: column;
    }
    
    .text-content, .image-container {
        width: 100%;
    }
    
    .image-container {
        margin-top: 2rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 10px 12px;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        gap: 1.5rem;
        text-align: center;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .desktop-lang-switch {
        display: none;
    }
    
    .mobile-lang-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
    }
    
    .navigation {
        padding: 0.8rem 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section:not(:first-child) {
        margin-top: -20vh;
    }
    
    .text-content {
        margin-top: 70px;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .image-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .lang-switch {
        font-size: 0.7rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .text-content {
        margin-top: 60px;
    }
}

/* Active section styles */
.section.active .section-content {
    box-shadow: 0 -20px 100px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.footer {
    position: relative;
    width: 100%;
    background-color: rgba(245, 245, 245, 0.9);
    color: #666;
    text-align: center;
    padding: 12px 0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 300;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.footer p {
    margin: 0;
}
