/* ============================================================
   GLOBAL — CENTERED TITLES + SCALED SECTIONS
   ============================================================ */

.section-title {
    font-size: 3.2em;
    color: #00d9ff;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.tech-section,
.features-section,
.gallery-section,
.private-notice-section,
.terminal-metrics-section,
.hud-metrics-section {
    padding: 90px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

/* ============================================================
   HERO — CINEMATIC WIDE (Option C)
   ============================================================ */

.project-hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* CRT scanline overlay */
.hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 217, 255, 0.012) 3px,
            rgba(0, 217, 255, 0.012) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* HUD corner brackets */
.hero-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(0, 217, 255, 0.5);
    border-style: solid;
    z-index: 3;
    animation: corner-pulse 3s ease-in-out infinite;
}

@keyframes corner-pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; box-shadow: 0 0 12px rgba(0, 217, 255, 0.4); }
}

.hero-corner.tl { top: 20px;    left: 20px;    border-width: 2px 0 0 2px; }
.hero-corner.tr { top: 20px;    right: 20px;   border-width: 2px 2px 0 0; }
.hero-corner.bl { bottom: 70px; left: 20px;    border-width: 0 0 2px 2px; }
.hero-corner.br { bottom: 70px; right: 20px;   border-width: 0 2px 2px 0; }

/* Breadcrumb */
.hero-breadcrumb {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hero-breadcrumb a {
    color: rgba(0, 217, 255, 0.7);
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.hero-breadcrumb a:hover {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.hero-breadcrumb i { margin-right: 8px; }

/* Main content block */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 80px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Subtitle tag above title */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(153, 102, 255, 0.12);
    border: 1px solid rgba(153, 102, 255, 0.4);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85em;
    color: #9966ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9966ff;
    box-shadow: 0 0 8px rgba(153, 102, 255, 0.9);
    animation: hint-pulse 2s ease-in-out infinite;
}

/* Title */
.project-title {
    font-size: 4em;
    color: #00d9ff;
    text-shadow:
            0 0 20px rgba(0, 217, 255, 0.8),
            0 0 60px rgba(0, 217, 255, 0.3);
    margin: 0;
    line-height: 1.1;
}

/* Decorative divider */
.hero-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.4), transparent);
}

.divider-corner {
    color: rgba(0, 217, 255, 0.5);
    font-size: 1.1em;
}

/* Description */
.hero-description {
    font-size: 1.15em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0;
}

/* CTA buttons */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── BOTTOM HUD STATUS BAR ─────────────────────────────────── */

.hero-hud-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(8px);
}

.hud-bar-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hud-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
}

.hud-bar-item i {
    color: #9966ff;
    font-size: 0.85em;
}

