/* Penetration Testing Page - Add-on Styles v2.2 */
/* Complements services-ultra.css - Does not override globals */

/* --- HERO STATUS BAR --- */
.status-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Mobile Responsive Fixes for Status Bar */
@media (max-width: 768px) {
    .status-bar {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .status-pill {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(100, 255, 218, 0.12);
    background: rgba(10, 25, 47, 0.6);
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #8892b0;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.status-pill .status-icon {
    color: #00b4d8;
}

.status-pill.active-pulse {
    border-color: rgba(100, 255, 218, 0.3);
    background: rgba(100, 255, 218, 0.05);
    color: #64ffda;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    background: #64ffda;
    border-radius: 50%;
    box-shadow: 0 0 10px #64ffda;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px #64ffda; }
    100% { opacity: 0.5; transform: scale(0.8); }
}

/* --- HERO ELEMENTS --- */
/* Hero Actions spacing */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Hero Meta Chips */
.hero-meta {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #8892b0;
    background: rgba(100, 255, 218, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}
.meta-chip i { color: #64ffda; }

/* Hero Metrics */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.metric-chip {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8892b0;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e6f1ff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-subtext {
    font-size: 0.85rem;
    color: #8892b0;
    opacity: 0.8;
}

/* --- HERO RADAR VISUAL --- */
.hero-visual {
    position: relative;
    perspective: 1000px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cyber-panel {
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    transform: rotateY(-5deg);
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 450px;
}

.cyber-panel:hover {
    transform: rotateY(0deg);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.12);
    padding-bottom: 0.75rem;
}

.panel-status {
    color: #64ffda;
    animation: textBlink 2s infinite;
}

@keyframes textBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.radar-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 25, 47, 0.8) 0%, rgba(2, 12, 27, 1) 100%);
    border: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 30px rgba(100, 255, 218, 0.05);
    overflow: hidden;
}

.radar-interface {
    position: absolute;
    inset: 0;
}

.radar-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(100, 255, 218, 0.15);
}
.ring-1 { width: 30%; height: 30%; border-style: solid; opacity: 0.3; }
.ring-2 { width: 60%; height: 60%; }
.ring-3 { width: 90%; height: 90%; border-color: rgba(100, 255, 218, 0.3); }

.radar-axis {
    position: absolute;
    background: rgba(100, 255, 218, 0.1);
}
.axis-x { top: 50%; left: 0; right: 0; height: 1px; }
.axis-y { left: 50%; top: 0; bottom: 0; width: 1px; }
.axis-d1 { top: 0; left: 50%; bottom: 0; width: 1px; transform: rotate(45deg); }
.axis-d2 { top: 0; left: 50%; bottom: 0; width: 1px; transform: rotate(-45deg); }

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(100, 255, 218, 0.1) 80%, rgba(100, 255, 218, 0.4) 100%);
    animation: radarSpin 3s linear infinite;
    z-index: 2;
}

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

.radar-blip {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff6b6b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #ff6b6b;
    z-index: 3;
    opacity: 0;
    animation: blipFade 2.5s ease-out forwards;
}

.radar-blip.friendly {
    background: #64ffda;
    box-shadow: 0 0 8px #64ffda;
}

@keyframes blipFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.radar-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: #64ffda;
    border-radius: 50%;
    box-shadow: 0 0 15px #64ffda;
    z-index: 10;
}
.core-outer {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    border: 1px solid #64ffda;
    border-radius: 50%;
    animation: corePulse 2s infinite;
}

@keyframes corePulse {
    0% { width: 20px; height: 20px; opacity: 0.8; }
    100% { width: 50px; height: 50px; opacity: 0; }
}

.hud-corner {
    position: absolute;
    width: 20px; height: 20px;
    border-color: #64ffda;
    border-style: solid;
    border-width: 0;
    opacity: 0.6;
}
.top-left { top: 15px; left: 15px; border-top-width: 2px; border-left-width: 2px; }
.top-right { top: 15px; right: 15px; border-top-width: 2px; border-right-width: 2px; }
.bottom-left { bottom: 15px; left: 15px; border-bottom-width: 2px; border-left-width: 2px; }
.bottom-right { bottom: 15px; right: 15px; border-bottom-width: 2px; border-right-width: 2px; }

.hud-coordinates {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #00b4d8;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.panel-footer {
    margin-top: 1rem;
    background: rgba(2, 12, 27, 0.6);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid rgba(100, 255, 218, 0.12);
}

.log-terminal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 3.5em;
    overflow: hidden;
}

