:root {
    --bg-dark: #121212;
    --bg-panel: #1a1a1a;
    --text-main: #9e9e9e; /* Low contrast gray for accessibility and style */
    --text-highlight: #eeeeee;
    --accent: #a1887f; /* Muted brown/earth tone */
    --border: #2c2c2c;
    --nav-height: 70px;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3 {
    color: var(--text-highlight);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Navigation Bar (Desktop) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.2rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Hamburger Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--accent);
    transition: 0.3s;
}

/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: calc(-1 * var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-panel);
    z-index: 1050;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: -15px 0 40px rgba(0,0,0,0.6);
}

.sidebar.active { right: 0; }

.sidebar a {
    text-decoration: none;
    color: var(--text-highlight);
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1040;
    display: none;
}

.overlay.active { display: block; }

/* Hero */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), 
                url('site_header_background.png') center/cover no-repeat;
}

header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    font-weight: 100;
    text-transform: uppercase;
}

header p {
    font-size: 1.5rem;
    max-width: 600px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
    color: #fff;
}

/* Sections */
section {
    padding: 120px 10%;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--accent);
    margin: 2rem auto;
}

/* About Grid */
#about .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-img {
    width: 100%;
    filter: grayscale(100%) opacity(0.8);
    border: 1px solid var(--border);
}

.about-text p {
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Portfolio Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    opacity: 1;
    transform: scale(1.04);
}

/* List Rows */
.list-container { max-width: 900px; margin: 0 auto; }
.list-row {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.list-row:last-child { border: none; }
.list-row .label {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    min-width: 120px;
}
.list-row .description {
    font-weight: 300;
    flex: 1;
}

/* Lightbox Modal */
#modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 85vw;
    max-height: 80vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 1px solid #333;
}

.close-modal {
    position: fixed;
    top: 30px; right: 40px;
    color: #fff; font-size: 3rem;
    cursor: pointer; font-weight: 100;
}

.modal-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: white; font-size: 3rem;
    cursor: pointer; opacity: 0.3;
    transition: 0.3s;
}

.modal-nav:hover { opacity: 1; color: var(--accent); }
.prev { left: -80px; }
.next { right: -80px; }

footer {
    padding: 80px 10%;
    text-align: center;
    background: #0d0d0d;
    color: #444;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    #about .content-grid { grid-template-columns: 1fr; gap: 4rem; }
    .prev { left: 10px; }
    .next { right: 10px; }
    .modal-nav { font-size: 2rem; }
}
