* {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    scroll-behavior: smooth;
}

/* HEADER */
.homepage {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img/background.jpg);
    height: 100vh;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* parallax effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav a:hover {
    background-color: white;
    color: black;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.title h1 {
    color: white;
    font-size: clamp(2rem, 8vw, 5rem);
}

/* ABOUT */
.about {
    min-height: 100vh;
    box-sizing: border-box;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%),
        url(img/aboutbackground.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 10%;
}

.about h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.about-images {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-images img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid white;
    object-fit: contain;
}

/* PROJECTS */
.projects {
    min-height: 100vh;
    box-sizing: border-box;
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%),
        url(img/projectbackground.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 10%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.project-image {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project-info {
    margin-top: 1rem;
}

.project-info h2 {
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .overlay {
    opacity: 1;
}

.overlay a {
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
    text-decoration: none;
}

/* CONTACT */
.contact {
    min-height: 100vh;
    box-sizing: border-box;
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%),
        url(img/contact.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 10%;
    text-align: center;
}

.contact h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact a {
    color: white;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.socialmedia {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
}

.socialmedia a:hover {
    transform: scale(1.5);
    transition: transform 0.2s ease;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .homepage, .about, .projects, .contact {
    background-attachment: scroll;
  }
}