:root {
    --other-background: #f8f8f8;
    --gradient: linear-gradient(90deg, oklch(60% 0.118 184.704), oklch(59.6% 0.145 163.225));
    --very-light-gray: oklch(0.922 0 0);
    --sub-gray: oklch(44.6% 0.03 256.802)
}

:target {
    scroll-margin-top: 70px;
}

html {
    scroll-behavior: smooth;
}

.gradient-background {
    background-image: var(--gradient);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-background-section {
    background-image: var(--gradient);
    color: white;
}

.gradient-background-section .sub-title {
    color: white;
}

.sub-title {
    font-size: 1.5em;
    color: var(--sub-gray);
    flex: none;
    max-width: 80%;
}

.intro {
    font-size: 4em;
    min-width: 420px;
    flex: none;
}

.h2 {
    font-size: 3em;
    font-weight: bold;
}

.personal-photo-new {
    display: flex;
    justify-content: center;
    align-items: center;
}

.personal-photo-new img {
    border-radius: 50%;
    width: 20em;
}

.column-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.row-wrap {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 90%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 5%;
}

.row-wrap * {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
}

.row-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.row-buttons * {
    flex: 0 0 auto;
}

.other-background {
    background-color: var(--other-background);
}

header {
    position: fixed;
    padding: 15px 20px;
    background: white;
    width: 100%;
    z-index: 2;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.5s linear;
    border-bottom: 1px solid var(--very-light-gray);
}

header .header-main {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: 5%;
    width: 200px;
}

.header-menu {
    margin-right: 5%;
}
.header-menu a {
    color: var(--sub-gray);
    padding: 0px 10px;
    transition: color 0.1s linear;
}
.header-menu *:hover {
    color: oklch(60% 0.118 184.704);
}

.header-menu-mobile {
    display: none;
    cursor: pointer;
    padding: 0px 20px;
}

.header-dropdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.25em;
    position: relative;
    margin-bottom: 10px;
}
.header-dropdown a {
    color: var(--sub-gray);
    padding: 0px 10px;
    transition: color 0.1s linear;
    margin-left: 5%;
}
.header-dropdown *:hover {
    color: oklch(60% 0.118 184.704);
}

.header-dropdown::before {
    content: "";
    width: 95%;
    height: 1px;
    background-color: var(--very-light-gray);
    z-index: 10;
    margin-top: 20px;
    margin-bottom: 10px;
}

#standard-menu {
    display: block;
}

.initials {
    font-weight: bold;
    color: white;
    background-color: oklch(0.7 0.16 164.01);
    padding: 10px;
    border-radius: 100%;
}

.header-name {
    font-weight: bold;
}

button {
    outline: none;
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: var(--very-light-gray) 1px solid;
    font-weight: 500;
    box-shadow: 1px 2px 2px var(--very-light-gray);
    transform: none;
    transition: transform 0.2s linear, box-shadow 0.2s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: black;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 2px 4px 4px oklch(88.837% 0.0001 271.152);
    cursor: pointer;
}

button span {
    text-wrap: nowrap;
}

.gradient-button {
    background-image: linear-gradient(90deg, oklch(60% 0.118 184.704), oklch(59.6% 0.145 163.225), oklch(60% 0.118 184.704));
    /* background-image: linear-gradient(270deg, red, green, red); */
    background-size: 200% 100%;
    color: white;
}

.gradient-button:hover {
    animation: background-move 5s linear infinite;
}

#panels {
    width: 100% !important;
    gap: 0px;
}

.card {
    position: relative;
    width: 80%;
    padding: 20px 30px;
    text-align: left;
    
    border-top: 1px solid var(--very-light-gray);
    border-bottom: 1px solid var(--very-light-gray);
    border-right: 1px solid var(--very-light-gray);
    
    border-radius: 10px;

    box-shadow: 0px 1px 1px oklch(88.837% 0.0001 271.152);

    transition: box-shadow 0.1s linear;

    background-color: white;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 8px; /* border thickness */
    background: var(--gradient); /* gradient left edge */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;    
}

.card:hover {
    box-shadow: 2px 4px 4px oklch(88.837% 0.0001 271.152);
}

