/* Custom animations and styles */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.7;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

/* Card styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.dark .card {
    background: rgba(31, 41, 55, 0.95);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Mode buttons */
.mode-btn {
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid transparent;
}

.mode-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mode-btn-active {
    border-color: white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Download button */
.download-btn {
    background: linear-gradient(135deg, #10b981, #14b8a6, #3b82f6);
    color: white;
    padding: 1rem 3rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: pulse-glow 2s infinite;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.download-btn:active {
    transform: scale(0.98);
}

/* Input focus animation */
input:focus {
    animation: pulse-glow 1s ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e2e8f0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blob-1, .blob-2, .blob-3 {
        width: 200px;
        height: 200px;
    }
    
    h1 {
        font-size: 3rem !important;
    }
}