/* Custom animations and effects */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animation {
    background: linear-gradient(-45deg, #ff6b9d, #ff8e53, #ff6b9d, #c44569);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ff6b9d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8e53;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Text selection */
::selection {
    background-color: #ff6b9d;
    color: white;
}

/* Focus styles */
input:focus, textarea:focus, button:focus {
    outline: none;
    ring: 2px;
    ring-color: #ff6b9d;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
}

/* Card hover effects */
.app-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button pulse effect */
@keyframes pulse-pink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 157, 0);
    }
}

.btn-generate:hover {
    animation: pulse-pink 1.5s infinite;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}