/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #FDFCFB;
    --text-secondary: #a0a0a0;
    --accent: #00bfff;
    --accent-dark: #0077cc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background */
.background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Aurora blobs */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.blob-1 {
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.4) 0%, rgba(0, 119, 204, 0.1) 50%, transparent 70%);
    top: -20%;
    left: -10%;
    animation: float1 90s ease-in-out infinite;
}

.blob-2 {
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle, rgba(0, 119, 204, 0.35) 0%, rgba(0, 77, 153, 0.1) 50%, transparent 70%);
    bottom: -15%;
    right: -15%;
    animation: float2 75s ease-in-out infinite;
}

.blob-3 {
    width: 40vmax;
    height: 40vmax;
    background: radial-gradient(circle, rgba(0, 150, 220, 0.3) 0%, rgba(0, 100, 180, 0.08) 50%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 60s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(10%, 15%) scale(1.1);
    }
    50% {
        transform: translate(5%, 10%) scale(0.95);
    }
    75% {
        transform: translate(-5%, 5%) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-15%, -10%) scale(1.05);
    }
    50% {
        transform: translate(-10%, -15%) scale(1.1);
    }
    75% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(-40%, -60%) scale(1.15);
        opacity: 0.6;
    }
    66% {
        transform: translate(-60%, -40%) scale(0.9);
        opacity: 0.35;
    }
}

/* Noise texture overlay */
.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Container */
.container {
    max-width: 440px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile section */
.profile {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
}

.avatar-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-dark), var(--accent));
    animation: rotate 4s linear infinite;
    opacity: 0.7;
}

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

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    object-fit: cover;
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Links sections */
.links-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Link cards */
.link-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.link-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.15);
}

.link-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.link-card.primary {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(0, 119, 204, 0.1));
    border-color: rgba(0, 191, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.link-card.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent);
}

.link-text {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.link-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Live badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: #e91916;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    animation: pulse-live 2s ease-in-out infinite;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .avatar-wrapper {
        width: 90px;
        height: 90px;
    }

    .avatar-text {
        font-size: 2.5rem;
    }

    .name {
        font-size: 1.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Redirect page styles */
.redirect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.redirect-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.redirect-container p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.redirect-container a {
    color: var(--accent);
    text-decoration: none;
}

.redirect-container a:hover {
    text-decoration: underline;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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