/* ======= Estilo geral ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ======= Header ======= */
header {
    background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
    padding: 30px 40px;
    color: #fff;
    border-bottom: 2px solid #00c3ff;
    box-shadow: 0 4px 20px rgba(0, 195, 255, 0.1);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    margin: 0;
}

.header-right {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.header-subtitle {
    text-align: center;
    margin-top: 5px;
}

.header-link {
    padding: 10px 20px;
    background: rgba(0, 195, 255, 0.1);
    border: 2px solid rgba(0, 195, 255, 0.3);
    border-radius: 8px;
    color: #00c3ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.header-link:hover {
    background: rgba(0, 195, 255, 0.2);
    border-color: #00c3ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3);
}

.header-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0;
    background: linear-gradient(90deg, #00c3ff, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.header-content p {
    font-size: 1rem;
    opacity: 0.85;
    color: #aaa;
    margin: 0;
}

/* ======= Carrossel ======= */
.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 60px 20px;
}

.carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.carousel:active {
    cursor: grabbing;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 340px;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(40px);
    border: 1px solid rgba(0, 195, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 195, 255, 0.4);
    border-color: rgba(0, 195, 255, 0.5);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid rgba(0, 195, 255, 0.3);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a, #2a2a3e);
}

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

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h2 {
    color: #00c3ff;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-content p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

.card-content p strong {
    color: #00e5ff;
}

.card-content a {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: linear-gradient(90deg, #00c3ff, #00e5ff);
    color: #0d0d0d;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.card-content a:hover {
    background: linear-gradient(90deg, #00e5ff, #00fff7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.4);
}

/* ======= Botões de navegação ======= */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 195, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #00c3ff;
    border: 2px solid rgba(0, 195, 255, 0.3);
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn:hover {
    background: rgba(0, 195, 255, 0.3);
    color: #00fff7;
    border-color: #00c3ff;
    transform: translateY(-50%) scale(1.1);
}

.btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* ======= Footer ======= */
footer {
    text-align: center;
    padding: 25px;
    background: linear-gradient(180deg, #0d0d0d 0%, #111 100%);
    color: #888;
    font-size: 0.95rem;
    border-top: 2px solid rgba(0, 195, 255, 0.2);
    margin-top: 40px;
}

/* ======= Responsividade ======= */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .card {
        flex: 0 0 280px;
    }

    .btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 15px;
    }

    .header-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .carousel-container {
        padding: 40px 10px;
    }

    .card {
        flex: 0 0 260px;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }
}

/* Animação suave para os links e botões do header */
.header-link {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Faz cada link aparecer com leve atraso */
.header-link:nth-child(1) { animation-delay: 0.2s; }
.header-link:nth-child(2) { animation-delay: 0.4s; }
.header-link:nth-child(3) { animation-delay: 0.6s; }

/* Define o movimento e o fade */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
