/* ================================================================
   Shared Dark Blueprint Design Token
   Used by: Company Snapshot, Products, Materials sections
   Matches: Mission & Vision dark navy tone
   ================================================================ */

/* ─── CSS Design Tokens ─── */
:root {
    --dk-bg-1:     #040d21;
    --dk-bg-2:     #071428;
    --dk-bg-3:     #0a1a35;
    --dk-cyan:     #00c8ff;
    --dk-blue:     #0062ff;
    --dk-card-bg:  rgba(255,255,255,0.04);
    --dk-card-border: rgba(0, 180, 255, 0.12);
    --dk-text:     #e2f0ff;
    --dk-muted:    rgba(180, 210, 240, 0.55);
}

/* ================================================================
   SHARED SECTION WRAPPER — dark navy background + dot grid
   Apply class "dk-section" to any section using this theme
   ================================================================ */
.dk-section {
    background: linear-gradient(160deg, var(--dk-bg-1) 0%, var(--dk-bg-2) 40%, var(--dk-bg-3) 70%, var(--dk-bg-2) 100%);
    position: relative;
    overflow: hidden;
    padding-block: 5rem;
}

/* Dot grid overlay */
.dk-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0, 180, 255, 0.10) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

/* ─── Ambient glow orbs ─── */
.dk-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: dk-glow-breathe 9s ease-in-out infinite;
    z-index: 0;
}
.dk-glow-a {
    width: 550px; height: 550px;
    top: -120px; left: -80px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.40), transparent 70%);
    animation-delay: 0s;
}
.dk-glow-b {
    width: 480px; height: 480px;
    bottom: -80px; right: -60px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.28), transparent 70%);
    animation-delay: 4s;
}
@keyframes dk-glow-breathe {
    0%, 100% { opacity: 0.28; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.1); }
}

/* ─── Floating particles ─── */
.dk-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dk-particle {
    position: absolute;
    left: var(--px); top: var(--py);
    width: var(--ps, 4px); height: var(--ps, 4px);
    border-radius: 50%;
    background: var(--dk-cyan);
    box-shadow: 0 0 8px var(--dk-cyan);
    opacity: 0.5;
    animation: dk-float calc(var(--pd, 0s) + 4s) ease-in-out infinite;
}
@keyframes dk-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50%       { transform: translateY(-16px) scale(1.3); opacity: 0.9; }
}

/* ================================================================
   PREMIUM AutoCAD DECORATIVE LINES
   Multiple elements: corners, crosshair, scan, dimension ticks
   ================================================================ */
.cad-blueprint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* ─── Corner viewport brackets (4 corners) ─── */
.cad-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.cad-corner::before,
.cad-corner::after {
    content: "";
    position: absolute;
    background: var(--dk-cyan);
}
.cad-corner--tl { top: 18px; left: 18px; }
.cad-corner--tl::before { top: 0; left: 0; width: 2px; height: 100%; }
.cad-corner--tl::after  { top: 0; left: 0; width: 100%; height: 2px; }

.cad-corner--tr { top: 18px; right: 18px; }
.cad-corner--tr::before { top: 0; right: 0; width: 2px; height: 100%; left: auto; }
.cad-corner--tr::after  { top: 0; right: 0; width: 100%; height: 2px; }

.cad-corner--bl { bottom: 18px; left: 18px; }
.cad-corner--bl::before { bottom: 0; left: 0; width: 2px; height: 100%; top: auto; }
.cad-corner--bl::after  { bottom: 0; left: 0; width: 100%; height: 2px; top: auto; }

.cad-corner--br { bottom: 18px; right: 18px; }
.cad-corner--br::before { bottom: 0; right: 0; width: 2px; height: 100%; top: auto; left: auto; }
.cad-corner--br::after  { bottom: 0; right: 0; width: 100%; height: 2px; top: auto; left: auto; }

/* ─── Center crosshair / origin marker ─── */
.cad-crosshair {
    position: absolute;
    top: 50%; left: 20%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
}
.cad-crosshair::before { /* horizontal arm */
    content: "";
    position: absolute;
    top: 50%; left: -40px;
    width: calc(100% + 80px);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 200, 255, 0.35) 20%,
        rgba(0, 200, 255, 0.55) 50%,
        rgba(0, 200, 255, 0.35) 80%,
        transparent 100%
    );
    transform: translateY(-50%);
}
.cad-crosshair::after { /* vertical arm */
    content: "";
    position: absolute;
    left: 50%; top: -40px;
    height: calc(100% + 80px);
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 200, 255, 0.35) 20%,
        rgba(0, 200, 255, 0.55) 50%,
        rgba(0, 200, 255, 0.35) 80%,
        transparent 100%
    );
    transform: translateX(-50%);
}
/* Crosshair center circle */
.cad-crosshair-ring {
    position: absolute;
    top: 50%; left: 20%;
    transform: translate(-50%, -50%);
    width: 18px; height: 18px;
    border: 1.5px solid rgba(0, 200, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.25), inset 0 0 4px rgba(0, 200, 255, 0.1);
    animation: cad-ring-pulse 3s ease-in-out infinite;
}
.cad-crosshair-ring-outer {
    position: absolute;
    top: 50%; left: 20%;
    transform: translate(-50%, -50%);
    width: 36px; height: 36px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 50%;
    animation: cad-ring-pulse 3s ease-in-out infinite 1s;
}
@keyframes cad-ring-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

