/* mural.css */
/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #070738;
    --secondary: #1A1A5E;
    --accent: #FE0000;
    --accent-light: #ff4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    /* Cores vibrantes */
    --orange: #FF6B35;
    --orange-light: #FF8F5C;
    --green: #00C853;
    --green-light: #69F0AE;
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --pink: #EC4899;
    --pink-light: #F472B6;
    --cyan: #06B6D4;
    --cyan-light: #22D3EE;
    --yellow: #FBBF24;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 0, 0, 0.3);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(254, 0, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(254, 0, 0, 0.6); }
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(7, 7, 56, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
}

.logoimg {
    height: 30px;
    width: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--accent);
}

.header > .container > .btn {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile .btn {
    margin-top: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .header > .container > .btn {
        display: inline-flex;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* ===== HERO MURAL SECTION ===== */
.hero-mural {
    min-height: 60vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero-mural-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/cK1PsRP5/PAREDE-RECORTADA-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-mural-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 0;
}

.hero-mural-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(254, 0, 0, 0.2));
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-mural-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-mural-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-mural-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-mural-stats .stat {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-mural-stats .stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-mural-stats .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.hero-mural-stats .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero-mural-title {
        font-size: 2.5rem;
    }
    
    .hero-mural-description {
        font-size: 1rem;
    }
    
    .hero-mural-stats .stat {
        padding: 1rem 1.5rem;
    }
    
    .hero-mural-stats .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-mural-title {
        font-size: 2rem;
    }
    
    .hero-mural-stats {
        gap: 1rem;
    }
    
    .hero-mural-stats .stat {
        padding: 0.75rem 1rem;
    }
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(7, 7, 56, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ===== GALERIA DE APROVADOS ===== */
.galeria-aprovados {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #fef3f2 30%, #f0f9ff 70%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.galeria-aprovados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent), 
        var(--orange), 
        var(--green),
        var(--purple),
        transparent
    );
    opacity: 0.5;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    perspective: 1000px;
}

.galeria-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    animation: galeriaAppear 0.8s ease forwards;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    box-shadow: 0 10px 30px rgba(7, 7, 56, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes galeriaAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Delay para cada item aparecer de forma cascata */
.galeria-item:nth-child(1) { animation-delay: 0.1s; }
.galeria-item:nth-child(2) { animation-delay: 0.2s; }
.galeria-item:nth-child(3) { animation-delay: 0.3s; }
.galeria-item:nth-child(4) { animation-delay: 0.4s; }
.galeria-item:nth-child(5) { animation-delay: 0.5s; }
.galeria-item:nth-child(6) { animation-delay: 0.6s; }
.galeria-item:nth-child(7) { animation-delay: 0.7s; }
.galeria-item:nth-child(8) { animation-delay: 0.8s; }
.galeria-item:nth-child(9) { animation-delay: 0.9s; }
.galeria-item:nth-child(10) { animation-delay: 1s; }

.galeria-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.galeria-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de overlay colorido dinâmico */
.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(7, 7, 56, 0.9) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 1;
    transition: all 0.4s ease;
}

/* Efeito de brilho no hover */
.galeria-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: 2;
}

/* Efeitos no hover */
.galeria-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(254, 0, 0, 0.15),
        0 0 0 2px rgba(254, 0, 0, 0.1);
    z-index: 10;
}

.galeria-item:hover::before {
    left: 100%;
}

.galeria-item:hover .galeria-image img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

.galeria-item:hover .galeria-overlay {
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(7, 7, 56, 0.95) 100%
    );
}

/* Efeito de cor baseado na posição do item */
.galeria-item:nth-child(3n+1):hover {
    box-shadow: 
        0 25px 50px rgba(254, 0, 0, 0.2),
        0 0 0 2px rgba(254, 0, 0, 0.15);
}

.galeria-item:nth-child(3n+2):hover {
    box-shadow: 
        0 25px 50px rgba(255, 107, 53, 0.2),
        0 0 0 2px rgba(255, 107, 53, 0.15);
}

.galeria-item:nth-child(3n+3):hover {
    box-shadow: 
        0 25px 50px rgba(124, 58, 237, 0.2),
        0 0 0 2px rgba(124, 58, 237, 0.15);
}

/* CTA da galeria */
.galeria-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(7, 7, 56, 0.05) 0%,
        rgba(254, 0, 0, 0.05) 50%,
        rgba(7, 7, 56, 0.05) 100%
    );
    border-radius: 1.5rem;
    border: 2px dashed rgba(254, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.galeria-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(254, 0, 0, 0.1),
        transparent
    );
    animation: ctaShine 3s infinite;
}

@keyframes ctaShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.galeria-cta-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.galeria-cta .btn {
    position: relative;
    z-index: 1;
}

/* Modal para visualização ampliada */
.galeria-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 7, 56, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.galeria-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-image-container {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modalScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--orange));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(254, 0, 0, 0.3);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(254, 0, 0, 0.4);
}

/* Efeito de grid responsivo */
@media (max-width: 1200px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    
    .galeria-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .galeria-image {
        height: 280px;
    }
    
    .galeria-cta {
        padding: 2rem;
    }
    
    .galeria-cta-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .galeria-image {
        height: 220px;
    }
    
    .galeria-overlay {
        padding: 1rem;
    }
    
    .galeria-cta {
        padding: 1.5rem;
    }
    
    .galeria-cta-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .galeria-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .galeria-image {
        height: 350px;
    }
}

/* Animações de entrada com scroll */
.galeria-item.visible {
    animation-play-state: running;
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, var(--primary) 0%, #050530 100%);
    color: var(--white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--orange), var(--purple), var(--green), var(--cyan));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.logo.light .logo-name,
.logo.light .logo-subtitle {
    color: var(--white);
}

.logo.light .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent), var(--orange));
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* Nav colors */
#v {
    color: #e57f26;
}

#c {
    color: #38fb31;
}

#a {
    color: #e6148b;
}

#g {
    color: #fbcd34;
}

/* Responsividade Extra */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .galeria-aprovados {
        padding: 3rem 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}