/* --- Global Resets & Variables --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f172a; /* Deep Slate Gray / Darkroom Black */
    color: #e2e8f0; /* Muted Off-White */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; /* Technical Stack */
    line-height: 1.6;
    padding-top: 80px; /* Header Clearance */
}

/* --- Header Layout --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-item:hover, .nav-item:active {
    color: #38bdf8; /* Electric Cyan Accent */
}

/* --- Main Layout Elements --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bio-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.section-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bio-text {
    color: #94a3b8;
    max-width: 750px;
    font-size: 1rem;
}

/* --- Gallery Grid Layout --- */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #020617;
    position: relative;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-meta {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.project-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Tag Arrays --- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #0f172a;
    color: #38bdf8;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid #334155;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #38bdf8;
}

.project-link.disabled {
    color: #475569;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Footer Infrastructure --- */
.site-footer {
    border-top: 1px solid #1e293b;
    background-color: #020617;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-text {
    color: #475569;
    font-size: 0.8rem;
}

.footer-routing {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-link {
    color: #38bdf8;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* --- Responsive Adaptations --- */
@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}