@import url(normalizeAndReset.css);
@import url(settings.css);


/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;

    padding: var(--spacing-s) 0;
}

header .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

header a {
    display: block;
}

header .logo {

    /* @TODO Set a relative scale*/
    height: 100px;
    width: 100px;
}

/* NAV */

.nav-button div {
    display: block;
    height: 5px;
    width: 40px;

    margin: 0 0 5px;

    background-color: var(--color-accent);

    transition: all 0.2s ease;
}

.nav-button:hover {
    opacity: 0.8;
    cursor: pointer;
}

.active div {
    background-color: var(--color-black);
}

.active div:first-child {
    transform: translateY(200%) rotateZ(45deg);
}

.active div:nth-child(2) {
    opacity: 0;
}

.active div:last-child {
    transform: translateY(-200%) rotateZ(-45deg);
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;

    z-index: 50;

    
}

nav .bg {
    display: block;
    
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -10;

    height: 100vh;
    width: 425px;

    background-color: var(--color-accent);

    transition: transform 0.2s ease-in;
    transform: translateX(100%);
    /*animation: slide-bounce 0.4s linear backwards;*/
    /* animation: slide-bounce 0.4s linear reverse; */

}

.nav-is-active .bg {
    transform: translateX(0);

    /* animation: slide-bounce 0.4s linear forwards; */
}

nav .wrapper {
    height: 100%;
}

nav ul {
    display: flex;
    flex-direction: column;
    padding-top: 110px;

    text-align: right;

    opacity: 0;

    transition: all 0.3s ease;
    transform: translateX(20%);
}

.nav-is-active ul {
    opacity: 1;

    transform: translateX(0);
}

nav li {
    margin: var(--spacing-s) 0 0;
}


/* HERO */

.hero, .sct {
    height: 100vh;
}

.hero .wrapper, .sct .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 100%;
}

.hero img {
    display: block;

    height: 50%;
    width: 50%;
}

.hero h3 {
    font-style: italic;
    margin-top: var(--spacing-s);
}

.tagline {
    color: var(--color-text-secondary);
    margin-top: var(--spacing-s);
}

/* SECTIONS */

.sct {
    text-align: center;
}

.sct h2 {
    position: relative;
}

.sct .line {
    display: block;
    height: 5px;
    width: 120%;

    position: relative;
    right: 10%;

    margin: 0 0 5px;

    background-color: var(--color-white);
}

.row-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sct .summary {
    width: 30%;
    text-align: left;
}

.sct .summary p {
    font-size: var(--font-size-summary-desktop);
    margin: var(--spacing-s) 0;
}

.sct .summary li div:not(.box){
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    width: 100%;
}

.sct .summary li p {
    margin: 0;
}

.sct .summary li {
    margin-top: var(--spacing-s);
}

.sct .summary .box {
    width: 40%;

    margin: var(--spacing-xs) 0 0;
}

.sct .projects {
    width: 65%;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
}

/* PROJECTS */

.card {
    width: 300px;
    height: 520px;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content:end;

    border-radius: 20px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* border: solid 3px var(--color-accent);
    padding: 8px; */

    

    /*TEMP*/
    background-color: green;
}

.card_bottom {
    /*background-color: var(--color-accent);*/
    background: linear-gradient(180deg, rgba(8,8,8,0), rgba(8,8,8,0.8), rgba(8,8,8,0.8), rgba(8,8,8,1));
    border-radius: 0 0 20px 20px;

    padding: 17px;
    /* height: 30%; */
}

.card_border {
    position: absolute;
    top: -8px;
    bottom: -8px;
    right: -8px;
    left: -8px;

    border: solid 3px var(--color-accent);
    border-radius: 24px;
}



/* BOX CATEGORIES*/
.box {
    text-align: center;

    background-color: var(--color-accent);
    border-radius: 4.1px 4.1px 14.6px 4.1px;

    padding: var(--spacing-xs);

}

.summary .box p {
    font-size: var(--font-size-content-desktop);
    font-weight: bold;

    color: var(--color-black);

    margin: 0;
}

/* ANIMATION */

@keyframes slide-bounce {
    70% {transform: translateX(0);}
    85% {transform: translateX(20%);}
    100% {transform: translateX(0);}
}