/* ===================================
   ANIMATIONS & EFFECTS CSS
   animations.css
   =================================== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-yellow);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-yellow), 0 0 30px var(--primary-yellow);
    }
}

/* Glow Effect */
@keyframes scale {
   0%{
    transform: scale(0.7);
   }
   100%{
    transform: scale(1);
   }
}

/* ===================================
   ANIMATION CLASSES
   =================================== */

/* Hero Section Animations */
.hero-section .hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-section .hero-title {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-section .trust-badge {
    animation: zoomIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-section .hero-description {
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-section .btn-cta {
    animation: bounceIn 1s ease-out 1s forwards;
    opacity: 0;
}

/* Publishers Strip Animation */
/* Publishers Strip Animation - Smooth Scroll */
.marquee-content {
    animation: marquee 30s linear infinite;
}

/* Slow down on hover */
.marquee-content:hover {
    animation-play-state: paused;
}

/* Individual logo fade in (on page load) */
.publisher-logo {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.publisher-logo:nth-child(1) { animation-delay: 0.1s; }
.publisher-logo:nth-child(2) { animation-delay: 0.2s; }
.publisher-logo:nth-child(3) { animation-delay: 0.3s; }
.publisher-logo:nth-child(4) { animation-delay: 0.4s; }
.publisher-logo:nth-child(5) { animation-delay: 0.5s; }
.publisher-logo:nth-child(6) { animation-delay: 0.6s; }
.publisher-logo:nth-child(7) { animation-delay: 0.7s; }

/* Book Grid Animation */
.book-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.book-item:nth-child(1) { animation-delay: 0.1s; }
.book-item:nth-child(2) { animation-delay: 0.2s; }
.book-item:nth-child(3) { animation-delay: 0.3s; }
.book-item:nth-child(4) { animation-delay: 0.4s; }
.book-item:nth-child(5) { animation-delay: 0.5s; }
.book-item:nth-child(6) { animation-delay: 0.6s; }

/* Timeline Animation */
.timeline-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

/* Timeline Icon Pulse */
.timeline-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Book Mockup Float */
.mockup-image {
    animation: float 4s ease-in-out infinite;
}

/* Hover Effects */
.book-item img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-item img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.book-card {
    transition: all 0.4s ease;
}

.book-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Button Animations */
.control-btn {
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.15);
    color: var(--primary-yellow);
}

.carousel-arrow {
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

/* Social Links Animation */
.social-links a,
.social-links-footer a {
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-links-footer a:hover {
    transform: translateY(-3px);
}

/* Footer Links Underline Effect */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Page Load Animation */
body {
    animation: fadeIn 0.5s ease-in;
    overflow: hidden !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Disable complex animations on mobile */
@media (max-width: 768px) {
    .float,
    .pulse {
        animation: none;
    }
    
    .timeline-icon {
        animation: none;
margin-bottom: 0px;
    }
    
    .mockup-image {
        animation: none;
    }
}

/* ===================================
   END OF ANIMATIONS.CSS
   =================================== */