@font-face {
    font-family: 'Anona';
    src: url('https://raw.githubusercontent.com/wxnnvs/wxnnvs.github.io/main/Anona.otf');
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 0;
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo {
    position: relative;
    font-size: 40px;
    font-weight: bold;
    font-family: Anona;
    margin: 0;
}

.logo:hover {
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

a {
    color: #fff;
    text-decoration: underline solid #000;
    text-decoration-thickness: 2px;
    font-size: 16px;
    transition: text-decoration .4s ease;
}

a:hover {
    color: #fff;
    text-decoration: underline solid #fff;
    text-decoration-thickness: 2px;
}

/* Home */

main.home h1 {
    font-size: 100px;
    margin: 0;
    font-family: Anona;
    padding-bottom: 0;
}

main.home p {
    font-size: 20px;
    margin-top: 0px;
    color: #ccc;
}

/* Projects */

.projects-container {
    margin: 0 0 40px 0; 
}

main.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

main.projects h1 {
    font-size: 48px;
    margin-bottom: 40px;
    font-family: 'Anona';
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 1000px;
}

.project {
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 20px;
    transition-duration: 0.4s;
}

.project:hover {
    border-color: #ccc;
    background-color: #222;
    cursor: pointer;
}

.project h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project p {
    font-size: 16px;
    color: #ccc;
}

a#repos {
    color: #fff;
    text-decoration: underline solid #fff;
    text-decoration-thickness: 1px;
    font-size: 16px;
    transition: text-decoration-thickness .4s ease;
}

a#repos:hover {
    color: #fff;
    text-decoration: underline solid #fff;
    text-decoration-thickness: 1.5px;
}

/* Contact */

main.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

main.contact h1 {
    font-size: 48px;
    margin-bottom: 40px;
    font-family: 'Anona';
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 400px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

textarea {
    height: 150px;
    resize: none;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ccc;
}

/* Responsive Design */

@media only screen and (max-width: 768px) {
    main.home h1 {
        font-size: 60px;
    }

    main.projects h1,
    main.contact h1 {
        font-size: 36px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 480px) {
    main.home h1 {
        font-size: 40px;
    }

    main.projects h1,
    main.contact h1 {
        font-size: 28px;
    }

    .projects-container {
        width: 100%;
        padding: 0 10px;
    }
}