.card-title {
    font-weight: bold;
    font-size: 1.25em;
}

.card-place {
    background-image: var(--gradient);
    background-clip: text;
    font-size: 1.1em;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.card-desc {
    color: var(--sub-gray)
}

.card-status {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 1px solid var(--very-light-gray);
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 0.75em;
}

.sec-title {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: var(--gradient);
    background-clip: text;
    color: transparent;
    font-size: 1.5em;
    gap: 10px;
    margin-bottom: 10px;
}

.sec-title svg {
    color: oklch(60% 0.118 184.704);
}

.shadow {
    box-shadow: 0px 1px 1px oklch(88.837% 0.0001 271.152);
    transition: box-shadow 0.1s linear;
}

.shadow:hover {
    box-shadow: 2px 4px 4px oklch(88.837% 0.0001 271.152);
}

p {
    color: var(--sub-gray)
}

.skill {
    background-color: white;
    border: 1px solid var(--very-light-gray);
    border-radius: 10px;
    padding: 40px;
    max-width: 32%;
    min-width: 350px;
}

.skill p {
    text-align: left;
}

.skill-icon {
    color: white;
    padding: 16px;
    width: fit-content;
    margin-bottom: 20px;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 200% 100%;
}

.skill-icon svg {
    flex: 0 1 auto;
}

.skill:hover .skill-icon {
    animation: background-move 10s linear infinite;
}

#web-icon {
    background-image: linear-gradient(90deg, #5959ff, #c14ac1, #5959ff);
}

#software-icon {
    background-image: linear-gradient(90deg, yellowgreen, green, yellowgreen);
}

#tool-icon {
    background-image: linear-gradient(90deg, red, orange, red);
}

.project {
    border: 1px solid var(--very-light-gray);
    border-radius: 10px;
    flex: none;
    overflow: hidden;
    max-width: 400px;
}

.project p, .project b {
    display: block;
    width: 400px;
    padding: 0px 30px;
    text-align: left;
}

.project img {
    aspect-ratio: 16 / 9;
    width: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

.project .row-buttons {
    justify-content: center;
    margin-bottom: 20px;
}

.github-button {
    background-color: #010409;
    color: white;
}

.items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    padding: 10px 30px;
    font-size: 0.75em;
}

.item {
    flex: 0 1 auto;
    background-color: var(--very-light-gray);
    padding: 10px;
    border-radius: 10px;
}

.img-bottom-border {
    border-bottom: 1px solid var(--very-light-gray);
}

.block {
    color: black;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
}

.form-input {
    display: flex;
    flex-direction: column;
    align-items: start;
    color: oklch(37.3% 0.034 259.733);
    gap: 4px;
    width: 90%;
}

.form-input input {
    font-size: 1.2em;
    border-radius: 10px;
    border: 1px solid gray;
    color: black;
    outline: none;
    padding: 10px;
    width: 100%;
}

.form-input input:focus {
    outline: 2px solid oklch(60% 0.118 184.704);
}

.form-input textarea {
    font-size: 1.2em;
    border-radius: 10px;
    border: 1px solid gray;
    color: black;
    outline: none;
    padding: 10px;
    width: 100%;
    font-family: inherit;
    height: 5em;
    resize: vertical;
}

.form-input textarea:focus {
    outline: 2px solid oklch(60% 0.118 184.704);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    background-color: oklch(21% 0.034 264.665);
    color: white;
    padding: 30px;
}

footer .copyright {
    color: oklch(70.7% 0.022 261.325);
}

#nameInput {
    width:90%;
    gap: 40px;
}

@keyframes background-move {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 200% 50%;
    }
}

@media (max-width: 768px) {
    #top {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .intro {
        min-width: 0;
    }

    .sub-title {
        max-width: 100%;
    }

    .row-wrap * {
        flex: auto;
    }

    .h2 {
        max-width: 95%;
    }

    .project button {
        max-width: 30%;
    }

    #nameInput {
        width: 100%;
        gap: 20px;
    }

    .block .center-column {
        align-items: normal;
    }

    #standard-menu {
        display: none;
    }

    .header-menu-mobile {
        display: block;
    }
}