/* =====================================================
   TJ Promotions - Parallax & Animation System
   Modern parallax effects and animations for all themes
   ===================================================== */

/* ===== PARALLAX EFFECTS ===== */
.parallax-container {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

/* ===== ZOOM EFFECTS ===== */
.zoom-on-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.zoom-image {
    transition: transform 0.4s ease;
    transform-origin: center;
}

.zoom-image:hover {
    transform: scale(1.1);
}

/* ===== FADE ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== ANIMATION CLASSES ===== */
.tj-animate {
    opacity: 0;
    transition: all 0.6s ease;
}

.tj-animate.tj-animated {
    opacity: 1;
}

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

.tj-fade-down {
    animation: fadeInDown 0.8s ease forwards;
}

.tj-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.tj-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

.tj-zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

/* ===== DELAY CLASSES ===== */
.tj-delay-100 { animation-delay: 0.1s; }
.tj-delay-200 { animation-delay: 0.2s; }
.tj-delay-300 { animation-delay: 0.3s; }
.tj-delay-400 { animation-delay: 0.4s; }
.tj-delay-500 { animation-delay: 0.5s; }
.tj-delay-600 { animation-delay: 0.6s; }
.tj-delay-700 { animation-delay: 0.7s; }
.tj-delay-800 { animation-delay: 0.8s; }

/* ===== BUTTON ANIMATIONS ===== */
.tj-btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.tj-btn-animate::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 ease;
}

.tj-btn-animate:hover::before {
    left: 100%;
}

.tj-btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tj-btn-animate:active {
    transform: translateY(0);
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatReverse {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.tj-float {
    animation: float 3s ease-in-out infinite;
}

.tj-float-reverse {
    animation: floatReverse 3s ease-in-out infinite;
}

.tj-float-slow {
    animation: float 6s ease-in-out infinite;
}

/* ===== BACKGROUND PARALLAX ===== */
.tj-parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.tj-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.tj-parallax-content {
    position: relative;
    z-index: 2;
}

/* ===== GRADIENT ANIMATIONS ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.tj-gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* ===== CARD ANIMATIONS ===== */
.tj-card-animate {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.tj-card-animate:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== ICON ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

.tj-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.tj-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* ===== TEXT ANIMATIONS ===== */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.tj-typewriter {
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    animation: typewriter 3s steps(40, end);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.tj-scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .tj-parallax-bg {
        background-attachment: scroll;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .zoom-on-hover:hover {
        transform: scale(1.02);
    }
    
    .tj-card-animate:hover {
        transform: translateY(-5px);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.tj-animate,
.tj-scroll-reveal,
.zoom-on-hover,
.tj-card-animate,
.tj-btn-animate {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===== THEME-SPECIFIC ENHANCEMENTS ===== */

/* Light Green Theme Enhancements */
.light-green-theme .tj-btn-animate:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Dark Violet Theme Enhancements */
.dark-violet-theme .tj-btn-animate:hover {
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.3);
}

/* Minimal Theme Enhancements */
.minimal-theme .tj-btn-animate:hover {
    box-shadow: 0 8px 25px rgba(198, 79, 255, 0.3);
}

/* Light Orange Theme Enhancements */
.light-orange-theme .tj-btn-animate:hover {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* Deep Blue Theme Enhancements */
.deep-blue-theme .tj-btn-animate:hover {
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

/* Dark Mode Theme Enhancements */
.dark-mode-theme .tj-btn-animate:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
} 