.hud-bar-label {
    font-size: 0.72em;
    color: rgba(0, 217, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hud-bar-value {
    font-size: 0.88em;
    color: #00d9ff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hud-private {
    color: #ffa500;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

.hud-live {
    color: #00ff7f;
    text-shadow: 0 0 8px rgba(0, 255, 127, 0.6);
}

.hud-live-dot {
    color: #00ff7f !important;
    font-size: 0.6em !important;
    animation: hint-pulse 1.5s ease-in-out infinite;
}

.hud-bar-sep {
    color: rgba(0, 217, 255, 0.2);
    font-size: 1.2em;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .project-title   { font-size: 2.6em; }
    .hero-content    { padding: 70px 25px 50px; gap: 18px; }
    .hero-description { font-size: 1em; }

    .hud-bar-inner   { gap: 12px; padding: 12px 20px; }
    .hud-bar-sep     { display: none; }
    .hud-bar-item    { flex-direction: column; gap: 2px; text-align: center; }

    .hero-corner.bl,
    .hero-corner.br  { bottom: 90px; }
}

@media (max-width: 480px) {
    .project-title   { font-size: 2em; }
    .hero-tag        { font-size: 0.75em; }
    .hud-bar-inner   { justify-content: space-around; }
}


/* ============================================================
   TECH STACK — CIRCUIT BOARD CARDS
   ============================================================ */

.tech-section {
    padding: 90px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.circuit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.circuit-card {
    position: relative;
    background: rgba(10, 5, 30, 0.9);
    border: 1px solid rgba(153, 102, 255, 0.4);
    border-radius: 10px;
    padding: 40px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

.circuit-card:hover {
    border-color: #9966ff;
    transform: translateY(-8px);
    box-shadow:
            0 15px 40px rgba(153, 102, 255, 0.35),
            inset 0 0 30px rgba(153, 102, 255, 0.05);
}

.circuit-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #9966ff;
    border-style: solid;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.circuit-card:hover .circuit-corner { opacity: 1; }

.circuit-corner.tl { top: 6px;    left: 6px;    border-width: 2px 0 0 2px; }
.circuit-corner.tr { top: 6px;    right: 6px;   border-width: 2px 2px 0 0; }
.circuit-corner.bl { bottom: 6px; left: 6px;    border-width: 0 0 2px 2px; }
.circuit-corner.br { bottom: 6px; right: 6px;   border-width: 0 2px 2px 0; }

.circuit-traces {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.trace {
    position: absolute;
    background: rgba(153, 102, 255, 0.15);
    transition: background 0.4s ease;
}

.circuit-card:hover .trace {
    background: rgba(153, 102, 255, 0.4);
}

.trace-top    { top: 0;    left: 30%;  width: 40%; height: 1px; }
.trace-bottom { bottom: 0; left: 20%;  width: 60%; height: 1px; }
.trace-left   { left: 0;   top: 30%;   width: 1px; height: 40%; }
.trace-right  { right: 0;  top: 20%;   width: 1px; height: 60%; }

.circuit-chip {
    width: 60px;
    height: 60px;
    background: rgba(153, 102, 255, 0.12);
    border: 1px solid rgba(153, 102, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.circuit-chip i {
    font-size: 1.7em;
    color: #9966ff;
    text-shadow: 0 0 12px rgba(153, 102, 255, 0.8);
}

.circuit-card:hover .circuit-chip {
    background: rgba(153, 102, 255, 0.25);
    box-shadow: 0 0 20px rgba(153, 102, 255, 0.4);
}

.circuit-name {
    font-size: 1.05em;
    color: var(--ghost-white);
    font-weight: 600;
    letter-spacing: 1px;
}

.circuit-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9966ff;
    box-shadow: 0 0 8px rgba(153, 102, 255, 0.8);
    animation: circuit-blink 2s ease-in-out infinite;
}

@keyframes circuit-blink {
    0%, 100% { opacity: 1;   box-shadow: 0 0 8px rgba(153, 102, 255, 0.8); }
    50%       { opacity: 0.3; box-shadow: none; }
}


/* ============================================================
   KEY FEATURES — HOLOGRAPHIC FLIP CARDS
   ============================================================ */

.features-section {
    padding: 90px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.flip-card {
    height: 320px;
    perspective: 1200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 40px 30px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-front {
    background: rgba(10, 14, 39, 0.97);
    border: 2px solid rgba(0, 217, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.08);
}

.flip-scan-line {
    position: absolute;
    top: -3px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d9ff, transparent);
    animation: flip-scan 3.5s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes flip-scan {
    0%   { top: -3px; opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.6; }
    100% { top: 103%; opacity: 0; }
}

.flip-card-front .feature-icon {
    font-size: 3.5em;
    color: #00d9ff;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.5));
    margin-bottom: 0;
}

.flip-card-front .feature-title {
    font-size: 1.4em;
    color: #00d9ff;
    margin-bottom: 0;
}

.flip-hint {
    font-size: 0.72em;
    color: rgba(0, 217, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var( --font-ghost);
    animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

.flip-card-back {
    background: rgba(30, 10, 60, 0.97);
    border: 2px solid rgba(153, 102, 255, 0.5);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 0 40px rgba(153, 102, 255, 0.2), inset 0 0 30px rgba(153, 102, 255, 0.05);
}

.flip-back-icon {
    font-size: 2em;
    color: #9966ff;
    text-shadow: 0 0 18px rgba(153, 102, 255, 0.8);
}

.flip-card-back .feature-title {
    font-size: 1.3em;
    color: #9966ff;
    margin-bottom: 0;
}

.flip-card-back .feature-description {
    font-size: 1em;
    color: var(--ghost-white);
    line-height: 1.75;
    opacity: 0.92;
}


/* ============================================================
   GALLERY
   ============================================================ */

.gallery-section {
    padding: 90px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #00d9ff;
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   TERMINAL SECTION — Core Stats
   ============================================================ */

.terminal-metrics-section {
    padding: 90px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.terminal-container {
    background: #000;
    border: 2px solid #00ff41;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow:
            0 0 40px rgba(0, 255, 65, 0.3),
            inset 0 0 20px rgba(0, 255, 65, 0.05);
    overflow: hidden;
    position: relative;
}

.terminal-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.015) 2px,
            rgba(0, 255, 65, 0.015) 4px
    );
    pointer-events: none;
    z-index: 10;
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: terminal-sweep 4s linear infinite;
    z-index: 11;
}

@keyframes terminal-sweep {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.terminal-header {
    background: #0a0a0a;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.terminal-dot.red    { background: #ff5f57; box-shadow: 0 0 6px #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e; }
.terminal-dot.green  { background: #28ca41; box-shadow: 0 0 6px #28ca41; }

.terminal-title
{
    color: #00ff41;
    font-family: var( --font-ghost);
    font-size: 14px;
    margin-left: 10px;
    text-shadow: 0 0 8px #00ff41;
    opacity: 0.8;
}

.terminal-output
{
    padding: 30px 30px 25px;
    min-height: 280px;
    font-family: var( --font-ghost);
    font-size: 15px;
    color: #00ff41;
    background: #000;
    line-height: 1.9;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.5);
    display: flex;
    flex-direction: column;
}

.terminal-line {
    display: block;
    white-space: pre;
}

.terminal-line.prompt::before {
    content: '> ';
    opacity: 0.4;
}

.terminal-line.success { color: #00ff41; }
.terminal-line.info    { color: #00d9ff; }
.terminal-line.warning { color: #ffa500; }
.terminal-line.dim     { opacity: 0.4; }

.blink {
    animation: blink 1s step-end infinite;
    color: #00ff41;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}


/* ============================================================
   HUD SECTION — Charts & Visuals
   ============================================================ */

.hud-metrics-section {
    padding: 90px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.hud-container {
    background: rgba(0, 5, 20, 0.97);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 12px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow:
            0 0 60px rgba(0, 217, 255, 0.12),
            inset 0 0 60px rgba(0, 217, 255, 0.03);
}

.hud-container::before,
.hud-container::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #00d9ff;
    border-style: solid;
    opacity: 0.5;
}

.hud-container::before {
    top: 10px; left: 10px;
    border-width: 2px 0 0 2px;
}

.hud-container::after {
    bottom: 10px; right: 10px;
    border-width: 0 2px 2px 0;
}

.hud-scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d9ff, #9966ff, transparent);
    animation: hud-scan 5s linear infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes hud-scan {
    0%   { transform: translateY(0px);   opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(700px); opacity: 0; }
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
}

.hud-corner-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(0, 217, 255, 0.35);
    letter-spacing: 1px;
    animation: flicker 6s infinite;
}

@keyframes flicker {
    0%, 92%, 100% { opacity: 0.35; }
    93%, 97%      { opacity: 0.1; }
    95%           { opacity: 0.5; }
}

.hud-status-badge {
    padding: 9px 26px;
    border-radius: 20px;
    font-size: 0.92em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var( --font-ghost);
}

.hud-status-badge.loading {
    background: rgba(153, 102, 255, 0.15);
    color: #9966ff;
    border: 1px solid rgba(153, 102, 255, 0.4);
    animation: pulse 1.5s ease-in-out infinite;
}

.hud-status-badge.status-live {
    background: rgba(0, 255, 127, 0.12);
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.2);
}

.hud-status-badge.status-paused {
    background: rgba(255, 165, 0, 0.12);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: none; }
    50%       { opacity: 0.4; box-shadow: 0 0 10px rgba(153, 102, 255, 0.4); }
}

.hud-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 45px;
}

.hud-meter {
    display: flex;
    flex-direction: column;
}

.hud-label {
    font-size: 12px;
    color: rgba(0, 217, 255, 0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: var( --font-ghost);
}

.hud-label i {
    margin-right: 6px;
    color: #9966ff;
}

.hud-value {
    font-size: 2.8em;
    font-weight: 800;
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    margin-bottom: 14px;
    font-family: var( --font-ghost);
    letter-spacing: 1px;
}

.region-value,
.instance-value {
    font-size: 1.8em;
}

.hud-bar-container {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.12);
}

.hud-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpu-color {
    background: linear-gradient(90deg, #00d9ff, #00ff7f);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

.memory-color {
    background: linear-gradient(90deg, #9966ff, #00d9ff);
    box-shadow: 0 0 8px rgba(153, 102, 255, 0.6);
}

.requests-color {
    background: linear-gradient(90deg, #ff6b6b, #9966ff);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.hud-chart-wrapper {
    margin-top: 10px;
}

.chart-label {
    display: block;
    font-size: 12px;
    color: rgba(0, 217, 255, 0.4);
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 15px;
    font-family: var( --font-ghost);
}

.hud-chart-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    height: 160px;
    position: relative;
}

#traffic-chart {
    width: 100% !important;
    height: 100% !important;
}

.hud-bottom-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
    text-align: center;
}


/* ============================================================
   PRIVATE NOTICE — HOLOGRAPHIC ID CARD
   ============================================================ */

.private-notice-section {
    padding: 90px 40px;
    background: rgba(10, 14, 39, 0.4);
}

.id-card-wrapper {
    max-width: 780px;
    margin: 0 auto;
    perspective: 1200px;
}

.id-card {
    background: rgba(10, 14, 39, 0.97);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 18px;
    padding: 50px 55px;
    position: relative;
    overflow: hidden;
    box-shadow:
            0 0 70px rgba(0, 217, 255, 0.15),
            0 0 140px rgba(153, 102, 255, 0.08),
            inset 0 0 50px rgba(0, 217, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.id-card:hover {
    box-shadow:
            0 0 100px rgba(0, 217, 255, 0.25),
            0 0 200px rgba(153, 102, 255, 0.12),
            inset 0 0 50px rgba(0, 217, 255, 0.05);
}

.id-card::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px;
    width: 28px; height: 28px;
    border-top: 2px solid #00d9ff;
    border-left: 2px solid #00d9ff;
    opacity: 0.6;
}

.id-card::after {
    content: '';
    position: absolute;
    bottom: 12px; right: 12px;
    width: 28px; height: 28px;
    border-bottom: 2px solid #00d9ff;
    border-right: 2px solid #00d9ff;
    opacity: 0.6;
}

.id-scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d9ff, #9966ff, transparent);
    animation: id-scan 4.5s linear infinite;
    z-index: 5;
}

@keyframes id-scan {
    0%   { transform: translateY(0px);   opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(600px); opacity: 0; }
}

.id-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.id-classification {
    font-family: var( --font-ghost);
    font-size: 11px;
    color: #ffa500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: flicker 7s infinite;
}

.id-clearance {
    font-family: var( --font-ghost);
    font-size: 11px;
    color: rgba(255, 60, 60, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 60, 60, 0.35);
    padding: 4px 10px;
    border-radius: 3px;
}

.id-card-body {
    display: flex;
    gap: 45px;
    align-items: center;
    margin-bottom: 35px;
}

.id-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
}

.id-avatar i {
    font-size: 3em;
    color: #9966ff;
    text-shadow: 0 0 25px rgba(153, 102, 255, 0.9);
    z-index: 2;
}

.id-avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.35);
    animation: ring-spin 7s linear infinite;
}

.id-avatar-ring.ring-2 {
    inset: -20px;
    border-color: rgba(153, 102, 255, 0.2);
    animation: ring-spin 12s linear infinite reverse;
    border-style: dashed;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.id-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.id-field {
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
    padding-bottom: 10px;
}

.id-label {
    font-family: var( --font-ghost);
    font-size: 11px;
    color: rgba(0, 217, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    min-width: 70px;
}

.id-value {
    font-size: 1.1em;
    color: var(--ghost-white);
    font-weight: 600;
}

.id-status {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.id-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
    gap: 20px;
    flex-wrap: wrap;
}

.id-barcode {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.barcode-lines {
    height: 40px;
    width: 140px;
    background: repeating-linear-gradient(
            90deg,
            rgba(0, 217, 255, 0.6) 0px,
            rgba(0, 217, 255, 0.6) 2px,
            transparent 2px,
            transparent 4px,
            rgba(0, 217, 255, 0.3) 4px,
            rgba(0, 217, 255, 0.3) 5px,
            transparent 5px,
            transparent 8px
    );
}

.barcode-text {
    font-family: var( --font-body);
    font-size: 10px;
    color: rgba(0, 217, 255, 0.4);
    letter-spacing: 1px;
}

.id-cta { flex-shrink: 0; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .section-title  { font-size: 2.6em; }
    .circuit-grid   { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .hud-value      { font-size: 2.2em; }
}

@media (max-width: 900px) {
    .hud-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .tech-section,
    .features-section,
    .gallery-section,
    .private-notice-section,
    .terminal-metrics-section,
    .hud-metrics-section { padding: 60px 20px; }

    .section-title   { font-size: 2em; margin-bottom: 40px; }
    .flip-card       { height: 280px; }
    .features-grid   { grid-template-columns: 1fr; }
    .gallery-grid    { grid-template-columns: 1fr; }
    .circuit-grid    { grid-template-columns: repeat(2, 1fr); }

    .flip-card-back .feature-description { font-size: 0.9em; }

    .hud-top-bar     { flex-direction: column; gap: 12px; text-align: center; }
    .hud-corner-text { display: none; }
    .hud-value       { font-size: 1.8em; }

    .id-card         { padding: 30px 25px; }
    .id-card-body    { flex-direction: column; align-items: center; text-align: center; }
    .id-field        { justify-content: center; }
    .id-card-header  { flex-direction: column; gap: 10px; text-align: center; }
    .id-card-footer  { flex-direction: column; align-items: center; }

    .terminal-output {
        min-height: 220px;
        font-size: 13px;
        padding: 20px 18px;
    }
}

@media (max-width: 600px) {
    .hud-metrics-grid { grid-template-columns: 1fr; }
    .terminal-container { border-radius: 6px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.6em; letter-spacing: 1px; }
    .circuit-grid  { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .flip-card     { height: 260px; }
}
