/* Dark, Sleek, Professional Base */
body {
    background-color: #0f0f0f;
    color: #cccccc;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- HEADER STYLES --- */
header {
    background-color: #0f0f0f;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-identity h1 {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1;
}

.site-identity h2 {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0 0 0;
    letter-spacing: 1px;
    font-weight: 400;
}

nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 30px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fff;
}

nav a.active {
    color: #3498db;
}

@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    nav {
        margin-top: 20px;
    }
    nav a {
        margin: 0 10px;
    }
}

/* --- UNIFORM GALLERY GRID --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.gallery-grid {
    display: grid;
    /* This creates identical columns */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 4px;
}

.art-piece {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.art-piece img {
    width: 100%;
    /* FORCE UNIFORM HEIGHT */
    height: 250px; 
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.art-piece:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
    z-index: 2;
}

/* --- RESUME / ABOUT PAGE STYLES --- */
.resume-section {
    max-width: 800px; /* Constrain width for readability */
    padding-top: 60px;
    padding-bottom: 80px;
}

.resume-intro h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
}

.resume-intro p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.resume-intro strong {
    color: #fff;
}

.divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 40px 0;
}

/* Job Blocks */
.resume-block h4 {
    color: #3498db; /* The blue accent */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.job {
    margin-bottom: 40px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.job h5 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}

.date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 700;
}

.role {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 400;
    margin-bottom: 5px;
}

.location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.job-desc {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 650px;
}

/* Skills Grid */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    color: #bbb;
    margin-bottom: 10px;
    border-left: 2px solid #333;
    padding-left: 15px;
}

.education h5 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.education p {
    color: #888;
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
    .job-header {
        flex-direction: column;
    }
}

/* --- LIGHTBOX (Updated for Scrolling Groups) --- */
#lightbox {
    display: none; /* This MUST be the only display property here */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);

    /* We removed 'display: flex' from here because the JS adds it when you click! */

    justify-content: center;
    align-items: center;
}

/* This is the new scrollable container */
#lightbox-content {
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allows vertical scrolling */
    text-align: center;
    padding: 40px 0; /* Space at top/bottom */
    box-sizing: border-box;

    /* Hide scrollbar but keep functionality (Optional cleaner look) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
#lightbox-content::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* The images inside the lightbox */
.lightbox-img {
    max-width: 85%; /* Keep them from touching edges */
    height: auto;
    margin-bottom: 20px; /* Space between stacked images */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: inline-block; /* Helps centering */
}

/* Navigation Arrows - Fixed to the screen so they don't scroll away */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    z-index: 1002; /* Above the images */
    opacity: 0.4;
}

.nav-btn:hover {
    color: #3498db;
    opacity: 1;
}

#prev-btn { left: 20px; }
#next-btn { right: 20px; }

@media (max-width: 600px) {
    .nav-btn { font-size: 2rem; padding: 10px; }
    .lightbox-img { max-width: 95%; }
}
/* --- CONTACT PAGE --- */
.contact-section {
    min-height: 60vh; /* Keeps it centered vertically on screen */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.contact-box {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.contact-box h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 300;
}

.contact-sub {
    color: #888;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 20px;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #252525;
    border-color: #555;
    transform: translateY(-2px);
}

.contact-item .label {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item .value {
    color: #fff;
    font-weight: 700;
}

.contact-item.social .value {
    color: #3498db; /* Accent color for external links */
}

.contact-item .arrow {
    color: #666;
    font-size: 1.2rem;
}