/* ==================== VARIÁVEIS E RESET ==================== */
:root {
    --color-bg-soft: #E6E6E6;
    --color-primary: #91CB07;
    --color-contrast: #001601;
    --color-secondary: #556B07;
    --font-montserrat: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-montserrat);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== TIPOGRAFIA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up.animation-delay-200 {
    animation-delay: 0.2s;
}

.fade-in-up.animation-delay-400 {
    animation-delay: 0.4s;
}

.fade-in-up.animation-delay-600 {
    animation-delay: 0.6s;
}

/* ==================== HERO PATTERN ==================== */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 2px 2px, var(--color-secondary) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ==================== CTA BUTTONS ==================== */
.cta-button {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button-final {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.cta-button-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(145, 203, 7, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button-final:hover::before {
    width: 400px;
    height: 400px;
}

.cta-contribute-button {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.cta-contribute-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-contribute-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ==================== CARDS - COMO FUNCIONA ==================== */
.how-it-works-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.how-it-works-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.how-it-works-card:hover::before {
    opacity: 0.05;
}

.how-it-works-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 22, 1, 0.1);
    border-color: var(--color-primary);
}

.how-it-works-card > * {
    position: relative;
    z-index: 1;
}

.icon-wrapper {
    transition: transform 0.4s ease;
}

.how-it-works-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* ==================== PROJECT CARDS ==================== */
.project-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(85, 107, 7, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 22, 1, 0.15);
    border-color: var(--color-primary);
}

.project-image {
    transition: transform 0.4s ease;
    overflow: hidden;
    background: var(--color-bg-soft);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image img {
    transition: transform 0.4s ease;
    object-fit: cover;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* ==================== VIDEO CONTAINER ==================== */
.video-container {
    position: relative;
    background: var(--color-contrast);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    border-radius: 24px;
}

/* ==================== SOCIAL ICONS ==================== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(145, 203, 7, 0.1);
    color: var(--color-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(145, 203, 7, 0.3);
}

/* ==================== TERMÔMETRO STYLES ==================== */
.thermometer-container {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 22, 1, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thermometer-wrapper {
    width: 100%;
    max-width: 500px;
}

.thermometer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.thermometer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.thermometer-track {
    fill: none;
    stroke: var(--color-bg-soft);
    stroke-width: 20;
}

.thermometer-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 20;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
    stroke-dasharray: 848; /* 2 * PI * 135 (radius) */
    stroke-dashoffset: 848;
}

.thermometer-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.thermometer-percentage {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.thermometer-label {
    font-size: 0.875rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.thermometer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.thermometer-stat {
    background: var(--color-bg-soft);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.thermometer-stat:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
}

.thermometer-stat:hover .stat-value,
.thermometer-stat:hover .stat-label {
    color: white;
}

.stat-value {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 700;
    color: var(--color-contrast);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.thermometer-last-contribution {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-bg-soft);
    text-align: center;
}

.last-contribution-label {
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.last-contribution-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .thermometer-circle {
        width: 250px;
        height: 250px;
    }
    
    .thermometer-percentage {
        font-size: 2.5rem;
    }
    
    .thermometer-stats {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-card {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .thermometer-container {
        padding: 2rem 1.5rem;
    }
    
    .thermometer-circle {
        width: 200px;
        height: 200px;
    }
    
    .thermometer-percentage {
        font-size: 2rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-balance {
    text-wrap: balance;
}

/* ==================== SMOOTH SCROLL ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== LOADING STATES ==================== */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

