/* ==== CONTENTS ==== */
/* 
    1. SHARED


*/

/* ==== 1. SHARED ==== */
:root {
    --black: #2b2b2b;
    --text-secondary: #425466;
    --red: #ea5353;
    --cyan: #45d3d3;
    --green: #45d366;
    --orange: #fcaf4a;
    --blue: #2466e5;
    --gradient: linear-gradient(45deg, #2466e5, #44e7ec, #549ef2);
}
html,
body {
    min-height: 100vh;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    display: flex;
    flex-direction: column;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    color: var(--blue);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}
button {
    color: gray;
    font-family: "Open Sans", sans-serif;
}
section {
    padding-right: 36px;
    padding-left: 36px;
}
section > h1 {
    font-size: 1.2rem;
    color: gray;
    font-weight: 700;
}

/* ==== 2. HEADER ==== */
#header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 76px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 36px;
}
/* ==== 2. Hero ==== */
.gradient {
    width: 100%;
    background-size: 300%;
    background-image: var(--gradient);
    animation: gradient-animation 7s infinite alternate;
    padding-bottom: 36px;
}

@keyframes gradient-animation {
    0% {
        background-position: left;
    }

    100% {
        background-position: right;
    }
}
#hero {
    display: flex;
    flex-direction: column;
    color: #fff;
    box-sizing: border-box;
}

#hero h1 {
    margin: 0;
    font-size: 50px;
    line-height: 58px;
    letter-spacing: -4px;
    color: #fff;
}

#hero p {
    font-size: 1.1rem;
    margin: 30px 0;
    font-weight: 500;
}

#hero .projects-button {
    background-color: var(--black);
    padding: 4px 12px 6px 16px;
    border-radius: 16px;
    color: #fff;
    margin-right: 16px;
}

#hero .contact-button {
    color: #fff;
}

/* ==== TECHNOLOGIES ==== */
#tech {
    padding-top: 18px;
    padding-bottom: 18px;
}
#tech img {
    width: 60px;
    height: 60px;
}
#tech ul {
    display: flex;
    flex-wrap: wrap;
}
#tech li {
    margin-right: 16px;
    margin-bottom: 8px;
}
#tech li:last-of-type {
    margin-right: 0;
}

/* ==== PROJECTS ==== */
#projects > ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 36px;
    row-gap: 36px;
    margin-bottom: 36px;
}

#projects .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#projects .img-container {
    position: relative;
}
#projects .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.06);
}
#projects .card img {
    width: 100%;
    height: 250px;
}

#projects .card .content {
    padding: 0 16px 16px 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}
#projects .content a {
    color: var(--blue);
    font-weight: 600;
    margin-right: 16px;
}
#projects .card .tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
#projects .card .tags li {
    background-color: lightgray;
    border-radius: 16px;
    padding: 4px 12px;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ==== 3. FOOTER ==== */

footer {
    padding: 32px;
    background-color: #e4e4e4;
    margin-top: 10px;
}
footer ul {
    display: flex;
    justify-content: center;
}
footer li {
    margin-right: 16px;
}
footer li:last-of-type {
    margin-right: 0;
}
footer img {
    height: 30px;
    width: 30px;
}
footer .email {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}
footer .email a {
    color: var(--black);
}

/* ==== 4. TYPOGRAPHY ==== */
.right-arrow {
    font-size: 1.2em;
    margin-left: 2px;
}

/* ==== 5. BUTTONS/ANCHORS ==== */

/* ==== MENU ==== */
#desktop-menu {
    display: none;
    text-transform: uppercase;
}
#desktop-menu li {
    margin-left: 24px;
}
#desktop-menu a {
    color: #fff;
}
#menu-open-button {
    border: none;
    background-color: #ffffff4f;
    padding: 8px 16px;
    border-radius: 16px;
    color: #fff;
}
#menu {
    position: absolute;
    width: 100%;
    max-width: 500px;
    right: 0;
}

#menu nav {
    position: relative;
    background-color: #fff;
    margin: 20px;
    border-radius: 8px;
    list-style: none;
    padding: 16px;
}

#menu ul {
    margin-top: 24px;
}

#menu li {
    padding: 5px;
    margin-bottom: 16px;
}
#menu a {
    color: var(--black);
    text-decoration: none;
    font-size: large;
}
#menu-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* ==== MEDIA QUERIES ==== */
@media (min-width: 961px) {
    main,
    #hero {
        width: 960px;
        margin: auto;
    }
    #menu-open-button {
        display: none;
    }
    #desktop-menu {
        display: flex;
    }
}
