@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-color: #0e1210;
    --text-color: #ece7dc;
    --text-color-rgb: 236, 231, 220;
    --link-bg: #171b18;
    --link-hover: #c9a45c;
    --link-shadow: rgba(0, 0, 0, 0.45);
    --music-bg: rgba(23, 27, 24, 0.7);
    --primary-color: #c9a45c;
    --secondary-color: #e4c98a;
    --highlight-color: #e4c98a;
    --button-color: #c9a45c;
    --button-hover-color: #b08e4c;
    --transition-speed: 0.4s;
}

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

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse 700px 420px at 50% -8%, rgba(201, 164, 92, 0.08), transparent 60%);
    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: 34px;
    width: 100%;
}

.profile-pic-container {
    width: 116px;
    height: 116px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.profile-pic-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), transparent 30%, transparent 70%, var(--primary-color));
    z-index: -1;
    animation: rotate 10s 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 var(--bg-color);
}

.profile-name {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    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;
}

.profile-bio {
    font-size: 15px;
    color: rgba(var(--text-color-rgb), 0.7);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

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

.link-item {
    background-color: var(--link-bg);
    border: 1px solid rgba(201, 164, 92, 0.12);
    padding: 17px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 14px var(--link-shadow);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    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);
    border-color: rgba(201, 164, 92, 0.35);
    box-shadow: 0 10px 24px var(--link-shadow);
}

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

.link-item i {
    margin-right: 16px;
    font-size: 21px;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

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

/* Music Player - compact, glass */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--music-bg);
    border-radius: 18px;
    padding: 14px;
    width: 320px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    transform: translateY(0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 164, 92, 0.18);
    max-height: 240px;
}

.music-player.hidden {
    transform: translateY(calc(100% - 44px));
    opacity: 1;
}

.music-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.music-toggle {
    position: absolute;
    top: -37px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.music-toggle:hover {
    transform: rotate(90deg);
    background-color: var(--secondary-color);
}

.music-player.hidden .music-toggle {
    transform: translateY(-20px) rotate(180deg);
}

.album-art {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 13px;
    border: 1px solid rgba(201, 164, 92, 0.2);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed) ease;
}

.album-art:hover {
    transform: scale(1.05);
}

.music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.song-title {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist {
    font-size: 12.5px;
    color: rgba(var(--text-color-rgb), 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

/* Lyrics */
.lyrics-wrapper {
    width: 100%;
    margin-top: 5px;
}

.lyrics-container {
    position: relative;
    height: auto;
    max-height: 40px;
    overflow: hidden;
}

.lyrics {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    padding: 5px 8px;
    background-color: rgba(201, 164, 92, 0.08);
    border: 1px solid rgba(201, 164, 92, 0.14);
    border-radius: 6px;
    width: 100%;
    overflow: hidden;
    text-align: left;
    white-space: pre-line;
    max-height: 40px;
    overflow-y: auto;
}

.lyrics-line {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.75;
    transition: all 0.3s ease;
    font-size: 12px;
    white-space: pre-line;
}

.lyrics-line.active {
    font-weight: 600;
    color: var(--primary-color);
    opacity: 1;
}

/* Lyrics animation */
.lyrics-fade-in {
    animation: fadeIn 0.5s ease;
}

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

.music-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}

.play-pause {
    background: none;
    border: 1px solid rgba(201, 164, 92, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 9px;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.play-pause:hover {
    transform: scale(1.08);
    background-color: rgba(201, 164, 92, 0.12);
    color: var(--secondary-color);
}

.progress-container {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.time-display {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: rgba(var(--text-color-rgb), 0.55);
}

/* Welcome Panel */
.welcome-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 8, 6, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.welcome-panel.visible {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    background-color: #141815;
    border: 1px solid rgba(201, 164, 92, 0.2);
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.welcome-icon {
    font-size: 46px;
    color: var(--primary-color);
    margin-bottom: 22px;
}

.welcome-content h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 27px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-content p {
    margin-bottom: 30px;
    font-size: 15px;
    color: rgba(var(--text-color-rgb), 0.65);
    line-height: 1.6;
}

.welcome-content button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    border: none;
    padding: 13px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 22px rgba(201, 164, 92, 0.25);
}

.welcome-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(201, 164, 92, 0.4);
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(var(--text-color-rgb), 0.5);
    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: 12px;
        max-height: 200px;
    }

    .profile-name {
        font-size: 25px;
    }

    .profile-bio {
        font-size: 14.5px;
    }

    .welcome-content {
        padding: 32px 22px;
    }

    .music-toggle {
        width: 32px;
        height: 32px;
        top: -32px;
        font-size: 12px;
    }

    .album-art {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .song-title {
        font-size: 14px;
    }

    .artist {
        font-size: 12px;
    }

    .play-pause {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .time-display {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }

    .profile-pic-container {
        width: 100px;
        height: 100px;
    }

    .link-item {
        padding: 13px 17px;
    }

    .link-item i {
        font-size: 19px;
        margin-right: 12px;
    }

    .welcome-content {
        padding: 26px 16px;
    }

    .welcome-icon {
        font-size: 38px;
    }

    .welcome-content h2 {
        font-size: 22px;
    }

    .welcome-content p {
        font-size: 14px;
    }

    .welcome-content button {
        padding: 11px 22px;
        font-size: 14px;
    }

    .music-player {
        padding: 9px;
        max-height: 200px;
    }

    .album-art {
        width: 42px;
        height: 42px;
        margin-right: 8px;
    }

    .music-info {
        max-width: calc(100% - 55px);
    }

    .lyrics {
        font-size: 11.5px;
        padding: 4px 6px;
        max-height: 36px;
    }

    .lyrics-container {
        max-height: 36px;
    }

    .lyrics-line {
        font-size: 11.5px;
    }
}
