/* ============================================
   ANIMAÇÕES - Transições suaves
   ============================================ */

/* ============================================
   FADE-IN SCROLL
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forward;
}

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

/* ============================================
   SLIDE ANIMATIONS
   ============================================ */

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

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

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

/* ============================================
   PULSE ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* ============================================
   GLOW ANIMATIONS
   ============================================ */

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 0, 0.6);
    }
}

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

/* ============================================
   BOUNCE ANIMATIONS
   ============================================ */

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

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

/* ============================================
   SCALE ANIMATIONS
   ============================================ */

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease;
}

/* ============================================
   ROTATE ANIMATIONS
   ============================================ */

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

.rotate {
    animation: rotate 20s linear infinite;
}

/* ============================================
   STAGGER ANIMATIONS
   ============================================ */

.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.2s; }
.stagger-item:nth-child(4) { animation-delay: 0.3s; }
.stagger-item:nth-child(5) { animation-delay: 0.4s; }
.stagger-item:nth-child(6) { animation-delay: 0.5s; }

/* ============================================
   INTERACTION ANIMATIONS
   ============================================ */

/* Hover effect para cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hover effect para botões */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
}

.btn-hover:hover {
    transform: translateY(-2px);
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

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

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 0, 0.3);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page-enter {
    animation: fadeInUp 0.6s ease;
}

.page-exit {
    animation: fadeOutDown 0.6s ease;
}

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

/* ============================================
   SMOOTH SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c33;
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: var(--orange);
    color: #000;
}

::-moz-selection {
    background: var(--orange);
    color: #000;
}

/* ============================================
   PARALLAX & TRANSFORM UTILITIES
   ============================================ */

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================================
   TRANSITIONS GLOBAIS
   ============================================ */

button,
a,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* ============================================
    DUST PARTICLE EFFECT - BACKGROUND ANIMATION
   ============================================ */

.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle at 30% 30%, #ffaa00, rgba(255, 107, 0, 0.5));
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(0.6px);
    box-shadow: 0 0 4px rgba(255, 170, 0, 0.8);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

@keyframes float-left {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.85;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(-70px);
        opacity: 0;
    }
}

@keyframes float-right {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.55;
    }
    100% {
        transform: translateY(-100vh) translateX(120px);
        opacity: 0;
    }
}

/* ============================================
   ATIVA/DESATIVA ANIMAÇÕES POR PREFERÊNCIA
   ============================================ */

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