/* =================================================================
   ABOUT SECTION (RESPONSIVE & HOLOGRAPHIC)
   =================================================================
*/
#about {
    padding: 60px 0;
}

.about-layout {
    display: grid;
    /* Desktop: Split 55% Text, 45% Stats */
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 50px;
    align-items: start;
}

/* --- LEFT: THE TERMINAL PANEL --- */
.about-text-panel {
    background: #1e1e24; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: 0.3s;
    min-height: 320px; /* Prevents jumping layout */
}

.about-text-panel:hover {
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-5px);
}

.panel-header {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-dot { width: 10px; height: 10px; border-radius: 50%; }
.panel-dot.red { background: #ff5f56; }
.panel-dot.yellow { background: #ffbd2e; }
.panel-dot.green { background: #27c93f; }
.panel-title { margin-left: 10px; font-family: monospace; color: #aaa; font-size: 0.8rem; }

.panel-body {
    padding: 25px;
}

.panel-body p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.code-line { color: var(--primary); font-weight: 700; margin-right: 8px; }

/* Typing Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--accent);
    margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }


/* --- RIGHT: THE STATS GRID --- */
.about-grid-wrapper {
    display: grid;
    /* Force 2 columns even on smaller screens */
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    width: 100%;
}

.stat-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Ensure minimum height for consistency */
    min-height: 140px; 
}

.stat-module:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.module-corner {
    position: absolute; top: 0; right: 0; width: 0; height: 0;
    border-style: solid; border-width: 0 40px 40px 0;
    border-color: transparent rgba(99, 102, 241, 0.1) transparent transparent;
    transition: 0.3s;
}
.stat-module:hover .module-corner { border-color: transparent var(--accent) transparent transparent; }

.stat-icon { font-size: 1.5rem; color: #666; margin-bottom: 10px; transition: 0.3s; }
.stat-module:hover .stat-icon { color: #fff; transform: scale(1.1); }

.gradient-text {
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem; font-weight: 700; margin: 0; line-height: 1;
}

.stat-title { font-size: 1.2rem; color: #fff; margin: 0; font-weight: 600; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

/* --- RESPONSIVE BREAKPOINT (Mobile/Tablet) --- */
@media (max-width: 968px) {
    .about-layout {
        /* Stack vertically */
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .about-text-panel {
        /* Ensure text panel doesn't get too tall on mobile */
        min-height: auto;
    }
    
    .about-grid-wrapper {
        /* Keep 2x2 grid but make gaps smaller */
        gap: 15px; 
    }
    
    .stat-module {
        padding: 15px;
        min-height: 120px;
    }
}