/* ==================================================
   SERVICES.CSS — DIMEN6 | PREMIUM CYBER AESTHETIC
   Alinhado com sobre.css (Glassmorphism e Grids)
   ================================================== */

/* ── UTILITÁRIOS ── */
.relative-z { position: relative; z-index: 2; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

/* ── TAGS DE TOPO (Mesmo do Sobre) ── */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 6px 18px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* ==================================================
   SEÇÃO 1: ACCORDION DE SERVIÇOS (HERO)
   ================================================== */
.services-hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Grade de scan decorativa de fundo */
.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent, transparent 2px,
            rgba(0, 243, 255, 0.015) 2px,
            rgba(0, 243, 255, 0.015) 3px
        ),
        repeating-linear-gradient(
            90deg,
            transparent, transparent 2px,
            rgba(0, 243, 255, 0.015) 2px,
            rgba(0, 243, 255, 0.015) 3px
        );
    pointer-events: none;
    z-index: 0;
}

/* Brilho de fundo */
.services-hero::after {
    content: '';
    position: absolute;
    top: -10%; left: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── ACCORDION WRAPPER ── */
.accordion-services {
    display: flex;
    gap: 12px;
    height: 520px;
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

/* ── CADA ITEM ── */
.acc-item {
    flex: 1;
    min-width: 70px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.77, 0, 0.175, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.acc-item.active {
    flex: 4.5;
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.12),
                0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ── IMAGEM DE FUNDO ── */
.acc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1),
                filter 0.7s ease;
    filter: brightness(0.3) saturate(0.5);
    will-change: transform, filter;
}

.acc-item.active .acc-bg {
    filter: brightness(0.45) saturate(0.75);
    transform: scale(1.04);
}

/* Gradiente sobre a imagem */
.acc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, 0.92) 0%,
        rgba(5, 10, 20, 0.5) 55%,
        rgba(0, 243, 255, 0.05) 100%
    );
}

.acc-item.active .acc-overlay {
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, 0.95) 0%,
        rgba(5, 10, 20, 0.6) 55%,
        rgba(0, 243, 255, 0.07) 100%
    );
}

/* ── ÍCONE E NÚMERO (Fechado) ── */
.acc-icon-collapsed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    color: rgba(0, 243, 255, 0.45);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 3;
    pointer-events: none;
}
.acc-item.active .acc-icon-collapsed { opacity: 0; transform: translate(-50%, -65%); }

.acc-number {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    writing-mode: vertical-rl;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 3;
}
.acc-item.active .acc-number { opacity: 0; }

/* Linha Neon Superior */
.acc-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    box-shadow: 0 0 12px var(--primary);
    z-index: 5;
}

/* ── CONTEÚDO EXPANDIDO ── */
.acc-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 45px 42px;
    z-index: 4;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
    pointer-events: none;
}
.acc-item.active .acc-content { opacity: 1; transform: translateY(0); pointer-events: all; }

.acc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.22);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.acc-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

.acc-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 28px;
}

.acc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 22px;
    gap: 20px;
    flex-wrap: wrap;
}

.acc-price-info { display: flex; flex-direction: column; gap: 3px; }
.acc-price-label { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-gray); }
.acc-price-val { font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary); text-shadow: 0 0 18px rgba(0, 243, 255, 0.3); }

/* ==================================================
   SEÇÃO 2: DETALHAMENTO DOS SERVIÇOS (GLASSMORPHISM)
   ================================================== */
.service-details-section {
    padding: 100px 0 140px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.service-details-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.details-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* ── SIDEBAR (Alinhada com .founder-glass) ── */
.sidebar-glass {
    background: rgba(10, 21, 37, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 24px;
    padding: 16px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Linhas cyber decorativas na sidebar */
.cyber-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.cyber-lines::before {
    content: ''; position: absolute; top: 20%; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 243, 255, 0.2), transparent);
}

.active-pill-bg {
    position: absolute;
    top: 0; left: 16px;
    width: calc(100% - 32px);
    height: 58px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, rgba(0, 243, 255, 0.05) 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), height 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.1);
}

