/* Only keeping animations and specific effects that are cleaner in CSS */

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5, #0000);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #c026d3, #0000);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, #0000);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Back to Home Button */
.back-home-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    padding: 12px 24px;
    background: rgba(255, 102, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff6600;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-home-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ff6600;
}

/* Modal Transitions handled by class toggling in JS */
.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
        padding-top: 4rem;
        /* Add space for back button */
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .back-home-btn {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
        background: rgba(255, 102, 0, 0.9);
        /* More opaque background */
        backdrop-filter: none;
        /* Better performance */
        z-index: 100;
        /* Ensure it stays on top */
    }

    .app-container {
        padding: 1rem;
        /* Reduce padding further */
        width: 100%;
    }

    .input-section,
    .options-section,
    .results-section {
        padding: 1rem;
        width: 100%;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Prevent input overflow */
    input,
    select,
    textarea {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        /* Crucial for padding */
    }

    .generate-btn {
        width: 100%;
    }
}

main>header {
    animation: fadeInDown 1s ease-out;
}

main>div {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}