/* Enhanced Hero Background with Animated Particles */
.hero-bg {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23FF6B35" fill-opacity="0.05" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Loading state for background image */
.hero-bg:not(.bg-loaded)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.95) 100%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.hero-bg.bg-loaded::before {
    opacity: 0;
}

/* Mobile Hero Effects */
.mobile-blur {
    filter: blur(2px) brightness(1.1);
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-active {
    background-attachment: fixed;
}

.bg-loaded {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%),
                      url('img/bg.png');
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
    animation: fadeInBackground 0.8s ease-out;
}

@keyframes fadeInBackground {
    from {
        opacity: 0.8;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .mobile-blur {
        filter: blur(1px);
        transform: scale(1.01);
    }
    
    .hero-active {
        background-attachment: scroll;
    }
}

/* Touch interaction feedback */
.hero-bg:active {
    transform: scale(0.995);
}

@media (max-width: 768px) {
    .hero-bg:active {
        transform: scale(0.998);
    }
}

/* Animated Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #FF6B35;
    border-radius: 50%;
    opacity: 0.1;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Advanced Typography */
.bebas { 
    font-family: 'Bebas Neue', cursive; 
}

.inter { 
    font-family: 'Inter', sans-serif; 
}

/* Enhanced Glow Effects */
.glow-orange { 
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4), 0 0 60px rgba(255, 107, 53, 0.2); 
    transition: all 0.3s ease;
}

.glow-orange:hover {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6), 0 0 80px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

/* Advanced Text Gradient with Animation */
.text-gradient { 
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 50%, #FFB573 100%); 
    background-size: 200% 200%;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

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

/* Enhanced Shake Animation */
.shake-cta { 
    animation: enhanced-shake 1s ease-in-out infinite;
}

@keyframes enhanced-shake { 
    0%, 100% { transform: translateX(0px) scale(1); } 
    10% { transform: translateX(-2px) scale(1.02); }
    20% { transform: translateX(2px) scale(1.02); }
    30% { transform: translateX(-2px) scale(1.02); }
    40% { transform: translateX(2px) scale(1.02); }
    50% { transform: translateX(0px) scale(1.05); }
    60% { transform: translateX(-1px) scale(1.02); }
    70% { transform: translateX(1px) scale(1.02); }
    80% { transform: translateX(0px) scale(1.02); }
    90% { transform: translateX(0px) scale(1.01); }
}

/* Advanced Pulse Animation */
.pulse-slow { 
    animation: enhanced-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; 
}

@keyframes enhanced-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Enhanced Glass Effect */
.glass-effect { 
    backdrop-filter: blur(15px) saturate(180%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Floating Animation */
.floating { 
    animation: float-3d 4s ease-in-out infinite; 
}

@keyframes float-3d { 
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg); 
    } 
    25% { 
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg); 
    }
    50% { 
        transform: translateY(-10px) rotateX(0deg) rotateY(10deg); 
    }
    75% { 
        transform: translateY(-20px) rotateX(-5deg) rotateY(5deg); 
    }
}

/* Enhanced Before/After Effect */
.before-after { 
    position: relative; 
    overflow: hidden;
    transition: all 0.5s ease;
}

/* 3D Testimonial Cards */
.testimonial-card { 
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg); 
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover { 
    transform: perspective(1000px) rotateX(10deg) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Enhanced Pricing Cards */
.pricing-card { 
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.1), transparent);
    transition: left 0.5s ease;
}

.pricing-card:hover { 
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255,107,53,0.2);
}

.pricing-card:hover::after {
    left: 100%;
}

/* Stats Counter Animation */
.stats-counter { 
    font-variant-numeric: tabular-nums;
    animation: counter-glow 2s ease-in-out infinite;
}

