/* GLOBAL */
html, body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden; /* hide native scrollbar */
    background: linear-gradient(to bottom, #0a0f1c, #1b2430); /* wintery background */
    color: #fff;
}

/* Scroll wrapper and content for hidden scrollbar */
#scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#scroll-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -17px; /* adjust for scrollbar width */
    overflow-y: scroll;
    padding-right: 17px;
    box-sizing: content-box;
}

/* SNOW */
canvas#snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* behind everything */
    pointer-events: none;
}

/* MAIN */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    position: relative;
    z-index: 1; /* above snow */
}

/* SECTIONS */
.section {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem;
    max-width: 900px;
    width: 90%;
    margin: 2rem 0;
    box-sizing: border-box;
    text-align: left;
    background: rgba(20,30,40,0.85); /* semi-transparent card */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Fade in */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT SECTION */
.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Profile picture on the left */
.pfp {
    width: 300px;       /* scaled down from 736 */
    height: auto;       /* preserve aspect ratio */
    border: none;
    object-fit: contain;
    animation: float 4s ease-in-out infinite alternate;
}

/* Float animation */
@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

/* TYPOGRAPHY */
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
p, li { font-size: 1.1rem; line-height: 1.5; }
ul { padding-left: 1rem; }
ul li { margin-bottom: 0.5rem; }

/* BUTTONS */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
    color: #0a0f1c;
    font-weight: 500;
    transition: 0.3s;
}

.btn:hover {
    background: rgba(255,255,255,1);
    color: #0a0f1c;
}

/* LINKS */
a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #aaa;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* stack image above text */
        align-items: center;
        text-align: center;
    }

    .pfp {
        width: 200px; /* smaller image on mobile */
    }
}
