@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

/* Global Styles */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background: #000000;
}

/* Background layer - FIXED FOR MOBILE */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -2;
}

/* Gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(220, 53, 69, 0.1), rgba(40, 167, 69, 0.1));
    z-index: -1;
}

/* Content Overlay - IMPROVED FOR MOBILE */
.content-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    /* Remove backdrop-filter for better mobile support */
}

/* Glass Effect - MOBILE OPTIMIZED */
.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Remove backdrop-filter for better performance */
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffc107, #dc3545, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Add fallback for older browsers */
    color: #ffc107;
}

/* Social Button 3D Effect */
.social-btn-3d {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 6px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.social-btn-3d:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 10px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.social-btn-3d:active {
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.3),
        0 3px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.social-btn-3d::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.social-btn-3d:hover::after {
    bottom: -12px;
    width: 95%;
    opacity: 0.8;
}

/* Instagram button specific */
a[href*="instagram"] .social-btn-3d::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 40%, 
        rgba(138, 58, 185, 0.2) 100%);
}

/* YouTube button specific */
a[href*="youtube"] .social-btn-3d::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 40%, 
        rgba(255, 0, 0, 0.2) 100%);
}

/* Animations - SIMPLIFIED FOR MOBILE */
.floating-animation {
    animation: float 3s ease-in-out infinite;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.6); 
    }
}

/* Music Notes Animation - TRANSPARENT BLACK EMOJI STYLE */
.music-note {
    position: fixed;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.15);
    animation: float-notes-3d 20s linear infinite;
    z-index: 0;
    transform-style: preserve-3d;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.1),
        0 -1px 2px rgba(0, 0, 0, 0.2);
    filter: blur(0.3px);
}

/* Remove all effects */
.music-note::before,
.music-note::after {
    display: none;
}

@keyframes float-notes-3d {
    0% { 
        transform: translateY(110vh) rotateY(0deg) rotateX(0deg) scale(0.5); 
        opacity: 0;
    }
    5% { 
        opacity: 0.6;
        transform: translateY(95vh) rotateY(30deg) rotateX(10deg) scale(0.7);
    }
    10% { 
        opacity: 0.8;
        transform: translateY(85vh) rotateY(60deg) rotateX(20deg) scale(0.9);
    }
    50% { 
        opacity: 1;
        transform: translateY(40vh) rotateY(180deg) rotateX(180deg) scale(1.1);
    }
    90% { 
        opacity: 0.8;
        transform: translateY(5vh) rotateY(300deg) rotateX(340deg) scale(0.9);
    }
    95% {
        opacity: 0.4;
        transform: translateY(-5vh) rotateY(330deg) rotateX(350deg) scale(0.7);
    }
    100% { 
        transform: translateY(-20vh) rotateY(360deg) rotateX(360deg) scale(0.5); 
        opacity: 0;
    }
}

/* Different sizes and delays for variety */
.music-note:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 22s;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.12);
}

.music-note:nth-child(2) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 24s;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.15);
}

.music-note:nth-child(3) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 20s;
    font-size: 2.2rem;
    color: rgba(0, 0, 0, 0.1);
}

.music-note:nth-child(4) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 26s;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.18);
}

.music-note:nth-child(5) {
    left: 90%;
    animation-delay: 2s;
    animation-duration: 23s;
    font-size: 2.3rem;
    color: rgba(0, 0, 0, 0.13);
}

/* Remove alternate animation - all notes go straight up */
.music-note:nth-child(odd) {
    animation-name: float-notes-3d;
}

@keyframes float-notes-3d-alt {
    0% { 
        transform: translateY(100vh) translateX(0) translateZ(0) rotateY(0deg) scale(0.5); 
        opacity: 0;
    }
    10% { 
        opacity: 0.8;
        transform: translateY(80vh) translateX(-20px) translateZ(30px) rotateY(45deg) scale(0.8);
    }
    30% {
        transform: translateY(60vh) translateX(30px) translateZ(50px) rotateY(120deg) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(40vh) translateX(-40px) translateZ(70px) rotateY(180deg) scale(1.2);
    }
    70% {
        transform: translateY(20vh) translateX(20px) translateZ(50px) rotateY(270deg) scale(1);
    }
    90% { 
        opacity: 0.6;
        transform: translateY(5vh) translateX(-10px) translateZ(20px) rotateY(340deg) scale(0.7);
    }
    100% { 
        transform: translateY(-10vh) translateX(0) translateZ(0) rotateY(360deg) scale(0.5); 
        opacity: 0;
    }
}

/* Typography */
.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}

/* Album Cards */
.album-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.album-card:hover {
    transform: translateY(-10px) rotateY(5deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: #ffc107;
    transform: scale(1.2);
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* MOBILE SPECIFIC FIXES */
@media screen and (max-width: 768px) {
    /* Ensure background is visible on mobile */
    body {
        background-color: #000000;
    }
    
    body::before {
        position: fixed !important;
        background-attachment: fixed !important;
    }
    
    /* Better content overlay for mobile */
    .content-overlay {
        background: rgba(0, 0, 0, 0.7);
        min-height: 100vh;
    }
    
    /* Fix section padding */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Improve glass effect on mobile */
    .glass-effect {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 1.5rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    /* Hide scroll indicator on mobile */
    .scroll-indicator { 
        display: none; 
    }
    
    /* Adjust typography for mobile */
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
        line-height: 1.1;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2rem;
    }
    
    /* Fix text readability */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Disable complex animations on mobile */
    .floating-animation {
        animation: none;
    }
    
    /* Music notes - simplified for mobile but still visible */
    .music-note {
        animation: float-notes-mobile 25s linear infinite;
        font-size: 1.8rem;
        color: rgba(0, 0, 0, 0.1);
        text-shadow: 
            0 1px 1px rgba(255, 255, 255, 0.1),
            0 -1px 1px rgba(0, 0, 0, 0.1);
        filter: none;
    }
    
    @keyframes float-notes-mobile {
        0% { 
            transform: translateY(110vh) scale(0.5); 
            opacity: 0;
        }
        10% { 
            opacity: 0.6;
        }
        90% { 
            opacity: 0.6;
        }
        100% { 
            transform: translateY(-20vh) scale(0.5); 
            opacity: 0;
        }
    }
    
    /* Social buttons mobile optimization */
    .social-btn-3d {
        transform: translateY(0) rotateX(5deg) !important;
        min-width: 160px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        box-shadow: 
            0 8px 15px rgba(0, 0, 0, 0.3),
            0 4px 4px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    
    .social-btn-3d:active {
        transform: translateY(2px) rotateX(2deg) !important;
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 2px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    }
    
    .social-btn-3d::after {
        display: none; /* Hide shadow on mobile for performance */
    }
    
    /* Album cards mobile */
    .album-card {
        transform: none !important;
        margin-bottom: 2rem;
    }
    
    .album-card:hover {
        transform: translateY(-5px) !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    /* Further optimize for small screens */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .glass-effect {
        padding: 1.25rem !important;
        margin: 0 -0.5rem;
    }
    
    /* Fix container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Social buttons stacked */
    .social-btn-3d {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Album grid single column */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    body::before {
        position: fixed !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .content-overlay {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Fix for notch/safe areas */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}