/*
Theme Name: Mars Lnkr 2.0
Theme URI: https://lnkr.kwzn.net/
Description: Handmade theme for KWZN Lnkr on Mars.
Author: Koh Wei Zane
Author URI: https://kwzn.net/
Version: 2.6
*/

:root {
    --delay: 0.3s;
    --font-family: "JetBrains", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --background-gradient: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460, #533483, #8f2444, #e94560, #ff6f61);
    --background-radial: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.5) 20%);
}

html,
body {
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Hide scrollbar— */
html::-webkit-scrollbar {
    display: none;
}
html {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.05px;
    color: #f7f7f7;
    background: var(--background-gradient), var(--background-radial);
    background-size: 400% 400%, 200% 200%;
    margin: 0;
    height: fit-content;
    animation: 
        gradient 12s cubic-bezier(0.4, 0, 0.2, 1) infinite,
        flicker 3s ease-in-out infinite;
}

@media (min-width: 768px) {
    body {
        animation: 
            gradient 12s cubic-bezier(0.4, 0, 0.2, 1) infinite,
            pulse 6s ease-in-out infinite,
            flicker 3s ease-in-out infinite;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes flicker {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

@keyframes button-toggle-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(0.985); }
  60% { transform: scale(0.98); }
  85% { transform: scale(1.01); }
}

#lunar-capsule {
    margin: 30px 0;
    clear: both;
}

.profilepic {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    margin: 60px auto 30px;
    overflow: hidden; /* Ensures the hover image stays within the circle */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.profilepic div {
    position: relative;
    width: 100%;
    height: 100%;
    outline: none; /* Remove focus outline */
    cursor: default;
}

.profilepic img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 450ms ease-in-out, filter 450ms ease-in-out;
}

.profilepic:hover img,
.profilepic:focus-within img {
    opacity: 0;
    filter: blur(4px);
}

.profilepic div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('../images/kwzn-lnkr-profile-ghibli.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: blur(3px);
    transition: opacity 450ms ease-in-out, filter 450ms ease-in-out;
}

.profilepic:hover div::after,
.profilepic:focus-within div::after {
    opacity: 1; 
    filter: blur(0);
}

.profilepic:active, .link-item:active {
  animation: button-toggle-pulse 0.3s cubic-bezier(0.4,0,0.2,1);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.name {
    font-family: var(--font-family);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    word-spacing: -6px;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
}

.handle {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.5;
    margin: 3px auto 0;
}

.descriptor { font-size: 13px; }
.descriptor,
.footer {
    line-height: 22px;
    text-align: center;
    max-width: 575px;
    opacity: 0.9;
    margin: 0 auto;
}
@media screen and (min-width: 515px) {
    .descriptor-text {
        display: block;
    }
}
@media screen and (max-width: 514px) {
    .descriptor-text:before {
        content: "\f621";
        font-family: "Font Awesome 6 Free";
        font-weight: 700;
        font-size: 12px;
        padding: 0 6px 0 0;
        opacity: 0.3;
    }
}

.descriptor-capsule,
.link-capsule {
    max-width: 90vw;
    margin: 36px auto;
    display: block;
}
a:link,
a:visited {
    color: #f7f7f7;
}
.links {
    max-width: 555px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.the-latest {
    margin-bottom: 30px;
}
.link-item {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    text-align: center;
    display: block;
    padding: 9px 9px 8px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    margin: 0 0 10px;
}
.fas,
.fab,
.fa-brands,
.fa-solid {
    font-size: 14px;
    margin-right: 9px;
}

@media (hover: hover) {
    .link-item:hover {
        background-color: rgba(255, 255, 255, 0.6);
        color: #2b2b2b;
        transition: ease-in-out 240ms;
    }
}

.footer-capsule {
    max-width: 90vw;
    margin: 45px auto;
    display: block;
}
.footer p {
    font-size: 12px;
    opacity: 0.5;
    margin: 0 auto 30px;
}