/* Custom CSS for Shopaliz */

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* CTA button hover effects */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Pricing card hover effect */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Trust badge animation */
.trust-badge {
    animation: pulse 2s infinite;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    animation: spin 1s linear infinite;
}

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

/* Success message animation */
.success-message {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (min-width: 641px) {
    .text-responsive {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .text-responsive {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Integrations carousel animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Carousel gradient overlays */
.carousel-gradient-left {
    background: linear-gradient(to right, white, transparent);
}

.carousel-gradient-right {
    background: linear-gradient(to left, white, transparent);
}

/* HubSpot Form Styling in Modal */
#hubspotFormContainer .hs-form-frame {
    max-width: 100%;
}

#hubspotFormContainer .hs-form {
    font-family: inherit;
}

#hubspotFormContainer .hs-form-field {
    margin-bottom: 1rem;
}

#hubspotFormContainer .hs-form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

#hubspotFormContainer .hs-form-field input[type="text"],
#hubspotFormContainer .hs-form-field input[type="email"],
#hubspotFormContainer .hs-form-field input[type="tel"],
#hubspotFormContainer .hs-form-field textarea,
#hubspotFormContainer .hs-form-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#hubspotFormContainer .hs-form-field input:focus,
#hubspotFormContainer .hs-form-field textarea:focus,
#hubspotFormContainer .hs-form-field select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#hubspotFormContainer .hs-submit {
    margin-top: 1.5rem;
}

#hubspotFormContainer .hs-button {
    background-color: #4F46E5;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

#hubspotFormContainer .hs-button:hover {
    background-color: #4338CA;
}

#hubspotFormContainer .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}

#hubspotFormContainer .hs-error-msgs li {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#hubspotFormContainer .submitted-message {
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    color: #166534;
    margin-top: 1rem;
}
