@import url('base.css');

body {
    font-family: 'Chillax', sans-serif;
    background-color: var(--bg-dark);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        padding: 20px 10px;
        align-items: flex-start;
    }
    .profile-card {
        padding: 30px 15px !important;
        border-radius: 20px;
        width: 100%;
        max-width: calc(100vw - 20px);
    }
    .username {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .pfp-wrapper {
        width: 80px !important;
        height: 80px !important;
    }
    .bio {
        font-size: 0.9rem !important;
    }
    .cards-grid {
        gap: 12px !important;
        width: 100%;
    }

    .custom-cursor,
    #cursor-trail-container {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    .desktop-text {
        display: none !important;
    }

    .mobile-warning {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
        background: var(--glass-card);
        backdrop-filter: var(--blur-card);
        -webkit-backdrop-filter: var(--blur-card);
        border: var(--border-card);
        border-radius: var(--radius-card);
        padding: 30px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-warning i {
        font-size: 2.5rem;
        color: var(--text-dim);
    }

    .mobile-warning p {
        font-size: 1rem;
        color: var(--text-dim);
        line-height: 1.5;
        margin-bottom: 5px;
    }

    .glass-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        padding: 12px 30px;
        border-radius: var(--radius-chip);
        font-family: 'Chillax', sans-serif;
        font-size: 1rem;
        transition: background var(--motion-fast);
        outline: none;
        cursor: pointer !important;
    }

    .glass-btn:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Enter Screen */
#enter-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s ease;
}

#enter-screen.dismissed {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(20px);
    pointer-events: none;
}

.enter-content {
    text-align: center;
}

.enter-content h1 {
    display: inline-block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(120deg, #555 0%, #fff 25%, #555 50%, #fff 75%, #555 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    transition: transform var(--motion-smooth);
}

.enter-content h1:hover {
    transform: scale(2);
}

.tap-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
    letter-spacing: 4px;
    pointer-events: none;
}

.mobile-warning {
    display: none;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Cards & Layout */
.card-container {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 100%;
}

#tilt-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-10px) rotateX(1deg) rotateY(-1deg);
    }
}

@media (max-width: 1024px) {
    #tilt-wrapper {
        animation: none;
        transform: none !important;
        margin-top: 20px;
        width: 100%;
    }

    .card-container {
        height: auto;
        align-items: flex-start;
    }
}

.glass-card {
    background: var(--glass-major);
    backdrop-filter: var(--blur-major);
    -webkit-backdrop-filter: var(--blur-major);
    border: var(--border-major);
    border-radius: var(--radius-major);
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-major);
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: opacity var(--motion-float), transform var(--motion-float);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--motion-fast);
    z-index: 10;
}

.glass-card:hover::after {
    opacity: 1;
}

.visible .glass-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.profile-card {
    width: 600px;
    max-width: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pfp-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    transform: translateZ(60px);
}

.pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.decoration {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    pointer-events: none;
    z-index: 2;
}

.username {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transform: translateZ(50px);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    min-height: 4rem;
}

.badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badges img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform var(--motion-fast);
    object-fit: contain;
}

.badges img:hover {
    transform: scale(1.2);
}

.bio {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transform: translateZ(40px);
}

.sub-bio {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 10px;
    margin-bottom: 25px;
    transform: translateZ(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.online-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.4);
    animation: pulse 2s infinite;
}

.offline-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ff4d4d, 0 0 20px rgba(255, 77, 77, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Runes */
.runes-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    transform: translateZ(45px);
    position: relative;
}

.rune {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 24px;
    animation: runeRotate 6s linear infinite;
    transition: opacity var(--motion-smooth);
}

.rune::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--motion-smooth), text-shadow var(--motion-smooth);
    pointer-events: none;
}

.rune-dim {
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.8);
}

.rune-glow {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.rune-glow::after {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.5);
}

.rune-blink {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.rune-blink::after {
    animation: runeSmoothBlink 1.5s ease-in-out infinite;
}

@keyframes runeSmoothBlink {

    0%,
    100% {
        opacity: 0;
        text-shadow: none;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

@keyframes runeRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.runes-tooltip {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity var(--motion-fast);
    pointer-events: none;
    white-space: nowrap;
}

.runes-row:hover .runes-tooltip {
    opacity: 1;
}

/* Grid Cards */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    transform: translateZ(40px);
    width: 100%;
}

@media (max-width: 500px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--glass-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border: var(--border-card);
    border-radius: var(--radius-card);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: var(--motion-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow-card);
    transform: translateZ(0);
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: 0.6s ease;
}

.info-card:hover::before {
    transform: translateX(100%);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.02) translateZ(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

.info-card img.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-chip);
    object-fit: cover;
}

.info-card i.fa-brands,
.info-card i.fa-solid {
    font-size: 28px;
    width: 48px;
    text-align: center;
    color: white;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Footer Info */
.footer-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: translateZ(20px);
}

.footer-info span {
    transition: color var(--motion-fast);
}

.footer-info span:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Stagger Animation */
.stagger-1, .stagger-2, .stagger-3, .stagger-4 {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px) scale(0.9) rotateX(-10deg) translateZ(0);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                filter 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.visible .profile-card .stagger-1 { transition-delay: 0.1s; opacity: 1; filter: blur(0); transform: translateY(0) scale(1) rotateX(0) translateZ(60px); }
.visible .profile-card .stagger-2 { transition-delay: 0.2s; opacity: 1; filter: blur(0); transform: translateY(0) scale(1) rotateX(0) translateZ(50px); }
.visible .profile-card .stagger-3 { transition-delay: 0.3s; opacity: 1; filter: blur(0); transform: translateY(0) scale(1) rotateX(0) translateZ(45px); }
.visible .profile-card .stagger-4 { transition-delay: 0.4s; opacity: 1; filter: blur(0); transform: translateY(0) scale(1) rotateX(0) translateZ(40px); }

.cursor-blink {
    animation: blink 1s infinite;
    margin-left: 2px;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Online Status Indicator */
.sub-bio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    font-weight: 400;
}

.sub-bio::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.online-status::before {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
}

.offline-status::before {
    background: #6b7280;
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.4);
}