* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: "Amsterdam4";
    src: url(fonts/amsterdam-four.ttf)
}

.amsterdam4 {
    font-family: Amsterdam4;
    font-weight: 300;
}

:root {
    --c-bg: #fff;
    --c-font: #000;
    --c-wave: #ecebe8;
    --c-shadow: rgba(0, 0, 0, 0.2);
    --c-primary: #f3f3f3;
    --c-primary-dark: #e3e3e3;
    --c-secondary: #e3e1d9;
    --c-tertiary: rgb(0, 142, 97);
    --c-item: rgb(227, 227, 227);
    --c-item-dark: rgb(122, 122, 122);

    --c-tag: 89, 235, 150;
    --c-advanced: rgb(89, 235, 150);
    --c-proficient: rgb(168, 243, 189);
    --c-experienced: rgb(205, 238, 212);
    --c-link: rgb(98, 100, 100);
}

.dark {
    --c-bg: #121212;
    --c-font: #e7e7e7;
    --c-wave: #252525;
    --c-shadow: rgba(0, 0, 0, 1);
    --c-primary: #232323;
    --c-primary-dark: #333;
    --c-secondary: #333;
    --c-tertiary: rgb(6, 223, 114);
    --c-item: #444;
    --c-item-dark: #777;

    --c-tag: 0, 115, 75;
    --c-advanced: rgb(6, 223, 93);
    --c-proficient: rgb(3, 170, 80);
    --c-experienced: rgb(0, 115, 75);
    --c-link: #aaa;
}

body {
    background-color: var(--c-bg);
    color: var(--c-font);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 24px;

    margin: 0;
    padding: 0;
    cursor: default;
}

main {
    background-color: var(--c-bg);
    border-radius: inherit;
}

#wavepush {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

p,
h3 {
    margin: 0;
    padding: 0;
}


/* ---------- SCROLLBAR ------------------------------------------------------------ */
::-webkit-scrollbar {
    width: 15px;
    background-color: var(--c-item);
    border-left: 1px solid rgba(0, 0, 0, .2);
}

::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--c-item-dark) 60%, transparent);
    border-left: 1px solid rgba(0, 0, 0, .2);
    border-radius: 15px;

}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--c-item-dark);
    cursor: pointer;
}


/* ---------- GENERAL STYLING ------------------------------------------------------------ */
.p-full {
    padding: 60px 10px;
}

.p-bottom {
    padding-bottom: 60px;
}

.p-top {
    padding-top: 60px;
}

.uppercase {
    text-transform: uppercase;
}

.font-500 {
    /* Medium */
    font-weight: 500;
}

.font-smaller {
    font-size: smaller;
}

.text-right {
    text-align: right;
}

.width-full {
    width: 100%;
}

.flex {
    display: flex;
}

.mobile-flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.align-end {
    align-items: end;
}

.centered {
    text-align: center;
    display: flex;
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-5 {
    padding-top: 5px;
}

.pt-10 {
    padding-top: 10px;
}

.m-5 {
    margin: 5px;
}

.mobile-h-0 {
    height: 0;
}

.dark .dark-logo-light-border {
    background: var(--c-item);
    border-radius: 2px;
    padding: 1.5px;
}

body:not(.dark) .light-logo-border,
.dark .dark-logo-border {
    background: var(--c-primary);
    border-radius: 1px;
    transform: scale(1.25);
    padding: 0.5px;
    aspect-ratio: 1/1;
}


/* ---------- TAGS ------------------------------------------------------------ */
.tag-list {
    padding: 10px 0 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 5px 10px;
}

.tag {
    background-color: rgba(var(--c-tag), 1);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: smaller;
}

.tag-logo {
    width: 10px;
    max-height: 15px;
    margin-right: 5px;
}

.tag-advanced {
    background-color: var(--c-advanced);
    border-radius: 20px;
}

.tag-proficient {
    background-color: var(--c-proficient);
    border-radius: 20px;
}

.tag-experienced {
    background-color: var(--c-experienced);
    border-radius: 20px;
}

.skills-tag {
    background-color: var(--c-primary);
    height: 100%;
    width: 95%;
    margin-left: -1px;
    display: flex;
    align-items: center;
    padding: 3px 20px 3px 10px;
    border-radius: inherit;
}

.proj-tag-list {
    padding-top: 15px;
    gap: 5px;
    justify-content: left;
}

.proj-tag {
    padding: 1px 8px;
    line-height: normal;
}


/* ---------- THEME TOGGLE ------------------------------------------------------------ */
#theme-toggle {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}

/* Hide checkbox */
#theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
#theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--c-primary);
    border: 1px solid var(--c-font);
    border-radius: 30px;
    transition: .4s;
}

