:root {
    --bg: #0C0111;
    --bg-light: #1D0C29;
    --primary: #F72585; /* Hot Pink */
    --secondary: #7209B7; /* Purple */
    --accent: #FF9100; /* Orange/Gold */
    --text: #F0E6FF;
    --text-dark: #BCA9D6;
    --border: rgba(247, 37, 133, 0.2);
    --shadow: rgba(114, 9, 183, 0.3);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

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

html, body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

#blob {
    background: linear-gradient(
        to right,
        var(--primary),
        var(--accent)
    );
    height: 34vmax;
    aspect-ratio: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: rotate 20s infinite;
    opacity: 0.3;
    z-index: 0;
    filter: blur(120px);
}

#blur {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
    backdrop-filter: blur(40px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text);
}

.hero {
    text-align: center;
    padding: 8rem 0;
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.2s ease;
    letter-spacing: -2px;
}

.hero h1:hover {
    transform: scale(1.02);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons .btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 0 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    border: 1px solid var(--primary);
}
.btn.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary), 0 4px 15px rgba(247, 37, 133, 0.4);
}

.btn {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn:hover {
    background-color: var(--border);
    border-color: var(--primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
    background-color: rgba(29, 12, 41, 0.5);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card:hover {
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.feature-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-dark);
}

.showcase {
    padding: 6rem 0;
    text-align: center;
}

.showcase h2, .artist-spotlight h2, .playlist-showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.showcase p, .artist-spotlight p, .playlist-showcase p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.image-showcase img {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px var(--shadow);
}

/* Artist and Playlist Sections */
.artist-spotlight, .playlist-showcase {
    padding: 4rem 0;
    text-align: center;
}

.artist-grid, .playlist-grid {
    display: grid;
    gap: 2rem;
}

.artist-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.playlist-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.artist-card, .playlist-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    will-change: transform;
}

.artist-card img, .playlist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.artist-card:hover img, .playlist-card:hover img {
    transform: scale(1.05);
}

.artist-info, .playlist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--text);
}

.artist-info h3, .playlist-info h3 {
    margin: 0;
    font-size: 1.5rem;
}
.artist-info p {
    margin: 0.25rem 0 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.cta {
    text-align: center;
    padding: 4rem 0;
    background-color: rgba(29, 12, 41, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-dark);
    border-top: 1px solid var(--border);
}

#secret-trigger {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}
#secret-trigger:hover {
    transform: scale(1.3) rotate(15deg);
}

.flamingo-secret {
    position: fixed;
    top: 110%;
    z-index: 10000;
    pointer-events: none;
    animation: fly-up linear;
    user-select: none;
}

@keyframes fly-up {
    from {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    to {
        transform: translateY(-120vh) translateX(50px) rotate(15deg);
    }
}

/* Looping Neon Flicker */
.neon-flicker {
    animation: neon-flicker 4s linear infinite;
    text-shadow:
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--secondary),
        0 0 80px var(--secondary);
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
        0 0 4px var(--primary),
        0 0 11px var(--primary),
        0 0 19px var(--primary),
        0 0 40px var(--secondary),
        0 0 80px var(--secondary);
    }
    20%, 24%, 55% {       
        text-shadow: none;
    }
}

/* Add styles for audio controls and visualizer */
.playlist-card {
    position: relative;
}

.playlist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.playlist-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.play-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 8px var(--primary);
    width: fit-content;
    min-width: 120px;
}

.play-button:hover {
    background-color: #e0207f;
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--primary), 0 0 20px var(--primary);
}

.play-button.playing {
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary), 0 0 15px var(--secondary);
}

.play-button.playing:hover {
    background-color: #61079d;
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--secondary), 0 0 20px var(--secondary);
}

.visualizer-canvas {
    width: calc(100% - 2rem);
    max-width: 300px;
    height: 80px;
    display: block;
    background-color: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(247, 37, 133, 0.2);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* Mobile specific adjustments for playlists */
    .play-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .visualizer-canvas {
        height: 60px;
        width: calc(100% - 1.5rem);
    }

    .playlist-info {
        padding: 0.75rem;
    }
    
    .playlist-info h3 {
        font-size: 1.2rem;
    }
}