:root {
    --bg-color: #fbe4d8; /* Matte Peach */
    --card-bg: #ede7f6; /* Matte Lavender */
    --accent-color: #7d93e0; /* Matte Friendly Blue */
    --text-main: #333333;
    --text-muted: #666666;
    --border-radius: 28px;
    --transition-smooth: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: 'Space Mono', monospace; /* Jazzy/Lofi Typewriter vibe */
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 100;
    opacity: 1;
    pointer-events: none;
    animation: fade-out 0.8s ease-in-out forwards;
}

@keyframes fade-out {
    100% {
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 620px; /* Reduced from 800px to restore card shape */
    padding: 20px;
    display: flex;
    justify-content: center;
}

.tilt-wrapper {
    perspective: 1200px;
    transform-style: preserve-3d;
    width: 100%;
}

.tilt-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18); /* More prominent matte drop shadow */
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: card-appear 0.8s 0.2s ease-out forwards;
}

@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.card-inner {
    position: relative;
    width: 100%;
}

.banner {
    height: 260px; /* Adjusted for card shape */
    width: 100%;
    overflow: hidden;
    position: relative;
}

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

.profile-section {
    position: relative;
    height: 120px; /* Increased from 60px to fit larger avatar */
    margin-bottom: 30px;
}

.profile-pic-wrapper {
    position: absolute;
    left: 40px;
    bottom: -20px; /* Adjusting for larger icon */
    width: 150px; /* Increased from 90px */
    height: 150px; /* Increased from 90px */
    border-radius: 50%;
    background: var(--card-bg);
    padding: 6px;
    border: 4px solid var(--card-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.content {
    padding: 15px 40px 40px 40px; /* Reduced from 30px */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.name {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    font-weight: 700;
    font-variation-settings: "SOFT" 100; /* Makes it look extra "jazzy" and smooth */
    color: var(--accent-color);
}

.bio {
    font-size: 1.1rem; /* Slightly reduced for Space Mono's wider characters */
    line-height: 1.6;
    color: var(--text-muted);
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.social-btn {
    font-family: 'Space Mono', monospace;
    text-decoration: none;
    color: white;
    background: var(--accent-color);
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the icons white to match text */
}

.play-icon {
    display: inline-block;
    padding-left: 3px; /* Visually centers the triangle */
}

.playing .play-icon {
    padding-left: 0; /* Centers the pause icon perfectly */
}

.social-btn:hover {
    transform: translateY(-4px) translateZ(35px);
    box-shadow: 0 4px 12px rgba(125, 147, 224, 0.3);
}

/* 3D Depth effects for specific items */
.name, .profile-pic-wrapper, .social-links {
    transform: translateZ(30px);
}

.bio {
    transform: translateZ(20px);
}

.bio-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.bio-link:hover {
    border-bottom: 2px solid var(--accent-color);
    filter: brightness(1.2);
}

/* Audio Player Styles */
.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 15px 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    animation: player-slide-up 1s 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes player-slide-up {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

.player-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Back to flex */
    justify-content: space-between; /* Space out the info and controls */
    align-items: center;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.track-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-color);
    font-family: 'Fraunces', serif;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 44px; /* Slightly larger */
    height: 44px; /* Slightly larger */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem; /* Slightly larger */
    transition: var(--transition-smooth);
}

.player-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(125, 147, 224, 0.3);
}
