﻿:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-cyan: #00f3ff;
    --accent-green: #39ff14;
    --glass-bg: rgba(20, 20, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

#pcb-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 600;
}

.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.filter-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 10px;
    padding-bottom: 5px;
    margin-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.filter-menu::-webkit-scrollbar {
    
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}
/* --- 3D Cabinet & Folder Base Styles --- */
.cabinet {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    perspective: 1500px;
    min-height: 400px;
    position: relative;
}

.folder {
    width: 340px;
    min-height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease, z-index 0.5s ease;
    cursor: pointer;
}



.folder-front {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #1a1d24 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10;
    transform: translateZ(5px);
    backface-visibility: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 16px 8px 8px;
    border: 1px solid var(--glass-border);
}



.folder-inside {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #1a1d24 !important;
    color: #ffffff !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(1px);
    transition: opacity 0.3s ease;
    padding: 40px 20px 20px 20px;
    overflow-y: auto;
    border-radius: 8px 16px 8px 8px;
    border: 1px solid var(--glass-border);
    text-align: left;
}



.folder-back {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 25, 30, 0.9);
    transform: translateZ(-2px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 8px 16px 8px 8px;
    border: 1px solid var(--glass-border);
}

/* --- Buttons Styling --- */
.folder-controls {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px;
    background: #1a1d24;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.github-btn-inside, .close-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.github-btn-inside {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(0, 243, 255, 0.3);
}

.github-btn-inside:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.close-btn {
    background: rgba(255, 85, 85, 0.1);
    color: #ff5555;
    border-color: rgba(255, 85, 85, 0.3);
}

.close-btn:hover {
    background: rgba(255, 85, 85, 0.2);
}

/* --- Standard Grid and Card Styles --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 243, 255, 0.1);
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
    align-self: flex-start;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}


/* --- Folder Active & Inactive Modal Styles --- */
.folder.active {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 90vw !important;
    height: 90vh !important;
    max-width: 1200px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    cursor: default;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.9), 0 20px 60px rgba(0,0,0,0.8) !important;
    transition: all 0.5s ease;
}

.folder.active .folder-front {
    transform: rotateY(-180deg) translateZ(5px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.folder.active .folder-inside {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    transform: translateZ(1px) !important;
}

.folder.inactive {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* --- Footer Styles Restoration --- */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- README Content Link Styles --- */
.content-body a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.2s ease;
}

.content-body a:hover {
    color: var(--text-main);
    background: rgba(0, 243, 255, 0.1);
    border-bottom-color: var(--accent-cyan);
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
