﻿:root {
    --primary: #00bfff;
    --primary-dark: #0099cc;
    --primary-light: rgba(0, 191, 255, 0.12);
    --secondary: #7b2ff7;
    --secondary-light: rgba(123, 47, 247, 0.12);
    --dark: #050816;
    --dark-2: #0b1120;
    --dark-3: #111827;
    --dark-4: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #00bfff, #7b2ff7);
    --gradient-reverse: linear-gradient(135deg, #7b2ff7, #00bfff);
    --gradient-dark: linear-gradient(180deg, #050816 0%, #0b1120 50%, #050816 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 50px rgba(0, 191, 255, 0.08);
    --shadow-glow-secondary: 0 0 50px rgba(123, 47, 247, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark);
    animation: pulseBackground 8s ease-in-out infinite alternate;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

@@keyframes pulseBackground {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.3);
    }
    /* Aumenta levemente o brilho do fundo */
}

::selection {
    background: var(--primary);
    color: var(--dark);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PARTICLES ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ===== SECTION ===== */
section {
    position: relative;
    padding: 5rem 0;
}

.section-gradient {
    background: linear-gradient(180deg, transparent 0%, var(--dark-2) 50%, transparent 100%);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.d-1 {
    transition-delay: 0.1s;
}

.d-2 {
    transition-delay: 0.2s;
}

.d-3 {
    transition-delay: 0.3s;
}

.d-4 {
    transition-delay: 0.4s;
}

.d-5 {
    transition-delay: 0.5s;
}

.d-6 {
    transition-delay: 0.6s;
}

.d-7 {
    transition-delay: 0.7s;
}

/* ===== BANNER / HERO ===== */
.hero-wrapper {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--dark), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 8, 22, 0.85) 0%, rgba(5, 8, 22, 0.4) 50%, rgba(5, 8, 22, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: var(--primary-light);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #00f2fe 100%) !important;
    border: none !important;
    color: #040811 !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 242, 254, 0.6) !important;
    color: #040811 !important;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--gradient);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.35);
    color: #fff;
    text-decoration: none;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== CARDS ===== */
.card {
    background: var(--dark-3);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 191, 255, 0.15) !important;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: #fff;
}

.card-icon-secondary {
    background: var(--gradient-reverse);
}

.card h4, .card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== SECTION HEADERS ===== */
section {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.03) 0%, transparent 70%);
    border-bottom: 1px solid rgba(0, 242, 254, 0.05);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 242, 254, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
    background: var(--secondary-light);
    border: 1px solid rgba(123, 47, 247, 0.2);
    border-radius: 999px;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

section > div {
    position: relative;
    z-index: 1; /* Garante que o texto fique acima da grade */
}

/* ===== SOBRE (About) Section ===== */
.about-section {
    position: relative;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about-content h2 i {
    color: var(--primary);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--primary);
    font-weight: 700;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

#sobre img {
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 8px;
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.1);
    filter: hue-rotate(10deg) brightness(0.9);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    opacity: 0.1;
    filter: blur(40px);
    transform: translateY(20px) scale(0.9);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 4rem 0;
    position: relative;
}

.cta-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--primary-light) 0%, transparent 50%), radial-gradient(circle at 70% 50%, var(--secondary-light) 0%, transparent 50%);
    pointer-events: none;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-icon-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    font-size: 1.8rem;
    color: #fff;
}

.cta-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.cta-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
}

/* ===== DIVISOR ===== */
.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.glow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    animation: pulse-glow 2s ease-in-out infinite;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ===== SPACING HELPERS ===== */
.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.fa-gears {
    font-size: 80px;
    animation: spin 8s linear infinite;
}

.fa-gears.spin-slow {
    animation: spin 12s linear infinite;
}

.fa-gears.spin-reverse {
    animation: spin 10s linear infinite;
    animation-direction: reverse;
}

.fa-gears.spin-pulse {
    animation: spin 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.3));
}

.fa-gears.spin-pause-hover:hover {
    animation-play-state: paused;
}

.spinning {
    animation: spin 8s linear infinite;
}

.card {
    background: rgba(10, 18, 36, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 254, 0.12) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00f2fe !important;
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2) !important;
}

.card .text-primary i, .card i {
    color: #00f2fe !important;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.text-muted {
    color: #94a3b8 !important;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cta-section {
    margin-bottom: 40px;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1rem;
}

    .cta-container h3 {
        max-width: 200px;
    }

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .cta-left {
        flex-direction: column;
        align-items: center;
    }

    .cta-text h3 {
        max-width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .globe {
        display: none !important;
    }
}

@media (max-width: 768px) {
    section { padding: 3rem 0; }
    .hero-wrapper { height: 450px; }
    .card { padding: 1.5rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .about-stats { justify-content: center; }
    .cta-card { padding: 2rem 1.5rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    fa-gears { font-size: 80px; }
}

@media (max-width: 576px) {
    .cta-card { padding: 1.5rem 1rem; }
    .cta-text h3 { font-size: 1.1rem; }
    .cta-actions .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-wrapper { height: 380px; }
    .stat-number { font-size: 1.5rem; }
    .fa-gears { font-size: 60px; }
}

/* ===== UTILITY ===== */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-border {
    position: relative;
}

.bg-gradient-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
}

.no-gutter {
    padding-left: 0;
    padding-right: 0;
}

.z-1 {
    position: relative;
    z-index: 1;
}

.z-2 {
    position: relative;
    z-index: 2;
}

.z-3 {
    position: relative;
    z-index: 3;
}