:root {
    --super-dark: hsl(212, 91%, 2%);
    --dark: hsl(212, 89%, 7%);
    --navy: hsl(215, 88%, 13%);
    --shade: hsl(206, 78%, 29%);
    --main: hsl(207, 84%, 52%);
    --light: hsl(213, 69%, 78%);

    --heading-font: 'a';
    --test: 45deg;
}

body {
    margin: 0px;
    background-color: var(--dark);
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 8rem;
}

h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    color: var(--light);
    margin: 0px;
}

h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    color: var(--light);
    margin: 1rem 0 0.5rem 0;
}

h5 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    color: var(--light);
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
}

p,
a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    color: var(--light);
}

input,
textarea,
button {
    width: 100%;
    min-width: 12rem;
    background-color: var(--shade);
    border: 2px solid var(--color);
    border-radius: 0.25rem;
    padding: 0.25rem;
    resize: none;
    color: var(--light);

    font-size: 1.2rem;
    font-family: Arial, Helvetica, sans-serif;
}

button {
    padding: 0.75rem;
    cursor: pointer;
}

textarea:focus,
input:focus {
    outline: none;
}

textarea {
    resize: vertical;
    /* Allows the user to resize the textarea vertically */
    min-height: 100px;
    /* Set a minimum height */
    width: 100%;
    /* Make the textarea take the full width */
}

canvas {
    width: 100%;
    height: 95vh;
    min-height: 520px;
    display: block;
}

/* General classes */
.section {
    background-color: var(--navy);
    height: auto;

    display: flex;
    justify-content: space-around;
    flex-direction: row;

    gap: 1.25rem;

    padding: 2rem 6rem;
    box-sizing: border-box;

    background-image: linear-gradient(to top left, var(--navy), var(--dark) 125%);
}

@media only screen and (max-width: 1200px) {
    .section {
        padding: 1rem 2rem !important;
        flex-direction: column;
    }
}

@media only screen and (max-width: 1200px) {
    .section>* {
        align-items: center;
    }
}

@media only screen and (max-width: 1200px) {
    .reverse-when-smol {
        flex-direction: column-reverse;
    }
}

.section.header {
    background-image: radial-gradient(circle, var(--dark) 20%, var(--navy) 150%);
    height: 95vh;
    min-height: 520px;
    padding: 8rem 2rem;
    background-color: blueviolet;
}

.section.header>* {
    z-index: 4;
    margin-bottom: 6rem;
}

.section.dark {
    background-image: linear-gradient(to bottom right, var(--dark), var(--super-dark) 125%);
}

.section.super-dark {
    background-image: none;
    background-color: var(--super-dark);
}

.section.centered {
    justify-content: center;
    align-items: center;
}

.section.vertical {
    flex-direction: column;
    height: fit-content;
}

.fit-to-content {
    height: fit-content;
}


.horizontal-column {
    /* Z index, that some things can apear behind the normal horizontal column */
    z-index: 5;
    flex: 1 1 0px;
    ;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 1200px) {
    .horizontal-column {
        width: 100%;
        padding: 0.5rem 1rem;
    }
}

.horizontal-column>* {
    max-width: 40rem;
}

.center {
    align-items: center;
    max-width: none;
}

.vertical-row {
    width: 100%;
    max-width: 90vw;

    display: flex;
    flex-direction: column;
}

.vertical-row.spread {
    height: 100%;
    justify-content: space-between;
}

.horizontal-box {
    margin-top: 0.75rem;
    display: flex;
    gap: 2rem;
}

@media only screen and (max-width: 600px) {
    .horizontal-box {
        flex-direction: column;
    }
}

.text-container {
    width: 80%;
    max-width: 40rem;
}

.text-container>* {
    color: var(--light);
}

.text-container>p {
    font-size: medium;
    margin: 0.125rem;
}

.text-container>h3 {
    font-size: larger;
    margin: 0rem;
    margin-bottom: 0.25rem;
    margin-top: 1.5rem;
}

.text-container>h1 {
    font-size: 3rem;
    margin: 0rem;
    margin-bottom: 3rem;
    margin-top: 0.25rem;
}



/* Button designs */
.main-button {
    background-image: linear-gradient(to top right, var(--shade), var(--main));
    transition: all 0.5s ease;
    background-size: 200%;
    background-position: bottom left;
    box-shadow: 0rem 0rem 0rem var(--main);

    color: var(--dark);
    font-weight: 600;
}

.main-button:hover {
    box-shadow: 0rem 0rem 0.6rem var(--main);
    background-position: top right;
}

.main-button:active {
    transform: scale(0.98);
}

.secondary-button {
    background-image: linear-gradient(to bottom right, var(--navy), var(--shade) 175%);
    transition: all 0.5s ease;
    background-size: 200%;
    background-position: bottom left;
    box-shadow: 0rem 0rem 0rem var(--navy);

    color: var(--light);
}

.secondary-button:hover {
    box-shadow: 0rem 0rem 0.6rem var(--navy);
    background-position: top right;
}

.secondary-button:active {
    transform: scale(0.98);
}


/* Inpage segments */
.icon {
    height: 16px;
    width: 16px;
    margin-right: 0.5rem;

    fill: var(--light);
}

.skill-showcase {
    background-image: linear-gradient(135deg, var(--navy), var(--shade));
    border: 2px solid var(--main);
    border-radius: 1rem;
    padding: 0.84rem 0.75rem;
    position: relative;
    overflow: hidden;
}

.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--main);
    background: rgba(255, 255, 255, 0.1);
}

.skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main);
    padding: 0.4rem;
    flex-shrink: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
}

.skill-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.skill-name {
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: var(--light);
    margin: 0;
    line-height: 1.2;
}

