:root{
    --accent-color: #d52ca2;
    --dark-accent-color: #7803d8;
    --primary-color: #232933;
    --secondary-color: #15171C;
    --text-color: #eee;
    --secondary-text-color: #aaa;

    --section-padding: 50px min(80px, 5%);
}
*{
    margin: 0;
    padding: 0;
}
html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14pt;
    color: var(--text-color);
    scroll-behavior: smooth;
}
body{
    min-height: 100vh;
    background-color: var(--primary-color);
}
section{
    padding: var(--section-padding);
}
a {
    text-decoration: none;
    color: white;
}
button {
    position: relative;
    color: white;
    background-color: var(--accent-color);
    font-size: 1.25rem;
    padding: .5em 1.25em;
    border: none;
    z-index: 0;
    
    --border-size: 6px;
    --glow-radius: 8px;

    --transition: 200ms ease;
    cursor: pointer;

    background: linear-gradient(45deg, var(--accent-color), var(--dark-accent-color));

    &:hover {
        &::before {
            opacity: 1;
        }
        &::after {
            opacity: 0;
        }
    }

    
    &::before {
        opacity: 0;
        content: "";
        background: linear-gradient(45deg, var(--accent-color), var(--dark-accent-color));
        position: absolute;
        top: calc(var(--glow-radius) / -2);
        left: calc(var(--glow-radius) / -2);
        z-index: -1;
        width: calc(100% + var(--glow-radius));
        height: calc(100% + var(--glow-radius));
        filter: blur(var(--glow-radius));
        transition: var(--transition);
        pointer-events: none;
    }
    &::after {
        opacity: 1;
        content: "";
        z-index: -1;
        position: absolute;
        background-color: var(--secondary-color);
        width: calc(100% - var(--border-size));
        height: calc(100% - var(--border-size));
        top: calc(var(--border-size) / 2);
        left: calc(var(--border-size) / 2);
        transition: var(--transition);
        pointer-events: none;
    }
}
.rect-button, .rect-button::before, a{
    border-radius: 3px;
}
.round-button, .round-button::after, .round-button::before, a{
    border-radius: 10000px;
}
#header-section{
    display: flex;
    justify-content: center;
    flex-wrap: wrap-reverse;
}
#header-section .container{
    width: 850px;
    max-width: 100%;
}
#header-section h1{
    font-size: 4rem;
}
#header-section h2{
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 300;
}
#header-section p{
    color: var(--secondary-text-color);
}
#skill-section{
    margin-top: -60px;
    margin-bottom: -80px;
    padding-top: 100px;
    padding-bottom: 120px;
    background-image: url(background-b.png);
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
#skill-section h2{
    font-size: 3rem;
    text-align: center;
}
#skill-section .wrapper{
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.skill-container{
    width: 400px;
    max-width: 100%;
    /* border: 10px solid var(--primary-color); */
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 15px;
}
.skill-container h3{
    background-color: var(--primary-color);
    padding: 15px 0;
    text-align: center;
    text-transform: uppercase;
}
.skill-container ul{
    list-style: none;
}
.skill-container ul li{
    padding: 15px;
    display: flex;
    justify-content: space-between;
}
.skill-container ul li progress{
    accent-color: var(--accent-color);
}
#projects-section h2{
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}
details{
    margin: 20px auto;
    width: 1000px;
    max-width: 100%;
    background-color: var(--secondary-color);
    border-radius: 6px;
}
details summary{
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 30px;
    padding: 30px;
}
details .number{
    background-color: var(--accent-color);
    min-height: 50px;
    min-width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
}
details h3{
    font-size: 1.75rem;
}
details .text-container{
    padding: 30px;
    padding-top: 0;
}
details button {
    margin-top: 30px;
    padding: .5em 1em;
}
details img {
    margin: 30px;
    margin-top: 0;
    max-height: 300px;
}
#contact {
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    
    h2{
        font-size: 3rem;
        text-align: center;
        margin-bottom: 60px;
        position: relative;
        &::after {
            content: "";
            width: 120%;
            height: 5px;
            position: absolute;
            bottom: 0;
            right: 50%;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(90deg, var(--accent-color), var(--dark-accent-color));
        }
    }
    .container {
        display: flex;
        gap: 3rem;
        width: 100%;
        max-width: 1000px;
        flex-direction: row;
    }
    form {
        display: flex;
        gap: 5px;
        flex-direction: column;
        width: 100%;
        /* max-width: 50%; */
        padding: 20px;
        border-radius: 20px;
        background-color: var(--primary-color);
        
        input, textarea {
            border: none;
            padding: 5px;
            resize: none;
            background-color: #ddd;
            outline: none;
            margin-bottom: 5px;
            border-radius: 2px;
            font-family: inherit;
            font-weight: 400;
        }
        textarea {
            field-sizing: content;
            min-height: 8rem;
        }
        button {
            margin-top: 25px;
        }
    }
    div {
        width: 100%;
    }
    ul {
        list-style-type: none;
    }
    h3 {
        line-height: 250%;
    }
    a:hover {
        opacity: 0.7;
    }
}
/* footer{
    background-color: var(--secondary-color);
    padding: auto 65px;
    padding-bottom: 65px;
}
footer .grid-container{
    margin: 0 auto;
    width: 1000px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr max-content;
    gap: 100px;
}
footer .grid-container div {
    display: flex;
    flex-direction: column;
}
footer #at-symbol{
    font-size: 200pt;
}
footer h3{
    margin-top: 80px;
    font-size: 2rem;
}
footer a{
    margin-top: 5px;
    display: inline-block;
    color: var(--secondary-text-color);
    text-decoration: none;
}
footer a:hover{
    color: var(--text-color);
} */
@media(max-width: 1000px){
    #header-section{
        padding: 100px 20px;
        text-align: center;
    }
    #header-section h1{
        margin-top: 0;
        font-size: 10vw;
    }
    #header-section h2{
        font-size: 1.3rem;
    }
    #contact .container {
        flex-direction: column;
        gap: 3rem;
        form {
            width: auto;
        }
        div {
            display: flex;
            justify-content: space-between;
        }
    }
    /* footer .grid-container{
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    footer #at-symbol{
        font-size: 150px;
    }
    footer h3{
        margin-top: 50px;
    } */
}
@media(min-width: 1800px) {
    #skill-section {
        background-repeat: repeat;
        background-size: unset;
        background-size: auto 100%;
    }
}
@media(max-width: 700px) {
    #skill-section {
        background-size: cover;
    }
}









