@keyframes float {

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

    33% {
        transform: translate(50px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

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

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes shake {

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

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in;
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.8s ease-out;
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

.animate-shake {
    animation: shake 0.5s;
}

.bg-gradient-romantic {
    background: radial-gradient(circle at top left, #b3002d 0%, #4b0012 45%, #11030a 90%);
}

.bg-gradient-main {
    background: linear-gradient(135deg, #b3002d 0%, #ff6b8a 55%, #ffe3ea 100%);
}

.text-gradient-main {
    background: linear-gradient(135deg, #b3002d 0%, #ff6b8a 55%, #ffe3ea 100%);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #b3002d 0%, #ff6b8a 55%, #ffe3ea 100%);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s;
}

.calculate-btn:hover::before {
    left: 100%;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 138, 0.8), transparent 70%);
    opacity: 1;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

/* FAQ Accordion Styles */
.faq-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 138, 0.4);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(255, 107, 138, 0.1);
}

.faq-question:focus {
    outline: none;
    background-color: rgba(255, 107, 138, 0.15);
}

.faq-icon {
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 107, 138, 0.2);
    transition: all 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    background-color: rgba(255, 107, 138, 0.4);
    transform: rotate(180deg);
}

.faq-answer {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer>div {
    border-top: 1px solid rgba(255, 107, 138, 0.3);
    padding-top: 1rem;
}

/* Navigation fixes */
nav ul#navLinks {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

nav ul#navLinks li a {
    white-space: nowrap;
}

/* Responsive navigation font size for smaller screens */
@media (max-width: 1024px) and (min-width: 768px) {
    nav ul#navLinks li a {
        font-size: 0.875rem;
    }
}

/* Heading alignment fixes */
h1.text-gradient-main {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure main content containers are properly centered */
.max-w-\[900px\] {
    width: 100%;
    max-width: 900px;
}

.max-w-\[1200px\] {
    width: 100%;
    max-width: 1200px;
}

/* Toast Notification Styles */
#toast {
    min-width: 250px;
    max-width: 90%;
    word-wrap: break-word;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Badge Modal Animation */
@keyframes badgeUnlock {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.badge-item.unlocked {
    animation: badgeUnlock 0.6s ease-out;
}

/* Challenge Hero Styles */
#challengeHero {
    animation: fadeIn 0.6s ease-in;
}

/* Loading Animation Styles */
.loading-dot {
    animation: bounce 1.4s infinite ease-in-out both;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress Bar Glow Effect */
#progressBar {
    box-shadow: 0 0 10px rgba(255, 107, 138, 0.6),
        0 0 20px rgba(255, 107, 138, 0.4),
        0 0 30px rgba(255, 107, 138, 0.2);
    position: relative;
    overflow: hidden;
}

#progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}