/* Slider's circle component */
#theme-toggle-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 4px;
    bottom: 3px;
    border: 2px solid var(--c-font);
    transition: .4s;
    border-radius: 50%;
}

/* On click */
input:checked+#theme-toggle-slider:before {
    transform: translateX(26px);
}


/* ---------- HEADER ------------------------------------------------------------ */
header {
    background-color: var(--c-bg);
    height: 50px;
    align-content: center;
    box-shadow: 0 5px 10px var(--c-shadow);
    z-index: 5;
    position: fixed;
    width: 100%;
}

.header-top {
    padding: 0 20px;
    flex-wrap: wrap;
    align-items: end;
}

#header-text {
    font-size: 200%;
    font-weight: 300;
    text-decoration: none;
    color: var(--c-font);
}


/* ---------- NAV ------------------------------------------------------------ */
nav {
    background-color: var(--c-primary);
    border-right: 1px solid var(--c-font);
    position: fixed;
    /* Start's under the header */
    top: 50px;
    /* Nav positioning "left: -300px" initialized in js */
    height: 100%;
    transition: left 0.2s ease-out;
    z-index: 4;

    ul {
        padding: 0 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    ul li {
        list-style-type: none;
        letter-spacing: 0.5px;
    }

    ul li:hover {
        font-weight: 500;
        letter-spacing: 0.4px;
    }

    ul li a {
        display: block;
        color: var(--c-font);
        text-decoration: none;
        padding-left: 15px;
        padding-right: 45px;
        padding-top: 20px;
        padding-bottom: 0;
        border-bottom: 1px solid var(--c-font);
    }

}

#hamburger {
    font-size: 25px;
    align-self: center;
    margin-right: 20px;
    cursor: pointer;
}


/* ---------- HERO ------------------------------------------------------------ */
.hero {
    padding: 50px 30px 0 30px;
    height: 45vh;
    min-height: 300px;
    max-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-main {
    height: 80vh;
    min-height: 400px;
    max-height: 500px;
}

#hero-text {
    line-height: normal;

    #hero-name {
        display: grid;
        width: fit-content;
        margin: auto;
        grid-template-areas:
            "first ."
            ". last"
        ;

        #firstname {
            font-size: 150%;
            font-weight: 400;
            grid-area: first;
            z-index: 3;
        }

        #lastname {
            font-size: 200%;
            grid-area: last;
            z-index: 3;
        }
    }

    #hero-small-text {
        margin: 0;
        text-align: center;
        font-size: small;
    }

    p {
        font-size: small;
    }

    svg {
        height: 20px;
    }
}

#hero-underline {
    height: 0;
    width: 100%;
}

#hero-underline::after {
    display: block;
    transform: translateY(-26px);
    content: "";
    width: 90%;
    margin: auto;
    height: 20px;
    background-color: rgb(var(--c-tag));
}

.pagename {
    /* Matches hero-underline */
    width: 250px;
    text-align: center;

    position: relative;
    margin-bottom: 20px;
    font-size: 200%;
    font-weight: 400;
    z-index: 3;
}

.pagename+#hero-underline::after {
    width: 250px;
    margin: auto;
}


/* ---------- SECTIONS (GENERAL) ------------------------------------------------------------ */
.see-all {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    text-decoration: none;
    color: var(--c-link);
    transition: all 0.3s ease;
}

