/*
COLOR PALETTE

*/

/* GLOBAL STYLES
----------*/
html {
    box-sizing: border-box;
    font-size: 62.5%; /* set deafult to 10 px */
}

*, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

body {
    background: #f4edde;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.7rem;
    line-height: 1.4;
}

/* Basic styles for the navbar
----------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #222;
    /* Green background */
    color: papayawhip;
}

/* Logo styling
----------*/
.logo a {
    font-family: "Silkscreen", sans-serif;
    color: red;
    text-decoration: none;
    font-size: 24px;
}

/* Navigation links styling
----------*/
.nav-links {
    font-family: "Silkscreen", sans-serif;
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: red;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, text-decoration 0.3s, background-color 0.3s;
    padding: 5px 10px;
}

.nav-links a:hover,
.nav-links a.active {
    color: aquamarine;
    /* Lighter color for active/hover */
    background-color: black;
    /* black background on hover */
    border-radius: 4px;
    /* Optional: rounded corners */
}

/* Menu toggle button for mobile view */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 5px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: lightblue;
        /* lightblue background for mobile view */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }
}

h1, h2, h3 {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  margin: 0;
}
h1 {
    font-size: 7rem;
    line-height: 0.85;
}
h2 {
    font-size: 5rem;
}
h3 {
    font-size: 3rem;
}

/* links */
a {
    color: red;
}
a:hover {
    color: aquamarine;
    text-decoration: none;
}
footer a {
    color: red;
}
footer a:hover {
    color: aquamarine;
}
.btn {
    background: tan;
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.7rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.1em;
    line-height: 1;
    border-radius: 4px;
}

.content-wrapper {
    margin: 0 auto;
    padding: 30px;
    max-width: 900px;
}

/* HOME
----------*/
.home {
    background: url(../images/sprouttess.png) no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
}
.home .content-wrapper {
    flex: 1 0 auto;
}
.content-bg {
    background: rgb(255 255 255 / 0.9);
    padding: 30px;
}
@media screen and (max-width:650px) {
    .home .content-wrapper {
        padding: 10px;
    }
    .content-bg {
        padding: 20px;
    }
}

/* RESUME
----------*/
.resume header::before {
    background: url(../images/sprouttess.png) center;
    background-size: cover;
    content: "Dowloadable CV";
    display: block;
    height: 375px;
}
.resume-section {
    margin-bottom: 50px;
}
.resume-section h2 {
    border-bottom: 2px dashed black;
}
.download-link {
    position: fixed;
    top: 5px;
    left: 5px;
    font-size: 1.5rem;
}
@media screen and (max-width:1200px) {
    .download-link {
        position: absolute;
    }
}
@media screen and (max-width:500px) {
    .resume header::before {
        height: 200px;
    }
    h1 {
        font-size: 5rem;
    }
    h2 {
        font-size: 2.6rem;
    }
}

/* PROFILE
----------*/


/* PROJECTS
----------*/
.project-item {
    margin: 30px 0;
}
.project-item img, video {
    width: 300px;
}
@media screen and (min-width:860px) {
    .project-item {
        display: flow-root;
    }
    .project-item img,video {
    float: left;
    margin-right: 20px;
    }
} 
@media screen and (min-width:650px) and (max-width:859px) {
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }
    .project-item img {
        width: 10%;
    }
}
@media screen and (max-width:50px) {
    .project-item img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* WORK EXPERIENCE
----------*/
.work-item {
    margin: 30px 0;
}
.work-details p {
    margin: 0;
}
@media screen and (min-width:860px) {
    .work-item {
            display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 20px;
    }
    .work-summary p:first-child {
    margin: 0;
    }
}

/* EDUCATION
----------*/
.education-item {
    margin: 30px 0;
}
.education-item p {
    margin: 0;
}

/* FOOTER
----------*/
footer {
    background: #222;
    color: #d3d4d6;
    display: flex;
}
.socials {
    list-style-type: none;
    padding: 0;
}
.socials li {
    display: inline-block;
    margin-left: 10px;
}
.socials img {
    width: 32px;
}
.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width:860px) {
    footer {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }
}
@media screen and (max-width:859px) {
    footer {
        text-align: center;
        padding: 10px;
    }
}