/* ============================================
   CONFIGURAÇÕES TECH PREMIUM
   ============================================ */
:root {
    /* Paleta Technnologie */
    --tech-primary: #0066FF;
    --tech-secondary: #00D9FF;
    --tech-accent: #7B68EE;
    --tech-dark: #0A0E27;
    --tech-darker: #060914;
    --tech-card-bg: #0F1629;
    --tech-border: rgba(0, 102, 255, 0.15);
    --tech-glow: rgba(0, 102, 255, 0.3);
    --tech-text: #E0E7FF;
    --tech-text-muted: #8B92B8;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D9FF 100%);
    --gradient-card: linear-gradient(135deg, rgba(15, 22, 41, 0.95) 0%, rgba(10, 14, 39, 0.98) 100%);
    --gradient-border: linear-gradient(90deg, var(--tech-primary), var(--tech-secondary), var(--tech-accent));

    /* Sombras */
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--tech-glow);
}

body,
html {
    overflow-x: hidden;
}

/* ============================================
   PORTFÓLIO SECTION - HERO STYLE
   ============================================ */
.tech-portfolio-section {
    background: var(--tech-darker);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(123, 104, 238, 0.06) 0%, transparent 50%);
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 96px 24px;
    box-sizing: border-box;
    margin: 0;
}

/* Grid Pattern Background */
.tech-portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--tech-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
}

.tech-portfolio-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.tech-track {
    display: flex;
    gap: 6rem;
    padding-left: 10vw;
    padding-right: 10vw;
    width: max-content;
}

/* ============================================
   CARDS - DESIGN PREMIUM
   ============================================ */
.tech-portfolio-section .tech-card {
    width: 70vw;
    max-width: 900px;
    height: 75vh;
    position: relative;
    flex-shrink: 0;
    perspective: 1500px;
    transform-style: preserve-3d;
    background: transparent;
    border: none;
    padding: 0;
}

/* Border Animado */
.tech-portfolio-section .tech-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.tech-portfolio-section .tech-card:hover::before {
    opacity: 1;
}

/* Card Inner - Glass Morphism */
.tech-card-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    height: 100%;
    border-radius: 24px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-portfolio-section .tech-card:hover .tech-card-inner {
    transform: translateY(-8px);
    box-shadow:
        var(--shadow-lg),
        var(--shadow-glow);
}

/* ============================================
   VISUAL SECTION - IMAGEM
   ============================================ */
.tech-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.tech-visual .img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.tech-visual .img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 102, 255, 0.1) 50%,
            rgba(10, 14, 39, 0.8) 100%);
    pointer-events: none;
}

.tech-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-portfolio-section .tech-card:hover .tech-visual img {
    filter: brightness(1) contrast(1.2);
}

/* Número do Projeto - Blueprint Style */
.tech-index {
    position: absolute;
    top: 32px;
    left: 32px;
    font-size: 7rem;
    font-weight: 900;
    color: transparent;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.15;
    z-index: 2;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    transition: opacity 0.4s ease;
}

.tech-portfolio-section .tech-card:hover .tech-index {
    opacity: 0.25;
}

/* ============================================
   INFO SECTION - CONTEÚDO
   ============================================ */
.tech-info {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--tech-text);
    position: relative;
    z-index: 2;
}

/* Detalhe decorativo superior */
.tech-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-portfolio-section .tech-card:hover .tech-info::before {
    opacity: 1;
    transform: translateX(0);
}

.tech-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--tech-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
}

.tech-portfolio-section .tech-card:hover .tech-info h3 {
    letter-spacing: 0px;
}

.tech-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--tech-text-muted);
    transition: color 0.4s ease;
}

.tech-portfolio-section .tech-card:hover .tech-info p {
    color: var(--tech-text);
}

/* ============================================
   BOTÃO TECH - PREMIUM STYLE
   ============================================ */
.tech-portfolio-section .tech-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--tech-text);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    position: relative;
    width: fit-content;
    padding: 16px 32px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid var(--tech-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de brilho no hover */
.tech-portfolio-section .tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-portfolio-section .tech-btn:hover::before {
    left: 100%;
}

.tech-portfolio-section .tech-btn:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--tech-secondary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Ícone de seta */
.tech-portfolio-section .tech-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.tech-portfolio-section .tech-btn:hover::after {
    transform: translateX(4px);
}

/* ============================================
   UI ELEMENTS - PROGRESS & COUNTER
   ============================================ */

/* Barra de Progresso */
.scroll-progress {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.tech-portfolio-section.is-active .scroll-progress {
    opacity: 1;
    pointer-events: auto;
}

.scroll-progress::before {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--tech-primary));
    opacity: 0.3;
}

.progress-bar {
    width: 200px;
    height: 3px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    box-shadow: 0 0 20px var(--tech-glow);
}

