/* ========================================
   How It Works Page - Enhanced Animations
   ======================================== */

/* Hero Section Animations */
.hero-animated {
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.3s forwards;
}

.animate-badge {
    animation: bounceIn 0.8s ease-out 0.2s both;
}

.animate-title {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.4s forwards;
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.animate-button {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Floating Image Animation */
.floating-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Button Animation */
.pulse-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pulse-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pulse-button:hover::before {
    width: 300px;
    height: 300px;
}

.pulse-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 74, 0, 0.3);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: #ffffff;
}

.stats-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.scale-in-center {
    animation: scaleIn 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.reveal-text {
    opacity: 0;
    animation: revealText 1s ease-out forwards;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 1s ease-out 0.3s forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* List Items Stagger Animation */
.stagger-list {
    list-style: none;
    padding-left: 0;
}

.list-item-animate {
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.list-item-animate:hover {
    transform: translateX(10px);
    color: var(--primary-orange);
}

.list-item-animate i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.list-item-animate:hover i {
    transform: scale(1.2);
}

/* Zoom In Image */
.zoom-in-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    animation: zoomIn 1s ease-out;
    transition: transform 0.3s ease;
}

.zoom-in-image:hover {
    transform: scale(1.05);
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Timeline Section */
.timeline-section {
    padding: 80px 0;
    position: relative;
}

.enhanced-timeline {
    position: relative;
}

.enhanced-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-orange) 0%, #ffa500 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 74, 0, 0.3);
}

.timeline-item-animated {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.timeline-item-animated.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse Badge Animation */
.pulse-badge {
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-orange);
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.badge-number {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* Card Hover Effect */
.card-hover-effect {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 74, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.card-hover-effect:hover::before {
    left: 100%;
}

.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-hover-effect:hover .timeline-image {
    transform: scale(1.05);
}

.timeline-heading {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.timeline-heading img {
    width: 100%;
    height: auto;
    display: block;
}

/* Timeline Connector */
.timeline-connector {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), transparent);
    margin-top: 20px;
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Features Grid Section */
.features-grid-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.card-flip {
    opacity: 0;
    transform: rotateY(-90deg);
    animation: flipIn 0.6s ease-out forwards;
}

.card-flip[data-delay="0.1"] {
    animation-delay: 0.1s;
}

.card-flip[data-delay="0.2"] {
    animation-delay: 0.2s;
}

.card-flip[data-delay="0.3"] {
    animation-delay: 0.3s;
}

.card-flip[data-delay="0.4"] {
    animation-delay: 0.4s;
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0);
    }
}

.llc_card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.llc_card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 74, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.llc_card:hover::after {
    opacity: 1;
}

.llc_card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 74, 0, 0.2);
}

.card-icon-wrapper {
    position: relative;
    display: inline-block;
}

.card-icon-wrapper i {
    font-size: 48px;
    transition: all 0.4s ease;
}

.llc_card:hover .card-icon-wrapper i {
    transform: rotateY(360deg) scale(1.2);
    color: var(--primary-orange);
}

/* Final CTA Section */
.final-cta-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.final-cta-section .rating_llc {
    background: rgba(255, 74, 0, 0.1);
    backdrop-filter: blur(10px);
}

.final-cta-section ._blue_head {
    color: #1a1a2e;
}

.final-cta-section ._correct_form {
    color: var(--primary-orange);
}

.final-cta-section .banner-parg {
    color: #333333;
}

.final-cta-section .what_happen {
    color: #333333;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ffa500);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .enhanced-timeline::before {
        left: 30px;
    }
    
    .timeline-item-animated {
        margin-left: 0;
    }
    
    .timeline-inverted {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .fade-in-up,
    .fade-in-right,
    .slide-in-left,
    .slide-in-right {
        animation-duration: 0.6s;
    }
    
    .floating-image {
        animation: none;
    }
    
    .timeline-section {
        padding: 40px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
}

/* Intersection Observer Trigger Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}
