/* ============================================
   VARIÁVEIS E ESTILOS GLOBAIS
   ============================================ */

:root {
    --primary-color: #0066ff;
    --primary-light: #4d94ff;
    --secondary-color: #00b386;
    --warning-color: #ff9500;
    --danger-color: #ff3366;
    --info-color: #00d4ff;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar .btn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar .btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navbar .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%),
                url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1200&h=800&fit=crop') center/cover;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .z-index-10 {
    position: relative;
    z-index: 10;
}

.hero-section .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: slideInDown 0.8s ease;
}

.hero-section h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease 0.2s both;
    letter-spacing: -1px;
}

.hero-section h1 .text-info {
    background: linear-gradient(135deg, #4d94ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.4s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease 0.6s both;
}

.hero-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hero-section .btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-section .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   SEÇÕES
   ============================================ */

section {
    padding: 4rem 0;
}

section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

section .lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-light {
    background-color: var(--light-color) !important;
    color: var(--text-color) !important;
}

/* ============================================
   ÍCONES
   ============================================ */

i[class*="fas fa-"] {
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--dark-color) !important;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar .btn {
        margin-top: 0.5rem;
        width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    .row.g-4 {
        gap: 1.5rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    section {
        padding: 2rem 0;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

.z-index-10 {
    position: relative;
    z-index: 10;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }

    body {
        background-color: white;
    }

    section {
        page-break-inside: avoid;
    }
}
