@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Sacramento&family=Poppins:wght@300;400;600&display=swap');

/* Typography */
.font-sacramento { font-family: 'Sacramento', cursive; }
.font-dancing { font-family: 'Dancing Script', cursive; }
.font-poppins { font-family: 'Poppins', sans-serif; }

/* 1. The Premium Romantic Gradient */
.gradient-bg {
    background: linear-gradient(135deg, #f5642b 0%, #beb5b5 50%, #eb3636 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    position: relative;
    width: 100%;
    height: 100%;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.glass-effect:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: rgba(236, 72, 153, 0.6);
    transform: scale(1.05);
}

/* 3. Magic Heart Cursor Trail */
.heart-trail {
    position: fixed; /* Changed to fixed for better performance */
    pointer-events: none;
    animation: floatAndFade 1s linear forwards;
    z-index: 9999;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

@keyframes floatAndFade {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(1.5) rotate(20deg);
        opacity: 0;
    }
}

/* 4. Utilities & Animations */

/* Fade bottom of anime images */
.mask-image-b {
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

#mainIcon {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 5. Desktop Cursor Logic */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s;
    background-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    mix-blend-mode: difference;
}

/* 6. MOBILE OPTIMIZATION (Important!) */
/* This disables the custom cursor on touch devices to prevent bugs */
@media (hover: none) and (pointer: coarse) {
    .cursor-none {
        cursor: auto !important;
    }
    .custom-cursor {
        display: none !important;
    }
    /* Adjust Floating animation for mobile to save battery/performance */
    #mainIcon {
        animation: floating 5s ease-in-out infinite;
    }
}