@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins';
}

.nav {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5.5rem;
    background: #be3144;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.nav-list {
    display: flex;
    margin-right: 4rem;
    align-items: center;
    gap: 3rem;
}

.nav-list a {
    font-size: 1.8rem;
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
}

#welcome-section {
    background-color: #000000;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}

#welcome-section h1 {
    color: white;
    font-size: 5rem;
}

#welcome-section p {
    color: #be3144;
    font-size: 2.2rem;
    font-style: italic;
}

.projects-section {
    text-align: center;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 7rem;
    background: #45567d;
}

.projects-section a {
    text-decoration: none;
}

.projects-section-header {
    font-size: 2rem;
    color: white;
    max-width: 640px;
    margin: 4rem auto 4rem auto;
    border-bottom: 0.2rem solid #f0f0f0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(500px, 1fr));
    grid-gap: 4rem;
    width: 500px;
    max-width: 1280px;
    margin: 0 10% 0 15%;
}

.project {
    background: #303841;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-bottom: 1px solid #ccc;
    display: block;
    pointer-events: none;
}

.code {
    color: #303841;
    transition: color 0.3s ease-out;
}

.project:hover .code {
    color: white;
}

.project-title {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    padding: 2rem 0.5rem;
    background: #303841;
}

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 2rem;
    color: #ffffff;
    background-color: #303841;
    box-sizing: border-box;
}

.contact-section-header h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-section-header p {
    font-style: italic;
    font-size: 1.6rem;
    color: #cccccc;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 980px;
}

.contact-links a {
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    padding: 1rem 2rem;
    color: #ffffff;
    background-color: #303841;
    border-radius: 5px;
    text-decoration: none;
    text-shadow: 1px 1px 1px #000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-details:hover {
    transform: translateY(-8px);
}

.contact-details i {
    font-size: 2.5rem;
}

svg {
    fill: white
}

@media (max-width: 1300px) {
    .projects-grid {
        grid-template-columns: 1fr;
        width: 80%;
        max-width: 600px;
        margin: 0 auto;
    }

    .project iframe {
        height: 400px;
    }

    .projects-section-header {
        font-size: 1.8rem;
        max-width: 90%;
        margin: 3rem auto;
    }

    .projects-section {
        padding: 1.5rem;
    }
}

@media (max-width: 712px) {
    #welcome-section {
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
    }

    .project iframe {
        height: 300px;
    }

    .projects-section-header {
        font-size: 1.5rem;
        margin: 2rem auto;
    }

    .project-title {
        font-size: 1.5rem;
        padding: 1.5rem 0.5rem;
    }

    .projects-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        justify-content: center;
    }

    .nav-list {
        text-align: center;
        gap: 3rem;
    }

    .nav-list a {
        font-size: 1.4rem;
        text-decoration: none;
        color: white;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        width: 95%;
        max-width: 400px;
        margin: 0 auto;
    }

    .project iframe {
        height: 250px;
    }

    .projects-section-header {
        font-size: 1.2rem;
        margin: 1.5rem auto;
    }

    .project-title {
        font-size: 1.2rem;
        padding: 1rem 0.5rem;
    }

    .projects-section {
        padding: 0.5rem;
    }
}