* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f1419;
    --secondary-color: #1a1f2e;
    --accent-color: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --border-color: #2d3748;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0d1b2a 100%);
    color: var(--text-primary);
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    gap: 40px;
    padding: 20px;
    position: relative;
}

/* Splash overlay */
.splash-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(10,12,20,0.9) 60%);
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.splash-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: var(--text-primary);
}

#splashText {
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-shadow: 0 0 18px rgba(0,212,255,0.28);
}

.splash-sub {
    margin-top: 8px;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* mute button styles removed */

/* Profile Container */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.avatar:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* Avatar animation: gentle float and interactive parallax */
.avatar-wrap {
    display: inline-block;
    will-change: transform;
    transition: transform 0.18s linear;
}

.avatar {
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(-1deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(6px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#profileName {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

#profileName { display: inline-block; }

/* Typewriter cursor */
#profileName.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 8px;
    background: var(--text-primary);
    vertical-align: middle;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Status */
.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.social-btn:active {
    transform: translateY(-1px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* Tooltip */
.social-btn::before {
    content: attr(data-platform);
    position: absolute;
    bottom: -30px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-btn:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        gap: 30px;
        padding: 15px;
    }

    .welcome-banner {
        top: 20px;
        font-size: 1rem;
    }

    /* responsive mute button rules removed */

    #profileName {
        font-size: 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    #profileName {
        font-size: 1.3rem;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .social-btn::before {
        font-size: 0.7rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Profile Header */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-in;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    margin-bottom: 20px;
    object-fit: cover;
}

#profileName {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.btn-copy {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.2);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-theme {
    background-color: rgba(29, 185, 84, 0.1);
    color: var(--accent);
    border: none;
}

.btn-theme:hover {
    background-color: rgba(29, 185, 84, 0.2);
    transform: translateY(-2px);
}

/* Spotify Section */
.spotify-section {
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.spotify-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.spotify-widget {
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    color: var(--text-secondary);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: rgba(29, 185, 84, 0.08);
    border: none;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.2), rgba(29, 185, 84, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.15);
}

.social-link:active {
    transform: translateY(0);
}

.emoji {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.platform {
    font-weight: 600;
    font-size: 0.9rem;
}

.handle {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .profile-section {
        gap: 30px;
    }

    #profileName {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}
