html, body {
    height: 100%;
    margin: 0;
    background-color: black;
}

a {
    color: black;
    text-decoration: underline;
}

h1 {
    font-size: xxx-large;
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

#c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;   /* full viewport width */
    height: 100vh;  /* full viewport height */
    display: block;
    z-index: 0;
}


#info {
    position: absolute;
    top: 10px;
    left: 30%;
    width: 40%;
    right: 30%;
    text-align: center;
    z-index: 100;
    display: block;
    color: #ffffff;
}

#footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 100;
    display: block;
    color: #ffffff;
    font-size: x-large;
    opacity: 1.0;
    animation: fadeOutFooter 15s ease-in-out 3s forwards;
}

@keyframes fadeOutFooter {
    from {
        opacity: 1.0;
    }
    to {
        opacity: 0.0;
    }
}

/* Main glass panel positioning (you can tweak these) */
#main {
    z-index: 100;
    position: absolute; /* or fixed */
    top: max(10%, 100px);
    left: 10%;
    width: 80%;
    height: 80%;
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

/* Make Bulma columns fill the panel */
#main .columns {
    height: 100%;
}

/* RIGHT side can scroll if content grows */
#main .hero-panel {
    overflow-y: auto;
}

/* Bigger title */
.main-title {
    font-size: 2.6rem; /* bump as needed */
    line-height: 1.1;
}

/* LEFT NAV: its own glass panel */
#main .sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.25rem;
    margin-right: 1.5rem;
    border-radius: 12px;
    max-width: 260px; /* controls width; adjust as you like */
}

/* Typewriter font for nav */
#main .sidebar,
#main .sidebar .menu,
#main .sidebar .menu-list a {
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

/* NAV label styling */
#main .sidebar .menu-label {
    color: #c3c7ff;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Remove Bulma's white backgrounds; make items big + spaced out */
#main .sidebar .menu-list {
    margin-top: 1rem;
}

#main .sidebar .menu-list li + li {
    margin-top: 1.1rem; /* vertical spacing between links */
}

#main .sidebar .menu-list a {
    background: none !important;
    border-radius: 0;
    padding: 1.2rem 0.5rem;
    font-size: 1.5rem;
    color: #f5f5f5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hover / active state: subtle left border + brighter text */
#main .sidebar .menu-list a:hover {
    color: #ffffff;
}

#main .sidebar .menu-list a.is-active {
    color: #ffffff;
    font-weight: 700;
    border-left: 3px solid rgba(255, 255, 255, 0.9);
    padding-left: 1rem;
}

/* Sections that participate in JS-controlled switching */
.content-section {
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}

/* Visible state */
.content-section.is-visible {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Make "About" visible by default if JS hasn't run yet */
#abo_ut.content-section {
    display: block;
    opacity: 1;
}

/* ==== Resume section ==== */

.resume-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
    color: #222;
    font-size: 0.95rem;
}

.resume-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.resume-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.resume-contact {
    font-size: 0.95rem;
    color: #444;
}

.resume-contact a {
    color: inherit;
    text-decoration: none;
}

.resume-contact a:hover {
    text-decoration: underline;
}

.resume-block {
    margin-top: 1.25rem;
}

.resume-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #444;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2rem;
}

/* Contact Section */
#contact ul li {
    line-height: 3em;
}

/* Skills as label/value rows like in the PDF */
.resume-skills {
    margin: 0;
}

.resume-skill-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.resume-skill-row dt {
    width: 130px;
    font-weight: 600;
    color: #333;
}

.resume-skill-row dd {
    margin: 0;
    flex: 1;
}

/* Jobs */
.resume-job {
    margin-top: 0.9rem;
}

.resume-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.resume-job-company {
    font-weight: 700;
}

.resume-job-title {
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
}

.resume-job-dates {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
}

.resume-job ul {
    margin: 0.4rem 0 0 1rem;
    padding-left: 1rem;
}

.resume-job li {
    margin-bottom: 0.25rem;
}

/* Education + Certifications side-by-side like a second half page */
.resume-two-column {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.resume-edu {
    margin-bottom: 0.5rem;
}

.resume-edu-school {
    font-weight: 600;
}

.resume-edu-degree {
    font-size: 0.95rem;
    color: #444;
}

.resume-cert-list {
    margin: 0.4rem 0 0 1rem;
    padding-left: 1rem;
}

.resume-cert-list li {
    margin-bottom: 0.25rem;
}

/* Make resume card readable on mobile */
@media (max-width: 768px) {
    .resume-card {
        padding: 1.25rem 1.5rem;
        margin: 0.5rem auto 1rem;
    }

    .resume-two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resume-job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resume-job-dates {
        white-space: normal;
    }

    .resume-name {
        font-size: 1.5rem;
    }
}


/* === Mobile tweaks === */
@media (max-width: 768px) {
    /* Make the glass panel fill most of the screen and scroll internally */
    #main {
        position: fixed; /* pinned over the canvas */
        top: 8rem;
        left: 5%;
        right: 5%;
        bottom: 2rem; /* leave a little space above footer */
        width: auto;
        height: auto;
        padding: 1rem;
        border-radius: 12px;
        backdrop-filter: blur(8px);
        overflow-y: auto; /* <-- key: scroll inside panel */
        box-sizing: border-box;
    }

    /* Stack nav over content */
    #main .columns {
        flex-direction: column;
        height: auto;
    }

    /* Sidebar: full-width bar at top */
    #main .sidebar {
        margin-right: 0;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0.75rem;
        max-width: 100%;
    }

    /* Nav links: slightly smaller, tighter */
    #main .sidebar .menu-list a {
        font-size: 1.1rem;
        padding: 0.5rem 0.25rem;
    }

    /* Right side: let it grow; scrolling handled by #main now */
    #main .hero-panel {
        overflow-y: visible;
    }

    /* Hero title / subtitles slightly smaller */
    .main-title {
        font-size: 2rem;
    }

    /* Top overlay title over the canvas */
    #info {
        font-size: 2rem;
    }

    /* Footer hint smaller on phones */
    #footer {
        font-size: 1rem;
    }
}