/* ==========================================================
   PROJECTS PAGE — SELF-CONTAINED STYLESHEET
   Module: /projects/
   Delete this entire folder to remove all projects page resources.
   ========================================================== */

/* ── 1. BASE ── */
body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: clip;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── 2. GLASS NAV ── */
.glass-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── 3. GLASS CARD ── */
.glass-card {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease-out;
}
.glass-card:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ── 4. PAGE TRANSITION ── */
#page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
#page-transition.fade-out { opacity: 0; }
#page-transition.fade-in  { opacity: 1; pointer-events: all; }
#page-transition .brand-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
}
#page-transition .brand-text.show { opacity: 1; transform: translateY(0); }

/* ── 5. FLEX BODY (footer-at-bottom) ── */
.flex-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── 6. TABS — Projects Page ── */
.projects-tabs .tab-btn {
    position: relative;
    padding: 10px 20px;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    color: #666;
    transition: color 0.3s ease;
}
.projects-tabs .tab-btn.active { color: #fff; font-weight: 500; }
.projects-tabs .tab-btn::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 50%;
    background-color: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.projects-tabs .tab-btn.active::after { width: 100%; }
.projects-tabs .tab-content { display: none; }
.projects-tabs .tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 1;
}

@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}
