/* Configuração Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #eaf8ff;
    font-family: Arial, sans-serif;
    padding: 30px 10px;
    
}

/* --- Cabeçalho e Navegação (Estilo Refletido da Imagem) --- */
.header-container {
    text-align: center;
    padding: 10px 0 30px 0;
}

.main-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 18px;
}

.nav-menu {
  text-align: center;
    margin-top: 20px;
}

.nav-btn-link {
    background-color: #cccccc;
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-btn-link:hover {
    background-color: #b3b3b3;
    transform: translateY(-2px);
}

/* --- Container Principal --- */
.portfolio-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-title {
    text-align: center;
    color: #4361ee;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Wrapper para posicionar as setas */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Grid com rolagem suave */
.cards-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 5px;
    /* Esconde a barra de rolagem visual mantendo a funcionalidade */
    scrollbar-width: none; /* Firefox */
}

.cards-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Cards de Imagens e Vídeos */
.card {
    min-width: calc(33.333% - 10px);
    height: 380px;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card img, 
.card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilo das Setas de Navegação */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(67, 97, 238, 0.8);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(67, 97, 238, 1);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev { left: -15px; }
.nav-btn.next { right: -15px; }

/* Responsividade para telas menores (celular) */
@media (max-width: 768px) {
    .card {
        min-width: 80%; /* Mostra 1 card principal + pedaço do próximo no mobile */
    }
}