:root {
    --bg-color: #0a0f0a;
    --text-color: #e0e0e0;
    --link-bg: #1e1e1e;
    --link-shadow: rgba(255, 255, 255, 0.2);
    --primary-color: #66bb6a;
    --secondary-color: #80e27e;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* Container */
.container {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.profile-pic-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all var(--transition-speed) ease;
}

/* Links Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-item {
    background-color: var(--link-bg);
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px var(--link-shadow);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed) ease;
}

.link-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 15px var(--link-shadow);
}

.link-item:hover::before {
    width: 100%;
    opacity: 0.1;
}

.link-item i {
    margin-right: 15px;
    font-size: 24px;
    transition: transform var(--transition-speed) ease;
}

.link-item:hover i {
    transform: scale(1.2);
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    width: 100%;
}

/* Animation for staggered link appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-link {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* MOBILE RESPONSIVENESS IMPROVEMENTS */
@media (max-width: 768px) {
    .music-player {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
        padding: 10px;
        max-height: 200px;
    }
    
    .profile-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }
    
    .profile-pic-container {
        width: 100px;
        height: 100px;
    }
    
    .link-item {
        padding: 12px 16px;
    }
    
    .link-item i {
        font-size: 20px;
        margin-right: 12px;
    }
}
