/* font business */
    @font-face {
        font-family: NeutraTitling;
        src: url(../Fonts/NeutraDisplay-Titling.woff2) format('woff2');
    }

    @font-face {
        font-family: NeutraDisplay;
        src: url(../Fonts/NeutraDisplay-MediumAlt.woff2) format('woff2');
        font-weight: bold;
    }

    @font-face {
        font-family: NeutraDisplay;
        src: url(../Fonts/NeutraDisplay-BoldAlt.woff2) format('woff2');
        font-weight: bolder;
    }

    @font-face {
        font-family: NeutraDisplay;
        src: url(../Fonts/NeutraDisplay-LightAlt.woff2) format('woff2');
        font-weight: normal;
    }

    @font-face {
        font-family: NeutraDisplay;
        src: url(../Fonts/NeutraDisplay-ThinAlt.woff2) format('woff2');
        font-weight: lighter;
    }

    @font-face {
        font-family: NeutraDraft;
        src: url(../Fonts/NeutraDisplay-DraftAlt.otf) format('opentype');
    }

    @font-face {
        font-family: NeutraText;
        src: url(../Fonts/NeutraText-Demi.otf) format('opentype');
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: NeutraText;
        src: url(../Fonts/NeutraText-DemiItalic.otf) format('opentype');
        font-weight: normal;
        font-style: italic;
    }

    @font-face {
        font-family: NeutraText;
        src: url(../Fonts/NeutraText-Bold.otf) format('opentype');
        font-weight: bold;
        font-style: normal;
    }

    @font-face {
        font-family: NeutraText;
        src: url(../Fonts/NeutraText-BoldItalic.otf) format('opentype');
        font-weight: bold;
        font-style: italic;
    }

    @font-face {
        font-family: NeutraText;
        src: url(../Fonts/NeutraText-Light.otf) format('opentype');
        font-weight: lighter;
        font-style: normal;
    }

    @font-face {
        font-family: NeutraText;
        src: url(../Fonts/NeutraText-LightItalic.otf) format('opentype');
        font-weight: lighter;
        font-style: italic;
    }
/* font business */

html {
    font-family: NeutraText;
    font-size: 20px;
    background-color: #0f1117;
    color: #e8e6e1;
}

header {
    font-family: NeutraDisplay;
    font-weight: bolder;
    background-color: #0f1117;
    color: #e8e6e1;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;

    & .name {
        font-size: 1.5rem;
        padding: 1rem;
        color: #c9a84c;
        text-decoration: none;

        &:hover {
            opacity: 0.8;
        }
    }

    & ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;

        & li a {
            color: #e8e6e1;
            text-decoration: none;
            padding: 1rem;
            transition: color 0.2s ease;
        }

        & li a:hover {
            color: #c9a84c;
        }
    }
}

.section {
    width: 75%;
    justify-self: center;
    text-align: justify;
    padding: 1rem;
    scroll-margin-top: 3.5rem;

    & h1 {
        color: #c9a84c;
    }

    & .indent {
        margin-left: 12px;
    }
}

#about-me {
    background-color: #0f1117;
    scroll-margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
}

#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: calc(100vh - 3.5rem);
    max-width: 75%;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

#hero-left {
    flex: 1;
}

#hero-name {
    font-family: NeutraDisplay;
    font-weight: bolder;
    font-size: 4rem;
    color: #c9a84c;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

#hero-tagline {
    font-family: NeutraDisplay;
    font-weight: bold;
    font-size: 1.2rem;
    color: #e8e6e1;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 18px rgba(0, 0, 0, 1), 0 0 6px rgba(0, 0, 0, 0.8);
}

#about-me-bio {
    max-width: 75%;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    text-align: justify;
    position: relative;
    z-index: 1;

    & p {
        line-height: 1.8;
        margin: 0 0 1.1rem 0;

        &:last-child {
            margin-bottom: 0;
        }
    }

    & strong {
        color: #d4ba7a;
        font-weight: bold;
    }
}

#CV {
    background-color: #161b27;
    scroll-margin-top: 3.5rem;
}

#cv-title {
    font-family: NeutraDisplay;
    color: #c9a84c;
    text-align: center;
    margin: 0;
    padding: 2rem 0 1rem;
}

