
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

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

body {
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.navbar-toggler {
    font-size: 15px;
    padding: 3%;
}

#btnmobile {
  background: none;
  box-shadow: none;
  align-items: left !important;
  float: left;
  justify-content: flex-start;
  color: #64748b;
}

#mobile {
   display: none;
}

img {
    margin: auto;
    display: block;
}

#logo-topo {
    width: 13%;
}

.header-logo {
    margin-bottom: 2%;
}

#sub {
    font-weight: 100;
    margin-top: 0.6rem;
    font-size: 20px;
}

.header-section {
    background: linear-gradient(135deg, #243670 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.main-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    text-align: center;
}

.subtitle {
    font-size: 3.5rem;
    font-weight: 100;
    opacity: 0.9;
    margin-bottom: 0;
    text-align: center;
}

.header-logo {
    font-size: 4rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.footer-section {
    padding: 1.5%;
}

.filters-section {
    background: white;
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 100;
}

.filters-container {
    text-align: center;
}

.filters-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1e293b;
}

.filters-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.filter-btn:hover {
    background: #e2e8f0;
    color: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: #747474;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    background-image: url("https://fundacaosalvadorarena.org.br/wp-content/uploads/2025/12/back-scaled.jpg");
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #3b82f6, #059669);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.timeline-event {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-event.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-event.hidden {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border: 4px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.timeline-marker:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.timeline-marker i {
    font-size: 1.2rem;
    color: #2563eb;
}

.timeline-content {
   
    position: relative;
}

.timeline-year {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.29rem;
    color: #f3911d;
    text-align: right;
}

.timeline-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}     

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

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

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.05);
}

.timeline-body {
    padding: 30px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #243670;
    line-height: 1.3;
    text-transform: uppercase;
}

.timeline-description {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.2rem;
}

.timeline-category {
    display: flex;
    justify-content: flex-end;
}

.category-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.category-badge.fundacao {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge.salvador {
    background: #ececec;
    color: #595959;
}

.category-badge.colegio {
    background: #fef1c9;
    color: #c79706;
}

.category-badge.faculdade {
    background: #dfffff;
    color: #055a5b;
}

.category-badge.etasa {
    background: #e6ffe3;
    color: #0e4f06;
}

.category-badge.termomecanica {
    background: #f5dfc5;
    color: #d97500;
}

.category-badge.agro {
    background: #e6ffe3;
    color: #0e4f06;
}


.footer-section {
    background: #f8fafc;
    color: #64748b;
    text-align: center;
 
}

#rodape-cebas {
    width: 13%;
    padding-bottom: 1%;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .header-logo {
        font-size: 3rem;
        margin-top: 20px;
    }
    
    .filters-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
        width: 40px;
        height: 40px;
    }
    
    .timeline-marker i {
        font-size: 1rem;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-year {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .timeline-body {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-image {
        height: 150px;
    }
}

@media (max-width: 480px) {

    #rodape-cebas {
    width: 30%;
    padding-top: 5%;
}

    
#mobile {
   display: block;
}

#menu {
    display: none;
}

    #logo-topo {
        width: 50%;
        padding-bottom: 5%;
    }

    .main-title {
        font-size: 1.5rem !important;
    }

    .filters-title {
        font-size: 14px;        
    }

    #sub {
        font-size: 15px;
    }

    .subtitle {
        font-size: 1.3rem !important;
    }
    
    .timeline-container {
        padding: 0 15px;
    }
    
    .timeline-body {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }

}

.timeline-event.fade-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.timeline-event.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .timeline-event {
        animation: slideInUp 0.6s ease forwards;
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.timeline-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.timeline-loading i {
    font-size: 2rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container que cobre a tela toda */
.modal-overlay {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo preto transparente */
    backdrop-filter: blur(8px); /* AQUI acontece o desfoque do fundo */
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Imagem centralizada */
.imagem-modal {
    max-width: 90%;
    max-height: 85%;
    border: 1px solid white;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: default;
}

/* Botão de fechar (X) */
.botao-fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}