:root {
    --bg-color: #050507;
    --card-bg: rgba(13, 14, 24, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-glow: rgba(139, 92, 246, 0.5); /* Purple glow */
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px; /* Widened as requested */
    padding: 20px;
    animation: entrance 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes entrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite, borderPulse 4s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes borderPulse {
    0% { border-color: rgba(255, 255, 255, 0.08); }
    100% { border-color: rgba(224, 170, 255, 0.3); }
}

/* ... existing code ... */

.name {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 25px; /* Reduced margin */
    letter-spacing: -0.03em;
    /* Gradient Text */
    background: linear-gradient(135deg, #e0aaff 0%, #a29bfe 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Consistency/Fix warning */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(162, 155, 254, 0.3);
}

/* ... existing code ... */

/* Compact Vinyl Spotify Card */
.spotify-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.spotify-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.spotify-art-container {
    width: 64px; /* Small size */
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 2px solid #181926;
    margin: 0; /* Remove auto margins */
}

/* The Vinyl Hole */
.spotify-art-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; /* Smaller hole */
    height: 12px;
    background: #1e1e2e;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.spotify-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spotify-info {
    flex: 1;
    overflow: hidden;
    margin: 0;
    text-align: left; /* Left align text */
}

.spotify-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}


.spotify-artist {
    font-size: 0.9rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Bar */
.spotify-progress-container {
    width: 100%;
}

.spotify-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.spotify-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c084fc, #e879f9);
    width: 0%;
    border-radius: 10px;
    /* transition removed for JS smooth update */
    box-shadow: 
        0 0 10px rgba(232, 121, 249, 0.8),
        0 0 20px rgba(192, 132, 252, 0.5),
        0 0 30px rgba(192, 132, 252, 0.3);
    animation: barPulse 2s ease-in-out infinite alternate;
}

@keyframes barPulse {
    0% { 
        box-shadow: 
            0 0 10px rgba(232, 121, 249, 0.8),
            0 0 20px rgba(192, 132, 252, 0.5);
    }
    100% { 
        box-shadow: 
            0 0 15px rgba(232, 121, 249, 1),
            0 0 30px rgba(192, 132, 252, 0.8),
            0 0 45px rgba(192, 132, 252, 0.5);
    }
}

.spotify-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #b3b3b3;
    font-family: monospace;
}


/* Subtle inner purple glow effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120, 80, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
    padding: 4px; /* Space for the ring */
    /* Glowing ring effect */
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    box-shadow: 0 0 30px var(--accent-glow); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: #1a1b2e;
    border-radius: 50%;
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #747f8d; /* Default offline grey */
    border: 4px solid #1e1e2e; /* Matches card bg to look like cutout */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Status Colors */
.status-online { background-color: #3ba55c; }
.status-idle { background-color: #faa61a; }
.status-dnd { background-color: #ed4245; }
.status-offline { background-color: #747f8d; }

.name {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    
    /* Animated Gradient Text */
    background: linear-gradient(
        to right,
        #e0aaff 20%,
        #f472b6 40%,
        #a29bfe 60%, 
        #e0aaff 80%
    );
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: textShine 5s linear infinite;
    text-shadow: 0 0 20px rgba(224, 170, 255, 0.4);
    
    /* Layout properties for name */
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
}

/* Cursor class - added via JS during typing */
.typing {
    border-right: 3px solid #e0aaff;
    padding-right: 5px;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #b0b0bb;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* Needed for tooltip */
}

/* Custom Tooltip */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
}

/* Tooltip Arrow */
.social-link::before {
    content: '';
    position: absolute;
    bottom: -15px; /* Adjust to connect with tooltip */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.social-link:hover::after,
.social-link:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Generic Hover Base */
.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
}

/* Brand Specific Hover Colors */

/* Email - Gold */
.social-link[data-tooltip="Email"]:hover {
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* GitHub - Purple/White */
.social-link[data-tooltip="GitHub"]:hover {
    color: #e6edf3;
    border-color: #6e5494;
    box-shadow: 0 5px 15px rgba(110, 84, 148, 0.3);
}

/* Instagram - Gradient Pink */
.social-link[data-tooltip="Instagram"]:hover {
    color: #E1306C;
    border-color: #E1306C;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.3);
}

/* Discord - Blurple */
.social-link[data-tooltip="Discord"]:hover {
    color: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* Spotify - Green */
.social-link[data-tooltip="Spotify"]:hover {
    color: #1DB954;
    border-color: #1DB954;
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3);
}

/* NameMC - Minecraft Green */
.social-link[data-tooltip="NameMC"]:hover {
    color: #55FF55;
    border-color: #55FF55;
    box-shadow: 0 5px 15px rgba(85, 255, 85, 0.3);
}

/* Website - Cyan */
.social-link[data-tooltip="Website"]:hover {
    color: #00BFFF;
    border-color: #00BFFF;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}
