:root {
    --accent: #a078f0;
    --accent-dark: #9655e1;
    --accent-hover: #7d4bf0;
    --background: #141414;
    --background-dark: #050505;
    --border: #282828;
    --text: #afafaf;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-dark);
    color: var(--text);
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    position: fixed;
    transition: opacity .8s ease, visibility .8s ease;
    z-index: 9999;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.circles {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.circle {
    animation: loading 1.5s ease;
    background: transparent;
    border: 2px solid var(--accent-dark);
    border-radius: 100%;
    opacity: 0;
    position: absolute;
}

.circle:nth-child(1) {
    width: 1.5rem;
    height: 1.5rem;
    animation-delay: .5s;
}

.circle:nth-child(2) {
    width: 3rem;
    height: 3rem;
    animation-delay: .75s;
}

.circle:nth-child(3) {
    width: 4.5rem;
    height: 4.5rem;
    animation-delay: 1s;
}

@keyframes loading {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.background {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
}

.lines {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.line {
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, .05);
    position: absolute;
}

.line:nth-child(1) {
    left: 25%;
}

.line:nth-child(2) {
    left: 50%;
}

.line:nth-child(3) {
    left: 75%;
}

.line::after {
    content: "";
    display: block;
    top: -50%;
    left: 0;
    width: 100%;
    height: 15vh;
    animation: drop 7s ease-in-out infinite;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--accent-dark) 75%, var(--accent-dark) 100%);
    position: absolute;
}

.line:nth-child(1)::after {
    animation-delay: 0s;
}

.line:nth-child(2)::after {
    animation-delay: 1.5s;
}

.line:nth-child(3)::after {
    animation-delay: 3s;
}

@keyframes drop {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    height: 3.75rem;
    padding: 1.5rem;
    position: fixed;
    z-index: 100;
}

.header-logo {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo span {
    color: var(--accent);
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    gap: 1.5rem;
    padding: 1.5rem;
    position: relative;
}

.hero-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
}

.hero-title-prefix, .hero-title-suffix {
    color: var(--text);
    font-size: 2.25rem;
    font-weight: 700;
}

.hero-text {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-text.colored {
    color: var(--accent);
}

.hero-text.blink {
    animation: blink 1s ease infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-description {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
}

.hero-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
    gap: 1rem;
}

.hero-contact {
    color: var(--text);
    cursor: pointer;
    font-size: 2.25rem;
    transition: font-size .4s ease;
}

.hero-contact:hover {
    color: var(--accent);
    font-size: 2.5rem;
}

.skill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    padding: 6rem 1.5rem;
    position: relative;
}

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

.skill-title {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-description {
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    gap: 1.5rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.skill-card-badge {
    padding: .5rem 1rem;
    background: color-mix(in srgb, var(--accent-dark), transparent 80%);
    backdrop-filter: blur(2px);
    border-radius: 3rem;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.skill-card-langs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-card-lang {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
}



@media (max-width: 48rem) {

    .hero-title {
        display: grid;
        gap: 0rem;
    }

    .skill-header {
        gap: .5rem;
    }
    
    .skill-cards {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}