/* Core Styling rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Courier New", Courier, monospace, system-ui; /* Unique industrial aesthetic choice */
    border-radius: 0 !important; /* Zero rounded corners across the entire site */
}

body {
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dark ambient layout mesh layer */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Glassomorphism */
.glass-panel {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px) saturate(120%) contrast(110%);
    -webkit-backdrop-filter: blur(20px) saturate(120%) contrast(110%);
    border: 2px solid rgba(255, 255, 255, 0.75); /* Stark framing outline border */
    color: #ffffff;
}

/* Navigation Header */
header {
    position: fixed;
    top: 20px;
    z-index: 100;
    width: max-content; /* Shrunk to match contents size */
    padding: 12px 24px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid transparent;
}

nav a:hover, nav a.active-link {
    color: #00ffcc; /* Sharp neon task accent color link marker */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Workspace containers */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.page-section {
    display: none;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
}

.page-section.active-view {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    padding: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Welcome Page */
.hero-title-container {
    height: calc(90vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    padding: 30px 60px;
    font-size: 3.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.biography-container {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    padding: 40px;
    align-items: center;
}

.bio-image-wrapper {
    flex: 0 0 320px;
    height: 420px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.bio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.bio-text-content {
    flex: 1;
    text-align: left;
}

.bio-text-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio-text-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

/* Portfolio */
.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.category-btn {
    background: rgba(15, 15, 15, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px 16px;
    font-family: "Courier New", Courier, monospace, system-ui;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0 !important; /* Enforces strict sharp framing aesthetics */
}

.category-btn:hover, .category-btn.active-category {
    color: #00ffcc;
    border-color: #00ffcc;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: start; 
}
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    padding: 20px;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
/* Hide all items by default when the site first initializes */
.gallery-grid .gallery-item {
    display: none;
}
.gallery-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ffcc;
}

.gallery-item img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item span {
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: center;
}

.text-fallback-container {
    padding: 60px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
/* Blog Architecture */
.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.blog-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ffcc;
    margin-bottom: 10px;
    display: inline-block;
}

.blog-post h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blog-post p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* System Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    position: relative;
    border: 2px solid #fff;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.modal-close:hover { color: #00ffcc; }

/* Structural picture target */
.modal-display-area {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-text-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-text-box h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-text-box p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}
.other-resource-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
}

.resource-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.other-link {
    text-decoration: none;
    color: #00ffcc;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-right: 20px;
}

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

.resource-description {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #fff;
}
/* Dynamic Sizing Modal Card */
.modal-card {
    width: fit-content;
    max-width: 90vw;
    max-height: 90vh;
    padding: 30px;
    position: relative;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Carousel Container & Image Sizing */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.modal-display-area {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 1.5rem;
    font-family: "Courier New", Courier, monospace, system-ui;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border-radius: 0 !important;
}

.carousel-btn:hover {
    color: #00ffcc;
    border-color: #00ffcc;
    background: rgba(0, 0, 0, 0.9);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Image Counter Badge */
.carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #00ffcc;
}

.modal-text-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}