
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
:root{
    --background:#fef6e4;
    --darkBg:#f3d2c1;
    --headline:#001858;
    --paragraph:#172c66;
    --button:#f582ae;
    --button-text:#001858;
    --blue:#8bd3dd;
    --card-purple:#A379FA;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Public Sans", sans-serif;
}
/* Nav Bar */
nav{
    width: 80vw;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    /* border: 1px solid red; */
    border-radius: 3rem;
    box-shadow: 5px 5px 0px var(--headline);
    background-color: var(--background);
}
nav ul{
    display: flex;
    align-items: center;
    justify-content: center;
}
nav ul li {
    list-style-type: none;
    margin-left: 1rem;
}
.mobileNavToggle{
    display: none;
}
@media screen and (max-width:500px) {
    nav ul {
        position: fixed;
        inset: 0 0 0 30%;
        z-index: 90;
        flex-direction: column;
        height: 100vh;
        width: 100%;
        padding-left: 2rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        backdrop-filter: blur(20px);
        transition: transform 350ms ease-in-out;
        color: var(--blue);
        background-color: var(--button);
        font-size: 2rem;
        font-weight: 800;
    }
    [data-visible="false"]{
        transform: translateX(100%);
    }
    [data-visible="true"]{
        transform: translateX(0%);
    }
    .mobileNavToggle{
        display: block;
        /* position: fixed;
        top: 3em;
        right: 5rem;
        width: 2rem; */
        z-index: 99;
    }
}
/* Hero Section */
.Hero-Section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80vw;
    height: 60vh;
    margin: 2rem auto;
}
.Hero-Section div h1{
    font-size: 4rem;
}
.Hero-Section div p{
    font-size: 2rem;
    margin-bottom: 2rem;
}
button{
    padding: 1rem 3rem;
    cursor: pointer;
    background-color: var(--button);
    color: var(--button-text);
    border: none;
    box-shadow: 5px 5px 0px black;
    border-radius: 1rem;
    font-size: 1.5rem;
    transition: box-shadow 0.2s;
}
button:hover {
    box-shadow: 0px 0px 0px black;
  }
.Hero-Image{
    width: 350px;
    border-radius: 50%;
    box-shadow: 5px 5px 0px var(--headline);
}
/* My Journey */
.My-Journey{
    width: 80vw;
    margin: 2rem auto;
}
.My-Journey h1{
    font-size: 2.5rem;
    margin-bottom: 2rem;
    transform: rotate(-3deg);
    width: max-content;
    background-color: var(--card-purple);
    padding: 1rem;
    border-radius: 0px 10px 10px 10px;
    position: relative;
    transition: transform 0.2s;
}
.My-Journey h1 u {
    text-decoration-style: wavy;
    text-decoration-color: var(--blue);
}
.My-Journey h1:hover{
    transform: rotate(0);
    cursor: pointer;
}
.Card-Container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}
@media screen and (max-width:1000px) {
    .My-Journey{
        width: 90vw;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .My-Projects{
        width: 90vw;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .Card-Container{
        grid-template-columns: repeat(2,1fr);
    }
    .card{
        transform: rotate(0);
    }
}
@media screen and (max-width:810px) {
    .Card-Container{
        grid-template-columns: repeat(1,1fr);
    }
    .My-Journey h1{
        transform: rotate(0); 
    }
    .My-Projects h1{
        transform: rotate(0) !important;
    }
    .card{
        transform: rotate(0) !important;
    }
}
@media screen and (max-width:600px) {
    .Hero-Section{
        flex-direction: column;
        height: max-content;
    }
    .Hero-Image{
        width: 200px;
        margin-top: 1rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
}
/* Card Design */
.card {
    width: 340px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    box-shadow:
      1px 1px #303030,
      2px 2px #303030,
      3px 3px #303030,
      4px 4px #303030,
      5px 5px #303030,
      6px 6px #303030,
      7px 7px #303030,
      8px 8px #303030,
      9px 9px #303030,
      10px 10px #303030;
      transform: rotate(-3deg);
      transition: transform 0.2s;
  }
  .card:hover{
    transform: rotate(0);
    cursor: pointer;
  }
  .card .header {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    background: #FFFFFF;
    padding: 10px 20px;
    border: solid #303030 3px;
  }
  
  .card .content {
    font-size: 16px;
    color: #FFFFFF;
    background: var(--card-purple);
    padding: 20px;
    border-right: solid #303030 3px;
    border-bottom: solid #303030 3px;
    border-left: solid #303030 3px;
  }
/* My Projects */
.My-Projects{
    width: 80vw;
    margin: 3rem auto;
}
.My-Projects h1{
    font-size: 2.5rem;
    margin-bottom: 2rem;
    transform: rotate(-3deg);
    width: max-content;
    background-color: var(--button);
    padding: 1rem;
    border-radius: 0px 10px 10px 10px;
    position: relative;
    transition: transform 0.2s;
}
.My-Projects h1:hover{
    transform: rotate(0);
    cursor: pointer;
}
.My-Projects h1 u {
    text-decoration-style: wavy;
    text-decoration-color: var(--blue);
}
.My-Projects .card .content{
    background:var(--button);
}
.My-Projects .card:hover{
    transform: rotate(0);
}
/* Footer */
footer{
    width: 100vw;
    height: 20vh;
    background-color: var(--card-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}
footer .footerContainer{
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: 400;
    font-size: 1.2rem;
}
footer .footerContainer .links{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 200px;
    font-size: 3rem;
}
footer .footerContainer .links a{
    color: white;
}