
/* CORE STYLES */
:root {
    --bg: #0d0d0d;        /* Deep matte background */
    --surface: #141414;   /* Solid tile color */
    --border: #2a2a2a;    /* Muted architectural lines */
    --accent: #ffffff;    /* Pure white for primary text */
    /* --muted: #666666;     For labels and subtext */
    /* --subtle: #a1a1aa;    For secondary text */
    --muted: #aeb5bd;     /* For labels and subtext */
    --subtle: #adb0b3;    /* For secondary text */
}
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--accent);
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Navigation */
.nav-bar {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.nav-bar a {
    text-decoration: none;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-bar a:hover, .nav-bar a.active {
    color: var(--accent);
}

/* Swiss Grid System */
.swiss-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1100px;
    background-color: var(--border); /* Borders are the gap color */
    gap: 1px; 
    border: 1px solid var(--border);
    margin-top: 2rem;
}
.tile {
    background-color: var(--surface);
    padding: 3rem 2rem;
}
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-1 { grid-column: span 1; }


/* Typography */
h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.tagline {
    font-size: 1.25rem;
    /* color: var(--muted); */
    color: var(--subtle);
    margin-top: 0.5rem;
}
.tagline.regular {
    font-size: 1.00rem;
}
.tagline.small {
    font-size: 0.90rem;
}
.label {
    display: block;
    font-family: monospace;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.label.small-bottom {
    margin-bottom: 0.4rem;
}
.label.no-bottom {
    margin-bottom: 0.1rem;
    text-transform: none;
}
.big-stat {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}
.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.clean-list li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}


/* Project Card Specifics */
.project-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
}
.project-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
}
.sub-text {
    color: var(--muted);
    font-family: monospace;
    font-size: 0.85rem;
}
/* The "Integrated" Preview Overlay */
#preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: grayscale(100%) brightness(0.2); /* Keeps it high-end and subtle */
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Reveal State */
.project-card:hover {
    background-color: #1a1a1a;
}


/* Resume Specifics */
.job-entry {
    margin-bottom: 4rem;
}
.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.job-meta h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.date {
    font-family: monospace;
    color: var(--muted);
    font-size: 0.8rem;
}
.org {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.job-list, .skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-list li {
    margin-bottom: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}
.job-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}
.skill-list li {
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}


/* Portfolio Specific Layout */
.portfolio-page {
    overflow-x: hidden;
}

#hover-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind the content */
    opacity: 0;
    transition: opacity 0.5s ease, background-image 0.5s ease;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(0.5); /* Keep text readable */
}

.portfolio-grid {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    max-width: 800px;
    padding-bottom: 10rem;
}

.project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* Intersection Observer State */
.project-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.project-item a {
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: block;
    margin: 0.5rem 0;
}

.year {
    font-family: monospace;
    opacity: 0.4;
}



/* Print Overrides */
@media print {
    .no-print { display: none !important; }
    
    body {
        background: white !important;
        color: black !important;
    }

    .swiss-grid {
        background-color: #eee !important;
        border: 1px solid #eee !important;
        display: block !important; /* Stack for print */
    }

    .tile {
        background: white !important;
        padding: 2rem 0 !important;
        border-bottom: 1px solid #eee !important;
    }

    h1, h3, .org { color: black !important; }
    .muted, .date, .label, .job-list li { color: #333 !important; }
}
/* Print Button */
.print-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 1rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    font-size: 0.7rem;
}


/* Responsive */
@media (max-width: 800px) {
    .swiss-grid { grid-template-columns: 1fr; }
    .col-3, .col-2, .col-1 { grid-column: span 1; }
}


/* FOOTER */
.copyright {
    font-size: 12px;
}


