/**
 * Pluggar.ai - Stylesheet Principal
 * Projetos de Inteligência Artificial
 *
 * Cores baseadas no logo Pluggar.ai:
 * - Primary: #00F5D4 (verde água/cyan vibrante)
 * - Secondary: #181c32 (azul escuro)
 * - Gray: #707C86 (cinza do logo)
 */

/* ================================================
   1. VARIÁVEIS CSS
   ================================================ */
:root {
    /* Cores Principais - Extraídas do Logo Pluggar.ai */
    --color-primary: #00F5D4;
    --color-primary-dark: #00d4b8;
    --color-primary-light: #33f7dd;
    --color-secondary: #181c32;
    --color-secondary-light: #2d3250;
    --color-accent: #00F5D4;
    --color-accent-dark: #00d4b8;
    --color-gray: #707C86;

    /* Cores de Texto */
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-text-light: #ffffff;

    /* Cores de Fundo */
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #181c32;
    --color-bg-gradient: linear-gradient(135deg, #181c32 0%, #2d3250 100%);

    /* Gradientes */
    --gradient-primary: linear-gradient(to right, #00d4b8 0%, #00F5D4 100%);
    --gradient-cta: linear-gradient(to left, #00d4b8 0%, #00F5D4 100%);
    --gradient-dark: linear-gradient(135deg, #181c32 0%, #2d3250 100%);

    /* Tipografia */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-pill: 50rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================================
   2. RESET & BASE
   ================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ================================================
   3. TIPOGRAFIA
   ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ================================================
   4. HEADER & NAVEGAÇÃO
   ================================================ */
header {
    background: var(--color-bg-dark);
    z-index: 1000;
}

header.sticky-top {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: transform var(--transition-base);
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--color-accent);
}

.dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.dropdown-item i {
    width: 24px;
}

.menu-line {
    height: 3px;
    background: var(--gradient-primary);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ================================================
   5. BOTÕES
   ================================================ */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
}

.btn-gradient {
    background: var(--gradient-cta);
    border: none;
    color: #ffffff;
    text-shadow: 1px 0 10px rgba(0, 48, 55, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--color-secondary);
}

/* ================================================
   6. BANNER HERO
   ================================================ */
.banner-hero {
    position: relative;
    min-height: 85vh;
    background: var(--gradient-dark);
    overflow: hidden;
}

.banner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%2300b4b4" opacity="0.05" cx="20" cy="20" r="2"/><circle fill="%2304ecf4" opacity="0.05" cx="80" cy="80" r="3"/><circle fill="%2300b4b4" opacity="0.03" cx="50" cy="50" r="40"/></svg>') repeat;
    pointer-events: none;
}

.banner-hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.2;
}

.banner-hero .lead {
    font-size: 1.25rem;
}

.banner-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ================================================
   7. SEÇÕES
   ================================================ */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-bg-light) !important;
}

.bg-dark {
    background-color: var(--color-bg-dark) !important;
}

.bg-gradient-primary {
    background: var(--gradient-dark);
}

/* ================================================
   8. CARDS E COMPONENTES
   ================================================ */
/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alert Box */
.alert-box {
    background: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
}

.alert-box p {
    color: rgba(255, 255, 255, 0.9);
}

/* Diferencial Cards */
.diferencial-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.diferencial-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 180, 0.1);
    border-radius: var(--radius-md);
}

/* Solução Cards */
.solucao-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.solucao-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.solucao-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: #ffffff;
}

.solucao-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
    color: var(--color-accent);
}

.solucao-card:hover .solucao-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Custo Box */
.custo-box {
    border-left: 4px solid var(--color-primary);
}

/* Equipe Badge */
.equipe-badge {
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.equipe-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ================================================
   9. CTA SECTION
   ================================================ */
.cta-section {
    background: var(--gradient-dark);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 180, 180, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(4, 236, 244, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* ================================================
   10. FOOTER
   ================================================ */
footer {
    background: var(--color-bg-dark);
    color: #ffffff;
    padding-top: var(--spacing-xl);
}

footer .menu-item {
    list-style: none;
    margin-bottom: 0.5rem;
}

footer .menu-item.titulo {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

footer .menu-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

footer .menu-item a:hover {
    color: var(--color-accent);
}

footer ul {
    padding-left: 0;
    margin-bottom: 0;
}

footer .central_vendas {
    padding-left: 0;
}

footer .central_vendas .menu-item.titulo a {
    color: #ffffff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

/* Map Container */
.map-link {
    text-decoration: none;
    transition: all var(--transition-base);
}

.map-link:hover {
    transform: translateY(-3px);
}

.map-link:hover .map-container {
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
}

.map-link:hover small {
    color: var(--color-primary) !important;
}

.map-container {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.map-container iframe {
    display: block;
}

/* ================================================
   11. TO TOP BUTTON
   ================================================ */
.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ================================================
   12. MODAL
   ================================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
}

/* ================================================
   13. FORMS
   ================================================ */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 180, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* ================================================
   14. UTILITÁRIOS
   ================================================ */
.cursor-pointer {
    cursor: pointer;
}

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

/* ================================================
   15. RESPONSIVO
   ================================================ */
@media (max-width: 991.98px) {
    .banner-hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .banner-hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 767.98px) {
    .banner-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ================================================
   16. ANIMAÇÕES
   ================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Classes de animação */
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* AOS - Fallback para garantir que elementos apareçam */
[data-aos] {
    transition-property: opacity, transform;
}

/* Força elementos a aparecerem após 2 segundos se AOS falhar */
@keyframes aosShowFallback {
    to {
        opacity: 1;
        transform: none;
    }
}

[data-aos]:not(.aos-animate) {
    animation: aosShowFallback 0.5s ease-out 2s forwards;
}
