/* ===================================
   Efeitos Visuais Avançados - LigadoUS
   Inspirado em Stickybit
   =================================== */

/* Variáveis CSS Customizadas */
:root {
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    --secondary-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --dark-gradient: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Animações Globais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Classes de Animação */
.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

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

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

/* Efeitos de Gradiente */
.gradient-primary {
    background: var(--primary-gradient);
}

.gradient-secondary {
    background: var(--secondary-gradient);
}

.gradient-dark {
    background: var(--dark-gradient);
}

.gradient-animated {
    background: linear-gradient(-45deg, #2563EB, #1e3a8a, #64748b, #1e40af, #475569, #2563EB);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efeitos Glass Morphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-white {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sombras Suaves */
.shadow-soft {
    box-shadow: var(--shadow-md);
}

.shadow-hover {
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.shadow-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.shadow-glow:hover {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
}

/* Cards com Efeitos */
.card-hover {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-tilt {
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg) scale(1.05);
}

/* Botões com Efeitos */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.btn-scale {
    transition: all var(--transition-fast);
}

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

.btn-lift {
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Overlay com Gradiente */
.overlay-gradient {
    position: relative;
    overflow: hidden;
}

.overlay-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

/* Bordas Animadas */
.border-gradient {
    position: relative;
    background: white;
    border-radius: 12px;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.border-gradient:hover::before {
    opacity: 1;
}

/* Transições Suaves para Elementos */
.transition-all {
    transition: all var(--transition-normal);
}

.transition-transform {
    transition: transform var(--transition-normal);
}

.transition-colors {
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.transition-opacity {
    transition: opacity var(--transition-slow);
}

/* Hover Effects para Links e Textos */
.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-normal);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Parallax Effect */
.parallax {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.3);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Efeitos Avançados do Stickybit */
/* Badges com Blur */
.badge-blur {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.badge-blur:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: relative;
}

.grid-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Gradient Cards */
.card-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-gradient-pink {
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    color: white;
}

.card-gradient-sunset {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-gradient-ocean {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Cubic Bezier Transitions */
.transition-bounce {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-elastic {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

/* Rotating Gradient Background */
@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.rotating-gradient {
    position: relative;
    overflow: hidden;
}

.rotating-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, #667eea, #764ba2, #667eea);
    animation: rotate-gradient 10s linear infinite;
    opacity: 0.1;
}

/* Neumorphism Effect */
.neumorphic {
    background: #f0f0f3;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 20px 20px 60px #cbcbcd,
                -20px -20px 60px #ffffff;
}

.neumorphic-inset {
    background: #f0f0f3;
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 20px 20px 60px #cbcbcd,
                inset -20px -20px 60px #ffffff;
}

/* Text Gradient Animations */
@keyframes text-gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(90deg, #667eea, #764ba2, #e84393, #667eea);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient-flow 5s ease infinite;
}

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.spotlight:hover::before {
    opacity: 1;
}

/* Morphing Shapes */
@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%;
    }
}

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

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translateX(2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translateX(-1px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translateX(1px);
        filter: hue-rotate(360deg);
    }
}

.glitch-hover:hover {
    animation: glitch 0.3s ease infinite;
}

/* Liquid Button */
.btn-liquid {
    position: relative;
    padding: 20px 40px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-liquid:hover::before {
    width: 300px;
    height: 300px;
}

/* Particle Background */
@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: particle-float linear infinite;
}