/* Google Fonts moved to HTML for performance */

:root {
    --primary-yellow: #FDFF00;
    --primary-green: #065F46;
    /* Deep Forest Green for professionalism */
    --accent-green: #10B981;
    /* Brighter green for UI elements */
    --bg-white: #FFFFFF;
    --bg-card: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #475569;
    --accent-gradient: linear-gradient(135deg, #065F46 0%, #10B981 100%);
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-light: #E2E8F0;
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -5px rgba(0, 0, 0, 0.02);
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
    z-index: 9999;
}

h1,
h2,
h3,
.brand-font {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Updated card style for luxury feel */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-green);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card>* {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px -10px rgba(6, 95, 70, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card:hover h3 {
    color: var(--primary-green);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Navigation */
nav {
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.logo-img {
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--primary-green);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    max-width: 900px;
}

.gradient-text {
    color: var(--primary-green);
    /* Removed gradient, using Forest Green */
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-button {
    padding: 1.2rem 3rem;
    border-radius: 16px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #0F172A;
    color: #FFF;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.cta-button:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(6, 95, 70, 0.4);
}

/* Sections Refinement */
section {
    padding: 6rem 0;
    /* Reduced from 10rem */
}

.section-tag {
    display: block;
    text-align: center;
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    text-align: center;
    line-height: 1.2;
}

/* Methodology Grid */
.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.method-item {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.method-item:hover {
    border-color: var(--primary-yellow);
    background: #FFF;
}

.method-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(6, 95, 70, 0.08);
    margin-bottom: 1rem;
    line-height: 1;
}

.method-item:hover .method-num {
    color: var(--primary-yellow);
}

/* Statistics section */
#dados {
    background: #0F172A;
    border-radius: 40px;
    margin: 2rem 0;
    color: #FFF;
    position: relative;
    overflow: hidden;
}

#dados::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-yellow);
    filter: blur(100px);
    opacity: 0.1;
}

#dados .section-title {
    color: #FFF;
}

#dados p {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer & Form */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.contact-form {
    width: 100%;
    max-width: 650px;
    background: #FFF;
    padding: 3.5rem;
    border-radius: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.08);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #F1F5F9;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: #F8FAFC;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: #FFF;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    background: #0F172A;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(6, 95, 70, 0.3);
}

.confirmation-msg {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #DCFCE7;
    color: #065F46;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 5rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
}

@media (max-width: 992px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-links {
        display: none;
    }

    .contact-form {
        padding: 2.5rem;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }
}

/* Game Overlay */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    color: #FFF;
}

.game-container {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--bg-white);
    border-radius: 40px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

.game-header {
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}

.game-stats {
    display: flex;
    gap: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.game-play-area {
    flex: 1;
    position: relative;
    background-image: url('assets/game_bcg_hor.jpg');
    background-repeat: repeat;
    background-size: auto;
    overflow: hidden;
    cursor: none;
}

.game-basket {
    position: absolute;
    bottom: 2rem;
    width: 120px;
    height: 80px;
    background-image: url('assets/basket.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Falling Items */
.game-item {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.item-lemon-green {
    background-image: url('assets/limao_green.png');
}

.item-lemon-yellow {
    background-image: url('assets/limao_yellow.png');
}

/* Hazards */
.item-hazard-pedra {
    background-image: url('assets/pedra.png');
}

.item-hazard-gear {
    background-image: url('assets/gear.png');
}

.item-hazard-bug {
    background-image: url('assets/bug.png');
}

/* Game Instructions & Results Overlays */
.game-instructions,
.game-results {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.game-instructions h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.instruction-grid {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.ins-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.lemon {
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
}

.lemon.green {
    background-image: url('assets/limao_green.png');
}

.lemon.yellow {
    background-image: url('assets/limao_yellow.png');
}

.hazard {
    width: 22px;
    height: 22px;
    background-image: url('assets/bug.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.final-score {
    font-size: 6rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--primary-green);
    margin: 1rem 0;
}

.analytics-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-light);
}

.analytics-content p {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.analytics-content b {
    color: var(--primary-green);
}

/* Secondary Button Style */
.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--text-main);
    color: #FFF;
}

/* Scroll Lock */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .game-container {
        border-radius: 0;
        height: 100%;
        width: 100%;
    }

    .game-basket {
        width: 92px;
        /* Increased by 15% (from 80px) */
        height: 58px;
        /* Proportional increase */
        bottom: 120px;
        /* Higher position to avoid finger covering it */
    }

    .game-item {
        width: 51px;
        /* Reduced by 15% (from 60px) */
        height: 51px;
    }

    .game-header {
        padding: 1rem;
    }

    .game-play-area {
        cursor: default;
    }
}