* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --main-color: #24252A;
    --secondary-color: #2F3035;
    --third-color: #edf0f1;
    --accent-color: #0088a9;

}

body {
    background-color: var(--main-color);
}

header {
    background-color: var(--secondary-color);
    padding: 30px 10%;
    position: sticky;
    z-index: 1000;
    top: 0;
}

img {
    border-radius: 10px;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--third-color);
    font-weight: bold;
}

nav li {
    list-style: none;
    display: inline-block;
    font-size: 20px;
}

.nav-links li a {
    /*transition for links*/
    transition: all .3s ease 0s;
}

.nav-links li a:hover {
    /*hover color*/
    color: var(--accent-color);
}

.welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-section h1 {
    color: var(--third-color);
    font-size: 50px;
}

.welcome-section p {
    color: var(--accent-color);
    font-size: 20px;
}

.projects-and-title {

    color: var(--third-color);
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    background-color: var(--accent-color);
    min-height: 100px;
    padding: 180px 20px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 720px;
    /* 3 cards * 240px */
    margin: 100px auto 0 auto;
    gap: 30px;
}

.projects img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out,
        filter 0.4s ease-in-out;
    cursor: pointer;
    max-width: 100%;

}

.projects img:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    filter: brightness(1.05);
}

.project-title {
    color: var(--third-color);
    margin-bottom: 10px;
    text-align: center;
    display: block;
    font-weight: bold;
    font-size: 1rem;

}

.project-tile {
    width: 220px;
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project a {
    color: var(--third-color);
    text-decoration: none;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--third-color);
    text-decoration: none;
    border: 2px solid var(--third-color);
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    margin-top: 80px;
}

.button:hover {
    background-color: var(--third-color);
    color: var(--accent-color);
}

.contact {
    min-height: 80vh;

}

.contact h1 {
    text-align: center;
    color: var(--third-color);
    margin-top: 100px;
    font-size: 40px
}

.socials {
    min-height: 400px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contact a {
    text-decoration: none;
    color: var(--third-color);
    font-weight: bold;
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    transition: all .3s ease 0s;
}

.contact img {
    position: relative;
    top: -20px;

}

.Github-link {
    min-height: 100px;
    display: flex;
    align-items: center;
}

.Facebook-link {
    min-height: 100px;
    display: flex;
    align-items: center;

}

.Instagram-link {
    min-height: 100px;
    display: flex;
    align-items: center;
}

.Email-link {
    min-height: 100px;
    display: flex;
    align-items: center;
}

.Phone-number-link {
    min-height: 100px;
    display: flex;
    align-items: center;
}

.contact a:hover {
    color: var(--accent-color);
}

.footer {
    color: var(--third-color);
    min-height: 200px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

@media (max-width: 1024px) {

    /*Tablet view*/
    .projects {
        max-width: 480px;
    }

    .project-tile {
        width: 220px;
    }

    .socials {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {

    /*mobile landscape*/
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .projects {
        max-width: 240px;
        /* 1 card */
    }

    .socials {
        flex-direction: column;
        align-items: center;
    }

    .contact h1 {
        font-size: 32px;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {

    /*mobile portrait*/
    .welcome-section h1 {
        font-size: 36px;
        text-align: center;
    }

    .welcome-section p {
        font-size: 16px;
        text-align: center;
    }

    .project-title {
        font-size: 0.9rem;
    }

    .projects-and-title {
        padding: 140px 10px;
    }

    .footer {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 1600px) {

    /*ultra wide scrrens*/
    .projects {
        max-width: 960px;
    }
}