/* Custom bio hyperlink style */
.bio-link {
    color: #225514 !important;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s;
}
.bio-link:hover {
    color: #2bff00 !important;
}
/* Home page overlay styles */

/* Elegant, responsive bio overlay */
.home-bg {
        position: relative;
        width: 100%;
        min-height: 100vh;
        overflow: hidden;
}
.home-bg .library-img {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
}
.home-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: var(--overlay-bg, rgba(0, 0, 0, 0.85));
    color: var(--text, #00ff41);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 6vw 4vw 4vw 4vw;
    box-sizing: border-box;
    overflow-y: auto;
}
.home-overlay-text .about-passage {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg, rgba(0, 0, 0, 0.7));
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
    padding: 4.5rem 2rem 2.5rem 2rem;
    margin: 3vw auto 0 auto;
}
.home-overlay-text .about-passage p {
        font-size: 1.15rem;
        margin-bottom: 1.1em;
        line-height: 1.7;
    color: var(--text);
        background: transparent;
}
@media (max-width: 700px) {
    .home-overlay-text {
        padding: 8vw 2vw 4vw 2vw;
    }
    .home-overlay-text .about-passage {
        padding: 2.5rem 1.2rem 1.2rem 1.2rem;
        font-size: 1rem;
        margin: 6vw auto 0 auto;
    }
}
@media (max-width: 480px) {
    .home-overlay-text {
        padding: 12vw 1vw 2vw 1vw;
    }
    .home-overlay-text .about-passage {
        padding: 1.2rem 0.8rem 0.7rem 0.8rem;
        font-size: 0.98rem;
        margin: 10vw auto 0 auto;
    }
}
/* About page overlay styles */
.about-bg {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.about-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}
.about-overlay-text {
    position: absolute;
    top: 0;
    right: 0;
    width: 70vw;
    height: 100vh;
    background: var(--overlay-bg, rgba(0, 0, 0, 0.85));
    color: var(--text, #00ff41);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4vw 6vw 4vw 4vw;
    box-sizing: border-box;
    overflow-y: auto;
}
.about-overlay-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent, #00ff41);
}
.about-passage p {
    font-size: 1.15rem;
    margin-bottom: 1.1em;
    line-height: 1.7;
    background: transparent;
    color: var(--text);
}
.about-overlay-text .back-link {
    margin-top: 2rem;
    color: var(--accent, #00ff41);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.15s;
}
.about-overlay-text .back-link:hover {
    color: var(--text, #00ff41);
}
.desktop-contacts { display: block; }
.mobile-contacts { display: none; }
.contact-icon {
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.4em;
    vertical-align: middle;
    display: inline-block;
}
.contacts {
    margin: 2.5rem 0 0 2vw;
    color: #f8fafc;
    font-size: 1.05rem;
    font-family: 'Roboto', sans-serif;
    background: #23232aee;
    border-radius: 1rem;
    padding: 1.2rem 1.2rem 1.2rem 1.5rem;
    box-shadow: 0 2px 12px #0002;
    max-width: 220px;
}
.contacts h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 1px;
}
.contact-item {
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1rem;
}
.contact-item span {
    font-size: 1.2em;
    margin-right: 0.3em;
}
.contact-item a {
    color: var(--card-yellow);
    text-decoration: none;
    transition: color 0.15s;
}
.contact-item a:hover {
    color: #fffbe6;
    text-decoration: underline;
}
.book-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.7em;
    vertical-align: middle;
    border-radius: 0.3em;
    background: #fff3;
    display: inline-block;
    box-shadow: 0 1px 4px #0002;
}
/* Cleaned stylesheet for FinAI Library Entrance */

