/* AI Readiness Checklist Pro - IT Splash Branded Animations */
/* Optimized for #FACF39 (Yellow) & #000000 (Black) color scheme */

/* Notification Styles */
.airc-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    max-width: 350px;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Rubik', sans-serif;
    border: 2px solid transparent;
}

.airc-notification-show {
    right: 20px;
}

.airc-notification-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-color: #16a34a;
}

.airc-notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #dc2626;
}

.airc-notification-info {
    background: linear-gradient(135deg, #FACF39 0%, #FFD700 100%);
    color: #000000;
    border-color: #FFD700;
}

.airc-notification::before {
    content: '';
    width: 26px;
    height: 26px;
    background-size: contain;
    flex-shrink: 0;
}

.airc-notification-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
}

/* Error Field Animation */
.airc-error {
    animation: shake 0.5s ease-in-out;
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Checkbox Animations */
.airc-checked-animation {
    animation: checkPulse 0.5s ease-out;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { 
        transform: scale(1.08); 
        background: linear-gradient(to right, rgba(250, 207, 57, 0.2), rgba(250, 207, 57, 0.1));
    }
    100% { transform: scale(1); }
}

.airc-unchecked-animation {
    animation: uncheckFade 0.3s ease-out;
}

@keyframes uncheckFade {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Section Complete Animation */
.airc-section-complete {
    position: relative;
    animation: sectionComplete 0.6s ease-out;
}

.airc-section-complete::after {
    content: '✓';
    position: absolute;
    top: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FACF39 0%, #FFD700 100%);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    animation: completeCheck 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(250, 207, 57, 0.4);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes sectionComplete {
    0% { background: #fafafa; }
    50% { background: rgba(250, 207, 57, 0.1); }
    100% { background: linear-gradient(135deg, rgba(250, 207, 57, 0.08) 0%, rgba(250, 207, 57, 0.03) 100%); }
}

@keyframes completeCheck {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(360deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Intersection Observer Animations */
.airc-animated {
    animation: fadeInUp 0.6s ease-out;
}

.airc-section:nth-child(odd).airc-animated {
    animation: fadeInLeft 0.6s ease-out;
}

.airc-section:nth-child(even).airc-animated {
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.airc-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.airc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin: -22.5px 0 0 -22.5px;
    border: 4px solid rgba(250, 207, 57, 0.2);
    border-top-color: #FACF39;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(250, 207, 57, 0.3);
}

/* Progress Bar Animations */
.airc-progress-fill {
    position: relative;
    overflow: hidden;
}

.airc-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Score Display Animations */
.airc-score-display {
    position: relative;
    display: inline-block;
}

.airc-score-display::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, #FACF39, #FFD700);
    border-radius: 50%;
    opacity: 0.15;
    animation: scorePulse 2s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes scorePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.25;
    }
}

/* Recommendation Card Hover */
.airc-recommendation-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.airc-recommendation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 207, 57, 0.1), transparent);
    transition: left 0.5s ease;
}

.airc-recommendation-item:hover::before {
    left: 100%;
}

.airc-recommendation-item:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 18px 45px rgba(250, 207, 57, 0.25);
    border-left-width: 8px;
}

.airc-recommendation-item h4 {
    transition: color 0.3s ease;
}

.airc-recommendation-item:hover h4 {
    color: #FACF39;
    text-shadow: 0 0 20px rgba(250, 207, 57, 0.3);
}

/* CTA Button Animations */
.airc-cta-section .airc-btn-primary {
    position: relative;
    overflow: hidden;
}

.airc-cta-section .airc-btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.airc-cta-section .airc-btn-primary:hover::after {
    width: 450px;
    height: 450px;
}

/* Tooltip Animations */
.airc-tooltip svg {
    transition: transform 0.3s ease, fill 0.3s ease;
    fill: currentColor;
}

.airc-tooltip:hover svg {
    transform: scale(1.25) rotate(20deg);
    fill: #FACF39;
}

/* Form Field Focus Animations */
.airc-input {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.airc-input:focus {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #ffffff, rgba(250, 207, 57, 0.02));
}

.airc-form-group {
    position: relative;
}

.airc-form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FACF39, #FFD700);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.airc-form-group:focus-within::after {
    width: 100%;
}

/* Chart Container Animation */
.airc-chart-container {
    animation: fadeIn 1s ease-out 0.5s both;
}

.airc-chart-container canvas {
    animation: scaleIn 0.8s ease-out 0.7s both;
}

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

/* Mobile Touch Feedback */
@media (hover: none) {
    .airc-item-label:active {
        background: rgba(250, 207, 57, 0.1);
    }
    
    .airc-btn-primary:active {
        transform: scale(0.97);
    }
}

/* Skeleton Loading */
.airc-skeleton {
    background: linear-gradient(
        90deg,
        #f3f3f3 25%,
        #e8e8e8 50%,
        #f3f3f3 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Confetti Animation (for perfect scores) */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(350px) rotate(720deg);
        opacity: 0;
    }
}

.airc-confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    top: -12px;
    animation: confetti 3s ease-in-out forwards;
    background: #FACF39;
    z-index: 10000;
}

.airc-confetti:nth-child(even) {
    background: #FFD700;
    animation-delay: 0.2s;
}

.airc-confetti:nth-child(3n) {
    background: #000000;
    animation-delay: 0.4s;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.airc-gradient-text {
    background: linear-gradient(
        -45deg,
        #FACF39,
        #FFD700,
        #FACF39,
        #FFD700
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Micro-interactions */
.airc-section-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.airc-section:hover .airc-section-icon {
    transform: scale(1.25) rotate(15deg);
    filter: drop-shadow(0 4px 8px rgba(250, 207, 57, 0.3));
}

/* Advanced Button States */
.airc-btn-primary {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.airc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cccccc !important;
}

.airc-btn-primary:not(:disabled):active {
    transform: scale(0.97);
}

/* Success State Animations */
.airc-success {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    60% { transform: scale(0.92); }
    80% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Glow Effect for Primary Elements */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(250, 207, 57, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(250, 207, 57, 0.4), 0 0 40px rgba(250, 207, 57, 0.2);
    }
    100% {
        box-shadow: 0 0 5px rgba(250, 207, 57, 0.2);
    }
}

.airc-btn-primary:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Parallax Effect for Header */
.airc-header {
    transform: translateZ(0);
    will-change: transform;
}

/* Performance Optimizations */
.airc-container * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.airc-container img,
.airc-container svg {
    will-change: transform;
}

/* Special Animation for High Scores */
@keyframes celebration {
    0% {
        transform: scale(1) rotate(0deg);
    }
    10% {
        transform: scale(1.1) rotate(-5deg);
    }
    20% {
        transform: scale(1) rotate(5deg);
    }
    30% {
        transform: scale(1.1) rotate(-5deg);
    }
    40% {
        transform: scale(1) rotate(5deg);
    }
    50% {
        transform: scale(1.05) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.airc-score-success {
    animation: celebration 1s ease-out;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .airc-progress-fill::after,
    .airc-score-display::before {
        display: none;
    }
}