/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #273433 0%, #ffd700 50%, #273433 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Progress Bar */
@media (max-width: 768px) {
    .progress-bar {
        background: linear-gradient(90deg, #273433 0%, #273433 50%, #273433 100%);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

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

/* Reset margins for all sections */
section {
    margin: 0;
    padding: 0;
}

section + section {
    margin-top: 0;
}

/* Add spacing between specific sections */
.about {
    margin-bottom: 0;
}

.services {
    margin-top: 0;
    margin-bottom: 0;
}

.logistics {
    margin-top: 0;
    margin-bottom: 0;
}

.cta {
    margin-top: 0;
    margin-bottom: 0;
}

.contact {
    margin-top: 0;
    margin-bottom: 0;
}

.partners {
    margin-top: 0;
    margin-bottom: 0;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Hide language selector inside nav-menu on desktop */
.nav-menu .language-selector {
    display: none;
}

.lang-btn {
    width: 35px;
    height: 35px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lang-btn img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.lang-btn:hover {
    border-color: #273433;
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 90px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(15%) sepia(8%) saturate(1000%) hue-rotate(120deg) brightness(95%) contrast(85%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #273433;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #273433;
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.layer-1 {
    background-image: url('imagens/background/2151468884.jpg');
    opacity: 0.8;
}

.layer-2 {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.7) 0%, rgba(74, 124, 89, 0.6) 50%, rgba(107, 160, 107, 0.5) 100%);
    opacity: 0.9;
}

.layer-3 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.03)"/><circle cx="1000" cy="600" r="80" fill="rgba(255,255,255,0.04)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #ffd700;
    color: #273433;
    border-color: #ffd700;
}

.btn-primary:hover {
    background: transparent;
    color: #ffd700;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #273433;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #273433;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content {
    margin-bottom: 60px;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #313131 !important;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #273433, #4a7c59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #273433;
    margin-bottom: 15px;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #273433;
    margin: 0;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.services-layer-1 {
    background-color: #273433;
    background-image: url('imagens/background/2151541890.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
}

.services-layer-2 {
    background: linear-gradient(to bottom, rgba(26, 61, 31, 0.6) 0%, rgba(26, 61, 31, 0.8) 70%, #273433 100%);
    opacity: 1;
}

.services-content {
    color: #ffffff !important;
}

.services-content h2 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.services-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 1;
    color: #ffffff !important;
    font-weight: 600;
}

.service-features {
    margin-top: 50px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-top: 10px;
}

.feature h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
}

.feature p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 1;
    color: white;
    font-weight: 500;
}

/* Logistics Section */
.logistics {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    background-color: #273433;
    min-height: 600px;
    margin: 0;
}

.logistics-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.logistics-layer {
    background-color: #273433;
    background-image: url('imagens/background/2151541890.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.logistics-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(39, 52, 51, 0.9) 0%, 
        rgba(52, 73, 94, 0.8) 25%, 
        rgba(39, 52, 51, 0.9) 50%, 
        rgba(52, 73, 94, 0.8) 75%, 
        rgba(39, 52, 51, 0.9) 100%);
    z-index: 1;
}

.logistics-content {
    color: white;
    position: relative;
    z-index: 2;
}

.logistics-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffd700;
    text-align: center;
}

.logistics-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0.9;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.logistics-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.logistics-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.logistics-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.logistics-feature i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.logistics-feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
}

.logistics-feature p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 500px;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    z-index: -1;
}

.cta-layer {
    background-image: url('imagens/background/2151541844.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #273433;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
}

.cta-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(39, 52, 51, 0.3) 0%, 
        rgba(52, 73, 94, 0.2) 25%, 
        rgba(39, 52, 51, 0.3) 50%, 
        rgba(52, 73, 94, 0.2) 75%, 
        rgba(39, 52, 51, 0.3) 100%);
    z-index: 1;
}

.cta-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 50px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #273433;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #273433;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

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

/* Partners Section */
.partners {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #e9ecef;
    margin: 0;
}

.partners h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #273433;
    margin-bottom: 50px;
}

.partners-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 40px;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.carousel-slide:hover img {
    filter: grayscale(0%);
}

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

/* Footer */
.footer {
    background: #273433;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .language-selector {
        display: none;
    }
    
    /* Language buttons in mobile menu - only show on mobile */
    .nav-menu .language-selector {
        display: flex !important;
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #e9ecef;
        gap: 15px;
    }
    
    .nav-menu .lang-btn {
        width: 40px;
        height: 40px;
    }
    
    .nav-menu .lang-btn img {
        width: 30px;
        height: 30px;
    }
    
    .nav-logo img {
        height: 90px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
        color: #273433;
    }
    
    .section-header p {
        font-size: 1rem;
        color: #273433;
    }
    
    .about-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #313131 !important;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature {
        display: block!important;
        text-align: center;
    }
    
    .feature i {
        margin: 0 auto 20px auto;
        display: block!important;
    }
    
    .logistics-text h2 {
        font-size: 2rem;
    }
    
    .logistics-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logistics-feature {
        padding: 25px 15px;
    }
    
    .logistics-feature i {
        margin: 0 auto 20px auto;
        display: block;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .carousel-slide {
        width: 150px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .about-content p {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #313131 !important;
    }
    
    .carousel-slide {
        width: 120px;
        height: 60px;
    }
    
    .nav-logo img {
        height: 90px;
    }
    
    .footer-logo img {
        height: 100px;
    }
    
    .logistics-text h2 {
        font-size: 1.8rem;
    }
    
    .logistics-feature {
        padding: 20px 15px;
    }
    
    .logistics-feature i {
        font-size: 2rem;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 3px solid #273433;
    }
    
    .btn-secondary {
        border: 3px solid white;
    }
}