.see-all:hover {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.prim-bg {
    background-color: var(--c-primary);
}

.sec-bg {
    background-color: var(--c-secondary);
}

.box-item {
    padding: 10px;
    margin-bottom: 10px;
    background-color: var(--c-primary);
    border-radius: 5px;
    box-shadow: 0px 3px 10px var(--c-shadow);

    a {
        text-decoration: none;
        color: var(--c-font);
    }
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
    gap: 20px;

    h3 {
        text-align: center;
    }
}

.split-divider {
    background-color: var(--c-font);
}

.slide-in {
    opacity: 0;
    translate: -50%;
    transition-property: translate, opacity;
    transition-duration: 800ms;
    transition-timing-function: ease-out;
    transition-delay: 200ms;
}

.slide-up {
    opacity: 0;
    transform: scale(1.1);
    transition-property: transform, opacity;
    transition-duration: 600ms;
    transition-timing-function: ease-out;
    transition-delay: 200ms;
}

.click-in.left-click {
    opacity: 0;
    translate: -100px;
    transition-property: translate, opacity;
    transition-duration: 600ms;
}

.click-in.right-click {
    opacity: 0;
    translate: 100px;
    transition-property: translate, opacity;
    transition-duration: 600ms;
}

.slide-in.show,
.slide-up.show,
.click-in.show {
    opacity: 1;
    translate: 0px;
    transform: scale(1);
}

.slide-in-overflow {
    overflow: hidden;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.wave-in {
    animation: bounce 600ms;
}

@keyframes bounce {

    0%,
    100% {
        transform: none;
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-25px);
        animation-timing-function: ease-in;
    }

    90% {
        transform: translateY(5px);
        animation-timing-function: ease-in;
    }
}


/* ---------- ABOUT SECTION ------------------------------------------------------------ */
#jump-to-about {
    position: absolute;
    transform: translateY(-100px);
}

#about-section {
    width: 100%;
    margin: auto;
    margin-bottom: 40px;
    flex-direction: column;

    p {
        margin-bottom: 20px;
    }
}

#headshot-img {
    min-height: 200px;
    background-image: url(images/headshot.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.about-button {
    width: 100%;
    color: var(--c-bg);
    background-color: var(--c-tertiary);
    font-size: smaller;
    text-decoration: none;
    border-radius: 5px;
    letter-spacing: 0.4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;

    /* Left padding +20px for svg width and +5px for spacing */
    padding: 10px 15px 10px 40px;

    svg {
        position: absolute;
        /* Move left -20px for svg width and -5px for spacing */
        transform: translateX(-25px);
        height: 20px;
        width: 20px;
    }
}

.about-button:hover {
    transform: scale(1.05);
    font-weight: 500;
    box-shadow: 0 4px 8px var(--c-shadow);
}

.about-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg,
            transparent,
            transparent 30%,
            rgba(255, 255, 255, 0.3));
    transform: rotate(-45deg);
    /* shine */
    transition: all 0.5s ease;
    opacity: 0;
}

.about-button:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}


/* ---------- SKILLS SECTION ------------------------------------------------------------ */
#skills-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 30px;
}

.skills-tag-example {
    width: 150px;
    font-size: small;

    .skills-tag {
        display: block;
        padding: 3px 10px;
    }
}

.skills-box {
    border: 2px solid var(--c-primary);
    padding: 20px;
    width: 100%;

    p {
        border-bottom: 2px solid var(--c-primary);
    }

    ul {
        padding: 0;
    }

    li {
        height: 35px;
        margin: 5px 0;
        display: flex;
        align-items: center;
    }

}

.skills-logo {
    width: 20px;
    height: -webkit-fill-available;
    max-height: 20px;
    margin-right: 10px;
}


/* ---------- EXPERIENCE SECTION ------------------------------------------------------------ */
#experience {
    padding-bottom: 60px;
}

.click-open-btn {
    display: none;
}

.click-open-content {
    overflow: hidden;
    padding: 10px;
    margin-bottom: 20px;
    background-color: var(--c-primary);
    box-shadow: 0px 5px 10px -2px var(--c-shadow);
    border-radius: 5px;

    ul {
        padding-left: 20px;
        margin-bottom: 0;
    }
}

