/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ──────────────────────────────────────── */
body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: #0f0f0f;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ── Glow de fundo ─────────────────────────────── */
.background-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -120px;
    background: radial-gradient(circle, rgba(99, 57, 215, 0.3) 0%, transparent 70%);
}

.glow-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(29, 158, 117, 0.2) 0%, transparent 70%);
}

/* ── Container ─────────────────────────────────── */
.container {
    max-width: 820px;
    width: 90%;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── Header ────────────────────────────────────── */
.header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out both;
}

.icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(99, 57, 215, 0.15);
    border: 1px solid rgba(99, 57, 215, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: #a78bfa;
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 5px;
    margin-bottom: 0.4rem;
}

.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ── Grid de cards ─────────────────────────────── */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* ── Card ──────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-align: left;
    animation: fadeInUp 0.8s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

/* ── Card top (ícone + título) ─────────────────── */
.card-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i { font-size: 1.1rem; }

/* Cores por disciplina */
.icon-db  { background: rgba(55, 138, 221, 0.15); border: 1px solid rgba(55, 138, 221, 0.3); }
.icon-db i { color: #60aef5; }

.icon-dsg { background: rgba(212, 83, 126, 0.15); border: 1px solid rgba(212, 83, 126, 0.3); }
.icon-dsg i { color: #e785b0; }

/* Estilo para Redes de Computadores I - Tom Violeta Elétrico */
.icon-net { 
    background: rgba(168, 85, 247, 0.15); /* Cor de fundo suave (15% de opacidade) */
    border: 1px solid rgba(168, 85, 247, 0.3); /* Borda (30% de opacidade) */
}

.icon-net i { 
    color: #a855f7; /* Cor do ícone (brilhante) */
}

.icon-poo { background: rgba(239, 159, 39, 0.15); border: 1px solid rgba(239, 159, 39, 0.3); }
.icon-poo i { color: #f5b84c; }

/* ── Card título ───────────────────────────────── */
.card h3 {
        font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

/* ── Card descrição ────────────────────────────── */
.card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.624);
    line-height: 1.6;
    font-weight: 300;
    flex-grow: 1;
}

/* ── Card footer ───────────────────────────────── */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
    margin-top: auto;
}

.card-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.554);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.405);
    transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover .card-arrow {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
}

/* ── Footer ────────────────────────────────────── */
.footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.5px;
    animation: fadeIn 1.2s ease-out both;
}

/* ── Animações ─────────────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Responsividade ────────────────────────────── */
@media (max-width: 600px) {
    h1 { font-size: 2rem; letter-spacing: 3px; }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.4rem 1.2rem;
    }
}

.btn-pessoal {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 1.2rem; padding: 0.55rem 1.4rem;
    border-radius: 999px; border: 1px solid rgba(167,139,250,0.35);
    background: rgba(99,57,215,0.12); color: rgba(255,255,255,0.75);
    font-size: 0.82rem; font-weight: 500; text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}
.btn-pessoal i { color: #a78bfa; }
.btn-pessoal:hover {
    background: rgba(99,57,215,0.25); border-color: rgba(167,139,250,0.6);
    color: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(99,57,215,0.25);
}