:root {
    --dgrey: #202020;
    --mgrey: #333533;
    --lgrey: #ffffff;
    --dyellow: #FFD100;
    --lyellow: #FFEE32;
}

body {
    opacity: 0;
    transition: opacity 3s;

    font-family: "Quicksand", sans-serif;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(-95deg, #111111, #1e232c);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.panel1 {
    animation: sweepInL 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    visibility: hidden;
    animation-delay: 1s;
}

.panel4 {
    animation: sweepInR 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    visibility: hidden;
    animation-delay: 1s;
}

@keyframes sweepInL {
    0% {
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;

    }

    100% {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes sweepInR {
    0% {
        transform: translateY(50%);
        opacity: 0;
        visibility: hidden;

    }

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

.wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Creates 2 equal-width columns */
    grid-template-rows: repeat(2, 1fr);
    /* Creates 2 equal-height rows */
    gap: 10px;
    width: 94%;
    height: 90vh;
    padding: 0px 5px;
    position: relative;
    filter: blur(0);
    transition: filter 50ms ease-in;
}

h1 {
    font-weight: 400;
    font-size: 3rem;
    color: var(--lgrey);
}

.panel1 h2 {
    color: var(--lyellow);
    font-size: 1.5rem;
    text-decoration: overline;
    font-weight: 400;
    padding-top: 5px;
}

.panel4 {
    display: flex;
    flex-direction: column-reverse;
    text-align: end;
}

.panel4 h2 {
    font-weight: 400;
    color: var(--lgrey);
    font-size: 2rem;
    text-decoration: overline;
    margin-top: 10px;
}

.panel4 a {
    color: var(--lyellow);
    font-size: 1.5rem;
    text-decoration: none;
    text-shadow: 5px 5px 1px rgba(11, 113, 247, 0.336);
    display: inline-block;
    transition: all 300ms;
}

.panel4 a:hover {
    transform: scale(1.1);
}

.panel4 ul {
    margin-left: auto;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Creates 2 equal-width columns */
    grid-template-rows: repeat(2, 1fr);
    /* Creates 2 equal-height rows */
    position: absolute;
    width: 10%;
    gap: 5px;
    top: 50%;
    /* position the top  edge of the element at the middle of the parent */
    left: 50%;
    /* position the left edge of the element at the middle of the parent */
    transform: translate(-50%, -50%);
    /* This is a shorthand of translateX(-50%) and translateY(-50%) */


}

.skill-grid>* {
    transition: all 300ms;
    opacity: 0.5;
}

.skill-grid>*:hover {
    transform: scale(1.3);
    opacity: 1;
}

.panel2 img {
    margin-left: auto;
    width: 10%;
    transition: all 200ms;
}

.panel2 img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.popup {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 25%;
    transform: translate(-50%, -50%);
    background-color: #1e232c93;
    border: 2px solid  rgba(220, 220, 220, 0.61);
    border-radius: 3px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.363);
    z-index: 1000;
    opacity: 0;
    transition: opacity 100ms ease-in;
    color: var(--lgrey);
}

form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

form h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
}

#name {
    margin-bottom: 1.2rem;
}

#email {
    margin-bottom: 1.2rem;
}

#message {
    margin-bottom: 1.2rem;

}

button {
    padding: 10px 50px;
    border: none;
    text-transform: inherit;
    font-weight: 500;
    font-size: 1.3rem;
    border-radius: 3px;
}

button:hover {
    cursor: pointer;
    background-color: #ffffff;
}

form button:hover:nth-of-type(2) {
    cursor: pointer;
    background-color: rgba(207, 10, 10, 0.897);
}

form button:nth-of-type(1) {
    margin-bottom: 0.5rem;

}

form button:nth-of-type(2) {
    background-color: rgba(228, 4, 4, 0.596);
    color: var(--lgrey);
}

textarea {
    resize: vertical;
}

textarea, input {
    padding: 0.7rem;
}