:root {    --md-primary: #BDA284;
    --md-onPrimary: #E59647;
    --md-primaryContainer: #FF9933;
    --md-onPrimaryContainer: #EADDFF;
    --md-secondary: #CCC2DC;
    --md-surface: #171511;
    --md-surfaceVariant: #2B2930;
    --md-onSurface: #E6E1E5;
    --md-onSurfaceVariant: #CAC4D0;
    --md-outline: #938F99;
    --md-background: #141218;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--md-background);
    color: var(--md-onSurface);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.background-container .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(20, 18, 24, 0.8);
    z-index: 1;
}

.main-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
    animation: fadeIn 0.6s ease-out forwards;
}

.profile-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
}

.profile-image-wrapper:hover .sparkle-icon {
    transform: rotate(0deg);
}

.image-frame {
    width: 128px;
    height: 128px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 4px solid var(--md-surface);
    outline: 2px solid var(--md-primaryContainer);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sparkle-icon {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background-color: var(--md-primary);
    color: var(--md-onPrimary);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: rotate(6deg);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sparkle-icon svg {
    width: 16px;
    height: 16px;
}

h1 {
    font-size: 1.875rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.25rem;
    color: var(--md-onSurface);
}

.subtitle {
    color: var(--md-secondary);
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
    font-size: 1rem;
}

.chips {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chip {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(43, 41, 48, 0.6);
    backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--md-secondary);
    border: 1px solid rgba(147, 143, 153, 0.2);
}

.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.link-card {
    position: relative;
    width: 100%;
    background-color: var(--md-surfaceVariant);
    color: var(--md-onSurfaceVariant);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    user-select: none;
}

.link-card:hover {
    background-color: var(--md-primaryContainer);
    color: var(--md-onPrimaryContainer);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    user-select: none;
}

.link-card:active {
    transform: scale(0.98);
    user-select: none;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--md-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-primary);
    transition: colors 0.3s;
}

.icon-circle svg {
    width: 20px;
    height: 20px;
}

.link-card:hover .icon-circle {
    background-color: var(--md-primary);
    color: var(--md-onPrimary);
}

.text-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.text-content .title {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.25;
}

.text-content .desc {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 2px;
}

.link-card:hover .text-content .desc {
    opacity: 0.9;
}

.arrow-icon {
    transform: translateX(1rem);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.arrow-icon svg {
    width: 20px;
    height: 20px;
}

.link-card:hover .arrow-icon {
    transform: translateX(0);
    opacity: 1;
}

.music-player {
    width: 100%;
    background-color: var(--md-surfaceVariant);
    border-radius: 28px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out 0.1s both;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.album-art-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.music-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background-color: var(--md-primaryContainer);
    color: var(--md-onPrimaryContainer);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-badge svg {
    width: 12px;
    height: 12px;
}

.song-info {
    display: flex;
    flex-direction: column;
}

.song-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--md-onSurface);
}

.artist-name {
    font-size: 0.9rem;
    color: var(--md-onSurfaceVariant);
    opacity: 0.8;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.device-pill {
    background-color: var(--md-primaryContainer);
    color: var(--md-onPrimaryContainer);
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.device-pill svg {
    width: 14px;
    height: 14px;
}

.play-pause-btn {
    background: none;
    border: none;
    color: var(--md-onSurface);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

footer {
    margin-top: 3rem;
    text-align: center;
    opacity: 0.4;
    font-size: 0.875rem;
}

footer .small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

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

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