html {
    background-color: #0c2a3b;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    max-width: 100vw;
}

header {
    background-color: #0c2a3b;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 0;
    min-height: 75px;
    z-index: 10;
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.50);
}

header h1 {
    position: absolute;
    left: 10px;
    top: 10px;
}

header nav {
    position: absolute;
    right: 10px;
    top: 40px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

header nav a:hover {
    text-decoration: underline;
}

.section {
    min-height: 500px;
    width: calc(100vw - 40px);
    margin-top: -0px;
    padding: 20px;
    background-color: #0b4e75;
}

#about a {
    color: rgb(189, 172, 232);
}

.white-bg {
    background-color: white;
    text-align: center;
    min-height: 80vh;
}

.transition {
    height: 500px;
    margin-top: -200px;
    z-index: 1;
    position: absolute;
    width: 100%;
}

#me {
    height: calc(100vh + 5px);
    text-align: center;
    color: white;

    background-image: url('https://img.itch.zone/aW1hZ2UvMzA2MDQ3Mi8xODMwMzIxOS5wbmc=/original/7pCVG5.png');
    background-size: cover;
    /* Ensures full coverage, responsive */
    background-repeat: no-repeat;
    /* Prevents tiling */
    background-attachment: fixed;
    /* Keeps it stable on scroll (optional) */
    background-position: center;
    /* Centers image consistently */

    animation: backgroundMove 60s ease-in-out infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#me h1 {
    display: block;
    margin: auto;
    padding-top: 20vh;
    font-size: 500%;
}

#me p {
    font-size: 200%;
    margin-top: -10px;
}

#about {
    padding-top: 100px;
    color: white;
    text-align: center;
}

#about h2 {
    font-size: 300%;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 2;
    margin-top: -100px;
}

#about p {
    font-size: 150%;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 2;
}

#projects {
    background-color: #eee;
    color: #222;
    text-align: center;
}

#projects h2 {
    font-size: 300%;
}

#projects p {
    font-size: 200%;
    position: absolute;
    margin-top: 90px;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    max-width: 500px;
    width: calc(100% - 20px);
    margin: 0 auto;
}

.project h3 {
    color: black;
    font-size: 2em;
    margin: 10px 0;
    text-decoration: none;
}

.project a {
    text-decoration: none;
}

.project img {
    width: 100%;
    object-fit: cover;
    height: 250px;
}

.header {
    font-size: 5em;
}

.button {
    background: rgba(185, 178, 178, 0.49);
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 auto;
    margin-top: -50px;
    margin-bottom: 50px;
    display: block;
    max-width: 120px;
}

.p-default {
    color: black !important;
    position: relative !important;
    margin: -10px 0 !important;
    font-size: inherit !important;
    text-align: center !important;
}

footer {
    background-color: #0c2a3b;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -5px 10px 0px rgba(0, 0, 0, 0.50);
}