/* ============================================================
   VISUAL ENHANCEMENTS (Command HUD, Alive Cards, etc.)
   ============================================================ */

/* --- 1. ALIVE CARDS (Hover Effects) --- */
.sub-service-block,
.service-card {
    overflow: hidden;
    /* For pseudo-elements */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient Border Trace */
.sub-service-block::before,
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Inherit from parent (20px usually) */
    padding: 2px;
    /* Border width */
    background: linear-gradient(135deg, transparent 40%, var(--glow-color, var(--color-text-dim)) 50%, transparent 60%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background-size: 200% 200%;
    z-index: 2;
}

.sub-service-block:hover::before,
.service-card:hover::before {
    opacity: 1;
    background-position: 100% 100%;
}

/* Subtle Inner Glow */
.sub-service-block::after,
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, rgba(0, 0, 0, 0.03)) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.sub-service-block:hover::after,
.service-card:hover::after {
    opacity: 1;
}

/* Theme-specific Glow Colors */
.theme-offensive,
.service-card--offensive {
    --glow-color: rgba(153, 27, 27, 0.15);
}

/* Red */
.theme-defensive,
.service-card--defensive {
    --glow-color: rgba(2, 132, 199, 0.15);
}

/* Blue */
.theme-advisory,
.service-card--advisory {
    --glow-color: rgba(126, 34, 206, 0.15);
}

/* Purple */
.theme-training,
.service-card--training {
    --glow-color: rgba(5, 150, 105, 0.15);
}

/* Green */

/* --- 3. WATERMARKS --- */
.tech-watermark {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    transition: all 0.5s ease;
}

.sub-service-block:hover .tech-watermark,
.service-card:hover .tech-watermark {
    opacity: 0.08;
    transform: scale(1.05);
}

/* --- 4. TYPOGRAPHY ACCENTS --- */
.tech-accent {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

/* --- 5. HERO DIGITAL PULSE --- */
.hero-pulse-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: -1;
}

.hero-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: 50%;
    opacity: 0;
    animation: pulseWave 4s infinite linear;
}

.hero-pulse:nth-child(2) {
    animation-delay: 1s;
}

.hero-pulse:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulseWave {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- 6. TRUST BAR SCANNER --- */
.trust-bar {
    position: relative;
    overflow: hidden;
}

.trust-scanner {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    box-shadow: 0 0 10px var(--color-accent);
    opacity: 0.5;
    transform: skewX(-20deg);
    animation: scanPass 5s 1 cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes scanPass {
    0% {
        left: -10%;
    }

    100% {
        left: 110%;
    }
}

/* --- 7. NEW SHARED HERO STYLES (From About Page) --- */
.highlight-hero {
    position: relative;
    min-height: 60vh;
    /* Slightly smaller than full about hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.highlight-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.highlight-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.highlight-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    max-width: 1000px;
    margin-bottom: 40px;
    color: var(--color-text);
    position: relative;
    z-index: 2;
}

.highlight-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- 8. GLOBAL LOCATION BADGES (For Trust Bar) --- */
.trust-locations {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.trust-location-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-location-badge svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.trust-location-badge.global {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}

.trust-location-badge.global svg {
    color: #fff;
}