@keyframes counter-glow {
    0%, 100% { color: #ef4444; text-shadow: 0 0 5px rgba(239, 68, 68, 0.5); }
    50% { color: #fca5a5; text-shadow: 0 0 15px rgba(239, 68, 68, 0.8); }
}

/* Morphing Elements */
.morph {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 50% 20% 80% 30%; }
    25% { border-radius: 30% 80% 20% 50%; }
    50% { border-radius: 80% 30% 50% 20%; }
    75% { border-radius: 20% 50% 30% 80%; }
}

/* Scroll-triggered animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.stagger-item {
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Enhanced button hover effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #FF6B35, #FF8E53);
    background-size: 200% 200%;
    animation: gradient-btn 3s ease infinite;
}

@keyframes gradient-btn {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-enhanced::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;
}

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

.btn-enhanced .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Breathing animation for important elements */
.breathe {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Matrix-like text effect */
.matrix-text {
    position: relative;
    overflow: hidden;
}

.matrix-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #FF6B35;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    animation: matrix-reveal 3s ease-in-out infinite;
}

@keyframes matrix-reveal {
    0%, 100% { clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%); }
    50% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

/* FAQ Animations */
.faq-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.faq-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.faq-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.faq-item h3 {
    cursor: pointer;
    user-select: none;
}

.faq-item p {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.faq-ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: translate(-50%, -50%);
    animation: faq-ripple-animation 1s ease-out;
    pointer-events: none;
}

@keyframes faq-ripple-animation {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.pulse-whatsapp {
    animation: whatsapp-pulse 0.5s ease-out;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.highlight-search {
    animation: highlight-flash 0.5s ease-out;
}

@keyframes highlight-flash {
    0% { background-color: rgba(255, 107, 53, 0.3); }
    100% { background-color: transparent; }
}

#faq-search:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
} 

/* Fit Test Page Styles */
.pulse-dot {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.7;
    }
}

.diagnostic-card {
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(0,0,0,0.8) 100%);
    border: 2px solid rgba(255,107,53,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.diagnostic-card:hover {
    border-color: rgba(255,107,53,0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255,107,53,0.2);
}

.form-step {
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

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

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #FF8E53);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.time-slot {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: rgba(255,107,53,0.1);
    border-color: rgba(255,107,53,0.3);
}

.time-slot.selected {
    background: rgba(255,107,53,0.2);
    border-color: #FF6B35;
    box-shadow: 0 0 15px rgba(255,107,53,0.3);
}

.urgency-banner {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    animation: urgency-pulse 2s infinite;
}

@keyframes urgency-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(220,38,38,0.5); }
    50% { box-shadow: 0 0 30px rgba(220,38,38,0.8); }
}

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

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

/* Performance optimizations */
.hero-bg {
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Smooth loading transition */
.bg-loaded {
    animation: fadeInBackground 0.8s ease-out;
}

@keyframes fadeInBackground {
    from {
        opacity: 0.8;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced floating elements for mobile */
@media (max-width: 768px) {
    .floating {
        animation: float-mobile 3s ease-in-out infinite;
    }
}

@keyframes float-mobile {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    } 
    50% { 
        transform: translateY(-8px) scale(1.02); 
    }
}

/* Hero section intersection observer states */
.hero-bg:not(.hero-active) {
    background-attachment: scroll;
}

.hero-bg.hero-active {
    background-attachment: fixed;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        animation: none;
        transition: none;
    }
    
    .mobile-blur {
        filter: none;
        transform: none;
    }
    
    .floating {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-bg {
        background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.95) 100%);
    }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .mobile-blur {
        filter: blur(1px);
        transform: scale(1.01);
    }
    
    .hero-active {
        background-attachment: scroll;
    }
}

/* Touch interaction feedback */
.hero-bg:active {
    transform: scale(0.995);
}

@media (max-width: 768px) {
    .hero-bg:active {
        transform: scale(0.998);
    }
}

/* Animated Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #FF6B35;
    border-radius: 50%;
    opacity: 0.1;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Mobile Hero Effects */
.mobile-blur {
    filter: blur(2px) brightness(1.1);
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-active {
    background-attachment: fixed;
}

.bg-loaded {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%),
                      url('img/bg.png');
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
    animation: fadeInBackground 0.8s ease-out;
}

@keyframes fadeInBackground {
    from {
        opacity: 0.8;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 