:root{
    --bg:#000;
    --overlay-bg:rgba(0,0,0,0.85);
    --card-bg:rgba(0,0,0,0.7);
    --accent:#00ff41;
    --text:#00ff41;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
    background:linear-gradient(180deg,#0f0f11 0%, #161617 100%);
    color:#f8fafc;
    font-family:Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
}

/* layout: left margin (30%), cards (30%), image (40%) */
    .library-layout{display:flex;flex-direction:row;max-width:1600px;margin:0 auto;width:100vw;overflow:auto;align-items:flex-start;}
.margin-column {
    width: 30vw;
    min-width: 0;
    display: block;
    padding: 1.5rem;
}
.left-column {
            width: 50vw;
            min-width: 400px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            height: auto; /* This line can be removed if you want to ensure it stacks naturally */
}
.right-column {
    width: 50vw;
    display: flex;
    align-items: stretch;
}

/* bookshelf */
.bookshelf.vertical{display:flex;flex-direction:column;gap:1rem;width:98%;align-items:stretch;margin-bottom:0}
.book{display:flex;flex-direction:row;align-items:center;gap:0.75rem;background:var(--card-bg, rgba(0,0,0,0.7));padding:1rem;border-radius:8px;text-decoration:none;color:var(--text, #00ff41);font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,0.45)}
.book span{font-weight:400;color:var(--text);font-size:0.95rem}
.book-icon{
    width:64px;
    height:40px;
    min-width:64px;
    min-height:40px;
    margin-right:1.1em;
    object-fit:contain;
    background: rgba(180,180,180,0.18);
}
.book:hover{transform:translateY(-6px);box-shadow:0 12px 36px var(--book-shadow-hover)}

/* image */
.library-img{width:100%;height:100vh;object-fit:cover}

/* contacts (desktop in margin) */
.contacts{background:var(--card-bg, rgba(0, 0, 0, 0.7));padding:1rem;border-radius:10px;color:var(--text, #00ff41);max-width:220px}
.contacts-mobile{display:none}
.contacts h3{color:var(--accent, #00ff41);margin:0 0 0.5rem 0}
.contact-item{display:flex;align-items:center;gap:0.5rem;margin-bottom:0.5rem}
.contact-icon{width:20px;height:20px}
.contact-item a{color:var(--accent, #00ff41);text-decoration:none}

/* responsive: stack vertically on small screens; show contacts fixed at bottom */
@media (max-width:900px){
    .library-layout{flex-direction:column;height:auto}
    .margin-column{display:none}
    .left-column,.right-column{width:100vw}
    .bookshelf.vertical{width:94%;margin:1.2rem auto}
    .library-img{width:100%;height:auto;object-fit:contain}
    .contacts{position:static}
    .contacts-mobile{
        display:block;
        position:relative;
        left:auto;
        right:auto;
        bottom:auto;
        margin:2.5rem auto 2rem auto;
        border-radius:10px;
        max-width:96vw;
        padding:1rem 1.2rem;
        z-index:1;
    background:var(--card-bg, rgba(0, 0, 0, 0.7));
        box-shadow:0 2px 12px #0002;
    }
    body{padding-bottom:120px}
    .home-bg {height: auto; min-height: 100vh;}
    .home-overlay-text {
        position: relative;
        width: 100vw;
        height: auto;
        min-height: 100vh;
        padding: 6vw 4vw 6vw 4vw;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 10;
        display: flex;
    background: var(--overlay-bg, rgba(0, 0, 0, 0.85));
    }
    .about-passage {
        max-width: 100vw;
        display: block;
        min-height: 120px;
    background: var(--card-bg, rgba(0, 0, 0, 0.7));
    color: var(--text, #00ff41);
        z-index: 11;
        position: relative;
    }
}

/* small polish */
@media (min-width:1400px){
    .margin-column{padding-left:4rem}
    .bookshelf.vertical{width:80%}
}
.project-curve-image {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.project-curve-image img {
    width: 100%;
    max-width: 700px;
    height: 320px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 2px 32px #0007;
}
.curve-desc {
    color: var(--text);
    margin-top: 0.5rem;
    font-size: 1.05rem;
    text-align: center;
}

