/* Hero Section Animations */
#hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.animated-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6E20F4 0%, #8B4CF8 50%, #A06DFF 100%);
    z-index: 0;
}

.animated-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Hero Title Animation */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

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

.gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* CTA Pulse Animation */
.cta-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Floating Image Animation */
.floating-image {
    animation: float 6s ease-in-out infinite;
}

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

/* Floating Cards */
.hero-image-container {
    position: relative;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Trust Bar */
.trust-stat {
    padding: 15px 30px;
    border-right: 1px solid #e0e0e0;
}

.trust-stat:last-child {
    border-right: none;
}

/* Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6E20F4 0%, #8B4CF8 100%);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift {
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: none;
}

/* Step Numbers */
.step-number {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(110, 32, 244, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.avatar-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #6E20F4 0%, #8B4CF8 100%);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Shadow Utilities */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Slider Scrollbar */
#howto-slider::-webkit-scrollbar {
    height: 8px;
}

#howto-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#howto-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6E20F4 0%, #8B4CF8 100%);
    border-radius: 10px;
}

#howto-slider::-webkit-scrollbar-thumb:hover {
    background: #5a1acc;
}

/* Stunning Gradient Backgrounds */
.affiliate-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.affiliate-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.features-gradient-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    position: relative;
    overflow: hidden;
}

.features-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite reverse;
}

.testimonials-gradient-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-gradient-bg::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 35s linear infinite;
}

.cta-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: gradientPulse 10s ease infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Perfect Circular Feature Icons */
.feature-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* Perfect Circular Step Numbers */
.step-number-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-number-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Earnings Display Box with Gradient */
.earnings-display-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .floating-card {
        display: none;
    }
    
    #hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .trust-stat {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }
    
    .trust-stat:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .feature-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .step-number-circle {
        width: 80px;
        height: 80px;
    }
    
    .step-number-circle span {
        font-size: 1.75rem !important;
    }
}

/* Purple color utility */
.bg-purple {
    background-color: #6E20F4 !important;
}

.text-purple {
    color: #6E20F4 !important;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

/* Card animations on scroll */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpCard 0.6s ease forwards;
}

@keyframes fadeInUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Ensure text contrast on gradient backgrounds */
.affiliate-gradient-bg,
.affiliate-gradient-bg * {
    color: white !important;
}

.affiliate-gradient-bg .card,
.affiliate-gradient-bg .card * {
    color: inherit !important;
}

.features-gradient-bg,
.features-gradient-bg * {
    color: white !important;
}

.features-gradient-bg .card,
.features-gradient-bg .card * {
    color: inherit !important;
}

.testimonials-gradient-bg,
.testimonials-gradient-bg * {
    color: white !important;
}

.testimonials-gradient-bg .card,
.testimonials-gradient-bg .card * {
    color: inherit !important;
}

.cta-gradient-bg,
.cta-gradient-bg * {
    color: white !important;
}

/* Override for white cards on gradient backgrounds */
.bg-white .card-body,
.bg-white .card-body * {
    color: #212529 !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, 
.bg-white h4, .bg-white h5, .bg-white h6 {
    color: #212529 !important;
}

/* Ensure proper z-index for content over gradients */
.affiliate-gradient-bg > *:not(::before),
.features-gradient-bg > *:not(::before),
.testimonials-gradient-bg > *:not(::before),
.cta-gradient-bg > *:not(::before) {
    position: relative;
    z-index: 1;
}