.skill-level {
    font-size: 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--main);
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Alternative floating badge style */
.skills-floating {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.skill-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--main);
    background: rgba(255, 255, 255, 0.1);
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-badge:hover::before {
    left: 100%;
}

.skill-badge .skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main);
    padding: 0.4rem;
}

.skill-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
}

.skill-badge .skill-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.skill-badge .skill-name {
    color: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

.skill-badge .skill-level {
    font-size: 0.75rem;
    color: var(--main);
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.text-center {
    text-align: center;
}


/* Footer */
.section.footer {
    height: fit-content;
    background-color: black;
    color: var(--light);
    padding: 2rem 0rem;
}

.section.footer.dark {
    background-color: var(--dark);
}

.section.footer.super-dark {
    background-color: var(--super-dark);
}

.footer-links {
    width: 90%;
    max-width: 40rem;
    display: flex;
    justify-content: space-around;
}

.footer-links>a {
    color: white;
    font-size: medium;
}

@media only screen and (max-width: 600px) {
    .footer-links {
        flex-direction: column;
    }
}



/* IDs */
#firstname {
    background-image: linear-gradient(to top right, var(--light), var(--main));
    letter-spacing: 0.35rem;
    margin: 0rem;
}

#lastname {
    background-image: linear-gradient(to bottom right, var(--shade), var(--main));
    margin: 0rem;
    margin-top: -4vh;
}

#firstname,
#lastname {
    filter: brightness(1.25) drop-shadow(0.25rem 0.5rem 1rem hsla(0, 0%, 0%, 0.4));
    /*text-shadow: 0.5rem 0.5rem red;*/

    font-weight: 800;
    font-size: 9cqw;
    color: transparent;
    background-clip: text;
    padding: 0px;
}

@media only screen and (max-width: 1200px) {

    #firstname,
    #lastname {
        font-size: 14cqw;
    }
}

@media only screen and (max-width: 600px) {

    #firstname,
    #lastname {
        font-size: 20cqw;
    }
}

#person-description {
    background-image: linear-gradient(to bottom right, var(--light), var(--main) 200%);
    filter: drop-shadow(0.0rem 0.0rem 2.0rem var(--super-dark)) drop-shadow(0.0rem 0.0rem 0.28rem var(--super-dark));
    font-size: 1.4rem;
    font-weight: 600;
    color: transparent;
    background-clip: text;
    margin-top: 3rem;
    padding: 0px;
}

#picture-of-myself {
    height: 1400px;
    width: 1400px;
    scale: 1.2;
    object-fit: cover;
    z-index: 1;
    display: none;
    /* Hide the original image since we're drawing it on canvas */
}

@media only screen and (max-width: 1200px) {
    #picture-of-myself-container {
        display: none;
    }
}

#contact-form {
    max-width: 26rem;
    width: 100%;
    padding-bottom: 1rem;
    justify-items: center;
    overflow: hidden;
}

#contact-form>p>input,
#contact-form>p>textarea,
#contact-form>p,
#contact-form>p>button {
    width: 100%;
    box-sizing: border-box;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--main), var(--shade));
    border: 2px solid var(--light);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInFromTop 0.5s ease-out;
    z-index: 1000;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-notification p {
    margin: 0;
    color: var(--super-dark);
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--super-dark);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: auto;
    min-width: auto;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
}

.toast-close:hover {
    color: var(--dark);
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutToTop {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media only screen and (max-width: 768px) {
    .toast-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}


#experimental-canvas {
    background-image: radial-gradient(circle, var(--dark) 20%, var(--navy) 150%);

    position: absolute;
    z-index: 3;
}

#bottom-right-information-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    max-width: 14rem;
    z-index: 6;

    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--dark);
    border: 0.16rem solid var(--navy);

    box-shadow: 0.3rem 0.3rem 0.5rem var(--super-dark);
}

#bottom-right-information-container>p {
    margin: 0px;
    padding: 0px;
    font-size: 1.1rem;
    text-align: end;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

@media only screen and (max-width: 900px) {
    .skills-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.skill-category h5 {
    color: var(--main);
    margin-bottom: 0.5rem;
}

/* Projects & Work Section */
.section.projects-work {
    background-image: linear-gradient(to bottom left, var(--navy), var(--dark) 125%);
    padding: 4rem 4rem;
    min-height: 600px;
    height: auto;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 80rem;
}

@media only screen and (max-width: 1200px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.project-category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-category h4 {
    color: var(--main);
    border-bottom: 2px solid var(--shade);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-image: linear-gradient(to bottom right, var(--shade), var(--navy) 150%);
    border-radius: 1rem;
    border: 1px solid var(--dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--main);
}

.project-item.active {
    border-color: var(--main);
    background-image: linear-gradient(to bottom right, var(--main), var(--shade) 150%);
}

.project-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--light), var(--main));
}

.project-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.project-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-details h5 {
    margin: 0;
    color: var(--light);
    font-size: 1.3rem;
}

.project-item.active .project-details h5 {
    color: var(--dark);
    font-weight: 700;
}

.project-details p {
    margin: 0;
    color: var(--light);
    opacity: 0.9;
    line-height: 1.4;
    font-size: 1rem;
}

.project-item.active .project-details p {
    color: var(--super-dark);
    opacity: 0.8;
}

.project-status {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background-color: var(--dark);
    color: var(--light);
    border-radius: 1rem;
    font-size: 0.85rem;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    margin-top: 0.5rem;
}

.project-status.active {
    background-color: var(--light);
    color: var(--dark);
}

@media only screen and (max-width: 768px) {
    .project-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .project-icon {
        align-self: center;
    }
}