#cv-scroll-area {
    height: 400vh;
    position: relative;
}

#cv-sticky {
    position: sticky;
    top: 3.5rem;
    height: calc(100vh - 3.5rem);
    width: 75%;
    margin: 0 auto;
    overflow: hidden;
}

#cv-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cv-card {
    position: absolute;
    width: 200px;
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;

    &.active {
        opacity: 1;
    }

    & h3 {
        font-family: NeutraDisplay;
        font-weight: bold;
        font-size: 0.82rem;
        color: #c9a84c;
        margin: 0 0 0.2rem 0;
    }

    & .cv-period {
        display: block;
        font-size: 0.67rem;
        color: rgba(232, 230, 225, 0.55);
        margin-bottom: 0.45rem;
        font-style: italic;
    }

    & p {
        font-size: 0.7rem;
        line-height: 1.45;
        margin: 0;
        color: rgba(232, 230, 225, 0.88);
    }
}

a {
    color: #c9a84c;
    text-decoration: none;

    &:hover {
        opacity: 0.75;
    }
}

#my-work {
    background-color: #0f1117;
    scroll-margin-top: 3.5rem;
    padding: 2rem 12.5%;

    & h1 {
        color: #c9a84c;
    }
}

.section-subheading {
    font-family: NeutraDisplay;
    font-weight: bold;
    font-size: 1rem;
    color: rgba(232, 230, 225, 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 1.5rem 0 0.75rem;
}

.pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-entry {
    display: flex;
    gap: 1.5rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);

    &:last-child {
        border-bottom: none;
    }
}

.pub-year {
    font-family: NeutraDisplay;
    font-weight: bold;
    font-size: 0.8rem;
    color: #c9a84c;
    min-width: 2.5rem;
    padding-top: 0.15rem;
    flex-shrink: 0;
}

.pub-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pub-title {
    color: #e8e6e1;
    font-size: 0.88rem;
    line-height: 1.4;

    &:hover {
        color: #c9a84c;
        opacity: 1;
    }
}

.pub-authors {
    font-size: 0.75rem;
    color: rgba(232, 230, 225, 0.6);
}

.pub-journal {
    font-size: 0.72rem;
    color: rgba(232, 230, 225, 0.42);
    font-style: italic;
}

#contact {
    background-color: #161b27;
    scroll-margin-top: 3.5rem;
    padding: 2rem 12.5%;
    text-align: justify;

    & h1 {
        color: #c9a84c;
    }
}

#black-hole {
    flex-shrink: 0;
}

#profile-pic {
    width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        0 0 0 3px rgba(255, 160, 20, 1),
        0 0 20px 8px rgba(255, 120, 0, 0.7),
        0 0 55px 22px rgba(200, 70, 0, 0.4),
        0 0 100px 45px rgba(140, 40, 0, 0.18);
}

/* ── Accessibility ─────────────────────────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #c9a84c;
    color: #0f1117;
    padding: 0.5rem 1rem;
    font-family: NeutraDisplay;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 3px;
}

/* ── Responsive design ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
    html {
        font-size: 18px;
    }

    #hero {
        flex-direction: column-reverse;
        gap: 2rem;
        min-height: auto;
        padding: 3rem 1.5rem 2rem;
        text-align: center;
    }

    #hero-left {
        flex: none;
    }

    #hero-name {
        font-size: 2.8rem;
    }

    #profile-pic {
        width: 240px;
        height: 240px;
    }

    #about-me-bio {
        max-width: 90%;
    }

    #cv-sticky {
        width: 90%;
    }

    #my-work,
    #contact {
        padding: 2rem 5%;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    header .name {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem 0.25rem;
    }

    header ul {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 0.5rem 0.5rem;
    }

    header ul li a {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    #cv-scroll-area {
        height: 500vh;
    }

    #cv-sticky {
        width: 100%;
    }

    #hero-name {
        font-size: 2.2rem;
    }

    #hero-tagline {
        font-size: 1rem;
    }

    #profile-pic {
        width: 180px;
        height: 180px;
    }

    #my-work,
    #contact {
        padding: 1.5rem 4%;
    }
}