/* =================================
   SCROLL ANIMATIONS
   ================================= */

/* Initial state - hidden */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple elements */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Fade in from left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* =================================
   BUTTON HOVER ANIMATIONS
   ================================= */

.su-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.su-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(138,44,44,0.5) !important;
}

.su-button:active {
    transform: translateY(-1px) scale(1);
}

/* Button ripple effect - REMOVED for cleaner look */

/* =================================
   CARD HOVER ANIMATIONS
   ================================= */

.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(138,44,44,0.25) !important;
}

.feature-card .icon-circle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(138,44,44,0.45) !important;
}

/* =================================
   PROCESS CARD ANIMATIONS
   ================================= */

.process-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 35px rgba(138,44,44,0.2) !important;
}

.process-card .process-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card:hover .process-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* =================================
   QUALIFICATION CARDS
   ================================= */

.qualification-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 55px rgba(138,44,44,0.25) !important;
}

.qualification-item {
    transition: all 0.3s ease;
}

.qualification-item:hover {
    transform: translateX(5px);
    background: linear-gradient(to right, #fef0f0, white) !important;
}

/* Fix text alignment and sizing in qualification items */
.qualification-item p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qualification-item p strong {
    flex-shrink: 0;
    margin-top: 2px;
}

/* =================================
   FAQ ANIMATIONS
   ================================= */

.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(138,44,44,0.18) !important;
}

.faq-icon {
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    transform: scale(1.15) rotate(10deg);
}

/* =================================
   PULSE ANIMATION FOR GUARANTEE
   ================================= */

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

.guarantee-icon {
    animation: pulse 2s ease-in-out infinite;
}

.guarantee-card:hover .guarantee-icon {
    animation: pulse 0.8s ease-in-out infinite;
}

/* =================================
   FLOATING ANIMATION
   ================================= */

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

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

/* =================================
   SHINE EFFECT ON BUTTONS
   ================================= */

/* Shine effect removed for cleaner button hover */

/* =================================
   ICON ANIMATIONS
   ================================= */

.moon {
    transition: all 0.3s ease;
}

.icon-circle:hover .moon {
    transform: scale(1.1);
}

/* =================================
   PRICING BOX ANIMATIONS
   ================================= */

.pricing-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(138,44,44,0.5) !important;
}

/* =================================
   SMOOTH SCROLL
   ================================= */

html {
    scroll-behavior: smooth;
}

/* =================================
   IMAGE HOVER EFFECTS
   ================================= */

.hero-image-wrapper {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.hero-image {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   GUARANTEE BADGE ANIMATION
   ================================= */

.guarantee-badge {
    transition: all 0.3s ease;
}

.guarantee-badge:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.25) !important;
}

/* =================================
   RESPONSIVE ADJUSTMENTS
   ================================= */

@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }

    .fade-in-left,
    .fade-in-right {
        transform: translateY(20px);
    }

    .fade-in-left.is-visible,
    .fade-in-right.is-visible {
        transform: translateY(0);
    }

    /* Mobile padding adjustments */
    .background-block {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .background-block-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        min-width: 320px !important;
    }

    /* Remove max-width constraints on mobile for better space usage */
    .background-block-container[style*="max-width"] {
        max-width: 100% !important;
    }

    /* Feature cards should be full width on mobile */
    .feature-card {
        padding: 30px 20px !important;
    }

    /* Stack qualification columns on mobile */
    .qualification-columns-wrapper {
        flex-direction: column !important;
    }

    /* Process cards with reduced padding */
    .process-card {
        padding: 20px 15px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    /* Qualification cards with reduced padding */
    .qualification-card {
        padding: 30px 20px !important;
    }

    /* FAQ items with reduced padding */
    .faq-item {
        padding: 25px 20px !important;
    }

    .faq-item h4 {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .faq-icon {
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }

    /* Guarantee card with reduced padding */
    .guarantee-card {
        padding: 40px 25px !important;
    }

    /* Pricing box with reduced padding */
    .pricing-box {
        padding: 30px 20px !important;
    }

    /* Reduce heading sizes on mobile */
    h1 {
        font-size: 36px !important;
    }

    h2 {
        font-size: 32px !important;
    }

    h3 {
        font-size: 24px !important;
    }

    /* Reduce button padding on mobile */
    .su-button {
        padding: 18px 35px !important;
        font-size: 16px !important;
    }

    /* Stack columns on mobile - legacy floats no longer used but kept for compatibility */
    .column {
        width: 100% !important;
        float: none !important;
        margin-bottom: 30px !important;
    }

    /* Hero image width on mobile */
    .hero-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image {
        width: 100% !important;
    }

    /* Process icon sizing on mobile */
    .process-icon {
        width: 60px !important;
        height: 60px !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important;
    }

    .process-icon i {
        font-size: 30px !important;
    }

    /* Remove negative margins on mobile */
    .guarantee-icon {
        margin-top: 0 !important;
    }

    /* Make grid single column on mobile */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduce large price text on mobile to prevent overflow */
    p[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .background-block {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .background-block-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}