@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* Click to start screen */
.click-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(10, 10, 30, 1) 0%,
        rgba(20, 15, 40, 1) 50%,
        rgba(10, 10, 30, 1) 100%);
    z-index: 3000;
    cursor: pointer;
    transition: opacity 1s ease;
}

.click-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.click-text {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, #fff 0%, #FF006E 50%, #8338EC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Lyrics background - always visible behind everything */
.lyrics-background {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.lyrics-word-bg {
    font-size: 15vw;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.15) 0%, 
        rgba(131, 56, 236, 0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1;
    max-width: 90vw;
    word-wrap: break-word;
}

.lyrics-word-bg.active {
    opacity: 1;
    transform: scale(1);
}

/* Animated gradient background */
.gradient-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, 
        #FF006E 0%, 
        #8338EC 25%, 
        #3A86FF 50%, 
        #8338EC 75%, 
        #FF006E 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main wrapped overlay */
.wrapped-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    z-index: 100;
    opacity: 0;
    transition: opacity 1s ease;
}

.wrapped-overlay.visible {
    opacity: 1;
}

/* Glass morphism cards */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    max-width: 600px;
    width: 90%;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
}

/* Liquid shimmer effect */
.liquid-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    background-size: 200% 200%;
    animation: liquidFlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Typography */
.slide-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    text-align: center;
}

.slide-number {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #FF006E 50%, #8338EC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -4px;
}

.slide-text {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.slide-subtext {
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Start button */
.start-button {
    background: linear-gradient(135deg, #FF006E 0%, #8338EC 100%);
    border: none;
    padding: 24px 60px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.4);
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0 auto;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-button:hover::before {
    width: 300px;
    height: 300px;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.6);
}

/* Music player */
.album-container {
    position: relative;
    margin-bottom: 40px;
}

.album-art {
    width: 300px;
    height: 300px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    margin: 0 auto;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.3) 0%, 
        rgba(131, 56, 236, 0.3) 100%);
    mix-blend-mode: overlay;
}

.song-info {
    text-align: center;
    margin-bottom: 30px;
}

.song-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.artist-name {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.navigation {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1001;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1002;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF006E 0%, #8338EC 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

/* Skip button */
.skip-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1001;
}

.skip-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Floating icon animation */
.stat-icon-large {
    font-size: 8rem;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 0, 110, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

audio {
    display: none;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-number {
        font-size: 5rem;
    }
    
    .stat-icon-large {
        font-size: 5rem;
    }
    
    .glass-card {
        padding: 40px 30px;
    }
    
    .lyrics-word-bg {
        font-size: 20vw;
    }
    
    .album-art {
        width: 200px;
        height: 200px;
    }
    
    .click-text {
        font-size: 2rem;
    }
    
    /* Mobile friendly matching PFPs */
    #slide6 .glass-card > div[style*="grid"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    #slide6 img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Mobile friendly photo gallery */
    #slide12 .glass-card > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    #slide12 img {
        width: 100% !important;
        max-width: 250px !important;
        height: 250px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}