/* About Page Styling */

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #a2b0d8);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Terminal Showcase */
.about-terminal-container {
    display: flex;
    justify-content: center;
    margin-bottom: 8rem;
}

.about-terminal {
    background: #0d1117;
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.85rem;
    opacity: 0.7;
}

.terminal-body {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e6edf3;
    min-height: 100px;
}

.prompt-arrow {
    color: #27c93f;
    font-weight: bold;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #58a6ff;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Navigation Mini-Map Guide */
.about-minimap-container {
    max-width: 1000px;
    margin: 0 auto 8rem auto;
}

.minimap-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

/* Fake Sidebar */
.minimap-sidebar {
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mini-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mini-btn:hover, .mini-btn.active-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.mini-icon {
    font-size: 1.25rem;
}

/* Right Info Cards */
.minimap-info {
    flex: 1;
    position: relative;
    height: 250px;
}

.info-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    padding: 3rem;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.2);
}

.info-card.guide-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.info-card h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 800px) {
    .minimap-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .minimap-sidebar {
        width: 100%;
    }
    .minimap-info {
        height: 300px;
        width: 100%;
    }
}

/* Core Loop Accordion */
.about-loop-container {
    max-width: 1200px;
    margin: 0 auto;
}

.loop-accordion {
    display: flex;
    gap: 1.5rem;
    height: 400px;
}

.loop-panel {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--nav-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.loop-panel:hover {
    flex: 1.5;
}

.loop-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, var(--panel-color), transparent 70%);
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.loop-panel.panel-active {
    flex: 3;
    border-color: rgba(255,255,255,0.2);
}

.loop-panel.panel-active::before {
    opacity: 0.3;
}

.loop-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    transition: all 0.5s ease;
}

.loop-panel.panel-active .loop-number {
    color: var(--panel-color);
    opacity: 0.5;
    transform: scale(1.2) translate(-10px, 10px);
}

.loop-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    pointer-events: none;
}

.loop-panel.panel-active .loop-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.loop-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.loop-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 400px;
}

/* Mobile Loop Fix */
@media (max-width: 800px) {
    .loop-accordion {
        flex-direction: column;
        height: 600px;
    }
    .loop-number {
        font-size: 3rem;
        top: 1rem;
        right: 1.5rem;
    }
    .loop-panel.panel-active .loop-content {
        transform: translateY(10px);
    }
}
