/* ========== SECTION COMMONS ========== */
.container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.section-padding {
    padding: 6.5rem 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 650px;
    margin-bottom: 3rem;
}

/* ========== TERMINAL ========== */
.terminal-box {
    background: rgba(8, 10, 14, 0.92);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.08);
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.terminal-box:hover {
    border-color: var(--border-bright);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.2);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #0d1117;
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #333333; }
.dot-yellow { background: #666666; }
.dot-green { background: #ffffff; }

.terminal-tabs {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.terminal-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.25s, background 0.25s;
}

.terminal-tab-btn.active {
    color: var(--color-primary);
    background: rgba(6, 182, 212, 0.12);
}

.terminal-body {
    padding: 2.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #d1d5db;
    min-height: 165px;
}

.terminal-body .cmd {
    color: var(--color-primary);
    font-weight: 600;
}

.terminal-body .comment {
    color: var(--text-dim);
}

.term-cursor {
    display: inline-block;
    color: var(--color-primary);
    margin-left: 2px;
    animation: termBlink 0.8s infinite;
}

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

/* ========== METRICS ========== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: rgba(8, 10, 14, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(16px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s;
}

.metric-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.15);
    background: rgba(20, 20, 20, 0.92);
}

.metric-card:hover::before {
    background: linear-gradient(90deg, #ffffff, #888888);
    box-shadow: 0 0 16px var(--color-primary);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.metric-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-primary);
}

/* ========== STACK ========== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.stack-group-card {
    background: rgba(8, 10, 14, 0.88);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.stack-group-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(6, 182, 212, 0.14);
}

.stack-group-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stack-group-title::before {
    content: '//';
    color: var(--color-primary);
    font-family: var(--font-mono);
}

/* ========== TIMELINE ========== */
.timeline-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-card {
    background: rgba(8, 10, 14, 0.88);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-card:hover {
    border-color: var(--border-bright);
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 22px rgba(6, 182, 212, 0.12);
}

.timeline-main h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.timeline-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.timeline-side {
    text-align: right;
}

.timeline-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

