/* ============================================
   IMPORTAÇÕES E RESET GLOBAL
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #5b5b5b;
    color: #ffffff;
}

.hidden {
    display: none !important;
}

/* ============================================
   BOTÃO VOLTAR PARA HOME
   ============================================ */
.btn-voltar-home {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-voltar-home:hover {
    background: #0560ba;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(5, 96, 186, 0.4);
    border-color: #1580ea;
}

.btn-voltar-home i {
    font-size: 1rem;
}

/* ============================================
   NAVEGAÇÃO - CORRIGIDA PARA #2c3e50
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 5%;
    background: #2f2e2edb;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 90px;
}

.logo-mascote {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.logo-mascote img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #1580ea;
    transform: translateX(3px);
}

.nav-menu li a i {
    font-size: 0.9rem;
}

/* Menu Toggle (Desktop - oculto) */
.menu-toggle {
    display: none;
}

/* ============================================
   SEÇÃO HERO
   ============================================ */
.hero-section {
    background: linear-gradient(rgba(0, 65, 131, 0.9), rgba(0, 65, 131, 0.8)), 
                url('https://www.transparenttextures.com/patterns/cubes.png');
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(21, 128, 234, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    line-height: 1.8;
}

/* ============================================
   TÍTULOS GERAIS
   ============================================ */
.h2_title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.h2_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0560ba, #1580ea);
    border-radius: 2px;
}

.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #b0b0b0;
    font-size: 1.1rem;
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */
.sobre-section {
    padding: 80px 5%;
    background-color: #2f2e2e;
}

.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.sobre-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(21, 128, 234, 0.2);
    transition: all 0.3s ease;
}

.sobre-card:hover {
    transform: translateY(-10px);
    border-color: #1580ea;
    box-shadow: 0 10px 30px rgba(21, 128, 234, 0.2);
}

.sobre-card i {
    font-size: 3rem;
    color: #1580ea;
    margin-bottom: 20px;
}

.sobre-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.sobre-card p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   SEÇÃO PROJETOS - ÁREA VAGA
   ============================================ */
.projetos-section {
    padding: 80px 5%;
    background-color: #004183;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.projeto-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.projeto-imagem {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.projeto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projeto-card:hover .projeto-imagem img {
    transform: scale(1.1);
}

/* Placeholder para projetos */
.placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    color: #5b5b5b;
    border: 3px dashed #0560ba;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #0560ba;
}

.placeholder-content span {
    font-size: 0.9rem;
    font-weight: 600;
}

.projeto-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projeto-info h3 {
    color: #004183;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.projeto-info p {
    color: #5b5b5b;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #0560ba;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.projeto-link {
    margin-top: auto;
    color: #0560ba;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.projeto-link:hover {
    color: #004183;
}

/* ============================================
   SEÇÃO FOTOS - ÁREA VAGA
   ============================================ */
.fotos-section {
    padding: 80px 5%;
    background: linear-gradient(rgba(0, 65, 131, 0.05), rgba(0, 65, 131, 0.05)), 
                url('https://www.transparenttextures.com/patterns/cubes.png');
    background-color: #2f2e2e;
}

/* Botão da galeria */
.galeria-btn {
    display: block;
    margin: 0 auto 40px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #0560ba;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 96, 186, 0.4);
    font-family: 'Poppins', sans-serif;
}

.galeria-btn:hover {
    background-color: #1580ea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 128, 234, 0.5);
}

.galeria-btn.active {
    background-color: #004183;
}

.galeria-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.galeria-btn.active i {
    transform: rotate(180deg);
}

/* Container da galeria */
.galeria-container {
    animation: fadeIn 0.5s ease-in;
}

/* Grid da galeria */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Item da foto */
.foto-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.foto-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.foto-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.foto-item:hover img {
    filter: grayscale(0%);
}

/* Placeholder para fotos */
.placeholder-foto {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border: 3px dashed #0560ba;
}

.foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
}

.foto-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #0560ba;
}

.foto-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

/* Legenda da foto */
.foto-legenda {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 65, 131, 0.95));
    color: #fff;
    padding: 20px 15px 15px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foto-item:hover .foto-legenda {
    opacity: 1;
}

/* ============================================
   RODAPÉ
   ============================================ */
.footer {
    padding: 40px 5%;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

.footer p {
    margin-bottom: 20px;
    color: #888;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: #1580ea;
    background: rgba(21, 128, 234, 0.1);
    transform: translateY(-3px);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-out forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Botão voltar ajuste */
    .btn-voltar-home {
        top: 75px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .btn-voltar-home span {
        display: none;
    }

    /* Menu Hambúrguer */
    .menu-toggle {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        background: #333;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 1001;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .menu-toggle:hover {
        background: #555;
        transform: scale(1.05);
    }

    .menu-toggle.active {
        background: #1580ea;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #2c3e50;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        margin-left: 0;
        gap: 4px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        list-style: none;
        width: 100%;
        margin: 4px 0;
    }

    .nav-menu li a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-size: 18px;
        padding: 12px 20px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
        color: #ffffff;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Títulos */
    .h2_title {
        font-size: 1.8rem;
    }

    /* Grid de projetos */
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Grid da galeria */
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    /* Seção equipe */
    .equipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .h2_title {
        font-size: 1.5rem;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .equipe-grid {
        grid-template-columns: 1fr;
    }
}