/* =========================================================
       VARIABLES & RESET
       ========================================================= */
:root {
    --bg:     #07071a;
    --card:   #12122a;
    --card2:  #1a1a38;
    --blue:   #0ea5e9;
    --cyan:   #22d3ee;
    --purple: #818cf8;
    --gold:   #fbbf24;
    --green:  #2ecc71;
    --white:  #f0f6ff;
    --muted:  #7b8fb5;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    overflow-x: hidden;
    position: relative;
}

/* =========================================================
   FLOATING PARTICLES
   ========================================================= */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float linear infinite;
}
@keyframes particle-float {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* =========================================================
   BACKGROUND GLOW BLOBS
   ========================================================= */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: blob-float ease-in-out infinite;
}
.bg-glow-1 {
    width: 500px; height: 500px;
    background: rgba(14, 165, 233, 0.18);
    top: -150px; left: -150px;
    animation-duration: 12s;
}
.bg-glow-2 {
    width: 400px; height: 400px;
    background: rgba(129, 140, 248, 0.15);
    bottom: -100px; right: -100px;
    animation-duration: 16s;
    animation-delay: -5s;
}
.bg-glow-3 {
    width: 250px; height: 250px;
    background: rgba(251, 191, 36, 0.1);
    top: 50%; right: 15%;
    animation-duration: 10s;
    animation-delay: -8s;
}
@keyframes blob-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.08); }
}

/* =========================================================
   MAIN WRAPPER
   ========================================================= */
.wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    animation: fade-in-up 0.8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PROFILE PICTURE
   ========================================================= */
.profile-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.profile-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--gold));
    animation: ring-spin 4s linear infinite;
    z-index: 0;
}
@keyframes ring-spin {
    to { transform: rotate(360deg); }
}
.profile-pic {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    display: block;
}
.profile-fallback {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border: 4px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

/* =========================================================
   NAME & BIO
   ========================================================= */
.profile-name {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.4rem;
    animation: fade-in-up 0.8s ease 0.1s both;
}
.profile-bio {
    font-size: 1rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0.8rem;
    animation: fade-in-up 0.8s ease 0.2s both;
}
.profile-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fade-in-up 0.8s ease 0.3s both;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(14, 165, 233, 0.3);
}
.tag-purple { background: rgba(129,140,248,.15); color: var(--purple); border-color: rgba(129,140,248,.3); }
.tag-gold   { background: rgba(251,191,36,.15);  color: var(--gold);   border-color: rgba(251,191,36,.3); }

/* =========================================================
   STATS ROW
   ========================================================= */
.stats-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fade-in-up 0.8s ease 0.35s both;
}
.stat {
    text-align: center;
    padding: 0.8rem 1.2rem;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    min-width: 80px;
    transition: all 0.3s ease;
}
.stat:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}
.stat strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat span {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* =========================================================
   LINK BUTTONS
   ========================================================= */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.05rem 1.5rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    background: var(--card);
    border: 1px solid rgba(14, 165, 233, 0.18);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
}

/* shimmer effect on hover */
.link-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.link-btn:hover::after { left: 200%; }

.link-btn:hover {
    transform: translateX(8px) scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(14, 165, 233, 0.2);
}

/* left accent bar */
.link-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--link-color, var(--cyan));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.link-btn:hover::before { transform: scaleY(1); }

/* icon box */
.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--link-color, rgba(14,165,233,0.2));
    transition: transform 0.3s cubic-bezier(.68,-0.55,.265,1.55);
}
.link-btn:hover .link-icon {
    transform: scale(1.15) rotate(8deg);
}

.link-text { flex: 1; }
.link-name { display: block; font-size: 1rem; font-weight: 700; }
.link-sub  { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; margin-top: 0.1rem; }
.link-arrow {
    color: var(--muted);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.link-btn:hover .link-arrow {
    color: var(--cyan);
    transform: translateX(5px);
}

/* Individual platform colors */
.l-yt     { --link-color: #ff0000; }
.l-yt .link-icon { background: rgba(255,0,0,0.2); color: #ff6b6b; }

.l-tt     { --link-color: #69c9d0; }
.l-tt .link-icon { background: rgba(0,242,234,0.15); color: #aaf; }

.l-ig     { --link-color: #e1306c; }
.l-ig .link-icon { background: rgba(225,48,108,0.18); color: #f79; }

.l-tw     { --link-color: #9146ff; }
.l-tw .link-icon { background: rgba(145,70,255,0.18); color: #b892ff; }

.l-it     { --link-color: #fa3541; }
.l-it .link-icon { background: rgba(250,53,65,0.18); color: #fa3541; }

.l-gp     { --link-color: #34a853; }
.l-gp .link-icon { background: rgba(52,168,83,0.18); color: #4caf70; }

/* Animate each link in with staggered delay */
.link-btn:nth-child(1) { animation: fade-in-up .7s ease .4s both; }
.link-btn:nth-child(2) { animation: fade-in-up .7s ease .5s both; }
.link-btn:nth-child(3) { animation: fade-in-up .7s ease .6s both; }
.link-btn:nth-child(4) { animation: fade-in-up .7s ease .7s both; }
.link-btn:nth-child(5) { animation: fade-in-up .7s ease .8s both; }
.link-btn:nth-child(6) { animation: fade-in-up .7s ease .9s both; }

/* =========================================================
   BACK TO WEBSITE BUTTON
   ========================================================= */
.back-btn {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fade-in-up 0.7s ease 1s both;
}
.back-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER TEXT
   ========================================================= */
.footer-text {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    opacity: 0.6;
    animation: fade-in-up 0.7s ease 1.1s both;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {
    .stats-row { gap: 0.8rem; }
    .stat { padding: 0.7rem 0.9rem; min-width: 70px; }
    .stat strong { font-size: 1.05rem; }
}