/* Premium Modern UI Design */
:root {
    --bg-primary: #000000;
    --bg-secondary: rgba(40, 40, 40, 0.6);
    --bg-tertiary: rgba(30, 30, 30, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(200, 200, 200, 0.5);
    --border-color: rgba(80, 80, 80, 0.3);
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --accent-tertiary: #6366f1;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.3);
    --radius: 24px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(ellipse at top, #1a1a1a 0%, #000000 100%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 500;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 60, 60, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 40, 40, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(80, 80, 80, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Profile Card - Premium Glass Morphism */
.profile-card {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.5));
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(80, 80, 80, 0.2);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover::after {
    opacity: 0.3;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-glow), 0 0 100px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Profile Icon - Enhanced */
.profile-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.profile-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: -1;
}

.profile-card:hover .profile-icon::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

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

.profile-card:hover .profile-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6);
}

#profileAvatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition);
}

.profile-card:hover #profileAvatar {
    transform: scale(1.05);
}

.initial {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: absolute;
    z-index: 1;
}

.profile-info {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #43b581;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.5);
}

.status-dot.offline {
    background: #747f8d;
    animation: none;
    box-shadow: none;
}

.status-dot.dnd {
    background: #f04747;
    box-shadow: 0 0 10px rgba(240, 71, 71, 0.5);
}

.status-dot.idle {
    background: #faa61a;
    box-shadow: 0 0 10px rgba(250, 166, 26, 0.5);
}

.status-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-card:hover .stat {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.stat i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Background - Advanced */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    transition: all 2s ease;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    animation: orbit1 20s ease-in-out infinite;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    animation: orbit2 25s ease-in-out infinite;
    animation-delay: 5s;
}

.gradient-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-tertiary), transparent);
    animation: orbit3 30s ease-in-out infinite;
    animation-delay: 10s;
}

@keyframes orbit1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(200px, -150px) scale(1.3);
    }
    50% {
        transform: translate(0, -300px) scale(0.7);
    }
    75% {
        transform: translate(-200px, -150px) scale(1.1);
    }
}

@keyframes orbit2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-150px, -200px) scale(1.4);
    }
    50% {
        transform: translate(0, -400px) scale(0.6);
    }
    75% {
        transform: translate(150px, -200px) scale(1.2);
    }
}

@keyframes orbit3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(250px, -100px) scale(1.5);
    }
    50% {
        transform: translate(0, -250px) scale(0.5);
    }
    75% {
        transform: translate(-250px, -100px) scale(1.3);
    }
}

/* Card Entrance Animation */
.profile-card {
    animation: cardEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glow Effect */
.glow-effect {
    box-shadow: 0 0 40px var(--accent-primary);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 40px var(--accent-primary);
    }
    to {
        box-shadow: 0 0 60px var(--accent-primary), 0 0 80px var(--accent-secondary);
    }
}

/* Copyright */
.copyright {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    max-width: 95%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.copyright::-webkit-scrollbar {
    display: none;
}

.sponsors-container {
    overflow: hidden;
    flex: 1;
    max-width: calc(100% - 120px);
}

.sponsors-wrapper {
    display: flex;
    gap: 0.75rem;
    animation: conveyorBelt 30s linear infinite;
}

.copyright:hover .sponsors-wrapper {
    animation-play-state: paused;
}

@keyframes conveyorBelt {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsoring-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
    animation: sponsoringGlow 3s ease-in-out infinite alternate;
    overflow: hidden;
}

.sponsoring-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.sponsoring-label::after {
    content: '✦';
    margin-left: 0.75rem;
    color: rgba(147, 51, 234, 0.6);
    opacity: 0.8;
    font-size: 0.7rem;
}

@keyframes sponsoringGlow {
    0% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
        border-color: rgba(147, 51, 234, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.4), 0 0 50px rgba(59, 130, 246, 0.2);
        border-color: rgba(147, 51, 234, 0.5);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.copyright a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.8;
    transition: all var(--transition);
    display: inline-block;
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    animation: liftUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes liftUp {
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.copyright a:nth-child(1) { animation-delay: 0.1s; }
.copyright a:nth-child(2) { animation-delay: 0.2s; }
.copyright a:nth-child(3) { animation-delay: 0.3s; }
.copyright a:nth-child(4) { animation-delay: 0.4s; }
.copyright a:nth-child(5) { animation-delay: 0.5s; }
.copyright a:nth-child(6) { animation-delay: 0.6s; }
.copyright a:nth-child(7) { animation-delay: 0.7s; }
.copyright a:nth-child(8) { animation-delay: 0.8s; }
.copyright a:nth-child(9) { animation-delay: 0.9s; }

.copyright a:not(:first-of-type)::before {
    content: '•';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.4;
    pointer-events: none;
}

.copyright a:hover {
    opacity: 1;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.copyright a span {
    display: inline-block;
    transition: all var(--transition);
}

.copyright a:hover span {
    transform: translateY(-2px);
}

.brand-text {
    color: var(--text-primary);
    font-weight: 700;
}

.brand-dot {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Contact Links - Premium */
.contact {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--transition);
}

.contact-link::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover::after {
    opacity: 1;
}

.contact-link i,
.contact-link span {
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.contact-link:hover i {
    transform: rotate(360deg) scale(1.2);
}

.contact-link:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.contact-link:active {
    transform: translateY(-1px) scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .profile-card {
        padding: 2rem;
        max-width: 100%;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .profile-icon {
        width: 80px;
        height: 80px;
    }
    
    .initial {
        font-size: 2rem;
    }
    
    .stat {
        font-size: 0.75rem;
    }
    
    .copyright {
        max-width: 100%;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .sponsoring-label {
        font-size: 0.65rem;
    }
    
    .copyright a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .profile-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .profile-icon {
        width: 70px;
        height: 70px;
    }
    
    .initial {
        font-size: 1.75rem;
    }
    
    .profile-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    .stat {
        font-size: 0.7rem;
    }
    
    .contact {
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    .copyright {
        bottom: 12px;
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 12px;
    }
    
    .sponsoring-label {
        font-size: 0.6rem;
        margin-right: 0.25rem;
    }
    
    .copyright a {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
    
    .copyright a:not(:first-of-type)::before {
        left: -0.5rem;
        font-size: 0.65rem;
    }
    
    .gradient-orb-1,
    .gradient-orb-2,
    .gradient-orb-3 {
        filter: blur(60px);
    }
    
    .gradient-orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .gradient-orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .gradient-orb-3 {
        width: 225px;
        height: 225px;
    }
}

@media (max-width: 360px) {
    .name {
        font-size: 1.25rem;
    }
    
    .profile-icon {
        width: 60px;
        height: 60px;
    }
    
    .initial {
        font-size: 1.5rem;
    }
    
    .contact-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .copyright {
        gap: 0.375rem;
    }
    
    .copyright a {
        font-size: 0.65rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .contact-link:hover {
        transform: none;
    }
    
    .contact-link:active {
        transform: translateY(-1px) scale(0.98);
    }
    
    .profile-card:hover {
        transform: none;
    }
    
    .profile-card:active {
        transform: scale(0.99);
    }
    
    .copyright a:hover {
        background: rgba(139, 92, 246, 0.15);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Selection Styling */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
