/* Public CSS Styles */

/* Icon styles */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

.text-gray-900 {
    color: #2d3748;
}

.text-gray-600 {
    color: #718096;
}

.h-100px {
    height: 100px !important;
    max-height: 100px !important;
    min-height: 100px !important;
}

/* Card Transitions and Animations */
.pricing-card {
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Form Styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Step Card Animations */
.testimonial-card {
    transition: opacity 0.3s ease;
}

.step-card {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 20%;
    height: 2px;
    background-color: #e5e7eb;
    display: none;
}

.step-card:not(:last-child)::after {
    display: block;
}

@media (max-width: 768px) {
    .step-card::after {
        display: none;
    }
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid #3b82f6;
    background-color: white;
    transition: all 0.2s ease;
}

.custom-checkbox.checked {
    background-color: #3b82f6;
}

.custom-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Gradient Utilities */
.gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #4a90e2 0%, #2563eb 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 100%);
}

.gradient-feature {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.gradient-card-hover:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    opacity: 0.9;
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #3b82f6, #1e40af) border-box;
}

/* USP Slide-in Animations */
.usp-info-slide-left,
.usp-info-slide-right {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.usp-info-slide-left {
    transform: translateX(-60px);
}

.usp-info-slide-right {
    transform: translateX(60px);
}

.usp-info-animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Partner Logo Styles */
.partner-logo {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.partner-logo.focused {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Back to Top Button */
#backToTopBtn,
#liveSupportBtn,
#callBtn,
#zaloBtn,
#messengerBtn {
    position: fixed;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
    outline: none;
    visibility: visible;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

#backToTopBtn.show,
#liveSupportBtn.show,
#callBtn.show,
#zaloBtn.show,
#messengerBtn.show {
    visibility: visible;
    pointer-events: auto;
    opacity: 0.9;
    transition: all 0.2s ease;
}

#backToTopBtn:hover,
#liveSupportBtn:hover,
#callBtn:hover,
#zaloBtn:hover,
#messengerBtn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#backToTopBtn {
    bottom: 2rem;
    background: #222;
    color: #fff;
}

#liveSupportBtn {
    bottom: 5.5rem;
    background: #222;
    color: #fff;
}

#callBtn {
    bottom: 9rem;
    background: #4CAF50;
    color: #fff;
}

#zaloBtn {
    bottom: 12.5rem;
    background: #0068FF;
    color: #fff;
}

#messengerBtn {
    bottom: 16rem;
    background: #006AFF;
    color: #fff;
}

/* Product Card Transition */
.product-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.product-card-appear {
    opacity: 1;
    transform: translateY(0);
}

/* Partner Card Transition */
.partner-card-appear {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card-appear.partner-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Card Transition */
.feature-card-appear {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-appear.feature-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial Card Transition */
.testimonial-card-appear {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card-appear.testimonial-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Card Transition */
.media-card-appear {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-card-appear.media-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #152c6f;
    padding-left: 20px;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Arrow indicator */
.dropdown-arrow {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Slider animation */
#customers-slider {
    user-select: none;
}

#partners-slider {
    user-select: none;
    overflow: hidden;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-slide {
    animation: slide 20s linear infinite;
}

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


/* Common highlight animation for all sections */

.section-highlight {
    animation: highlight-section 1.5s ease-out;
}

@keyframes highlight-section {
    0% {
        background-color: rgba(219, 234, 254, 0.7);
        transform: scale(0.98);
    }
    70% {
        background-color: rgba(219, 234, 254, 0.3);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Product cards entrance animation */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Partner cards entrance animation */
.partner-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.partner-card.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial cards entrance animation */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Media says cards entrance animation */
.media-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.media-card.appear {
    opacity: 1;
    transform: translateY(0);
}