/* Dots de navegação */
.progress-dots {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(15, 22, 41, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.progress-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.progress-dots .dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.progress-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.progress-dots .dot.active {
    background: var(--tech-primary);
    box-shadow: 0 0 12px var(--tech-glow);
    transform: scale(1.3);
}

.progress-dots .dot.active::after {
    border-color: var(--tech-primary);
    transform: scale(1.5);
    opacity: 0;
}

/* Contador de Projetos */
.project-counter {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tech-text);
    padding: 16px 24px;
    background: rgba(15, 22, 41, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-portfolio-section.is-active .project-counter {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.project-counter .current {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 40px;
    text-align: right;
}

.project-counter .separator {
    opacity: 0.3;
    font-size: 1.5rem;
}

.project-counter .total {
    opacity: 0.5;
    font-size: 1.2rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .tech-portfolio-section .tech-card {
        width: 80vw;
        height: 70vh;
    }

    .tech-info h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tech-track {
        gap: 3rem;
    }

    .tech-portfolio-section .tech-card {
        width: 90vw;
        height: auto;
        min-height: 600px;
    }

    .tech-card-inner {
        grid-template-columns: 1fr;
        grid-template-rows: 1.2fr 1fr;
    }

    .tech-visual {
        border-right: none;
    }

    .tech-index {
        font-size: 4rem;
        top: 20px;
        left: 20px;
    }

    .tech-info {
        padding: 2rem;
    }

    .tech-info h3 {
        font-size: 1.75rem;
    }

    .tech-info p {
        font-size: 0.95rem;
    }

    .scroll-progress {
        bottom: 30px;
        scale: 0.85;
    }

    .progress-bar {
        width: 150px;
    }

    .progress-dots {
        gap: 8px;
        padding: 10px 16px;
    }

    .progress-dots .dot {
        width: 6px;
        height: 6px;
    }

    .project-counter {
        top: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 1.2rem;
    }

    .project-counter .current {
        font-size: 1.5rem;
        min-width: 30px;
    }

    .project-counter .separator {
        font-size: 1.2rem;
    }

    .project-counter .total {
        font-size: 1rem;
    }
}

/* ============================================
   OUTROS CARDS DO SITE (não do portfólio)
   ============================================ */
.tech-card:not(.tech-portfolio-section .tech-card) {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 16px;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
    cursor: default;
}

.tech-card:not(.tech-portfolio-section .tech-card):hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #219EBC;
    transform: translateY(-6px);
}

.tech-benefit-tilted {
    padding: 40px;
    border-radius: 16px;
    background: rgba(0, 102, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tech-border);
    transform: skew(-6deg);
    transition: .35s ease;
    position: relative;
    overflow: hidden;
}

.tech-benefit-tilted>* {
    transform: skew(6deg);
}

.tech-benefit-tilted::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: var(--gradient-border);
    opacity: 0;
    transition: .35s ease;
    border-radius: 16px;
    z-index: 0;
}

.tech-benefit-tilted:hover {
    transform: skew(-6deg) translateY(-6px);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.2);
}

.tech-benefit-tilted:hover::before {
    opacity: 0.3;
}

/* ============================================
   FORÇA VISIBILIDADE - SOBRESCREVE TUDO
   ============================================ */

/* Remove qualquer regra que esconda o conteúdo */
.tech-portfolio-section .tech-card .tech-info,
.tech-portfolio-section .tech-card:not(.in-view) .tech-info,
.tech-portfolio-section .tech-card .tech-info *,
.tech-portfolio-section .tech-card .tech-info h3,
.tech-portfolio-section .tech-card .tech-info p,
.tech-portfolio-section .tech-card .tech-btn {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* Garante display correto */
.tech-portfolio-section .tech-card .tech-info h3,
.tech-portfolio-section .tech-card .tech-info p {
    display: block !important;
}

.tech-portfolio-section .tech-card .tech-btn {
    display: inline-flex !important;
}

/* ============================================
   FORÇA TOTAL - ÚLTIMA PALAVRA
   Cole isso NO FINAL do style.css
   ============================================ */

/* Sobrescreve QUALQUER regra que esconda o tech-info */
.tech-portfolio-section .tech-card .tech-info,
.tech-portfolio-section .tech-card:not(.in-view) .tech-info,
.tech-card:not(.in-view) .tech-info,
body .tech-card .tech-info,
.tech-info {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Título sempre visível */
.tech-portfolio-section .tech-card .tech-info h3,
.tech-portfolio-section .tech-card:not(.in-view) .tech-info h3,
.tech-card:not(.in-view) .tech-info h3,
.tech-info h3 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Descrição sempre visível */
.tech-portfolio-section .tech-card .tech-info p,
.tech-portfolio-section .tech-card:not(.in-view) .tech-info p,
.tech-card:not(.in-view) .tech-info p,
.tech-info p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Botão sempre visível */
.tech-portfolio-section .tech-card .tech-btn,
.tech-portfolio-section .tech-card:not(.in-view) .tech-btn,
.tech-card:not(.in-view) .tech-btn,
.tech-portfolio-section .tech-btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

/* Remove qualquer animação que possa interferir */
.tech-portfolio-section .tech-card .tech-info *,
.tech-card:not(.in-view) .tech-info * {
    animation: none !important;
}