/* ==========================================
   TECNOLOGIA.CSS - ESTILOS DA PÁGINA DE TECNOLOGIA
   ========================================== */

/* ==========================================
   RESET PARA PÁGINA COM SCROLL VERTICAL
   ========================================== */
html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    background: #0A0A0A;
}

/* Header fixo */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Espaçamento para o header fixo */
main {
    padding-top: 68px !important;
    min-height: 100vh !important;
}

/* ==========================================
   PAGE HERO - IMAGEM DE FUNDO
   ========================================== */
.page-hero {
    position: relative;
    height: 50vh !important;
    min-height: 350px !important;
    max-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    padding-top: 0 !important;
}

.page-hero-background {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(0.8);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
                rgba(10, 10, 10, 0.4) 0%, 
                rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 20px 0 !important;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    margin-bottom: 8px !important;
}

.page-hero-content .hero-subtitle {
    font-size: var(--font-size-lg) !important;
    max-width: 600px;
    color: var(--color-text-secondary);
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: 10px !important;
    padding-top: 10px !important;
}

.breadcrumb a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .separator {
    color: var(--color-border);
}

.breadcrumb .current {
    color: var(--color-text-primary);
}

/* ==========================================
   TECH SECTION
   ========================================== */
.tech-section {
    padding: 60px 0 !important;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
}

.tech-section:last-of-type {
    border-bottom: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tech-grid.reverse {
    direction: rtl;
}

.tech-grid.reverse .tech-content {
    direction: ltr;
}

.tech-grid.reverse .tech-visual {
    direction: ltr;
}

/* ----- TECH CONTENT ----- */
.tech-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 16px;
}

.tech-content p {
    font-size: var(--font-size-base);
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.tech-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-features li {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tech-stat {
    text-align: center;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.tech-stat .stat-number {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    display: block;
}

.tech-stat .stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ----- TECH VISUAL ----- */
.tech-visual {
    position: relative;
}

.tech-animation {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    min-height: 250px;
}

.animation-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Efeitos visuais para cada tecnologia */
.water-effect {
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.3), transparent 70%);
    border-radius: 50%;
    animation: waterPulse 3s ease-in-out infinite;
}

.tire-effect {
    width: 60%;
    height: 60%;
    border: 8px solid var(--color-border);
    border-radius: 50%;
    position: absolute;
    animation: tireSpin 10s linear infinite;
}

.brake-effect {
    width: 70%;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: brakePulse 1.5s ease-in-out infinite;
}

.distance-effect {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    bottom: 20%;
}

.distance-effect .bar {
    width: 40px;
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-full);
}

.distance-effect .bar.active {
    background: var(--color-primary);
    width: 30px;
}

.grip-effect {
    width: 60%;
    height: 60%;
    border: 6px solid var(--color-primary);
    border-radius: 50%;
    animation: gripPulse 2s ease-in-out infinite;
}

.curve-effect {
    width: 70%;
    height: 70%;
    border: 4px dashed var(--color-border);
    border-radius: 50%;
    position: absolute;
}

.fuel-effect {
    font-size: 48px;
    animation: fuelBounce 2s ease-in-out infinite;
}

.efficiency-effect {
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.2), transparent 70%);
    border-radius: 50%;
    animation: efficiencyPulse 2s ease-in-out infinite;
}

/* ----- ANIMAÇÕES ----- */
@keyframes waterPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes tireSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes brakePulse {
    0%, 100% { transform: scaleX(1); opacity: 0.5; }
    50% { transform: scaleX(1.5); opacity: 1; }
}

@keyframes gripPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes fuelBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes efficiencyPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================
   CTA FINAL
   ========================================== */
.cta-final {
    padding: 60px 0 !important;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 24px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 1024px) {
    .tech-grid {
        gap: 30px;
    }
    
    .tech-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tech-grid,
    .tech-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 24px;
    }

    .tech-grid.reverse .tech-content {
        direction: ltr;
    }

    .tech-grid.reverse .tech-visual {
        direction: ltr;
    }

    .tech-content h2 {
        font-size: var(--font-size-2xl);
    }

    .tech-stats {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero {
        height: 40vh !important;
        min-height: 280px !important;
        max-height: 400px !important;
    }

    .page-hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    }

    .tech-section {
        padding: 40px 0 !important;
    }

    .tech-animation {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 35vh !important;
        min-height: 220px !important;
        max-height: 350px !important;
    }

    .tech-stats {
        grid-template-columns: 1fr;
    }

    .tech-stat .stat-number {
        font-size: var(--font-size-xl);
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}