/* Cyber Tabs Container */
.cyber-tabs-container {
    width: 100%;
    max-width: 100%;
    /* Ensure it doesn't exceed parent */
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    /* Ensure relative positioning for absolute child */
    /* Prevent any potential child overflow causing page scroll */
}



/* Spacer for the Process Section Heading */
.service-block h2 {
    margin-top: 0;
    /* Reduced spacing as requested */
    margin-bottom: 2rem;
}

/* Tab Navigation Scrollable Container */
.cyber-tabs-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 0;
    margin-bottom: 2rem;
    justify-content: center;
    /* Center the tabs */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

@media (max-width: 768px) {
    .cyber-tabs-nav {
        margin-bottom: 1.5rem;
    }
}

.cyber-tabs-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

/* Individual Tab Button */
.cyber-tab-btn {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--text-dim);
    padding: 1rem 2rem;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: -10px;
    /* Overlap slightly */
    z-index: 1;

    /* Chevron Shape */
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
    padding-left: 2.5rem;
    /* Space for the incoming chevron notch */
}

@media (max-width: 768px) {
    .cyber-tab-btn {
        padding: 0.75rem 1.5rem 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .cyber-tab-btn:first-child {
        padding-left: 1.5rem;
    }
}

.cyber-tab-btn:first-child {
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    /* Flat start for first tab */
    padding-left: 2rem;
}

.cyber-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(100, 255, 218, 0.05);
    z-index: 2;
}

.cyber-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0a192f;
    /* Dark text for contrast */
    border-color: transparent;
    font-weight: 700;
    z-index: 5;
    /* On top of others */
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

/* Tab Content Pane */
.cyber-tab-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
    min-height: 450px;
    /* Increased to ensure consistent size on mobile */
    justify-content: center;
    /* Vertically center content if short */
    position: relative;
    /* Create stacking context */
    z-index: 1;
    /* Ensure it sits above the background canvas */
}

.cyber-tab-content.active {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .cyber-tab-content.active {
        padding: 1.5rem;
        /* Ensure flex direction allows stacking */
        flex-direction: column;
        justify-content: center;
        width: 100%;
        /* Constant size fix */
        height: 550px;
        /* Fixed height for consistency */
        min-height: 550px;
    }

    .cyber-tab-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        height: 550px;
        /* Fixed height for inactive tabs too if needed for transition */
        min-height: 550px;
        overflow-y: auto;
        /* Allow scroll if text exceeds fixed height */
    }
}



.cyber-tab-visual {
    flex: 0 0 200px;
    /* Fixed width to prevent shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-tab-visual i {
    font-size: 5rem;
    /* Slightly smaller for better balance */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .cyber-tab-visual i {
        font-size: 3.5rem;
    }

    .cyber-tab-visual {
        min-width: unset;
        flex: 0 0 auto;
    }
}

.cyber-tab-info {
    flex: 1;
    text-align: left;
    /* Default to left for desktop */
}

@media (max-width: 768px) {
    .cyber-tab-info {
        text-align: center;
    }
}

.cyber-tab-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cyber-tab-info h3 span {
    color: var(--primary-color);
}

.cyber-tab-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Mobile Controls */
.cyber-mobile-controls {
    display: none;
    /* Hidden by default (Desktop) */
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    position: relative;
    z-index: 10;
    /* Ensure controls are above everything else */
}

.cyber-nav-btn {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cyber-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

@media (max-width: 768px) {
    .cyber-tabs-nav {
        display: none;
        /* Hide top tabs on mobile */
    }

    .cyber-mobile-controls {
        display: flex;
        /* Show controls on mobile */
    }
}

/* Testing Types Section (New) */
.testing-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testing-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.test-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.testing-card h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.testing-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 992px) {
    .testing-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testing-visual {
        display: none;
        /* Hide visual on smaller screens if needed, or keep it */
    }
}

@media (max-width: 600px) {
    .testing-grid {
        grid-template-columns: 1fr;
    }

    .testing-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Inner Wrapper for Tabs with Backgrounds */
.cyber-tab-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .cyber-tab-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}