/* Custom styles to complement Tailwind CSS */

/* Ensure Inter font is properly applied */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow-x: hidden;
}

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

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

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

/* Enhanced form styling */
.formkit-form {
    animation: pulse-glow 3s ease-in-out infinite;
}

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

.curriculum-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

/* Number badges with gradient animation */
.day-badge {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}

/* Enhanced focus states for accessibility */
input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

button:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Smooth transitions for interactive elements */
input, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input hover effects */
input:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Button enhancements */
.formkit-submit {
    position: relative;
    overflow: hidden;
}

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

.formkit-submit:hover::before {
    left: 100%;
}

/* Text gradient animations */
.gradient-text {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backdrop blur support fallback */
@supports not (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

/* Loading spinner enhancement */
.formkit-spinner div {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive enhancements */
@media (max-width: 640px) {
    .curriculum-card {
        margin: 0 -0.5rem;
    }
    
    .day-badge {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* Prevent flash of unstyled content */
html {
    font-display: swap;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}