/* BemWeb - Custom Styles */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* Hero animations */
.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Product cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* Why cards */
.why-card {
    animation: fadeInUp 0.6s ease-out both;
}

.why-card:nth-child(1) { animation-delay: 0.1s; }
.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.3s; }
.why-card:nth-child(4) { animation-delay: 0.4s; }

/* Comparison cards */
.comparison-card {
    animation: slideInLeft 0.8s ease-out both;
}

.comparison-card:nth-child(2) {
    animation: slideInRight 0.8s ease-out both;
}

/* Testimonial carousel */
.testimonials-container {
    transition: transform 0.5s ease;
}

/* FAQ */
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important;
}

/* WhatsApp button animation */
#whatsapp-float {
    animation: pulse 2s infinite;
}

/* Product detailed */
.product-detailed {
    animation: fadeInUp 0.8s ease-out both;
}

/* Form focus */
input:focus, textarea:focus, select:focus {
    border-color: #7b3fe4;
    box-shadow: 0 0 0 3px rgba(123, 63, 228, 0.1);
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7b3fe4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a35cc;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .testimonial-item {
        min-width: 100% !important;
    }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0a2540 0%, #7b3fe4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.btn-hover-lift {
    transition: all 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover shadows */
.card-hover {
    transition: box-shadow 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Fade in on scroll */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Nav scroll effect */
nav.scrolled {
    background: rgba(10, 37, 64, 0.98) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Success message */
.success-message {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

/* Error message */
.error-message {
    background: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}
