/*--------------------------------------------------------------
# Variables & Theme
--------------------------------------------------------------*/
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #d4a373; 
    --border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.light-theme {
    --bg: #f8f8f8;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666;
    --accent: #4a6fa5;
    --border: rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Reset & Layout
--------------------------------------------------------------*/
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6;
    transition: background-color 0.6s ease;
    overflow-x: hidden;
}

/* 120px margins to pull content in */
.container { max-width: 1440px; margin: 0 auto; padding: 0 120px; }
h1, h2, h3, h4 { font-family: var(--font-heading); text-transform: uppercase; line-height: 1.1; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navbar { padding: 40px 0; position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.navbar.scrolled { background: var(--bg); padding: 20px 0; border-bottom: 1px solid var(--border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1440px; margin: 0 auto; padding: 0 120px; }

.brand { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.brand span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 50px; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.nav-links a:hover { color: var(--accent); }

#theme-toggle { background: none; border: none; cursor: pointer; color: var(--text); display: flex; align-items: center; }
#theme-toggle svg { width: 22px; height: 22px; stroke: currentColor; }
.light-theme .moon, .dark-theme .sun { display: none; }

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-sub { color: var(--accent); text-transform: uppercase; letter-spacing: 6px; font-weight: 600; margin-bottom: 25px; font-size: 0.85rem; }
.hero-title { font-size: clamp(3.5rem, 8vw, 7rem); margin-bottom: 35px; }
.outline { -webkit-text-stroke: 1px var(--text); color: transparent; }
.hero-desc { max-width: 550px; font-size: 1.25rem; color: var(--text-muted); margin-bottom: 50px; font-weight: 300; }
.btn { padding: 20px 45px; border: 1px solid var(--text); text-transform: uppercase; font-weight: 700; letter-spacing: 3px; font-size: 0.9rem; display: inline-block; }
.btn:hover { background: var(--text); color: var(--bg); transform: translateY(-5px); }

/*--------------------------------------------------------------
# Portfolio Grid
--------------------------------------------------------------*/
.work { padding: 150px 0; border-top: 1px solid var(--border); }
.section-label { font-size: 0.8rem; letter-spacing: 8px; color: var(--text-muted); margin-bottom: 60px; display: block; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 100px 80px; }
.work-item:nth-child(even) { transform: translateY(80px); }

.work-img { aspect-ratio: 16/10; background: var(--surface); overflow: hidden; position: relative; border: 1px solid var(--border); }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition); }

.work-overlay { 
    position: absolute; inset: 0; background: rgba(10, 10, 10, 0.8); 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: var(--transition); cursor: pointer; z-index: 2;
}
.work-overlay span { border: 1px solid var(--accent); padding: 12px 25px; color: var(--accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; }

.work-item:hover .work-img img { transform: scale(1.08); }
.work-item:hover .work-overlay { opacity: 1; }
.work-info { margin-top: 25px; }
.work-info h3 { font-size: 1.6rem; margin-bottom: 8px; }
.work-info p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about { padding: 180px 0 100px; border-top: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; }
.lead { font-size: 2.2rem; margin-bottom: 35px; color: var(--text); }
.spec-list li { padding: 20px 0; border-bottom: 1px solid var(--border); font-weight: 600; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer { padding: 120px 0 60px; background: var(--surface); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.social-links { display: flex; gap: 35px; }
hr { border: none; border-top: 1px solid var(--border); margin-bottom: 50px; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--text-muted); }

/*--------------------------------------------------------------
# Lightbox / Popup
--------------------------------------------------------------*/
.lightbox {
    display: none; position: fixed; z-index: 2000; inset: 0;
    background: rgba(10, 10, 10, 0.95); align-items: center; justify-content: center;
    cursor: zoom-out; padding: 40px; opacity: 0; transition: opacity 0.4s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content {
    max-width: 90%; max-height: 85vh; border: 1px solid var(--border);
    box-shadow: 0 20px 80px rgba(0,0,0,0.5); transform: scale(0.9);
    transition: transform 0.4s var(--transition);
}
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 40px; right: 120px; font-size: 40px; color: var(--text); cursor: pointer; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    .container, .nav-container, .lightbox-close { padding: 0 60px; right: 60px; }
}
@media (max-width: 768px) {
    .container, .nav-container { padding: 0 30px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 60px; }
    .work-item:nth-child(even) { transform: translateY(0); }
    .nav-links { display: none; }
}