.vertical-nav {
    list-style: none;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vertical-nav li {
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    cursor: pointer;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 16px;
    transition: color 0.35s ease;
    position: relative;
    z-index: 2;
}

.vertical-nav li i { font-size: 1.1rem; width: 20px; text-align: center; transition: transform 0.35s ease; flex-shrink: 0; }
.vertical-nav li.active { color: var(--primary); font-weight: 700; text-shadow: 0 0 10px rgba(0,243,255,0.4); }
.vertical-nav li:hover:not(.active) { color: var(--text-white); }
.vertical-nav li.active i { transform: scale(1.15); color: var(--text-white); }

/* ── PAINÉIS (Alinhados com purpose-block e glassmorphism) ── */
.content-area {
    position: relative;
    min-height: 480px;
}

.detail-pane {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.detail-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0s;
}

.pane-glass {
    background: rgba(10, 21, 37, 0.65);
    border: 1px solid rgba(112, 0, 255, 0.15);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

/* Cantos Tecnológicos (Do hero fundador) */
.pane-glass::before, .pane-glass::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    border: 2px solid rgba(112, 0, 255, 0.4); transition: all 0.5s ease;
}
.pane-glass::before { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.pane-glass::after  { bottom: 18px; right: 18px; border-left: none; border-top: none; }
.detail-pane.active .pane-glass::before { border-color: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.detail-pane.active .pane-glass::after  { border-color: var(--secondary); box-shadow: 0 0 10px var(--secondary); }

.pane-glass h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.3;
}
.highlight-text { color: var(--primary); text-shadow: 0 0 20px rgba(0, 243, 255, 0.4); }

.pane-body p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.85;
}

.pane-body ul {
    list-style: none;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pane-body li {
    display: flex;
    gap: 14px;
    color: var(--text-white);
    font-size: 0.96rem;
    line-height: 1.65;
    padding: 16px 20px;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pane-body li:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.25);
    transform: translateX(5px);
}

.pane-body li i { color: var(--primary); margin-top: 4px; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(0, 243, 255, 0.4)); }

/* ==================================================
   BOTÕES MAGNÉTICOS (Mesmo de sobre.css)
   ================================================== */
.d6-magnetic-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; font-family: var(--font-heading);
    font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; border-radius: 8px; cursor: pointer;
    transition: all 0.35s ease;
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
}
.d6-magnetic-btn .btn-text { display: flex; align-items: center; gap: 10px; pointer-events: none; }
.outline-btn { background: transparent; border: 1px solid rgba(0, 243, 255, 0.4); color: var(--primary); }
.outline-btn:hover { background: rgba(0, 243, 255, 0.08); border-color: var(--primary); box-shadow: 0 0 20px rgba(0, 243, 255, 0.2); }

/* ==================================================
   SCROLL REVEAL (CLASSE USADA NO HTML)
   ================================================== */
.d6-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.d6-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   RESPONSIVIDADE
   ================================================== */
@media (max-width: 992px) {
    .accordion-services { height: auto; flex-direction: column; gap: 8px; margin-top: 40px; }
    .acc-item { flex: none; height: 72px; min-width: unset; border-radius: 14px; transition: height 0.6s cubic-bezier(0.77, 0, 0.175, 1), box-shadow 0.5s ease; }
    .acc-item.active { flex: none; height: 420px; }
    .acc-icon-collapsed { left: 28px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; }
    .acc-item.active .acc-icon-collapsed { transform: translateY(-70%); opacity: 0; }
    .acc-number { writing-mode: horizontal-tb; bottom: auto; top: 50%; left: auto; right: 22px; transform: translateY(-50%); font-size: 0.58rem; }
    .acc-content { padding: 25px 22px; }
    .acc-title { font-size: 1.4rem; }
    .acc-desc { font-size: 0.88rem; margin-bottom: 16px; }

    .details-layout { grid-template-columns: 1fr; gap: 25px; }
    .sidebar-glass { border-radius: 18px; }
    .content-area { min-height: auto; }
}

@media (max-width: 768px) {
    .services-hero { padding: 120px 0 60px; }
    .acc-price-val { font-size: 1.3rem; }
    .pane-glass { padding: 28px 20px; }
    .pane-glass h2 { font-size: 1.5rem; }
    .service-details-section { padding: 70px 0 100px; }
}