/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header e Navegação */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

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

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 3px;
}

nav a:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-align: center;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    animation: fadeIn 1s ease 0.6s both;
}

/* Seção O que é a Fábrica */
.about {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

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

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition);
    text-align: justify;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image {
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition);
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image i {
    font-size: 10rem;
    color: var(--secondary-color);
}

/* Seção Projetos */
.projects {
    background-color: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.project-icon {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 2.5rem;
}

.project-content {
    padding: 20px;
    text-align: center;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Seção Responsáveis - LAYOUT ÚNICO */
.team {
    background-color: var(--light-color);
}

.team-single {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.team-single.animate {
    opacity: 1;
    transform: translateY(0);
}

.team-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.profile-image {
    text-align: center;
}

.profile-image i {
    font-size: 8rem;
    color: var(--text-light);
    opacity: 0.9;
}

.profile-info h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-role {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.profile-contact i {
    width: 20px;
    color: var(--light-color);
}

/* Curriculum */
.team-curriculum {
    padding: 40px;
}

.curriculum-section {
    margin-bottom: 30px;
}

.curriculum-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.curriculum-section h4 i {
    color: var(--secondary-color);
}

.curriculum-section ul {
    list-style: none;
    padding-left: 0;
}

.curriculum-section li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.curriculum-section li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.curriculum-section li strong {
    color: var(--primary-color);
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--secondary-color);
}

/* Seção Extensionistas - LISTA */
.extensionists {
    background-color: #f8f9fa;
}

.extensionists-list {
    max-width: 800px;
    margin: 0 auto;
}

.extensionist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.extensionist-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.extensionist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.extensionist-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.extensionist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.extensionist-details h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.extensionist-details p {
    margin-bottom: 0;
    color: var(--secondary-color);
    font-weight: 500;
}

.extensionist-period {
    background-color: var(--light-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries - Mobile First */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image i {
        font-size: 8rem;
    }

    .team-profile {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-image i {
        font-size: 6rem;
    }

    .profile-info h3 {
        font-size: 1.5rem;
    }

    .team-curriculum {
        padding: 30px 20px;
    }

    .specialties {
        justify-content: center;
    }

    .extensionist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .extensionist-period {
        align-self: flex-end;
    }
}

@media (min-width: 769px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .team-profile {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
}