/* National NEP-2020 Academic & Research Internship Portal Stylesheet */

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.04);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

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

.animate-float-slow {
    animation: floatSlow 7s ease-in-out infinite;
}

.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Header Shrink Transition */
#main-header {
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.header-shrunk {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(15, 41, 66, 0.3);
}

#main-header.header-shrunk img.brand-logo {
    width: 2.75rem !important;
    height: 2.75rem !important;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
    background: rgba(15, 41, 66, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Hologram */
.hologram-effect {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(112, 26, 36, 0.1), rgba(15, 41, 66, 0.15), rgba(245, 158, 11, 0.2));
    background-size: 300% 300%;
    animation: hologramShift 8s ease infinite;
}

/* CR80 Scholar ID Card Badge Spec (3.375" x 2.125" ratio) */
.cr80-card {
    aspect-ratio: 1.586;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 20px 35px -10px rgba(15, 41, 66, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.3);
}

/* Continuous Auto-Scrolling Marquee Slider */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Print optimizations */
@media print {
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Accessibility: Full Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-marquee {
        animation: none !important;
        overflow-x: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .animate-float,
    .animate-float-slow,
    .animate-pulse-glow,
    .animate-fade-in-up {
        animation: none !important;
    }
}
