/* ========================================
   EFEITOS VISUAIS AVANÇADOS - SHAPEDOG LP
   ======================================== */

/* Variáveis para efeitos */
:root {
    --glow-orange: 0 0 20px rgba(255, 107, 53, 0.3);
    --glow-orange-strong: 0 0 30px rgba(255, 107, 53, 0.5);
    --shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    --particle-size: 4px;
}

/* ========================================
   ANIMAÇÕES DE ENTRADA
   ======================================== */

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

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: var(--glow-orange);
    }
    50% {
        box-shadow: var(--glow-orange-strong);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   CLASSES DE ANIMAÇÃO
   ======================================== */

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

.animate-shimmer {
    background: var(--shimmer);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Delays para animações */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   EFEITOS DE BACKGROUND ANIMADO
   ======================================== */

.bg-particles {
    position: relative;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.bg-gradient-animated {
    background: linear-gradient(45deg, #FF6B35, #FF8C42, #E55A2B, #FF6B35);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   EFEITOS HOVER AVANÇADOS
   ======================================== */

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: var(--glow-orange-strong);
    transform: translateY(-2px);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer);
    transition: left 0.5s;
}

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

/* ========================================
   EFEITOS DE TEXTO
   ======================================== */

.text-glow {
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.text-gradient-animated {
    background: linear-gradient(45deg, #FF6B35, #FF8C42, #E55A2B);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.text-typing {
    overflow: hidden;
    border-right: 2px solid var(--primary-orange);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-orange);
    }
}

/* ========================================
   EFEITOS DE LOADING
   ======================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 53, 0.1);
    border-left: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ========================================
   EFEITOS DE PARALLAX
   ======================================== */

.parallax-slow {
    transform: translateZ(0);
    transition: transform 0.1s linear;
}

.parallax-medium {
    transform: translateZ(0);
    transition: transform 0.1s linear;
}

.parallax-fast {
    transform: translateZ(0);
    transition: transform 0.1s linear;
}

/* ========================================
   EFEITOS GLASSMORPHISM
   ======================================== */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-orange {
    background: rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* ========================================
   EFEITOS DE PARTÍCULAS DECORATIVAS
   ======================================== */

.decorative-dots {
    position: relative;
}

.decorative-dots::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: 
        radial-gradient(circle at 2px 2px, var(--primary-orange) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

/* ========================================
   SCROLL EFFECTS
   ======================================== */

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

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

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   RESPONSIVE EFFECTS
   ======================================== */

@media (max-width: 768px) {
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: 0.6s;
    }
    
    .hover-lift:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .decorative-dots::after {
        width: 60px;
        height: 60px;
        background-size: 15px 15px;
    }
}

@media (max-width: 480px) {
    .glass {
        backdrop-filter: blur(10px);
    }
    
    .animate-float {
        animation-duration: 6s;
    }
    
    .text-glow {
        text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
