@import url('https://fonts.googleapis.com/css2?family=Lato&family=Rambla&display=swap');

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}
/* page colors */
:root {
    --body_color: #FFF7EF;
    --nav_text_color: #121212;
    --text_and_button_color: #1A3545;
    --container_color: #1A3545;
    --container_text_color: #FFF7EF;
    --button_hover_color: #0C4A74;
}
/* dark mode page colors */
.dark_mode {
    --body_color: #1A3545;
    --nav_text_color: #FFF7EF;
    --text_and_button_color: #FFF7EF;
    --container_color: #0c1920;
    --container_text_color: #FFF7EF;
    --button_hover_color: #ffffff;
}
/* body style */
body {
    background-color: var(--body_color);
}

/* page grid */
.work_page_grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 0.4fr auto;
    grid-auto-flow: row;
    justify-content: space-evenly;
    align-content: space-evenly;
    grid-template-areas: 
    "nav_bar"
    "content";
}
/* navigation bar style */
.nav_bar {
    display: flex;
    flex-direction: row;
    gap: 3vw;
    justify-content: end;
    align-items: center;
    margin: 4vw 4vw;
    grid-area: nav_bar;
}
/* logo style */
#logo_svg {
    width: 4.5vw;
    height: 4.5vw;
    fill: var(--text_and_button_color);
}
.logo {
    margin-right: 54vw;
}
/* ul style */
ul {
    display: flex;
    flex-direction: row;
    gap: 3vw;
}
ul li {
    font-size: 1.9vw;
}
/* a style */
a {
    color: var(--nav_text_color);
}
/* moon icon */
#moon_svg {
    width: 2.5vw;
    height: 2.5vw;
    cursor: pointer;
    fill: var(--nav_text_color);
}

/* nav hover style */
.underline_hover {
    display: inline-block;
    position: relative;
}
.underline_hover:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF6701;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.underline_hover:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* content style */
.content {
    grid-area: content;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 0.5fr;
    grid-auto-flow: row;
    justify-content: space-evenly;
    align-content: space-evenly;
    margin-left: 3vw;
    margin-top: 2vw;
    margin-bottom: 4vw;
    gap: 3vw;
    grid-template-areas: 
    "programming"
    "ui_ux"
    "graphic_design";
}
/* programming style */
.programming {
    grid-area: programming;
    text-align: center;
}
/* header style */
h2 {
    font-size: 2vw;
    color: var(--nav_text_color);
}
/* programming projects container style */
.programming_projects_container {
    margin-top: 2.3vw;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1vw;
}
/* first programming project style */
.pp {
    display: flex;
    flex-direction: column;
    color: var(--container_text_color);
    background-color: var(--container_color);
    height: 30vh;
    width: 24vw;
    border-radius: 20px;
    justify-content: center;
}
/* text style */
h4 {
    font-size: 1.7vw;
    font-weight: lighter;
}
p {
    font-size: 1.2vw;
    opacity: 0.9;
}
/* button container style */
.button {
    margin-top: 1vw;
}
/* button style */
button {
    border-radius: 15px;
    padding: 2%;
    width: 9vw;
    height: 2.5vw;
    font-size: 1vw;
    outline: none;
    border: none;
    background-color: #FF6701;
    color: #FFF7EF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
/* button hover animation */
button:hover {  
    animation: button_hover 0.2s ease-in 0s 1 normal both;
}
@keyframes button_hover {
    100% {
        background-color: #d15502;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    }

}
.ui_ux {
    grid-area: ui_ux;
    text-align: center;
    padding-top: 1vw;
}
/* UI/UX projects container style */
.ui_ux_projects_container {
    margin-top: 2.3vw;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1vw;
}
.graphic_design {
    grid-area: graphic_design;
    text-align: center;
    padding-top: 2vw;
}
/* graphic design projects container style */
.graphic_design_projects_container {
    margin-top: 2.3vw;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1vw;
}

@media screen and (max-width: 980px) {
    /* text style */
    h4 {
        font-size: 2.4vw;
    }
    p {
        font-size: 1.7vw;
    }
    /* Nav style */
    #logo_svg {
        width: 5.6vw;
        height: 5.6vw;
    }
    .logo {
        margin-right: 44vw;
    }
    ul li {
        font-size: 2.7vw;
    }
    /* moon icon */
    #moon_svg {
        width: 2.8vw;
        height: 2.8vw;
    }
    /* button style */
    button {
        font-size: 1.7vw;
        padding: 2%;
        width: 10vw;
        height: 3.9vw;
    }
    .button {
        margin-top: 3vw;
    }
    /* Title style */
    h2 {
        font-size: 2.7vw;
    }
    /* programming projects container style */
    .programming_projects_container {
        margin-top: 3.3vw;
        gap: 1vw;
    }
    /* content style */
    .content {
        margin-top: 5vw;
        margin-bottom: 7vw;
        gap: 4vw;
    }
}