/* style.css — Aftn Profile */
:root {
    --bg-dark: #07090f;
    --bg-darker: #040508;
    --color-cyan: #00f0ff;
    --color-magenta: #ff2a7e;
    --color-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.05);

    --yt-color: #ff0000;
    --tk-color: #00f2fe;
    --x-color: #ffffff;
    --booth-color: #fc4d50;
    --mail-color: #00f0ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    padding: 60px 20px;
    line-height: 1.6;
}

/* ===== Background ===== */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0e1222 0%, var(--bg-darker) 100%);
}

.glow-orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: drift 20s infinite alternate ease-in-out;
}

.magenta {
    background: var(--color-magenta);
    top: -10%;
    left: -10%;
}

.cyan {
    background: var(--color-cyan);
    bottom: -15%;
    right: -15%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10vw, -10vh) scale(1.2);
    }
}

.glass-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(60deg);
    animation: moveGrid 15s linear infinite;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

@keyframes moveGrid {
    to {
        transform: perspective(600px) rotateX(60deg) translateY(50px);
    }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAP8AAAD/AAAAAAAA/wD//wAAAACzO/H3AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAZUlEQVQ4y2NgQAX8DMIoIkiSQRZBmkEcRZZBHkk8QQpBOkEMQTZBOEHWAeUEMwSxBMkEaQTpBLkEyQTZBKkEyQSJBLkEiQTxBPEEcQTpBLEEOQSJBLEE8QTBBKkEuQSxBMkEsQQZAH0kR1d+ZzAAAAAASUVORK5CYII=');
    opacity: 0.05;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 550px;
    z-index: 1;
}

/* ===== Profile Header ===== */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
    border: 3px solid transparent;
    padding: 2px;
    background-image:
        linear-gradient(var(--bg-dark), var(--bg-dark)),
        linear-gradient(45deg, var(--color-magenta), var(--color-cyan));
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.ring-1,
.ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--color-cyan);
    opacity: 0.5;
    z-index: 1;
}

.ring-1 {
    width: 140px;
    height: 140px;
    animation: pulse 3s infinite cubic-bezier(0.1, 0.5, 0.9, 0.5);
}

.ring-2 {
    width: 160px;
    height: 160px;
    border-color: var(--color-magenta);
    animation: pulse 3s infinite 1.5s cubic-bezier(0.1, 0.5, 0.9, 0.5);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.handle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    -webkit-text-fill-color: var(--color-cyan);
    display: block;
    margin-top: 5px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.bio {
    color: #a0aabf;
    font-size: 0.95rem;
    margin-top: 15px;
    line-height: 1.8;
}

/* ===== Link Cards ===== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: var(--color-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}

.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.link-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* ensure sixth item also staggers correctly */
.link-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Shimmer sweep on hover */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.link-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.link-card:hover .icon {
    transform: scale(1.15) rotate(5deg);
}

.link-card .text {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    flex: 1;
}

.link-card .arrow {
    font-family: 'Montserrat', sans-serif;
    margin-left: auto;
    opacity: 0.4;
    transition: all 0.3s ease;
    font-weight: 800;
}

.link-card:hover .arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* Brand glow on hover */
.link-card.yt:hover {
    border-color: var(--yt-color);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15);
}

.link-card.yt:hover .icon {
    color: var(--yt-color);
}

.link-card.tk:hover {
    border-color: var(--tk-color);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.link-card.tk:hover .icon {
    color: var(--tk-color);
}

.link-card.x:hover {
    border-color: var(--x-color);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.link-card.x:hover .icon {
    color: var(--x-color);
}

.link-card.booth:hover {
    border-color: var(--booth-color);
    box-shadow: 0 10px 25px rgba(252, 77, 80, 0.15);
}

.link-card.booth:hover .icon {
    color: var(--booth-color);
}

.link-card.mail:hover {
    border-color: var(--mail-color);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
}

.link-card.mail:hover .icon {
    color: var(--mail-color);
}

/* ===== Footer ===== */
.profile-footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    animation: fadeUp 1s ease-out 0.8s forwards;
    opacity: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    body {
        padding: 40px 15px;
    }

    .name {
        font-size: 1.8rem;
    }

    .link-card {
        padding: 16px 20px;
    }

    .link-card .text {
        font-size: 0.95rem;
    }
}