/* ===== BOBJIS.LV MODERN ANIMATIONS ===== */

/* ===== AOS (ANIMATE ON SCROLL) EFFECTS ===== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(60px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-60px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(60px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-60px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
}

[data-aos="zoom-out"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(-100deg);
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

[data-aos="flip-right"] {
    transform: perspective(2500px) rotateY(100deg);
}

[data-aos="flip-right"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

/* ===== MODERN SLIDE-IN EFFECTS ===== */
.slide-in-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-from-bottom {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-from-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-from-top {
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-from-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== INTERACTIVE HOVER EFFECTS ===== */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ===== LOADING 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 slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: var(--accent-color);
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-slow {
    transform: translateZ(0);
    will-change: transform;
}

/* ===== MORPHING ANIMATIONS ===== */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morph {
    animation: morph 8s ease-in-out infinite;
}

/* ===== PARTICLE EFFECTS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    animation: float 10s ease-in-out infinite;
    animation-delay: -4s;
}

/* ===== GLASSMORPHISM ANIMATIONS ===== */
.glass-float {
    animation: glassFloat 6s ease-in-out infinite;
}

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

.glass-shimmer {
    position: relative;
    overflow: hidden;
}

.glass-shimmer::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;
}

.glass-shimmer:hover::before {
    left: 100%;
}

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

@keyframes glassPulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        transform: scale(1.02);
    }
}

/* ===== BUTTON ANIMATIONS ===== */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.btn-pulse {
    animation: buttonPulse 2s infinite;
}

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

.btn-shake {
    animation: buttonShake 0.5s ease-in-out;
}

/* ===== CARD ANIMATIONS ===== */
@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

.card-flip {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip:hover {
    transform: rotateY(180deg);
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    }
}

.card-glow {
    animation: cardGlow 3s ease-in-out infinite;
}

/* ===== MENU ANIMATIONS ===== */
@keyframes menuSlideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes menuSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.menu-slide-in {
    animation: menuSlideIn 0.3s ease-out;
}

.menu-slide-out {
    animation: menuSlideOut 0.3s ease-out;
}

/* ===== MODAL ANIMATIONS ===== */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

.modal-fade-in {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-fade-out {
    animation: modalFadeOut 0.3s ease-out;
}

/* ===== SCROLL PROGRESS ===== */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== CUSTOM CURSOR ===== */
@keyframes cursorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(2);
    background: rgba(255, 215, 0, 0.8);
}

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

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
}

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

/* ===== LOADING ANIMATIONS ===== */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* ===== FEATURE ANIMATIONS ===== */
@keyframes featureIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

.feature-icon-float {
    animation: featureIconFloat 3s ease-in-out infinite;
}

/* ===== SECTION TRANSITIONS ===== */
@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-reveal {
    animation: sectionReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== FORM ANIMATIONS ===== */
@keyframes formFieldFocus {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.form-field-focus {
    animation: formFieldFocus 0.3s ease-out;
}

@keyframes formSubmit {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.form-submit {
    animation: formSubmit 0.3s ease-out;
}

/* ===== RESPONSIVE ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .parallax {
        transform: none !important;
    }
    
    .custom-cursor {
        display: none;
    }
    
    [data-aos] {
        transition-duration: 0.4s;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.backface-hidden {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===== ANIMATION UTILITIES ===== */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-duration-fast {
    animation-duration: 0.3s;
}

.animate-duration-normal {
    animation-duration: 0.6s;
}

.animate-duration-slow {
    animation-duration: 1s;
}

.animate-ease-in {
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.animate-ease-out {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.animate-ease-in-out {
    animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ===== INTERSECTION OBSERVER TRIGGERS ===== */
.intersection-trigger {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intersection-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

.intersection-trigger.from-left {
    transform: translateX(-100px);
}

.intersection-trigger.from-left.visible {
    transform: translateX(0);
}

.intersection-trigger.from-right {
    transform: translateX(100px);
}

.intersection-trigger.from-right.visible {
    transform: translateX(0);
}

.intersection-trigger.scale-in {
    transform: scale(0.8);
}

.intersection-trigger.scale-in.visible {
    transform: scale(1);
}
