/* ============================================
   AMBASSADOR BILINGUAL ACADEMY - animations.css
   Version: Final
   ============================================ */

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Float */
@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

.animate-float,
.logo-float {
    animation: float 3s ease-in-out infinite;
}

/* Language Toggle */
.lang-btn {
    transition: all 0.3s ease;
    background: transparent;
}

.lang-btn.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* ============================================
   WORK GALLERY
   RULES:
   - .gallery-container  = overflow:hidden  (clips track)
   - .gallery-wrapper    = NO overflow      (just padding)
   - .gallery-track-enhanced = width:max-content + animation
   ============================================ */

.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-gradient-left,
.gallery-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

.gallery-gradient-left {
    left: 0;
    background: linear-gradient(to right,
            rgb(249, 250, 251) 0%,
            rgba(249, 250, 251, 0.8) 50%,
            rgba(249, 250, 251, 0) 100%);
}

.gallery-gradient-right {
    right: 0;
    background: linear-gradient(to left,
            rgb(249, 250, 251) 0%,
            rgba(249, 250, 251, 0.8) 50%,
            rgba(249, 250, 251, 0) 100%);
}

.gallery-wrapper {
    padding: 24px 0;
    width: 100%;
}

/* THE ANIMATION - name matches HTML/JS */
@keyframes scroll-horizontal-enhanced {
    0% {
        transform: translateX(0);
    }

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

.gallery-track-enhanced {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-horizontal-enhanced 60s linear infinite;
    will-change: transform;
}

.gallery-track-enhanced:hover {
    animation-play-state: paused;
}

.gallery-card {
    flex-shrink: 0;
    width: 380px;
    height: 285px;
    border-radius: 14px;
    overflow: hidden;
    background: #d1d5db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.gallery-img-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-enhanced {
    transform: scale(1.07);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-card {
        width: 280px;
        height: 210px;
    }

    .gallery-gradient-left,
    .gallery-gradient-right {
        width: 60px;
    }

    .gallery-track-enhanced {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-card {
        width: 240px;
        height: 180px;
    }

    .gallery-gradient-left,
    .gallery-gradient-right {
        width: 40px;
    }
}

/* Modal */
.modal-content-box {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content-box.show {
    transform: scale(1);
    opacity: 1;
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}