.job-logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 5px;
}

.position {
    padding: 5px;
    background-color: var(--c-primary-dark);
    border-radius: 5px;
}

#awards {
    justify-content: center;

    svg {
        width: 200px;
        height: 200px;
    }

    path {
        fill: transparent;
    }

    textPath {
        fill: var(--c-font);
        font-size: 8px;
    }
}

.award {
    width: 200px;
    padding-top: 9px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--c-primary);
    box-shadow: 0px 3px 10px 2px var(--c-shadow);
}

.gold-award {
    border: 1px solid gold;
}

.award-center {
    position: absolute;
    transform: translateX(60px) translateY(50px);
    width: 80px;
    height: 80px;

    img {
        width: inherit;
        height: inherit;
        border-radius: 5px;
        cursor: pointer;
    }

    img:hover~p,
    p:hover {
        opacity: 1;
    }

    p {
        opacity: 0;
        width: 200px;
        padding: 5px 10px;
        transform: translateX(-60px);
        background-color: var(--c-primary-dark);
        border-radius: 2px;
        font-weight: 500;
        text-align: center;
        transition: all 0.2s ease;
        box-shadow: 0px 2px 5px var(--c-shadow);
    }

    p::before {
        /* The point */
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        /* Y: height of border -1 for overlap */
        transform: translateX(80px) translateY(-19px);
        /* At least 3 sides must "appear" */
        border-bottom: 20px solid var(--c-primary-dark);
        border-right: 20px solid transparent;
        border-left: 20px solid transparent;
    }
}


/* ---------- PROJECTS SECTION ------------------------------------------------------------ */
/* On the index page */
.proj-text-bg {
    background-color: color-mix(in srgb, var(--c-primary) 70%, transparent);
    border-radius: 5px;
    padding: 5px;
    /* display: inline; */
    /* box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-primary) 70%, transparent); */
    /* box-decoration-break: clone; */
}

#proj-bg-1 {
    background: linear-gradient(to right, var(--c-primary) 40%, color-mix(in srgb, var(--c-primary) 70%, transparent) 70%, rgba(0, 0, 0, 0)), url(images/proj1.png) no-repeat right;
    background-color: var(--c-primary);
    background-size: cover;
}

#proj-bg-4 {
    background: linear-gradient(to right, var(--c-primary) 40%, color-mix(in srgb, var(--c-primary) 70%, transparent) 70%, rgba(0, 0, 0, 0)), url(images/proj4.png) no-repeat left;
    background-color: var(--c-primary);
    background-size: cover;
}

/* On the projects page */
/* 
    Modified code from
    Author: Gopi Chakradhar https://gopichakradhar.me/
    URL: https://freefrontend.com/javascript-carousels/
*/
.carousel-track {
    display: block;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 30px auto;
    height: auto;

    background-color: var(--c-primary);
    border-radius: 5px;
    box-shadow: 0 20px 40px var(--c-shadow);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.card-text {
    padding: 15px 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: medium;

    img {
        width: 25px;
        height: 25px;
    }

    a {
        width: 25px;
        height: 25px;

        /* figma svg */
        >svg {
            fill: var(--c-primary);
            width: 100%;

            >circle {
                fill: var(--c-font);
            }
        }
        
        /* typical svg' */
        >svg:not(:has(>circle)) {
            fill: var(--c-font);
            width: 100%;
        }

    }
}

.carousel-dots {
    display: none;
}

.nav-arrow {
    display: none;
}


/* ---------- CONTACT SECTION ------------------------------------------------------------ */
#jump-to-contact {
    position: absolute;
    transform: translateY(-50px);
}

#contact-items {
    gap: 5px;
}

.contact-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 75px;
    height: 75px;
    padding: 10px;
    margin-top: 20px;
    font-size: x-small;

    background-color: var(--c-tertiary);
    color: var(--c-bg);
    text-decoration: none;
    border-radius: 5px;
    line-height: normal;
    overflow: hidden;

    svg {
        height: 30px;
    }

    .contact-link {
        display: none;
        font-size: 11px;
    }
}

