@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;400&family=Raleway:wght@500;600;800&display=swap');

:root {
    --main-white: #f0f0f0;
    --main-red: #be3144;
    --main-blue: #45567d;
    --main-gray: #303841;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'poppins', sans-serif;
}


/* Header section */

header {
    width: 100%;
    background: linear-gradient(120deg, #000041, #000000);
    height: 70px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    z-index: 999;
}

#navbar {
    display: flex;
    justify-content: flex-end;
}

ul {
    width: 320px;
    margin-right: 30px;
    height: 70px;
    display: flex;
    align-items: center;
}

ul li {
    list-style-type: none;
}

#navbar ul li a {
    color: var(--main-white);
    padding: 20px;
    font-size: 22px;
}

a {
    text-decoration: none;
    color: var(--main-white);
}

#navbar ul li a:hover {
    background-color: #3f4b3d;
}


/* Welcome Section */

#welcome-section {
    width: 100%;
    height: 100vh;
    background-color: #232326;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#welcome-section .intro h1 {
    color: var(--main-white);
    text-align: center;
    font-size: 60px;
    font-family: raleway, sans-serif;
}

#welcome-section .intro h1 span {
    color: rgb(180, 0, 180);
}

#welcome-section .intro p {
    color: var(--main-red);
    text-align: center;
    font-style: italic;
    font-weight: 200;
    font-size: 30px;
    margin-top: 5px;
}


/* Projects Section */

#projects {
    background-color: var(--main-blue);
    width: 100%;
    height: auto;
    padding: 100px 0;

}

#projects .heading {
    border-bottom: 2px solid var(--main-white);
    width: 50%;
    margin: auto;
    padding-bottom: 5px;
}

#projects .heading h2 {
    font-family: 'raleway', sans-serif;
    color: var(--main-white);
    font-size: 40px;
    text-align: center;
    font-weight: 600;
}

.projects-container {
    max-width: 1200px;
    margin: 50px auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
}

.project-tile {
    transition: transform 0.3s ease;
}

.project-tile:hover {
    transform: scale(0.9);
}

.project-tile a img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    margin-bottom: -6px;
}

.project-tile a p {
    background-color: var(--main-gray);
    text-align: center;
    width: 100%;
    font-size: 22px;
    padding: 20px;
    margin: 0;
}

.button {
    width: 100%;
    display: flex;
    justify-content: center;
}

.show-all button {
    font-size: 20px;
    padding: 10px 20px;
    font-family: 'poppins', sans-serif;
    color: var(--main-white);
    background-color: var(--main-gray);
    margin: auto;
    border: none;
    border-radius: 2px;
}

.show-all button:hover {
    background-color: #be3144;
}

.fa-angles-right {
    transition: transform 0.6s ease-out;
}

.show-all button:hover .fa-angles-right {
    transform: translateX(30%);
}


/* Social Links */

#social-section {
    background-color: var(--main-gray);
    height: 450px;
    color: var(--main-white);
    border-bottom: 5px solid var(--main-red);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.social-heading {
    text-align: center;
    margin-bottom: 50px;
}

.social-heading h2 {
    font-size: 65px;
    font-family: 'raleway', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-heading p {
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
}

.social-links a {
    font-size: 25px;
    margin: 15px;
    padding-bottom: 10px;
    position: relative;
    
}

.social-links a::after {
    content: '';
    width: 0;
    height: 100%;
    border-bottom: 2px solid #ababab;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.5s;
}

.social-links a:hover::after {
    width: 100%;
}


/* footer */



footer .credits {
    background-color: var(--main-gray);
    color: var(--main-white);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 18px;
}

footer .credits a:hover {
    color: #0092ac;
}






/* Media Queries */

@media (max-width: 750px) {

    #projects {
        background-color: var(--main-blue);
        width: 100%;
        height: auto;
    }

    .projects-container {
        max-width: 90%;
        margin: 50px auto;
        display: block;
    }

    .project-tile {
        margin: 30px auto;
    }

    .social-links {
        width: 65%;
        text-align: center;
    } 

    .social-links a {
        font-size: 18px;
    }

    .social-heading p {
        font-size: 16px;
    }

    .social-links a:hover::after {
        border-bottom: none;
    }
    .social-links a::after {
        border-bottom: none;
    }
    
    footer .credits {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        font-size: 13px;
    }

    footer .credits p {
        margin-left: 15px;
        margin-right: 10px;
    }

}

@media (min-width: 751px) and (max-width: 1100px) {

    .projects-container {
        max-width: 90%;
    
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    footer .credits p {
        margin-left: 15px;
        margin-right: 10px;
    }
}