* {
    font-family: Poppins, sans-serif;
    scroll-behavior: smooth;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    color: aliceblue;
}

section {
    width: 100%;
}

/* Background video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* NAVBAR */
.header {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.096);
    backdrop-filter: blur(5px);
    top: 0;
    border-radius: 0 0 7px 7px;
    z-index: 2;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.7rem;
}

.nav-item {
    text-decoration: none;
    font-size: 20px;
    color: rgb(207, 233, 233);
    padding: 1.5rem 1.3rem;
    margin-right: 2rem;
    font-weight: 500;
    transition: all 0.6s linear;
}

.nav-item:hover {
    transform: scale(1.14);
    color: #ffffff;
}

/* WELCOME SECTION */
#welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.welcome-title {
    font-size: 5.6rem;
    font-weight: 800;
    margin: 0;
}

.welcome-text {
    font-size: 1.4rem;
    margin: 0;
}

.web-dev-text {
    margin-left: 0.5rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
}

/* PROJECTS SECTION */
#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 6rem;
}

.projects-section-title {
    font-size: 3rem;
}

.portfolio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1440px;
}

.portfolio-box {
    position: relative;
    width: 400px;
    height: 250px;
    border: 3px solid #eee5e5c2;
    border-radius: 10px;
    overflow: hidden;
}

.portfolio-box:hover {

    border: 2px solid #ffffff;
    box-shadow: 0 6px 20px #65b7e082;
}

.project-img {
    width: 100%;
    height: 100%;
    transition: all 0.5s linear;
    opacity: 0.7;
}

.project-img:hover {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.127), rgba(0, 0, 0, 0.593));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: translateY(100%);
    transition: 0.8s ease-in-out;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.project-name {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

.project-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background-color: #ffffff;
    border-radius: 20%;
    text-decoration: none;
}

.project-link-icon {
    font-size: 1.4rem;
    color: #1c1b1b;
}

/* CONTACT SECTION*/
.contact {
    background: rgba(251, 251, 251, 0.095);
    backdrop-filter: blur(8px);
    padding: 4rem 0;
    height: max-content;
    border-radius: 2rem 2rem 0 0;
}   

.contact-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 1rem 6rem;
}

.contact-title {
    font-size: 2.4rem;
    text-align: center;
    color: rgb(230, 228, 228);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-address {
    font-size: 1rem;
    list-style: none;
}

.contact-information {
    font-weight: 300;
}

/* BUTTON */

.contact-button {
    height: 60px;
    width: 280px;
    display: flex;
    position: relative;
    align-items: center;
    margin-top: 2rem;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    border: 2px solid #ffffff;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    transition: all 0.8s ease-in-out;
    text-decoration: none;
}
      
.contact-button-txt {
    z-index: 1;
    font-weight: 800;
    letter-spacing: 3px;
}
      
.contact-type-1::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.65s ease-in-out;
    background-color: #ffffff;
    border-radius: 30px;
    visibility: hidden;
    height: 10px;
    width: 10px;
    z-index: -1;
}
      
.contact-button:hover {
    box-shadow: 1px 1px 150px #ffffff;
    color: #161616;
}
      
.contact-type-1:hover::after {
    visibility: visible;
    transform: scale(100) translateX(2px);
}

/* FOOTER */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15vh;
    width: 100%;
    background-color: #ffffff2e;
    backdrop-filter: blur(5px);
    margin-top: 1rem;
}

.copyright {
    font-size: 1.1rem;
}

.special-footer-text {
    font-weight: 500;
    letter-spacing: 2px;
}

/* MEDIA QUERIES */
@media only screen and (max-width: 660px) {
    .welcome-title {
        font-size: 4rem;
    }

    .welcome-text {
        font-size: 1.2rem;
    }

    .contact-container {
        margin: 1rem 0;
    }

    .footer {
        height: max-content;
    }

    .copyright {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
}

@media only screen and (max-width: 440px) {
    .navbar {
        align-items: center;
        flex-wrap: wrap;
        gap: 0.1rem;
    }

    .nav-item {
        padding: 0.5rem 0.6rem;
    }

    .portfolio-box {
        max-width: 350px;
    }
}