:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --gray: #777777;
    --accent: #ffd54f;
}

/* Global */
body {
    margin: 0;
    font-family: "Noto Sans Mono", monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
}

.nav-logo {
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-logo .highlight {
    background-color: var(--accent);
    padding: 0 0.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

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

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

/* Two halves */
.intro-text,
.intro-photo {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 6%;
    box-sizing: border-box;
}

/* Left text half */
.intro-text h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

.highlight {
    background-color: var(--accent);
    padding: 0 0.5rem;
}

.skills {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 600;
}

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

.resume-btn {
    display: inline-block;
    margin-top: 2rem;
    background: var(--accent);
    color: #000;
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.resume-btn:hover {
    background: #ffeb7a;
}

/* Right photo half */
.intro-photo {
    padding: 0;
    justify-content: center;
    align-items: center;
    background: transparent;
    /* ✅ Removed black background */
}

.intro-photo img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    /* ✅ Maintain full image visibility */
    object-position: center;
}

/* Sections */
section {
    padding: 4rem 6%;
    border-top: 1px solid #e0e0e0;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 6px solid var(--accent);
    padding-left: 0.6rem;
}

.cooking,
.publications {
    max-width: 800px;
}

.portfolio-section {
    text-align: center;
}

.portfolio-btn {
    display: inline-block;
    margin-top: 3rem;
    background: #000;
    color: var(--accent);
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.portfolio-btn:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    border-top: 1px solid #e0e0e0;
}

/* Responsive (mobile & tablets) */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
    }

    .intro-photo,
    .intro-text {
        width: 100%;
        height: auto;
        padding: 2rem 1.5rem;
    }

    .intro-photo {
        order: 1;
    }

    .intro-text {
        order: 2;
        text-align: center;
    }

    .intro-photo img {
        width: 100%;
        max-height: 60vh;
        object-fit: contain;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}