:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --subtext-color: #555555;
    --link-color: #111111;
    --hover-color: #444444;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0a0a0a;
        --text-color: #f0f0f0;
        --subtext-color: #aaaaaa;
        --link-color: #f0f0f0;
        --hover-color: #cccccc;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

@media (max-height: 500px) {

    html,
    body {
        overflow-y: auto;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out;
}

.profile {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile:hover {
    transform: scale(1.02);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.email {
    font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
    font-size: 1rem;
    color: var(--subtext-color);
    margin-bottom: 1.5rem;
    display: block;
}

.info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.info a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.info a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.info a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    width: 100%;
    text-align: center;
    color: var(--subtext-color);
    font-size: 0.85rem;
    opacity: 0.8;
    padding-bottom: 2rem;
    position: relative;
    margin-top: auto;
}

.spotify-badge {
    margin: 0 auto;
    display: flex;
    width: fit-content;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--subtext-color);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    max-width: 100%;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-decoration: none;
}

.spotify-badge:hover {
    opacity: 1;
    border-color: #1DB954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.15);
}

.spotify-icon {
    width: 24px;
    height: 24px;
    color: #1DB954;
    flex-shrink: 0;
}

.spotify-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
}

.spotify-song {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.spotify-artist {
    color: var(--subtext-color);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

@media (max-width: 480px) {

    .spotify-song,
    .spotify-artist {
        max-width: 160px;
    }
}

.equalizer {
    display: flex;
    align-items: center;
    height: 14px;
    gap: 2px;
    margin-left: 4px;
}

.bar {
    width: 3px;
    background-color: #1DB954;
    animation: equalize 1s infinite ease-in-out;
    border-radius: 1px;
}

.bar:nth-child(1) {
    height: 60%;
    animation-delay: -0.4s;
}

.bar:nth-child(2) {
    height: 100%;
    animation-delay: -0.2s;
}

.bar:nth-child(3) {
    height: 80%;
    animation-delay: 0s;
}

@keyframes equalize {
    0% {
        height: 20%;
    }

    50% {
        height: 100%;
    }

    100% {
        height: 20%;
    }
}