.log-line { display: flex; gap: 0.5rem; }
.log-time { color: #8892b0; opacity: 0.7; }
.log-info { color: #e6f1ff; }
.log-success { color: #64ffda; }
.log-warning { color: #ff7a3d; }
.log-danger { color: #ff6b6b; }

/* --- TRUST STRIP --- */
.trust-strip {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    background: rgba(2, 12, 27, 0.3);
}

.trust-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.trust-col {
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.trust-label {
    font-size: 0.8rem; 
    color: #00b4d8; 
    margin-bottom: 1rem; 
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-strip, .tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-chip, .tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccd6f6;
}
.logo-chip i, .tech-chip i { color: #64ffda; }

/* --- GAP & SOLUTION --- */
.gap-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.gap-panel {
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.08) 0%, rgba(10, 25, 47, 0.8) 100%);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-panel {
    background: rgba(2, 12, 27, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gap-heading, .solution-heading {
    font-size: 1.5rem;
    margin: 1rem 0;
    line-height: 1.3;
    color: #e6f1ff;
}

.gap-text { color: #8892b0; margin-bottom: 2rem; }
.solution-text { color: #8892b0; margin-bottom: 2rem; }

.gap-stats {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 107, 107, 0.15);
}

.gap-stat { text-align: center; }
.gap-stat .label { display: block; font-size: 0.75rem; color: #ff6b6b; margin-bottom: 0.25rem; text-transform: uppercase; }
.gap-stat .value { font-size: 1.2rem; font-weight: 700; color: #e6f1ff; }

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.solution-card {
    background: rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.12);
    padding: 1rem;
    border-radius: 8px;
}

.solution-card h4 {
    font-size: 0.95rem;
    color: #e6f1ff;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-card h4 i { color: #64ffda; }
.solution-card p { font-size: 0.85rem; color: #8892b0; margin: 0; line-height: 1.4; }

/* --- ARSENAL CARDS (EXTENDING ULTRA CARD) --- */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 2rem;
    row-gap: 6rem; /* Aggressively increased to fix overlap */
    padding-bottom: 2rem;
}

.arsenal-card {
    min-height: 400px; /* Enforce height for consistency */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    background: #0a192f; /* Opaque background to prevent transparency issues */
    z-index: 1;
    position: relative;
}

.card-icon {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.arsenal-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    color: #e6f1ff;
}

.arsenal-card p {
    flex-grow: 1;
}

.service-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-stat { display: flex; flex-direction: column; }
.service-stat .label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #8892b0; text-transform: uppercase; }
.service-stat .value { font-weight: 700; color: #64ffda; font-size: 1.1rem; margin-top: 0.25rem; }

.command-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #00b4d8;
    letter-spacing: 1px;
    padding-top: 0.5rem;
}

/* --- PROCESS STEPS --- */
#process {
    margin-top: 6rem; /* Fix title touching previous section */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    row-gap: 3rem;
}

.process-step {
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.12);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure equal height */
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: #00b4d8;
}

.process-step::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, #64ffda, transparent);
    opacity: 0.5;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 0.8;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.process-step h4 {
    font-size: 1.25rem;
    color: #e6f1ff;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.process-step p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: #8892b0;
}

.deliverable-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #e6f1ff;
    align-self: flex-start; /* Don't stretch */
}

/* --- FAQ SECTION --- */
#faq {
    margin-top: 6rem; /* Fix title touching previous section */
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
}

.accordion-item {
    border: 1px solid rgba(100, 255, 218, 0.15);
    background: rgba(10, 25, 47, 0.7); /* Darker, cleaner background */
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.accordion-item:hover {
    border-color: #64ffda;
    background: rgba(17, 34, 64, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.accordion-item.active {
    background: rgba(17, 34, 64, 0.9);
    border-color: #64ffda;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: #e6f1ff;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #8892b0;
}

.accordion-content p { 
    padding: 0 2rem 2rem 2rem;
    margin: 0;
    line-height: 1.7;
}

.accordion-icon { 
    transition: transform 0.3s; 
    color: #64ffda; 
    opacity: 0.7;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50%;
}

.accordion-item.active .accordion-icon { 
    transform: rotate(180deg); 
    opacity: 1; 
    background: rgba(100, 255, 218, 0.1);
}
.accordion-item.active .accordion-content { max-height: 500px; }

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .accordion-header { padding: 1.25rem 1.5rem; font-size: 1rem; }
    .accordion-content p { padding: 0 1.5rem 1.5rem 1.5rem; }
}

/* --- CTA PANEL --- */
.cta-panel {
    position: relative;
    background: linear-gradient(120deg, rgba(17, 34, 64, 0.9), rgba(2, 12, 27, 0.95));
    border: 1px solid #64ffda;
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.1);
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.1), transparent 60%);
    pointer-events: none;
}

.cta-panel .ultra-h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #8892b0;
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 992px) {
    .gap-grid { grid-template-columns: 1fr; }
    .trust-card-grid { grid-template-columns: 1fr; }
}

/* --- SPACING & OVERLAP FIXES --- */
#services {
    padding-top: 8rem; /* Force clearance from previous section */
    margin-top: 4rem;
}

.gap-solution {
    margin-bottom: 4rem; /* Ensure previous section pushes down */
}

/* --- TEXT HIGHLIGHT --- */
.highlight-text {
    color: #e6f1ff;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: #64ffda;
    opacity: 0.15;
    transform: skewX(-10deg);
    z-index: -1;
}