:root {
    --barca-blue: #004D98;
    --barca-red: #A50044;
    --gold: #EDBB00;
    --dark: #1a1a2e;
    --light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
    background: var(--dark);
    color: var(--light);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--barca-blue) 0%, var(--barca-red) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 100px);
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12rem;
    font-weight: bold;
    color: var(--light);
    text-shadow:
        4px 4px 0 var(--barca-red),
        8px 8px 0 var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(237, 187, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(237, 187, 0, 0.8));
    }
}

.tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator div {
    width: 30px;
    height: 50px;
    border: 3px solid var(--gold);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator div::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--barca-red);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--light);
    text-shadow: 2px 2px 0 var(--barca-red);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    color: var(--light);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--barca-blue), var(--barca-red));
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Sections */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--barca-blue), var(--barca-red));
    margin: 1rem auto;
}

/* About Section */
#sobre {
    background: linear-gradient(180deg, var(--dark) 0%, #0a0a1a 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
}

.about-content p {
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--barca-blue) 0%, var(--barca-red) 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s;
    border: 3px solid var(--gold);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Team Section */
#elenco {
    background:
        linear-gradient(rgba(0, 77, 152, 0.1), rgba(165, 0, 68, 0.1)),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 50px,
            rgba(237, 187, 0, 0.02) 50px,
            rgba(237, 187, 0, 0.02) 100px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.player-card {
    background: rgba(26, 26, 46, 0.8);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--barca-blue), var(--barca-red));
}

.player-card:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.player-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    color: var(--barca-red);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    right: 20px;
}

.player-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.player-position {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Schedule Section */
#calendario {
    background: linear-gradient(180deg, #0a0a1a 0%, var(--dark) 100%);
}

.matches {
    max-width: 800px;
    margin: 0 auto;
}

.match-card {
    background: rgba(26, 26, 46, 0.8);
    border-left: 5px solid var(--gold);
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    border-radius: 10px;
    transition: all 0.3s;
}

.match-card:hover {
    transform: translateX(10px);
    border-left-width: 10px;
}

.team {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.team.home {
    text-align: right;
}

.match-vs {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--barca-red);
}

.match-date {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gold);
    margin-top: 1rem;
    border-top: 1px solid rgba(237, 187, 0, 0.3);
    padding-top: 1rem;
}

/* Contact Section */
#contato {
    background: linear-gradient(135deg, var(--barca-blue) 0%, var(--barca-red) 100%);
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-links a {
    color: var(--light);
    font-size: 2.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--gold);
    transform: scale(1.2) rotate(10deg);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 2rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-top: 3px solid var(--gold);
}

/* Container da logo no Hero */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* A imagem da logo */
.hero-logo-img {
    width: 200px; /* Tamanho padrão para Desktop */
    height: auto;
    max-width: 80%; /* Garante que não ultrapasse a tela no celular */
    filter: drop-shadow(0 0 15px rgba(237, 187, 0, 0.4)); /* Brilho dourado leve */
    animation: fadeInUp 1s ease-out;
}

/* Ajuste do texto da logo para não ficar colado */
.logo {
    margin-top: -10px; /* Puxa o texto um pouco para cima da imagem se precisar */
    line-height: 1;
}

.btn-ver-mais {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 15px 40px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.btn-ver-mais:hover {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.05);
}
/* Ajuste do Título do Modal */
.modal-title-custom {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 2rem !important; /* Título menor como você pediu */
    letter-spacing: 2px;
    color: var(--gold);
}

/* Lista do Elenco no Modal */
.modal-team-list {
    display: grid;
    /* Computador: 3 colunas | Tablet: 2 colunas | Celular: 1 coluna */
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
    padding: 10px;
    max-height: 80vh; /* Aumentado para evitar rolagem */
    overflow-y: auto;
}

.modal-player-item {
    background: rgba(255,255,255,0.03);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    text-align: left;
    transition: 0.3s;
}

.modal-player-item:hover {
    background: rgba(255,255,255,0.08);
}

.modal-player-item span {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem; /* Nome do jogador um pouco menor */
    font-weight: 500;
}

/* Responsividade: Tablet */
@media (max-width: 992px) {
    .modal-team-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsividade: Celular */
@media (max-width: 600px) {
    .modal-team-list {
        grid-template-columns: 1fr;
        max-height: 70vh; /* No celular a rolagem é necessária para não sumir o botão */
    }
    .modal-title-custom {
        font-size: 1.5rem !important;
    }
}

/* Jogos */
/* Estilo para jogos que já passaram */
.match-past {
    opacity: 0.7;
    border-left-color: #555 !important; /* Muda o dourado para cinza nos jogos passados */
    filter: grayscale(0.5);
}

.match-past:hover {
    opacity: 1;
    filter: grayscale(0);
}

.match-date small {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 5px;
}

/* PATROCINADORES */
#patrocinadores {
    background: #0d0d1a; /* Um pouco mais escuro que o fundo padrão para dar contraste */
    padding: 100px 5%;
    position: relative;
}

.sponsors-container {
    display: grid;
    /* Define 4 colunas no PC, mas ajusta conforme o espaço */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.02); /* Fundo quase invisível */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Mantém todas as logos alinhadas na mesma altura */
}

.sponsor-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5); /* Mantém branco/cinza elegante */
    transition: all 0.4s ease;
}

/* Efeito de Destaque no Hover */
.sponsor-card:hover {
    background: rgba(237, 187, 0, 0.05); /* Sutil brilho dourado no fundo */
    border-color: var(--gold);
    transform: translateY(-10px); /* Flutua para cima */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(237, 187, 0, 0.1);
}

.sponsor-card:hover img {
    filter: grayscale(0%) brightness(1); /* Retorna a cor original do patrocinador */
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo-img {
        width: 120px; /* Reduz a logo no celular */
    }
    
    .logo {
        font-size: 6rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team.home {
        text-align: center;
    }

    .menu-toggle {
        display: flex;
        /* Mostra o botão no mobile */
        z-index: 1001;
    }

    /* Transformar a lista de links em um menu lateral */
    .nav-links {
        position: fixed;
        right: -100%;
        /* Escondido fora da tela */
        top: 0;
        background: rgba(26, 26, 46, 0.98);
        width: 70%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    

    .nav-links.active {
        right: 0;
        /* Mostra o menu quando ativo */
    }

    /* Animação do X no menu sanduíche */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}