@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

@font-face {
    font-family: 'CustomFont';
    src: url('assets/font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    cursor: url('assets/curser.png') 7 4, auto !important;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    color: #ffffff;
    font-family: 'CustomFont', 'Inter', sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: url('assets/curser.png') 7 4, auto !important;
}

#bg {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('assets/bg.gif');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: 0;
    opacity: 1;
}

#entrance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#entrance p {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

#scroll-container {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#scroll-container::-webkit-scrollbar {
    display: none;
}

.section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.55;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    transition: background-image 0.5s ease, background-color 0.5s ease;
}

#main {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

#pagination {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

#pagination.visible {
    opacity: 1;
    visibility: visible;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #9B7FE8;
    transform: scale(1.4);
}

.pfp-container {
    position: relative;
    display: inline-block;
    width: 170px;
    height: 170px;
}

.pfp-container .pfp-img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: none;
    box-shadow: none;
}

.pfp-container .pfp-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    pointer-events: none;
    z-index: 10;
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    z-index: 20;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
}

.status-dot[data-status="online"] {
    background-image: url('assets/online.png');
}

.status-dot[data-status="idle"] {
    background-image: url('assets/idle.png');
}

.status-dot[data-status="dnd"] {
    background-image: url('assets/dnd.png');
}

.status-dot[data-status="offline"] {
    background-image: url('assets/offline.png');
}

.info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-top: -20px;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.custom-status {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin: 0;
    margin-top: -4px;
}

.spotify-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg,
        rgba(155, 127, 232, 0.18),
        rgba(120, 90, 200, 0.14));
    border: 1px solid rgba(155, 127, 232, 0.4);
    border-radius: 16px;
    padding: 12px 16px;
    max-width: 360px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 6px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(155, 127, 232, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.spotify-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { left: -100%; }
    60%  { left: 100%; }
    100% { left: 100%; }
}

.spotify-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 28px rgba(155, 127, 232, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.spotify-cover {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(155, 127, 232, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.spotify-card:hover .spotify-cover {
    transform: scale(1.05) rotate(-2deg);
}

.spotify-info {
    flex: 1;
    min-width: 0;
}

.spotify-label {
    font-size: 0.7rem;
    color: #B8A0E8;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.spotify-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #9B7FE8;
    border-radius: 50%;
    animation: musicPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px #9B7FE8;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}

.spotify-song {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.spotify-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.spotify-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.spotify-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B8A0E8, #9B7FE8);
    border-radius: 2px;
    transition: width 1s linear;
    width: 0%;
    box-shadow: 0 0 8px rgba(155, 127, 232, 0.7);
    position: relative;
}

.spotify-progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg,
        rgba(155, 127, 232, 0.18),
        rgba(120, 90, 200, 0.14));
    border: 1px solid rgba(155, 127, 232, 0.4);
    border-radius: 16px;
    padding: 12px 16px;
    max-width: 360px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 6px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(155, 127, 232, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 28px rgba(155, 127, 232, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.activity-cover {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(155, 127, 232, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.activity-card:hover .activity-cover {
    transform: scale(1.05) rotate(-2deg);
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-label {
    font-size: 0.7rem;
    color: #B8A0E8;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #9B7FE8;
    border-radius: 50%;
    animation: musicPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px #9B7FE8;
}

.activity-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.activity-details,
.activity-state {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.sparkle-particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    animation: heartPop linear forwards;
    transform-origin: center;
}

@keyframes heartPop {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(-15deg);
    }
    20% {
        opacity: 1;
        transform: translate(calc(var(--drift-x) * 0.2), -8px) scale(1.3) rotate(10deg);
    }
    40% {
        transform: translate(calc(var(--drift-x) * 0.4), -16px) scale(0.9) rotate(-5deg);
    }
    60% {
        opacity: 1;
        transform: translate(calc(var(--drift-x) * 0.6), -26px) scale(1.05) rotate(3deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x), -48px) scale(0.6) rotate(0deg);
    }
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 2.8rem;
    background: #ffffff;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.bio {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    margin-top: -4px;
}

.views-counter {
    font-size: 0.85rem;
    color: rgba(184, 160, 232, 0.95);
    margin: 8px 0 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(155, 127, 232, 0.5);
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.views-icon {
    width: 16px;
    height: 16px;
    color: #9B7FE8;
    filter: drop-shadow(0 0 6px rgba(155, 127, 232, 0.8));
    flex-shrink: 0;
    animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 92%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(0.1); }
}

.views-counter #viewsCount {
    color: #9B7FE8;
    font-weight: 700;
}

.icons div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icons div:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(184, 160, 232, 0.9));
}

.icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icons img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.icons a:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(184, 160, 232, 0.9));
}

.pop-element {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section.is-visible .pop-element {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section.is-visible .delay-1 {
    transition-delay: 0.1s;
}

.section.is-visible .delay-2 {
    transition-delay: 0.2s;
}

.section.is-visible .delay-3 {
    transition-delay: 0.3s;
}

.about-container {
    max-width: 560px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.8;
}

.about-link {
    color: #B8A0E8;
    text-decoration: none;
    border-bottom: 1px solid rgba(155, 127, 232, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about-link:hover {
    color: #9B7FE8;
    border-color: #9B7FE8;
}

@media (max-width: 768px) {
    #main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .info-container {
        align-items: center;
    }

    .name {
        font-size: 2.5rem;
    }

    .pfp-container,
    .pfp-container .pfp-img {
        width: 130px;
        height: 130px;
    }

    .pfp-container .pfp-effect {
        width: 170px;
        height: 170px;
    }

    .status-dot {
        width: 26px;
        height: 26px;
        bottom: 6px;
        right: 6px;
    }

    .bio {
        font-size: 0.9rem;
    }

    .views-counter {
        font-size: 0.78rem;
        justify-content: center;
    }

    .views-icon {
        width: 14px;
        height: 14px;
    }

    .icons {
        justify-content: center;
    }

    #entrance p {
        font-size: 2rem;
    }

    .spotify-card {
        max-width: 300px;
    }

    .activity-card {
        max-width: 300px;
    }

    .banner {
        height: 160px;
    }
}