/* Reset styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global styles */

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    background-image: url(../img/bg.svg);
    background-size: cover;
    background-attachment: fixed;
    /* make it not repeat and not scroll */

    background-repeat: no-repeat;
    /* make it not repeat */

    background-position: center;
    /* make it not scroll */




}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin: 0 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

nav a:hover {
    color: #f00;
}

nav a.active {
    color: #f00;
    border-bottom: 2px solid #f00;
}

main {
    margin-top: 70px;
    padding: 100vh 0 0;

}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s, transform 1s;
    transform: translateY(50px);
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

section img {
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 2rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    margin: 0 20px;
}

.skill h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-bar {
    background-color: #eee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.skill-progress {
    height: 100%;
    background-color: #f00;
}

.project {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.project img {
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 2rem;
}

.project-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.project-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.project-info a {
    display: inline-block;

    background-color: #f00;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.project-info a:hover {
    background-color: #fff;
    color: #f00;
}

.project:hover .project-info {
    opacity: 1;
}

#contact {
    background-color: #fff;
    color: #333;
}

#contact h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

input,
textarea {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    margin-bottom: 1rem;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button[type="submit"] {
    background-color: #f00;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #fff;
    color: #f00;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

@media screen and (max-width: 768px) {
    nav {
        height: auto;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 10px 0;
    }

    #about,
    #skills,
    #projects {
        padding-top: 80px;
    }
}

/* BACKGROUND ANIMATION */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.bg-img {
    width: 100%;
    height: 101vh;
}