* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d2e;
    --secondary-color: #6aba72;
    --light-color: #ffffff;
    --dark-color: #0f2419;
    --text-color: #333;
    --text-light: #666;
    --shadow: 0 10px 40px rgba(26, 77, 46, 0.15);
    --shadow-hover: 0 15px 50px rgba(26, 77, 46, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.recycle-animation {
    font-size: 80px;
    color: var(--secondary-color);
    animation: rotateRecycle 2s infinite linear;
    margin-bottom: 20px;
}

@keyframes rotateRecycle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--light-color);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 10px;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

#header.scrolled {
    background: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 20px 0;
    transition: var(--transition);
}

#header.scrolled .navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--light-color);
    cursor: pointer;
}

.logo i {
    font-size: 32px;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    transition: var(--transition);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero-section {
    min-height: 100vh;
    position: relative;
    margin-top: 0;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 36, 25, 0.3);
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--light-color);
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--light-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(106, 186, 114, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 186, 114, 0.5);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--light-color);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    z-index: 3;
    backdrop-filter: blur(10px);
    border-radius: 5px;
}

.carousel-control:hover {
    background: rgba(106, 186, 114, 0.8);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 10px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 150px;
    color: var(--light-color);
    box-shadow: var(--shadow-hover);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 60px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    color: var(--light-color);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    color: var(--light-color);
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 46, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--light-color);
    font-size: 24px;
    text-align: center;
}

.impact-intro {
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.impact-card {
    background: var(--light-color);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.impact-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.impact-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.impact-label {
    color: var(--text-light);
    font-size: 14px;
}

/* CORREÃ‡ÃƒO DAS BARRAS DE PROGRESSO - INÃCIO */
.impact-chart {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.chart-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 24px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Mais espaÃ§o entre as barras */
}

.chart-bar {
    position: relative;
    width: 100%;
}

.chart-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px; /* EspaÃ§o entre o texto e a barra */
}

.bar-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.bar-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.bar-track {
    width: 100%;
    height: 25px;
    background-color: #e9ecef; /* Cor do fundo do trilho */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    transition: width 1.5s ease-out;
    width: 0; /* ComeÃ§a zerado e o JS anima */
    position: relative;
}
/* CORREÃ‡ÃƒO DAS BARRAS DE PROGRESSO - FIM */

.partners-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.partner-card {
    background: var(--light-color);
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.partner-logo {
    font-size: 60px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.partner-card h4 {
    color: var(--primary-color);
    font-size: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-subtitle {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-text {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form-container {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 186, 114, 0.5);
}

.footer {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 28px;
    color: var(--secondary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
}

.footer-bottom i {
    color: var(--secondary-color);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: var(--light-color);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-box {
        width: 300px;
        height: 300px;
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .carousel-content h1 {
        font-size: 36px;
    }

    .carousel-content p {
        font-size: 18px;
    }

    .carousel-control {
        padding: 10px 15px;
        font-size: 18px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .image-box {
        width: 250px;
        height: 250px;
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .carousel-content h1 {
        font-size: 28px;
    }

    .carousel-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 22px;
    }

    .logo i {
        font-size: 26px;
    }
}