/* Reset e Variáveis */
:root {
    --cor-primaria: #8CC63F;
    --cor-secundaria: #333333;
    --cor-texto: #4A4A4A;
    --cor-fundo: #FFFFFF;
    --cor-fundo-escuro: #1A1A1A;
    --fonte-principal: 'Poppins', sans-serif;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

/* Header */
header {
    background: var(--cor-fundo);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    position: relative;
}

.logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

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

nav a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cor-primaria);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--cor-primaria);
    color: white;
}

.btn-primary:hover {
    background: #7ab535;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/aerial-view-of-river-running-through-tropical-rain-2023-11-27-05-30-09-utc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Seção Nossa Visão */
.vision {
    padding: 80px 0;
    background: linear-gradient(-45deg, 
        #1A1A1A,
        #2A2A2A,
        #8CC63F,
        #1A1A1A
    );
    background-size: 300% 300%;
    animation: gradientBg 10s ease infinite;
    position: relative;
    color: white;
}

@keyframes gradientBg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.vision .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.vision .section-title h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.vision .section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.47);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content i {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 15px;
}

.card-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .logo img {
        max-height: 50px;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--cor-fundo-escuro);
    color: white;
    text-align: center;
}

.contact .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.contact .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact .section-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.contact-form .card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 15px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.contact-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('../images/floresta-hero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--cor-fundo-escuro);
    color: white;
    padding: 40px 0;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a i {
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--cor-secundaria);
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--cor-primaria);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content,
    .cards-grid,
    .contact-content,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
    }

    .contact-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: all 0.8s ease-out;
    flex-direction: column;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.lung-spinner {
    width: 150px;
    height: 180px;
    background-color: var(--cor-primaria);
    border-radius: 50% 50% 0 0;
    position: relative;
    animation: breathe 3s infinite ease-in-out;
    margin-bottom: 20px;
}

.lung-spinner::before,
.lung-spinner::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: var(--cor-primaria);
    border-radius: 50%;
    top: 0;
}

.lung-spinner::before {
    left: -50%;
    transform: rotate(45deg);
}

.lung-spinner::after {
    right: -50%;
    transform: rotate(-45deg);
}

.loading-text {
    font-size: 24px;
    color: var(--cor-primaria);
    margin-top: 20px;
    font-weight: 500;
    animation: fadeInOut 2s infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}
