* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html body {
    font-family: 'Arimo', Helvetica, Arial, sans-serif;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: red;
    z-index: 9999;
}

/* navigation bar */

.navbar {
    background-color: rgba(255, 255, 255, 0.7);
    /* white with opacity */
    backdrop-filter: blur(10px);
    /* glass effect */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* subtle depth */
    z-index: 1000;
}

.navbar-brand {
    padding-left: 30px;
}

.nav-link {
    position: relative;
    margin-right: 80px;
    font-weight: 200;
    display: inline-block;
    font-size: 30px;
    color: black;
}

.nav-item .nav-link {
    font-family: 'Arimo', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    position: relative;
    margin-right: 80px;
    display: inline-block;
    font-size: 30px;
    color: black;
}

.nav-link b {
    font-weight: 900;
}

/* underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0%;
    height: 3px;
    background-color: red;
    transition: width 0.3s ease;
}

/* hover effect */
.nav-link:hover::after {
    width: 100%;
}

/* hover section */

section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 620px;
    margin-top: 150px;
    z-index: 10;
    /* Ensure the section is on top of the image */
    padding: 5px;
    background: rgba(0, 0, 0);
    /* Optional: Add a background to improve readability */
    color: rgb(0, 0, 0);
    /* Ensure text color is visible */
}


.code {
    font-size: 30px;
    color: hsl(0, 0%, 0%);
}

.code:hover {
    cursor: default;
}

ul {
    padding: 0;
    margin: 0;
}

/* span image under navigation row */
.hero-image {
    margin-top: 100px;
    padding-bottom: 30px;
    padding-right: 60px;
}

.hero-image img {
    width: 300px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-image {
        height: auto;
    }

    .hero-image img {
        height: auto;
        object-fit: contain;
        padding-top: 40px;
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps it looking good on all screens */
    display: block;
}

.hero-text {
    color: rgb(0, 0, 0);
    font-size: 40px;
    font-weight: 700;
    margin-top: 30px;
    font-size: 40px;
    font-weight: 700;
    color: black;
}

.text {
    font-size: 18px;
    font-weight: 100px;
    text-align: justify;
    padding-left: 315px;
    padding-right: 255px;
    padding-bottom: 40px;
    color: black;
}

@media (max-width: 768px) {
    .text {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 13px;
        text-align: left;
        /* optional, improves readability on mobile */
    }
}

/* back to top link */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;

    background-color: white;
    color: black;
    padding: 12px 18px;
    border-radius: 30px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;

    opacity: 0;
    /* hidden by default */
    pointer-events: none;
    /* not clickable */
}

/* visible state */
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* footer */

.footer-image {
    width: 100%;
}

.footer-image img {
    width: 100%;
    height: auto;
    display: block;
}