/* ═══════════════════════════════════════════════════════════════
   CORPORATE LINE DESIGN SYSTEM — Arge Network Solutions
   Premium geometric line elements for enterprise aesthetics
   ═══════════════════════════════════════════════════════════════ */

/* ─── Section Dividers: Horizontal Corporate Lines ─── */
.corp-divider {
    position: relative;
    height: 1px;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 1rem;
}

.corp-divider::before {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(6, 182, 212, 0.08) 10%,
            rgba(6, 182, 212, 0.35) 30%,
            rgba(139, 92, 246, 0.5) 50%,
            rgba(139, 92, 246, 0.35) 70%,
            rgba(6, 182, 212, 0.08) 90%,
            transparent 100%);
}

.corp-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 1px;
}

/* Diamond node variant */
.corp-divider--double::after {
    width: 8px;
    height: 8px;
    box-shadow:
        -30px 0 0 -2px rgba(6, 182, 212, 0.5),
        30px 0 0 -2px rgba(139, 92, 246, 0.5);
}

/* ─── Section Corner Accents ─── */
.corp-corners {
    position: relative;
}

.corp-corners::before,
.corp-corners::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1;
}

.corp-corners::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid rgba(6, 182, 212, 0.3);
    border-left: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 4px 0 0 0;
}

.corp-corners::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    border-right: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 0 0 4px 0;
}

/* Full corners (4 corners via inner wrapper) */
.corp-corners-inner::before,
.corp-corners-inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1;
}

.corp-corners-inner::before {
    top: -1px;
    right: -1px;
    border-top: 2px solid rgba(6, 182, 212, 0.2);
    border-right: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: 0 4px 0 0;
}

.corp-corners-inner::after {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    border-left: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 0 0 0 4px;
}

/* ─── Vertical Side Lines ─── */
.corp-sideline-left {
    position: relative;
}

.corp-sideline-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(6, 182, 212, 0.4) 20%,
            rgba(139, 92, 246, 0.4) 80%,
            transparent 100%);
    border-radius: 1px;
}

.corp-sideline-right {
    position: relative;
}

.corp-sideline-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(139, 92, 246, 0.4) 20%,
            rgba(6, 182, 212, 0.4) 80%,
            transparent 100%);
    border-radius: 1px;
}

/* ─── Section Bracket Lines ─── */
.corp-bracket {
    position: relative;
    padding-left: 24px;
}

.corp-bracket::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #06b6d4, #8b5cf6);
    border-radius: 2px;
}

.corp-bracket::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, rgba(6, 182, 212, 0));
    border-radius: 2px;
}

/* ─── Geometric Grid Pattern Overlay ─── */
.corp-grid-pattern {
    position: relative;
}

.corp-grid-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
    z-index: 0;
}

/* ─── Diagonal Accent Lines ─── */
.corp-diag-lines {
    position: relative;
    overflow: hidden;
}

.corp-diag-lines::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 200px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 30px,
            rgba(6, 182, 212, 0.03) 30px,
            rgba(6, 182, 212, 0.03) 31px);
}

.corp-diag-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 200px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 30px,
            rgba(139, 92, 246, 0.03) 30px,
            rgba(139, 92, 246, 0.03) 31px);
}

/* ─── Animated Scan Line ─── */
@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.corp-scanline {
    position: relative;
    overflow: hidden;
}

.corp-scanline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(6, 182, 212, 0.6),
            rgba(139, 92, 246, 0.6),
            transparent);
    animation: scanLine 6s ease-in-out infinite;
}

/* ─── Section Title Accent Line ─── */
.corp-title-line {
    position: relative;
    display: inline-block;
}

.corp-title-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            #06b6d4 0%,
            #8b5cf6 50%,
            transparent 100%);
    border-radius: 1px;
}

/* ─── Corporate Cross / Plus Decorators ─── */
.corp-cross {
    position: relative;
}

.corp-cross::before {
    content: '+';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(6, 182, 212, 0.25);
    line-height: 1;
    pointer-events: none;
}

/* ─── Horizontal Rule with Node Points ─── */
.corp-hr {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 2rem;
}

.corp-hr::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(6, 182, 212, 0.3));
}

.corp-hr::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(139, 92, 246, 0.3),
            transparent);
}

.corp-hr-node {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    transform: rotate(45deg);
    flex-shrink: 0;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* ─── Blueprint Corner Dots ─── */
.corp-dots {
    position: relative;
}

.corp-dots::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.35);
    border-radius: 50%;
    box-shadow:
        12px 0 0 rgba(6, 182, 212, 0.2),
        0 12px 0 rgba(6, 182, 212, 0.2);
}

.corp-dots::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.35);
    border-radius: 50%;
    box-shadow:
        -12px 0 0 rgba(139, 92, 246, 0.2),
        0 -12px 0 rgba(139, 92, 246, 0.2);
}

/* ─── Section Top & Bottom Line Borders ─── */
.corp-line-top {
    position: relative;
}

.corp-line-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(6, 182, 212, 0.15) 20%,
            rgba(6, 182, 212, 0.25) 50%,
            rgba(139, 92, 246, 0.15) 80%,
            transparent);
    pointer-events: none;
}

.corp-line-bottom {
    position: relative;
}

.corp-line-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(139, 92, 246, 0.15) 20%,
            rgba(139, 92, 246, 0.25) 50%,
            rgba(6, 182, 212, 0.15) 80%,
            transparent);
    pointer-events: none;
}

/* ─── Dual Parallel Lines ─── */
.corp-parallel-lines {
    position: relative;
}

.corp-parallel-lines::before,
.corp-parallel-lines::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    height: 1px;
    pointer-events: none;
}

.corp-parallel-lines::before {
    top: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(6, 182, 212, 0.2),
            transparent);
}

.corp-parallel-lines::after {
    top: 4px;
    background: linear-gradient(90deg,
            transparent,
            rgba(6, 182, 212, 0.08),
            transparent);
}

/* ─── Animated Side Accent ─── */
@keyframes sideGlow {

    0%,
    100% {
        opacity: 0.3;
        height: 30%;
    }

    50% {
        opacity: 0.7;
        height: 50%;
    }
}

.corp-glow-bar {
    position: relative;
}

.corp-glow-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    width: 2px;
    height: 30%;
    background: linear-gradient(180deg, #06b6d4, #8b5cf6);
    border-radius: 1px;
    animation: sideGlow 4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* ─── Tech Grid Background ─── */
.corp-tech-grid {
    position: relative;
}

.corp-tech-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size:
        100px 100px,
        100px 100px,
        20px 20px,
        20px 20px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* ─── Hexagon Dot Pattern ─── */
.corp-hex-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* ─── Card Left Border Accent ─── */
.corp-card-accent {
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #06b6d4, #8b5cf6) 1;
    transition: border-image 0.3s ease;
}

.corp-card-accent:hover {
    border-image: linear-gradient(180deg, #22d3ee, #a78bfa) 1;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 767px) {

    .corp-diag-lines::before,
    .corp-diag-lines::after {
        width: 100px;
    }

    .corp-corners::before,
    .corp-corners::after,
    .corp-corners-inner::before,
    .corp-corners-inner::after {
        width: 24px;
        height: 24px;
    }

    .corp-sideline-left::before,
    .corp-sideline-right::after {
        width: 1px;
    }

    .corp-dots::before,
    .corp-dots::after {
        display: none;
    }
}

@media (max-width: 640px) {

    .corp-diag-lines::before,
    .corp-diag-lines::after {
        display: none;
    }

    .corp-tech-grid::before {
        opacity: 0.2;
    }
}
