/* Services Section Background */
.services-section {
    position: relative;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
    overflow: hidden;
    padding: 80px 0;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.services-section .section-title,
.services-section .section-subtitle {
    position: relative;
    z-index: 1;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Services Grid Layout (New) */
.services-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.service-column {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(5px);
}

.service-column:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.col-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.col-icon svg {
    width: 24px;
    height: 24px;
}

.col-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.col-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Interactive SVG Containers */
.interactive-svg-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #222;
    position: relative;
    min-height: 400px; /* Ensure height for SVGs */
}

.terminal-svg, .pentest-svg, .ir-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Specific Column Styles */
.red-team-col:hover { border-color: #ff4d4d; }
.red-team-col .col-icon { border-color: rgba(255, 77, 77, 0.3); }

.pentest-col:hover { border-color: #00ff88; }
.pentest-col .col-icon { border-color: rgba(0, 255, 136, 0.3); }

.ir-col:hover { border-color: #00ccff; }
.ir-col .col-icon { border-color: rgba(0, 204, 255, 0.3); }

/* Service Overlays */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.service-column:hover .service-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 20px;
}

.service-column:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.red-team-col .overlay-content h4 { color: #ff4d4d; text-shadow: 0 0 10px rgba(255, 77, 77, 0.5); }
.pentest-col .overlay-content h4 { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
.ir-col .overlay-content h4 { color: #00ccff; text-shadow: 0 0 10px rgba(0, 204, 255, 0.5); }

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.overlay-content li {
    color: #ccc;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
}

.overlay-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.red-team-col .overlay-content li::before { color: #ff4d4d; }
.pentest-col .overlay-content li::before { color: #00ff88; }
.ir-col .overlay-content li::before { color: #00ccff; }

/* Removed Buttons as requested */
.overlay-link {
    display: none;
}

/* Mini Animations in Overlay */
.kill-chain-mini, .pentest-mini, .ir-mini {
    width: 100%;
    height: 60px;
    margin-top: auto;
    margin-bottom: 10px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .services-grid-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .interactive-svg-container {
        min-height: 300px;
        border-radius: 8px 8px 0 0;
        max-width: 760px;
        margin: 0 auto;
    }

    .service-column {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    /* Stack overlay below SVG on mobile */
    .service-overlay {
        position: relative;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
        height: auto;
        transform: none;
        padding: 20px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: none;
        border-radius: 0 0 12px 12px;
    }

    .service-column:hover .service-overlay {
        opacity: 1;
    }

    .overlay-content {
        transform: none;
        padding-top: 0;
        overflow-y: visible;
        display: block; /* Remove flex center for better mobile layout */
    }
    
    .overlay-content h4 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-align: left; /* Align left for readability */
    }

    .kill-chain-mini, .pentest-mini, .ir-mini {
        height: 50px;
        margin-top: 20px;
        display: block; /* Ensure it takes width */
    }
}
@media (max-width: 600px) {
    .services-grid-layout { justify-items: center; }
    .service-column { width: 100%; max-width: 96vw; margin: 0 auto; }
    .interactive-svg-container { width: 100%; max-width: 96vw; margin: 0 auto; }
}
