/* Professional resume — light, solid surfaces */
:root {
    --primary: #1a365d;
    --primary-soft: #2c5282;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-page: #f8fafc;
    --bg-subtle: #f1f5f9;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-page);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Spotify-style header: dark bar, name left, contact right */
.header {
    background: #000000;
    color: #fff;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
}

.header-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.02em;
}

.header-year {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.15s;
}

.header-contact a:hover {
    color: #fff;
}

.header-contact span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.5rem;
    vertical-align: middle;
}

.menu-toggle {
    display: none;
}

@media (max-width: 640px) {
    .header {
        padding: 0 1.5rem;
        height: 64px;
        position: relative;
    }

    .header-inner {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .header-brand {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .header-title,
    .header-contact,
    .header-year {
        display: none;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 101;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Overlay Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-overlay.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.mobile-nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.mobile-contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-contact-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.ig-cell {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ig-cell:hover {
    transform: scale(0.98);
}



.nav {
    background: var(--bg);
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.15s;
}

.nav a:hover {
    color: var(--primary-soft);
}

.section {
    background: var(--bg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.section h2 {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.04em;
    color: var(--primary);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--primary-soft);
}

.section h3 {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.04em;
    color: var(--primary);
    margin: 1rem 0 0.35rem;
}

.section p {
    margin: 0.35rem 0;
    font-size: 0.9375rem;
}

.section ul {
    margin: 0.35rem 0;
    padding-left: 1.25rem;
}

.section li {
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
}

.skill-item {
    background: var(--bg-subtle);
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.philosophy-box {
    background: var(--bg-subtle);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-soft);
}

.philosophy-box p,
.philosophy-box li {
    font-size: 0.9375rem;
}

.certification-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}

.certification-item img {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
}

.outcome-item {
    margin-bottom: 1rem;
}

.outcome-item h4 {
    color: var(--primary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.testimonial {
    background: var(--bg-subtle);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-style: italic;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.experience-item {
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h3 {
    margin-top: 0;
}

.section a {
    color: var(--primary);
    text-decoration: none;
}

.section a:hover {
    text-decoration: underline;
}

.nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-header h3 {
    font-size: 1.125rem;
    margin-top: 0;
}

.gallery-section {
    padding-bottom: 1.5rem;
}

.gallery-intro {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Instagram-style grid: 3 columns, minimal gap, square cells */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 0;
}

.ig-cell {
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
}

.ig-cell .gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 0;
    font-size: 0.875rem;
}

.ig-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    aspect-ratio: 1;
    background: var(--bg-subtle);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gallery-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.gallery-note code {
    background: var(--bg-subtle);
    padding: 0.1rem 0.25rem;
}



/* Print: clean paper resume */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }

    .container {
        padding: 0 1rem;
    }

    .section,
    .philosophy-box,
    .skill-item,
    .experience-item,
    .testimonial,
    .certification-item {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .section h2 {
        color: #1a365d;
        border-color: #2b6cb0;
    }

    .section h3 {
        color: #1a365d;
    }

    a {
        color: #1a365d;
    }
}
