@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: black;
    overflow-x: hidden;
}

/* Full Screen Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: -1; /* Keeps stars behind everything */
    overflow: hidden;
}

/* Canvas for stars */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Keeps the canvas behind all content */
}

/* About Section */
.about {
    color: white;
    font-size: 5vw; /* Scales with viewport */
    opacity: 90%;
    text-align: center;
}

.main-h:hover {
    border: 1px solid #06b6d4;
    box-shadow: 1px 1px 100px 1px #06b6d4;
    transition: border 2s, box-shadow 1.5s;
}

.abbout {
    color: white;
    width: 80%;
    max-width: 350px;
    height: auto;
    font-size: 2vw;
    word-spacing: 5px;
    font-family: 'Kanit', sans-serif;
    opacity: 60%;
    text-align: center;
    margin-top: 20px;
}

/* Profile Image */
.profile {
    width: 40vw;
    height: auto;
    border: 2px solid transparent;
    border-radius: 10px;
}

/* NAVBAR: Always on top */
.main1 {
    display: flex;
    justify-content: center;
    padding-top: 6vh;
}

.main-h {
    display: flex;
    position: fixed;
    color: white;
    background-color: black;
    text-align: center;
    justify-content: space-evenly;
    align-items: center;
    height: 50px;
    width: 80%;
    border-radius: 30px;
    transition: border 2s, box-shadow 1.5s;
    z-index: 2; /* Navbar is now above canvas */
}

.main-h a {
    margin: 5px 15px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    opacity: 70%;
    transition: font-size 0.5s;
}

.main-h a:hover {
    color: grey;
    font-size: 1.4rem;
}

/* Content Layout */
.main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    padding: 10vh 5vw;
    text-align: center;
    position: relative;
    z-index: 1;

}

/* Keep Navbar Fixed for Mobile */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
        text-align: center;
        padding: 10vh 5vw;
    }

    .profile {
        width: 60vw;
    }

    .abbout {
        width: 90%;
        font-size: 4vw;
    }

    /* Navbar remains unchanged */
    .main-h {
        width: 80%;
        height: 50px;
        justify-content: space-evenly;
        padding: 0;
    }

    .main-h a {
        font-size: 1rem;
        margin: 0 10px;
    }
}
