
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --highlight-primary: #6e76e5;
    --highlight-secondary: #babfff;
    --title-text-color: white;
    --job-text-color: #d5b4eb;
    --link-text-color: white;
    --link-text-color-hover: rgb(167, 241, 217);
    --default-text-color: white;
    --selection-color: rgba(255, 255, 255, 0.09);
    --background-color: #0e0e0e;
    --neon-button-background-color: rgba(255, 255, 255, 0.09);
    --neon-button-border-color: #585858;
    --neon-button-text-color: white;
    
    
    --particles-blob-color: rgb(211, 211, 211);
    --particles-line-color: rgb(83, 83, 83);
    
    
    --social-icon-color: #b4b4b4;
    --social-icon-hover-color: #3c3c3c;
    
    
    --z-background: 1;
    --z-content: 2;
    --z-overlay: 3;
}  

body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--default-text-color);
    font-family: 'Kanit', sans-serif;
    height: 90vh;
    line-height: 1rem;
}

::selection {
    background: var(--selection-color);
}

canvas {
    display: block;
}

a {
    color: var(--link-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-text-color-hover);
}


h1 {
    font-size: 63px;
    color: var(--title-text-color);
    line-height: 2rem;
    margin-bottom: -20px;
    margin-top: 65px;
}

h3 {
    color: var(--job-text-color);
    font-weight: 400;
    font-size: 25px;
    font-family: 'Fredoka', 'Pixelify Sans', cursive, sans-serif;
    line-height: 1.5rem;
    margin-bottom: 10px;
}

.description {
    word-break: keep-all;
    width: 100%;
    font-family: 'Kanit', sans-serif;
    line-height: 25px;
    font-size: 22px;
    margin-left: 3px;
}

.sub-text {
    color: rgba(129, 129, 129, 0.427);
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
    margin-left: 5px;
    vertical-align: baseline;
    white-space: nowrap;
    font-weight: 400;
}

.inline-highlight {
    display: inline;
    color: var(--highlight-primary); 
    background: var(--highlight-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.container {
    position: relative;
    z-index: var(--z-content);
    display: grid;
    justify-content: center;
    align-content: center;
    height: auto;
    padding: 5vw;
}

.absolute-center {
    display: grid;
    justify-content: center; 
    align-content: center; 
    height: 80vh; 
    padding: 5vw; 
    margin-top: 0; 
    box-sizing: border-box;
}

#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: var(--z-background);
}


.socials {
    margin-top: -10px;
    margin-left: 3px;
    display: flex;
    gap: 13px;
}

.socials a {
    color: var(--social-icon-color);
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--social-icon-hover-color);
}

.socials i {
    font-size: 20px;
}

.neon-icon {
    width: 20px;
    height: 20px;
    background-color: var(--social-icon-color);
    mask-image: url("/images/WhiteNeon.svg");
    -webkit-mask-image: url("/images/WhiteNeon.svg");
    mask-size: cover;
    -webkit-mask-size: cover;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    transition: background-color 0.3s ease;
}

.neon-icon:hover {
    background-color: var(--social-icon-hover-color);
}


.skills-hyperlink {
    color: #d3d3d3; 
    text-decoration: underline; 
}

.skills-hyperlink:hover {
    text-decoration: none; 
    color: var(--highlight-primary); 
}


.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-top: 25vh; 
    background-color: var(--background-color);
    color: white;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-card {
    display: flex;
    align-items: center; 
    background-color: rgba(27, 27, 27, 0.76);
    border-radius: 10px;
    padding: 15px;
    flex: 1 1 22%; 
    max-width: 300px; 
    transition: transform 0.3s ease;
    margin: 5px; 
    justify-content: flex-start; 
}

#tools .skill-card,
#languages .skill-card {
    flex: 1 1 calc(25% - 30px);
    max-width: calc(25% - 30px);
    box-sizing: border-box;
}

.skill-card img {
    width: auto; 
    height: 50px; 
    margin-right: 15px; 
    max-height: 100%;
    object-fit: contain;
}

.skills-category {
    margin-top: 0px; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px; 
    text-align: center; 
}

.skills-category-text {
    font-size: 35px;
    margin-bottom: 65px; 
    margin-top: 30px; 
    color: #d3d3d3;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.skill-info {
    display: flex;
    flex-direction: column;
}

.project-link {
    margin-left: 3px;
    color: var(--highlight-primary);
    font-size: 16px;
    text-decoration: none;
}

.project-link:hover {
    color: var(--highlight-secondary);
}

.project-link i {
    vertical-align: auto;
}

.skill-info h3 {
    text-align: left;
    font-family: Poppins;
    color: #efefef;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.skill-info p {
    text-align: left;
    margin: 5px 0 0;
    color: rgba(211, 211, 211, 0.8);
    font-size: 14px;
}

.section-line {
    width: 90vw; 
    height: 1px; 
    background-color: #3c3c3ca8; 
    margin: 0 auto; 
    margin-top: 70px;
    margin-bottom: 35px;
    position: relative; 
    left: 50%; 
    transform: translateX(-50%); 
}


.widget {
    display: flex;
    align-items: center;
    background-color: rgba(27, 27, 27, 0.76);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    max-width: 400px;
    color: white;
    font-family: 'Kanit', sans-serif;
    z-index: var(--z-overlay);
    min-height: 100px;
}

.widget img {
    border-radius: 5px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 15px;
}

.widget .track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget .track-info .track-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.widget .track-info .artist-name {
    font-size: 14px;
    color: #d3d3d3;
}

.widget a {
    color: var(--highlight-primary);
}

.widget a:hover {
    text-decoration: underline;
}


.elevated {
    z-index: var(--z-overlay);
}

.no-break {
    white-space: nowrap;
}

.listening-to {
    color: var(--highlight-primary);
    font-family: 'Kanit', sans-serif;
    font-size: 20px;
    margin-top: -10px;
    margin-bottom: 25px;
    text-align: left;
}

@media only screen and (max-width: 1024px) {
    .skill-card {
        min-width: 200px;
        width: calc(50% - 1rem);
    }
}

@media only screen and (max-width: 768px) {
    .absolute-center {
        padding: 10vw;
    }

    h1 {
        font-size: 37px;
        line-height: 0.9em;
        margin-top: 120px;
    }

    .description {
        font-size: 15px;
        white-space: nowrap;
    }

    body {
        text-align: center;
    }

    .sub-text {
        font-size: 12px;
    }

    .socials {
        justify-content: center;
    }

    #projects .skill-card {
        min-width: 255px;
    }

    #tools .skill-card h3,
    #languages .skill-card h3 {
        opacity: 0;
    }

    #tools .skill-card,
    #languages .skill-card {
        min-width: 80px;
        max-width: 80px;
        width: 80px;
        height: 80px;
    }

    #tools .skill-card img,
    #languages .skill-card img {
        width: auto;
        height: 60px;
        max-height: 100%;
    }
}


@media only screen and (max-width: 480px) {
    .widget {
        flex-direction: row; 
        align-items: center;
        text-align: left; 
        padding: 10px; 
    }

    .widget .track-info {
        flex: 1;
    }

    .widget .track-info .track-name {
        font-size: 18px; 
    }

    .widget .track-info .artist-name {
        font-size: 13px; 
    }
}