.contact-button {
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

form {
    width: 100%;
    padding: 5px 20px 20px;
    background-color: var(--c-bg);
    border: 1px solid var(--c-item-dark);
    box-shadow: 1px 5px 15px var(--c-shadow);

    display: grid;
    grid-template-rows: 55px 55px 180px 40px;
    grid-template-areas:
        "ni"
        "ci"
        "mi"
        "s"
    ;
    gap: 10px;

    ::placeholder {
        color: var(--c-link);
    }
}

input {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    color: var(--c-font);
    background-color: inherit;
    border: none;
    border-bottom: 1px solid var(--c-item-dark);
    outline: none;
}

textarea {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 5px;
    color: var(--c-font);
    background-color: var(--c-bg);
    border: 1px solid var(--c-item-dark);
    outline: none;
    resize: none;
}

#msg-name,
#msg-contact {
    padding-top: 20px;
}

#msg-message {
    height: 120px;
    width: 100%;
    margin: auto;
    grid-area: mi;
}

#msg-submit {
    grid-area: s;
    height: 40px;

    background-color: var(--c-item);
    color: var(--c-font);
    border: 1px solid var(--c-item-dark);
    cursor: pointer;
}


/* ---------- FOOTER ------------------------------------------------------------ */
footer {
    padding: 20px;
    font-size: smaller;
    text-align: center;
    background-color: var(--c-secondary);
    box-shadow: 0 -2px 15px var(--c-shadow);
    z-index: 3;
}


