/* ==========================================
   VARIABLES & RESET
========================================== */
:root {
    --bg: #050510;
    --card-bg: rgba(15, 15, 40, 0.9);
    --border: rgba(255, 255, 255, 0.06);
    --neon: #00f3ff;
    --neon2: #bc13fe;
    --green: #00ff88;
    --yellow: #ffbb00;
    --red: #ff0055;
    --text: #e0e0f0;
    --sub: #8888aa;
    --glass: rgba(255, 255, 255, 0.03);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================
   MAIN CONTENT
========================================== */
.main-content {
    position: relative;
    z-index: 1;
}

/* ==========================================
   CAROUSEL
========================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 30px auto 50px;
    padding: 0 20px;
    z-index: 10;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 243, 255, 0.1),
        0 0 80px rgba(188, 19, 254, 0.08);
    background: var(--card-bg);
    backdrop-filter: blur(30px);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transition: transform 8s ease;
}

.carousel-slide:hover .slide-bg {
    transform: scale(1.1);
}

.carousel-slide .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 700px;
}

.slide-bg-0 { background: linear-gradient(135deg, #0a0a2e, #0d0d35, #0a0a2e); }
.slide-bg-1 { background: linear-gradient(135deg, #0a0a2e, #1a0a3e, #0a1a3e); }
.slide-bg-2 { background: linear-gradient(135deg, #0a1a2e, #1a0a2e, #0a2a1e); }
.slide-bg-3 { background: linear-gradient(135deg, #1a0a1e, #0a1a1e, #1a1a0e); }
.slide-bg-4 { background: linear-gradient(135deg, #0a0a1e, #1a1a0e, #0a1a0e); }

.slide-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(188, 19, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 136, 0.06) 0%, transparent 50%);
    animation: meshRotate 15s linear infinite;
    pointer-events: none;
}

@keyframes meshRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--neon);
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.4), 0 0 120px rgba(188, 19, 254, 0.2);
    animation: floatAvatar 4s ease-in-out infinite;
    object-fit: cover;
    background: rgba(0,0,0,0.5);
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-slide-content .hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon), var(--neon2), var(--neon));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: -2px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-slide-content .hero-tagline {
    color: var(--sub);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-stats {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-stat .stat-lbl {
    font-size: 11px;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.carousel-slide .slide-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: floatSlideIcon 3s ease-in-out infinite;
    display: block;
}

@keyframes floatSlideIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.carousel-slide .slide-title {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.carousel-slide .slide-desc {
    font-size: 16px;
    color: var(--sub);
    line-height: 1.6;
    margin-bottom: 25px;
}

.hero-slide-btn,
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.3);
    margin-top: 10px;
}

.hero-slide-btn:hover,
.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 243, 255, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neon);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition);
    z-index: 20;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.carousel-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--neon);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-indicators .indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s;
    border: none;
}

.carousel-indicators .indicator.active {
    width: 60px;
    background: linear-gradient(90deg, var(--neon), var(--neon2));
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon), var(--neon2));
    border-radius: 0 0 32px 32px;
    transition: width 0.1s linear;
    z-index: 15;
}

/* ==========================================
   BACKGROUND ANIMATION
========================================== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-animation .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-animation .orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--neon);
    top: -200px;
    left: -100px;
}

.bg-animation .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--neon2);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.bg-animation .orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: var(--green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -50px) scale(1.1); }
    50% { transform: translate(-50px, 100px) scale(0.9); }
    75% { transform: translate(-100px, -100px) scale(1.05); }
}

/* ==========================================
   CONTAINER & SEARCH
========================================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.search-container {
    max-width: 650px;
    margin: 0 auto 50px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 16px 22px;
    transition: all var(--transition);
    backdrop-filter: blur(20px);
}

.search-box:focus-within {
    border-color: var(--neon);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.15), 0 0 80px rgba(188, 19, 254, 0.1);
}

.search-box i {
    color: var(--sub);
    font-size: 20px;
    margin-right: 14px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--sub);
}

.search-box kbd {
    background: rgba(255,255,255,0.06);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--sub);
    letter-spacing: 1px;
    font-family: inherit;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(20px);
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover,
.search-result-item:focus {
    background: rgba(0, 243, 255, 0.08);
}

.search-result-item[aria-selected="true"] {
    background: rgba(0, 243, 255, 0.12);
}

.search-result-item .icon {
    font-size: 24px;
}

.search-result-item .info h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}

.search-result-item .info p {
    font-size: 11px;
    color: var(--sub);
}

/* ==========================================
   ⭐ SECTION HEADER (TÍTULO + BOTÕES CTA)
========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin: 60px 0 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.section-title-wrapper {
    flex: 0 1 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-title .icon {
    font-size: 28px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 700;
}

.section-title .badge {
    background: var(--green);
    color: #000;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.section-cta-btn.primary {
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 243, 255, 0.25);
}

.section-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.45);
}

.section-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--neon);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.section-cta-btn.secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.25);
    transform: translateY(-2px);
}

.section-cta-btn i {
    font-size: 12px;
    transition: transform var(--transition);
}

.section-cta-btn:hover i {
    transform: translateX(3px);
}

/* ==========================================
   CARDS
========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card-futuristic {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 220px;
}

.card-futuristic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(0, 243, 255, 0.06) 0%, 
        transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.card-futuristic:hover::before {
    opacity: 1;
}

.card-futuristic:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 243, 255, 0.1),
        0 0 80px rgba(188, 19, 254, 0.05);
    z-index: 10;
}

.card-futuristic .card-front {
    transition: all 0.3s;
}

.card-futuristic:hover .card-front {
    transform: translateY(-5px);
}

.card-futuristic .card-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0;
}

.card-futuristic:hover .card-details {
    opacity: 1;
    max-height: 300px;
    margin-top: 20px;
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.card-futuristic:hover .card-icon {
    transform: scale(1.1);
}

.card-icon.blue { background: rgba(0, 243, 255, 0.15); }
.card-icon.purple { background: rgba(188, 19, 254, 0.15); }
.card-icon.green { background: rgba(0, 255, 136, 0.15); }
.card-icon.orange { background: rgba(255, 187, 0, 0.15); }
.card-icon.pink { background: rgba(255, 0, 85, 0.15); }
.card-icon.cyan { background: rgba(0, 200, 200, 0.15); }

.card-front h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-front .card-sub {
    font-size: 11px;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-details .commands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.command-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text);
    transition: all 0.2s;
}

.command-badge:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon);
    color: var(--neon);
}

.command-badge.primary {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--neon);
}

.card-details .description {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.6;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--sub);
    font-size: 13px;
}

.footer strong {
    color: var(--neon);
}

/* ==========================================
   PARTICLES
========================================== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--sub);
}

.no-results .icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* ==========================================
   SCROLLBAR
========================================== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon) rgba(255,255,255,0.04);
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-left: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon), var(--neon2));
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
    box-shadow: 0 0 10px rgba(0,243,255,.35), 0 0 20px rgba(188,19,254,.25);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4df9ff, #d24cff);
    background-clip: content-box;
    box-shadow: 0 0 15px rgba(0,243,255,.7), 0 0 30px rgba(188,19,254,.45);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-cta-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 450px;
        border-radius: 24px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        opacity: 0.5;
    }
    
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    
    .carousel-slide .slide-title,
    .hero-slide-content .hero-title {
        font-size: 28px;
    }
    
    .carousel-slide .slide-icon {
        font-size: 50px;
    }
    
    .hero-avatar {
        width: 80px;
        height: 80px;
    }
    
    .hero-stats { gap: 20px; }
    .hero-stat .stat-num { font-size: 26px; }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        padding: 12px 16px;
    }
    
    .section-header {
        margin: 40px 0 25px;
        gap: 16px;
    }
    
    .section-title {
        gap: 10px;
    }
    
    .section-title .icon {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .section-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .section-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}