/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --futuristic-blue: #202060;
    --dark-abyss: #1c1c1b;
    --serious-purple: rgb(77, 0, 107);
}

/* Navbar Styling */
#navbar {
    background-color: var(--dark-abyss);
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between; /* Separates the Go Back button from the list */
    align-items: center; /* Vertically centers the content */
    padding: 1em;
}

/* Styling for the Go Back to Lobby button */
#go-back-button {
    text-decoration: none;
    font-size: 1.5em;
    font-family: 'Poppins', sans-serif;
    color: white;
}

/* Nav links wrapper */
.nav-links {
    margin-right: 1em; /* Space between links and the edge */
}

/* Styling for the ul on the right side */
/* Navbar Styling */
#navbar ul {
    display: flex;
    gap: 1.5em;
    list-style-type: none; /* Removes the black dots (bullets) */
    padding: 0; /* Removes default padding */
}

#navbar ul li a {
    text-decoration: none;
    font-size: 1.5em;
    font-family: 'Poppins', sans-serif;
    color: white;
}

#welcome-section h1 {
    font-size: 3.5em;
    font-family: 'Poppins', sans-serif;
    color: white;
}

#welcome-section h2 {
    font-size: 2.5em; /* Increased font size */
    font-family: 'Raleway', sans-serif;
    color: white; /* Changed color to white for better contrast */
    font-weight: bold; /* Made the text bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Added a shadow for more depth */
}


/* Projects Section */
#projects {
    background-color: var(--dark-abyss);
    background-image: url(''); /* Added image */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center center; /* Centers the image both vertically and horizontally */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 3em 0; /* Keep the existing padding */
    height: auto; /* Allows the height to adjust based on content */
    min-height: 400px; /* Sets a minimum height for the section */
}


#projects h3 {
    text-align: center;
    font-size: 2.5em;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5em;
}


.projects-div {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
}

.projects-figure {
    width: 45%;
    padding: 1em;
    background-color: rgba(0, 0, 0, 0.815);
    border-radius: 0.5em;
    text-align: center;
}

.project-img {
    width: 100%;
    border-radius: 0.5em;
}

.project-titles p {
    font-size: 1.5em;
    color: white;
    font-family: 'Raleway', sans-serif;
    padding-top: 1em;
}

/* Footer Section */
footer {
    background-color: black;
    width: 100%;
    padding: 2em 0;
}

footer h1 {
    text-align: center;
    color: white;
}

#contact {
    width: 100%;
}

.contact-div {
    width: 100%;
    display: block;
    text-align: center;
}

.contact-div a {
    color: white;
    margin-left: 4em;
    margin-right: 4em;
    font-size: 2em; /* Ensure this line is completed */
    text-decoration: none; /* Remove underline */
}

/* Media Queries */
@media (max-width: 768px) and (min-width: 480px) {
    #navbar {
        justify-content: center;
    }

    #navbar ul li {
        font-size: 1em;
    }

    .projects-div {
        flex-direction: column;
        justify-content: center;
    }

    .projects-figure {
        width: 100%;
        margin: 0 auto;
    }

    .contact-div a {
        margin-left: 2em;
        margin-right: 2em;
    }
}

/* Bubbles  */
.bubbles img{
    width: 50px;
    animation: bubble 7s linear infinite;  
}

.bubbles{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: absolute;
    bottom: -70px;
}

@keyframes bubble{
    0%{
        transform: translateY(0);
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    70%{
        opacity: 1;
    }
    100%{
        transform: translateY(-80vh);
        opacity: 0;
    }
}

/* Bubbles img:nth-child */
.bubbles img:nth-child(1){
    animation-delay: 2s;
    width: 25px;
}
.bubbles img:nth-child(2){
    animation-delay: 1s;
}
.bubbles img:nth-child(3){
    animation-delay: 3s;
    width: 25px;
}
.bubbles img:nth-child(4){
    animation-delay: 4.5s;
}
.bubbles img:nth-child(5){
    animation-delay: 3s;
}
.bubbles img:nth-child(6){
    animation-delay: 6s;
    width: 20px;
}
.bubbles img:nth-child(7){
    animation-delay: 7s;
    width: 35px;
}

/* Media Queries (optional) */
@media (max-width: 768px) {
    .container {
        background-size: cover; /* Ensure it covers the area on smaller screens */
    }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 999; /* Above all other content */
}

.black-box {
    background-color: rgba(0, 0, 0, 0.99);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.progress-bar {
    width: 406px;
    height: 21px;
    background: #111;
    border-radius: 13px;
    padding: 3px;
    box-sizing: border-box;
    position: relative;
}

.progress {
    width: 0;
    height: 100%;
    background: #d5c6cb;
    border-radius: 10px;
    position: absolute;
    left: 0;
    transition: width 0.3s ease;
}


.percent {
    color: #999;
    font-size: 100px;
    font-weight: 400;
    margin-bottom: 15px;
}

.text {
    color: #fdb5ca;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 21px;
}