/* ─── Horizontal dimension line (top area) ─── */
.cad-dim-h {
    position: absolute;
    top: 22%; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 200, 255, 0.08) 5%,
        rgba(0, 200, 255, 0.18) 50%,
        rgba(0, 200, 255, 0.08) 95%,
        transparent 100%
    );
}
/* tick marks every ~10% */
.cad-dim-h::before,
.cad-dim-h::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 1px;
    height: 7px;
    background: rgba(0, 200, 255, 0.3);
}
.cad-dim-h::before { left: 0; }
.cad-dim-h::after  { right: 0; }

/* ─── Vertical dimension line (right side) ─── */
.cad-dim-v {
    position: absolute;
    right: 8%; top: 10%; bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 200, 255, 0.06) 10%,
        rgba(0, 200, 255, 0.14) 50%,
        rgba(0, 200, 255, 0.06) 90%,
        transparent 100%
    );
}
.cad-dim-v::before,
.cad-dim-v::after {
    content: "";
    position: absolute;
    left: -3px;
    width: 7px;
    height: 1px;
    background: rgba(0, 200, 255, 0.3);
}
.cad-dim-v::before { top: 0; }
.cad-dim-v::after  { bottom: 0; }

/* ─── Animated scan line ─── */
.cad-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 200, 255, 0.0) 10%,
        rgba(0, 200, 255, 0.5) 50%,
        rgba(0, 200, 255, 0.0) 90%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
    animation: cad-scan 8s linear infinite;
    opacity: 0.7;
}
@keyframes cad-scan {
    0%   { top: 5%; opacity: 0; }
    5%   { opacity: 0.7; }
    95%  { opacity: 0.7; }
    100% { top: 95%; opacity: 0; }
}

/* ─── Diagonal construction lines (like reference lines in CAD view) ─── */
.cad-diag-line {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}
.cad-diag-1 {
    top: 0; left: 0;
    width: 1px; height: 200%;
    background: rgba(0, 200, 255, 1);
    transform-origin: top left;
    transform: rotate(12deg);
}
.cad-diag-2 {
    top: 0; right: 15%;
    width: 1px; height: 200%;
    background: rgba(0, 200, 255, 1);
    transform-origin: top right;
    transform: rotate(-12deg);
}

/* ─── CAD coordinate label (bottom-left HUD) ─── */
.cad-hud {
    position: absolute;
    bottom: 16px; left: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--dk-cyan);
    background: rgba(4, 13, 33, 0.75);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 5px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
}
.cad-hud::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--dk-cyan);
    box-shadow: 0 0 6px var(--dk-cyan);
    animation: cad-hud-blink 1.5s ease-in-out infinite;
}
@keyframes cad-hud-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}
.cad-hud-layer {
    font-size: 0.7rem;
    color: rgba(0, 200, 255, 0.5);
    border-left: 1px solid rgba(0, 200, 255, 0.15);
    padding-left: 0.75rem;
}

/* ─── Right-side layer indicator ─── */
.cad-layer-badge {
    position: absolute;
    top: 16px; right: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(0, 200, 255, 0.45);
    background: rgba(4, 13, 33, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 4px;
    padding: 3px 10px;
    pointer-events: none;
    z-index: 5;
}

/* ================================================================
   GLASSMORPHISM CARDS — for dark sections
   ================================================================ */
.dk-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 180, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .35s ease,
                border-color .35s ease,
                background .35s ease;
    position: relative;
    overflow: hidden;
}
.dk-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,200,255,0.4), transparent);
}
.dk-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 200, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 200, 255, 0.08);
}

/* Icon in dark cards */
.dk-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.18);
    color: #00c8ff;
    font-size: 1.1rem;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.dk-card:hover .dk-icon {
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.25);
}

/* Text in dark cards */
.dk-card-title { color: #e2f0ff; font-weight: 700; font-size: 0.92rem; }
.dk-card-body  { color: rgba(180, 210, 240, 0.65); font-size: 0.8rem; line-height: 1.5; }

/* Section heading on dark bg */
.dk-section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    font-family: 'Consolas', monospace, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.dk-section-title i { color: #00c8ff; }

.dk-toolbar {
    background: rgba(4, 13, 33, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
