/* --- CSS specific to the Architecture Page --- */

.pt-120 {
    padding-top: 60px;
}

.pb-120 {
    padding-bottom: 60px;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-dim {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.85rem;
}

.relative {
    position: relative;
}

/* Terminal Window / Graphics Playground */
.graph-section {
    padding: var(--spacing-xl) 0;
}

.terminal-window {
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(10, 12, 18, 0.7);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bg-red {
    background: #FF5F56;
}

.bg-yellow {
    background: #FFBD2E;
}

.bg-green {
    background: #27C93F;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
}

.terminal-body {
    height: 400px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .terminal-body {
        height: 500px;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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;
    z-index: 1;
}

.graph-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.node-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-blue);
}

.p1 {
    left: 25%;
    top: 40%;
}

.p2 {
    left: 75%;
    top: 70%;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dash-flow {
    animation: dashAnim 20s linear infinite;
}

@keyframes dashAnim {
    to {
        stroke-dashoffset: -100;
    }
}

.center-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.glow-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 15px rgba(43, 92, 255, 0.5);
}

.pulse-ring {
    animation: simplePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes simplePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.ring-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.terminal-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.01);
}

.sys-info {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* Modules Section Overrides */
.module-card {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(23, 28, 40, 0.4) 0%, rgba(10, 12, 18, 0.6) 100%);
}

.module-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.abstract-box {
    margin-top: 1rem;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.mono-dim {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

/* Stats Footer */
.stats-grid {
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--text-primary);
}