/* ---------- RESPONSIVENESS ------------------------------------------------------------ */
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .p-full {
        padding: 60px 30px;
    }

    .mobile-flex-column {
        flex-direction: row;
    }

    .hero {
        max-height: 400px;
    }

    #hero-main {
        max-height: 900px;
    }

    #hero-text {
        #hero-name {
            #firstname {
                font-size: 200%;
            }

            #lastname {
                font-size: 300%;
            }
        }

        #hero-small-text,
        p {
            font-size: medium;
        }
    }

    #hero-underline::after {
        transform: translateY(-42px);
        height: 30px;
    }

    #about-section {
        flex-direction: row;

        p {
            margin-bottom: 0;
        }
    }

    #headshot-img {
        min-width: 200px;
        min-height: 100%;
        background-size: cover;
    }

    .about-button {
        margin-top: 30px;
        margin-bottom: 10px;
        width: max-content;
    }

    .see-all {
        display: block;
    }

    .split h3 {
        text-align: right;
    }

    #contact-items {
        gap: 20px;
    }

    form {
        grid-template-rows: 55px 120px 40px;
        grid-template-areas:
            "ni ci"
            "mi mi"
            ". s"
        ;
        gap: 40px;
    }

    .skills-tag-example {
        font-size: medium;
    }

    #skills-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-box {
        li {
            height: 25px;
            font-size: x-small;
        }
    }

    .skills-logo {
        width: 20px;
        max-height: 20px;
    }

    /* Projects Carousel main styling */
    .carousel-track {
        display: flex;
        justify-content: center;
        align-items: center;
        /* An exact height */
        height: 600px;
        perspective: 1000px;
    }

    .card {
        position: absolute;
        flex-direction: row;
        margin: 0;
        height: 335px;
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .card img {
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        width: 200px;
        height: 100%;
    }

    .card-text {
        font-size: small;
        line-height: 18px;
    }

    .card.center {
        z-index: 3;
        transform: scale(1.1) translateZ(0);
    }

    .card.center img {
        filter: none;
    }

    .card.up-2 {
        z-index: 1;
        transform: translateY(-260px) scale(0.8) translateZ(-300px);
        opacity: 0.7;
    }

    .card.up-2 img {
        filter: grayscale(100%);
    }

    .card.up-1 {
        z-index: 2;
        transform: translateY(-150px) scale(0.9) translateZ(-100px);
        opacity: 0.9;
    }

    .card.up-1 img {
        filter: grayscale(70%);
    }

    .card.down-1 {
        z-index: 2;
        transform: translateY(150px) scale(0.9) translateZ(-100px);
        opacity: 0.9;
    }

    .card.down-1 img {
        filter: grayscale(70%);
    }

    .card.down-2 {
        z-index: 1;
        transform: translateY(260px) scale(0.8) translateZ(-300px);
        opacity: 0.7;
    }

    .card.down-2 img {
        filter: grayscale(100%);
    }

    .card.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--c-item);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: var(--c-item-dark);
        transform: scale(1.2);
    }

    .nav-arrow {
        display: inline;
        position: absolute;
        background-color: var(--c-item);
        color: var(--c-font);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 4;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 0 10px 3px var(--c-shadow);
        outline: none;
    }

    .nav-arrow img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        transition: all 0.3s ease;
    }

    .nav-arrow:hover img {
        transform: scale(1.1);
    }

    .nav-arrow.up {
        transform: translateY(-225px);
    }

    .nav-arrow.down {
        transform: translateY(225px);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .mobile-h-0 {
        height: auto;
    }

    nav {
        background-color: rgba(0, 0, 0, 0);
        border-right: none;
        position: relative;
        top: 0;

        margin-top: 0;
        padding-top: 0;

        ul {
            display: flex;
            padding: 0;
            margin: 0;
            gap: 10px;
        }

        ul li a {
            /* Match the font size */
            line-height: 15px;
            padding: 0;
            border-bottom: none;
            font-size: smaller;
        }

    }

    #hamburger {
        display: none;
    }

    #about-section {
        width: 80%;
    }

    .split {
        grid-template-columns: 1fr 1px 2fr;
        grid-template-rows: 1fr;
    }

    #skills-section {
        grid-template-columns: repeat(3, 1fr);
    }

    #experience {
        padding-bottom: 0;

        h3 {
            margin-bottom: 20px;
        }

        .split {
            gap: 0;
        }

        .click-open-btn {
            display: flex;
            cursor: pointer;
        }
    }

    #additional {
        h3 {
            margin-bottom: 20px;
        }

        .click-open-btn {
            display: block;
            cursor: pointer;
        }
    }

    .click-open-content {
        padding: 0;
        height: 0;
        margin-bottom: 0;
    }

    .carousel-track {
        /* An exact height */
        height: 680px;
    }

    .card {
        width: 600px;
        height: 400px;
    }

    .card-text {
        font-size: medium;
        line-height: inherit;
    }

    .card.up-2 {
        transform: translateY(-280px) scale(0.8) translateZ(-300px);
    }

    .card.up-1 {
        transform: translateY(-150px) scale(0.9) translateZ(-100px);
    }

    .card.down-1 {
        transform: translateY(150px) scale(0.9) translateZ(-100px);
    }

    .card.down-2 {
        transform: translateY(280px) scale(0.8) translateZ(-300px);
    }

    .nav-arrow.up {
        transform: translateX(-350px);
    }

    .nav-arrow.down {
        transform: translateX(350px);
    }

    .contact-box {
        font-size: medium;
        width: 175px;
        height: 100px;
        margin-top: 40px;

        .contact-link {
            display: block;
        }
    }

    form {
        width: 70%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    nav ul {
        gap: 30px;
    }

    nav ul li a {
        font-size: medium;
    }

    .skills-box {
        li {
            height: 35px;
            font-size: medium;
        }
    }

    .skills-logo {
        width: 30px;
        max-height: 30px;
    }

    .nav-arrow {
        width: 80px;
        height: 80px;
        box-shadow: none;
    }

    .nav-arrow img {
        width: 40px;
        height: 40px;
    }

    .nav-arrow.up {
        transform: translateX(-360px);
    }

    .nav-arrow.down {
        transform: translateX(360px);
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #wrapper {
        width: 1200px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10em;
        /* Round the shadow */
        border-radius: 5px;
        box-shadow: 0 7px 10px 5px var(--c-shadow);

        /* Round the bottom */
        footer {
            border-radius: 0 0 5px 5px;
            box-shadow: none;
        }
    }
}