/* style.css - Versão Azul e Vermelho */

/* ===== VARIÁVEIS ===== */
:root {
    --primary-color: #2563eb;    /* Azul vibrante */
    --primary-dark: #1d4ed8;     /* Azul escuro */
    --secondary-color: #dc2626;  /* Vermelho */
    --secondary-dark: #b91c1c;   /* Vermelho escuro */
    --bg-color: #0a0f1c;         /* Fundo escuro */
    --bg-card: rgba(17, 25, 40, 0.8);
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(37, 99, 235, 0.3);
    --glass-blur: blur(10px);
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2f 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MENU / NAVEGAÇÃO ===== */
nav {
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: var(--glass-blur);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.menu a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== SUBMENU ===== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
}

.submenu a:hover {
    background: var(--secondary-color);
    transform: none;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 4rem 0 2rem;
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    animation: fadeInUp 1s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card small {
    color: var(--text-secondary);
    opacity: 0.8;
    display: block;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ===== BOTÕES ===== */
.btn-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-link:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILITÁRIOS ===== */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Linha decorativa nos títulos */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}