File size: 32,371 Bytes
5e66af8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Освой Affiliate Marketing | Traffic Master</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: #0a0a0a;
            color: #E1E1E1;
            overflow-x: hidden;
        }
        
        .glow-text {
            text-shadow: 0 0 10px rgba(246, 252, 121, 0.7);
        }
        
        .glow-box {
            box-shadow: 0 0 15px rgba(246, 252, 121, 0.5);
        }
        
        .glow-box:hover {
            box-shadow: 0 0 25px rgba(246, 252, 121, 0.8);
        }
        
        .border-glow {
            border-color: #f6fc79;
            box-shadow: 0 0 10px rgba(246, 252, 121, 0.3);
        }
        
        .border-glow:hover {
            box-shadow: 0 0 20px rgba(246, 252, 121, 0.5);
        }
        
        .dashboard-container {
            perspective: 1000px;
            transform-style: preserve-3d;
        }
        
        .dashboard {
            transform: rotateY(-15deg) rotateX(5deg);
            transition: all 0.5s ease;
        }
        
        .dashboard:hover {
            transform: rotateY(-10deg) rotateX(3deg);
        }
        
        .traffic-flow {
            position: relative;
            height: 100%;
            overflow: hidden;
        }
        
        .flow-item {
            position: absolute;
            transition: all 0.5s ease;
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        
        .particle {
            position: absolute;
            background-color: rgba(246, 252, 121, 0.6);
            border-radius: 50%;
            pointer-events: none;
        }
        
        .tooltip {
            visibility: hidden;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .flow-item:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }
        
        .nav-link {
            position: relative;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            text-shadow: 0 0 10px rgba(246, 252, 121, 0.7);
            color: #f6fc79 !important;
        }
        
        .process-arrow {
            position: absolute;
            color: #f6fc79;
            font-size: 24px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
        }
        
        @media (max-width: 768px) {
            .dashboard {
                transform: none;
            }
            
            .mobile-reel-container {
                height: 100vh;
                overflow: hidden;
                position: relative;
            }
            
            .mobile-reel-content {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                padding: 20px;
                box-sizing: border-box;
            }
            
            .reel-item {
                opacity: 0;
                transform: translateY(50px);
                transition: all 0.8s ease;
                margin-bottom: 30px;
                width: 100%;
            }
            
            .reel-item.active {
                opacity: 1;
                transform: translateY(0);
            }
            
            .mobile-reel-indicator {
                position: absolute;
                bottom: 30px;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                gap: 10px;
                z-index: 100;
            }
            
            .reel-dot {
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background-color: rgba(255,255,255,0.3);
                transition: all 0.3s ease;
            }
            
            .reel-dot.active {
                background-color: #f6fc79;
                transform: scale(1.2);
            }
        }
        
        .arrow-animation {
            animation: arrowPulse 1.5s infinite;
        }
        
        @keyframes arrowPulse {
            0% { opacity: 0.5; transform: translateY(-50%) translateX(0); }
            50% { opacity: 1; transform: translateY(-50%) translateX(5px); }
            100% { opacity: 0.5; transform: translateY(-50%) translateX(0); }
        }
        
        /* Hide mobile reel on desktop */
        @media (min-width: 769px) {
            .mobile-reel-container {
                display: none;
            }
        }
        
        /* Hide desktop content on mobile */
        @media (max-width: 768px) {
            .desktop-content {
                display: none;
            }
        }
    </style>
</head>
<body class="min-h-screen">
    <!-- Mobile Reel Version (only visible on mobile) -->
    <div class="mobile-reel-container">
        <div class="mobile-reel-content">
            <!-- Reel Item 1 -->
            <div class="reel-item active" data-index="0">
                <h1 class="text-3xl font-black uppercase tracking-wide mb-4 text-[#f6fc79] glow-text">
                    Освой Affiliate Marketing
                </h1>
                <h2 class="text-xl font-black uppercase tracking-wide mb-6 text-[#f6fc79] glow-text">
                    и начни зарабатывать от $2,000 в месяц
                </h2>
            </div>
            
            <!-- Reel Item 2 -->
            <div class="reel-item" data-index="1">
                <p class="text-lg mb-6 font-medium text-gray-300 leading-relaxed">
                    Полный курс от команды Traffic Master. Настоящие связки, кейсы, поддержка, первые выплаты уже в процессе обучения.
                </p>
            </div>
            
            <!-- Reel Item 3 -->
            <div class="reel-item" data-index="2">
                <div class="flex flex-col gap-4">
                    <button class="glow-box bg-[#f6fc79] text-black font-bold py-4 px-6 rounded-lg text-lg uppercase tracking-wide transition-all duration-300 hover:bg-[#f8ff8a] transform hover:-translate-y-1">
                        <i class="fas fa-fire mr-2"></i> Бесплатный урок
                    </button>
                    <button class="border-glow border-2 text-[#f6fc79] font-bold py-4 px-6 rounded-lg text-lg uppercase tracking-wide transition-all duration-300 hover:bg-[#f6fc7910] transform hover:-translate-y-1">
                        <i class="fas fa-book-open mr-2"></i> Программа курса
                    </button>
                </div>
            </div>
            
            <!-- Reel Item 4 -->
            <div class="reel-item" data-index="3">
                <div class="mt-8 flex items-center space-x-4">
                    <div class="flex -space-x-2">
                        <img class="w-10 h-10 rounded-full border-2 border-[#f6fc79]" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
                        <img class="w-10 h-10 rounded-full border-2 border-[#f6fc79]" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
                        <img class="w-10 h-10 rounded-full border-2 border-[#f6fc79]" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
                    </div>
                    <div>
                        <p class="text-sm text-gray-400">Уже прошли курс:</p>
                        <p class="text-[#f6fc79] font-bold">356+ студентов</p>
                    </div>
                    </div>
                </div>
                
                <!-- Reel Item 5 -->
                <div class="reel-item" data-index="4">
                    <div class="bg-black rounded-xl p-6 border border-gray-800 relative h-48">
                        <h3 class="text-lg font-bold text-[#f6fc79] mb-4">АРБИТРАЖ В ДЕЙСТВИИ</h3>
                        <div class="grid grid-cols-2 gap-4">
                            <div class="bg-gray-900 bg-opacity-50 rounded-lg p-3 border border-gray-800">
                                <p class="text-xs text-gray-400">Трафик</p>
                                <p class="text-lg font-bold text-green-400" id="mobile-traffic-counter">1848 визитов</p>
                            </div>
                            <div class="bg-gray-900 bg-opacity-50 rounded-lg p-3 border border-gray-800">
                                <p class="text-xs text-gray-400">ROI</p>
                                <p class="text-lg font-bold text-purple-400" id="mobile-roi-counter">210%</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Reel Indicator Dots -->
            <div class="mobile-reel-indicator">
                <div class="reel-dot active" data-dot="0"></div>
                <div class="reel-dot" data-dot="1"></div>
                <div class="reel-dot" data-dot="2"></div>
                <div class="reel-dot" data-dot="3"></div>
                <div class="reel-dot" data-dot="4"></div>
            </div>
        </div>
        
        <!-- Desktop Version (hidden on mobile) -->
        <div class="desktop-content">
            <div class="container mx-auto px-4 py-12 md:py-24">
                <div class="flex flex-col md:flex-row items-center">
                    <!-- Left side - Text content -->
                    <div class="w-full md:w-1/2 mb-16 md:mb-0 md:pr-12">
                        <h1 class="text-4xl md:text-5xl lg:text-6xl font-black uppercase tracking-wide mb-6 text-[#f6fc79] glow-text">
                            Освой Affiliate Marketing
                        </h1>
                        <h2 class="text-2xl md:text-3xl lg:text-4xl font-black uppercase tracking-wide mb-6 text-[#f6fc79] glow-text">
                            и начни зарабатывать от $2,000 в месяц
                        </h2>
                        
                        <p class="text-lg md:text-xl mb-10 font-medium text-gray-300 leading-relaxed">
                            Полный курс от команды Traffic Master. Настоящие связки, кейсы, поддержка, первые выплаты уже в процессе обучения.
                        </p>
                        
                        <div class="flex flex-col sm:flex-row gap-4">
                            <button class="glow-box bg-[#f6fc79] text-black font-bold py-4 px-8 rounded-lg text-lg uppercase tracking-wide transition-all duration-300 hover:bg-[#f8ff8a] transform hover:-translate-y-1">
                                <i class="fas fa-fire mr-2"></i> Получить бесплатный урок
                            </button>
                            <button class="border-glow border-2 text-[#f6fc79] font-bold py-4 px-8 rounded-lg text-lg uppercase tracking-wide transition-all duration-300 hover:bg-[#f6fc7910] transform hover:-translate-y-1">
                                <i class="fas fa-book-open mr-2"></i> Посмотреть программу курса
                            </button>
                        </div>
                        
                        <div class="mt-12 flex items-center space-x-4">
                            <div class="flex -space-x-2">
                                <img class="w-10 h-10 rounded-full border-2 border-[#f6fc79]" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
                                <img class="w-10 h-10 rounded-full border-2 border-[#f6fc79]" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
                                <img class="w-10 h-10 rounded-full border-2 border-[#f6fc79]" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
                            </div>
                            <div>
                                <p class="text-sm text-gray-400">Уже прошли курс:</p>
                                <p class="text-[#f6fc79] font-bold">356+ студентов</p>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Right side - Dashboard visualization -->
                    <div class="w-full md:w-1/2 dashboard-container">
                        <div class="dashboard bg-black rounded-xl p-6 border border-gray-800 relative overflow-hidden h-96 md:h-[28rem]">
                            <div class="absolute inset-0 bg-gradient-to-b from-transparent to-black opacity-30 z-10"></div>
                            <div class="particles" id="particles"></div>
                            
                            <h3 class="text-lg font-bold text-[#f6fc79] mb-4 relative z-20">АРБИТРАЖ В ДЕЙСТВИИ</h3>
                            
                            <div class="traffic-flow relative z-20 h-full">
                                <!-- Dashboard stats -->
                                <div class="grid grid-cols-2 gap-4 mb-6">
                                    <div class="bg-gray-900 bg-opacity-50 rounded-lg p-3 border border-gray-800">
                                        <p class="text-xs text-gray-400">Трафик</p>
                                        <p class="text-xl font-bold text-green-400 pulse" id="traffic-counter">1848 визитов</p>
                                    </div>
                                    <div class="bg-gray-900 bg-opacity-50 rounded-lg p-3 border border-gray-800">
                                        <p class="text-xs text-gray-400">ROI</p>
                                        <p class="text-xl font-bold text-purple-400" id="roi-counter">210%</p>
                                    </div>
                                    <div class="bg-gray-900 bg-opacity-50 rounded-lg p-3 border border-gray-800">
                                        <p class="text-xs text-gray-400">Конверсии</p>
                                        <p class="text-xl font-bold text-yellow-400" id="conversion-counter">+1 конверсия</p>
                                    </div>
                                    <div class="bg-gray-900 bg-opacity-50 rounded-lg p-3 border border-gray-800">
                                        <p class="text-xs text-gray-400">Выплата</p>
                                        <p class="text-xl font-bold text-red-400" id="payout-counter">$137.60</p>
                                    </div>
                                </div>
                                
                                <!-- Process visualization -->
                                <div class="relative h-48 md:h-56">
                                    <!-- Source icons -->
                                    <div class="flow-item" style="left: 10%; top: 50%; transform: translate(-50%, -50%);" data-tooltip="Источник: Facebook Ads">
                                        <div class="w-12 h-12 bg-green-500 bg-opacity-20 rounded-full flex items-center justify-center border-2 border-green-500">
                                            <i class="fab fa-facebook-f text-green-500 text-xl"></i>
                                        </div>
                                        <div class="tooltip absolute bg-gray-900 text-white text-xs p-2 rounded mt-2 whitespace-nowrap">
                                            Источник: Facebook Ads
                                        </div>
                                    </div>
                                    
                                    <!-- Arrow -->
                                    <div class="process-arrow arrow-animation" style="left: 20%;">
                                        <i class="fas fa-arrow-right"></i>
                                    </div>
                                    
                                    <div class="flow-item" style="left: 30%; top: 50%; transform: translate(-50%, -50%);" data-tooltip="Лендинг">
                                        <div class="w-12 h-12 bg-blue-500 bg-opacity-20 rounded-full flex items-center justify-center border-2 border-blue-500">
                                            <i class="fas fa-window-maximize text-blue-500 text-xl"></i>
                                        </div>
                                        <div class="tooltip absolute bg-gray-900 text-white text-xs p-2 rounded mt-2 whitespace-nowrap">
                                            Лендинг
                                        </div>
                                    </div>
                                    
                                    <!-- Arrow -->
                                    <div class="process-arrow arrow-animation" style="left: 40%;">
                                        <i class="fas fa-arrow-right"></i>
                                    </div>
                                    
                                    <div class="flow-item" style="left: 50%; top: 50%; transform: translate(-50%, -50%);" data-tooltip="Лид">
                                        <div class="w-12 h-12 bg-yellow-500 bg-opacity-20 rounded-full flex items-center justify-center border-2 border-yellow-500">
                                            <i class="fas fa-user text-yellow-500 text-xl"></i>
                                        </div>
                                        <div class="tooltip absolute bg-gray-900 text-white text-xs p-2 rounded mt-2 whitespace-nowrap">
                                            Лид
                                        </div>
                                    </div>
                                    
                                    <!-- Arrow -->
                                    <div class="process-arrow arrow-animation" style="left: 60%;">
                                        <i class="fas fa-arrow-right"></i>
                                    </div>
                                    
                                    <div class="flow-item" style="left: 70%; top: 50%; transform: translate(-50%, -50%);" data-tooltip="Подтверждённый лид">
                                        <div class="w-12 h-12 bg-purple-500 bg-opacity-20 rounded-full flex items-center justify-center border-2 border-purple-500">
                                            <i class="fas fa-check-circle text-purple-500 text-xl"></i>
                                        </div>
                                        <div class="tooltip absolute bg-gray-900 text-white text-xs p-2 rounded mt-2 whitespace-nowrap">
                                            Подтверждённый лид
                                        </div>
                                    </div>
                                    
                                    <!-- Arrow -->
                                    <div class="process-arrow arrow-animation" style="left: 80%;">
                                        <i class="fas fa-arrow-right"></i>
                                    </div>
                                    
                                    <div class="flow-item" style="left: 90%; top: 50%; transform: translate(-50%, -50%);" data-tooltip="Выплата">
                                        <div class="w-12 h-12 bg-red-500 bg-opacity-20 rounded-full flex items-center justify-center border-2 border-red-500">
                                            <i class="fas fa-coins text-red-500 text-xl"></i>
                                        </div>
                                        <div class="tooltip absolute bg-gray-900 text-white text-xs p-2 rounded mt-2 whitespace-nowrap">
                                            Выплата
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <script>
            // Mobile Reel Animation
            if (window.innerWidth <= 768) {
                const reelItems = document.querySelectorAll('.reel-item');
                const reelDots = document.querySelectorAll('.reel-dot');
                let currentIndex = 0;
                
                // Initialize first item
                reelItems[0].classList.add('active');
                reelDots[0].classList.add('active');
                
                // Auto-scroll reel items
                const reelInterval = setInterval(() => {
                    // Hide current item
                    reelItems[currentIndex].classList.remove('active');
                    reelDots[currentIndex].classList.remove('active');
                    
                    // Move to next item
                    currentIndex = (currentIndex + 1) % reelItems.length;
                    
                    // Show next item
                    reelItems[currentIndex].classList.add('active');
                    reelDots[currentIndex].classList.add('active');
                }, 3000);
                
                // Pause on hover (if needed)
                document.querySelector('.mobile-reel-container').addEventListener('mouseenter', () => {
                    clearInterval(reelInterval);
                });
                
                document.querySelector('.mobile-reel-container').addEventListener('mouseleave', () => {
                    reelInterval = setInterval(() => {
                        // Hide current item
                        reelItems[currentIndex].classList.remove('active');
                        reelDots[currentIndex].classList.remove('active');
                        
                        // Move to next item
                        currentIndex = (currentIndex + 1) % reelItems.length;
                        
                        // Show next item
                        reelItems[currentIndex].classList.add('active');
                        reelDots[currentIndex].classList.add('active');
                    }, 3000);
                });
                
                // Click on dots to navigate
                reelDots.forEach((dot, index) => {
                    dot.addEventListener('click', () => {
                        clearInterval(reelInterval);
                        
                        // Hide current item
                        reelItems[currentIndex].classList.remove('active');
                        reelDots[currentIndex].classList.remove('active');
                        
                        // Show selected item
                        currentIndex = index;
                        reelItems[currentIndex].classList.add('active');
                        reelDots[currentIndex].classList.add('active');
                        
                        // Restart auto-scroll
                        reelInterval = setInterval(() => {
                            // Hide current item
                            reelItems[currentIndex].classList.remove('active');
                            reelDots[currentIndex].classList.remove('active');
                            
                            // Move to next item
                            currentIndex = (currentIndex + 1) % reelItems.length;
                            
                            // Show next item
                            reelItems[currentIndex].classList.add('active');
                            reelDots[currentIndex].classList.add('active');
                        }, 3000);
                    });
                });
                
                // Mobile counters
                animateCounter('mobile-traffic-counter', 1848, 'визитов');
                animateCounter('mobile-roi-counter', 210, '%');
            }
            
            // Animated counters
            function animateCounter(elementId, target, suffix = '', duration = 2000) {
                const element = document.getElementById(elementId);
                if (!element) return;
                
                const start = 0;
                const increment = target / (duration / 16);
                let current = start;
                
                const timer = setInterval(() => {
                    current += increment;
                    if (current >= target) {
                        clearInterval(timer);
                        current = target;
                    }
                    
                    if (elementId.includes('traffic-counter')) {
                        element.textContent = Math.floor(current) + ' ' + suffix;
                    } else if (elementId.includes('payout-counter')) {
                        element.textContent = '$' + current.toFixed(2);
                    } else if (elementId.includes('roi-counter')) {
                        element.textContent = Math.floor(current) + suffix;
                    } else if (elementId.includes('conversion-counter')) {
                        element.textContent = '+' + Math.floor(current) + ' ' + suffix;
                    }
                }, 16);
            }
            
            // Start counters
            animateCounter('traffic-counter', 1848, 'визитов');
            animateCounter('payout-counter', 137.60);
            animateCounter('roi-counter', 210, '%');
            animateCounter('conversion-counter', 1, 'конверсия');
            
            // Create particles
            function createParticles() {
                const container = document.getElementById('particles');
                if (!container) return;
                
                const particleCount = 30;
                
                for (let i = 0; i < particleCount; i++) {
                    const particle = document.createElement('div');
                    particle.classList.add('particle');
                    
                    // Random size between 1px and 3px
                    const size = Math.random() * 2 + 1;
                    particle.style.width = `${size}px`;
                    particle.style.height = `${size}px`;
                    
                    // Random position
                    particle.style.left = `${Math.random() * 100}%`;
                    particle.style.top = `${Math.random() * 100}%`;
                    
                    // Random animation
                    const duration = Math.random() * 10 + 5;
                    const delay = Math.random() * 5;
                    particle.style.animation = `float ${duration}s ease-in-out ${delay}s infinite`;
                    
                    container.appendChild(particle);
                    
                    // Add floating animation
                    const keyframes = `
                        @keyframes float {
                            0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
                            10% { opacity: 1; }
                            90% { opacity: 1; }
                            100% { transform: translate(${Math.random() * 100 - 50}px, ${Math.random() * 100 - 50}px) rotate(${Math.random() * 360}deg); opacity: 0; }
                        }
                    `;
                    
                    const style = document.createElement('style');
                    style.innerHTML = keyframes;
                    document.head.appendChild(style);
                }
            }
            
            // Initialize particles
            createParticles();
            
            // Animate flow items on hover
            document.querySelectorAll('.flow-item').forEach(item => {
                item.addEventListener('mouseenter', () => {
                    gsap.to(item, {
                        y: -5,
                        scale: 1.1,
                        duration: 0.3
                    });
                });
                
                item.addEventListener('mouseleave', () => {
                    gsap.to(item, {
                        y: 0,
                        scale: 1,
                        duration: 0.3
                    });
                });
            });
            
            // Random payout generator
            let payoutAmount = 137.60;
            setInterval(() => {
                // Generate random payout between 50 and 200
                const randomIncrement = (Math.random() * 10 + 5).toFixed(2);
                payoutAmount = (parseFloat(payoutAmount) + parseFloat(randomIncrement)).toFixed(2);
                
                // Animate the payout counter
                const element = document.getElementById('payout-counter');
                if (element) {
                    gsap.to(element, {
                        scale: 1.1,
                        color: '#ff5555',
                        duration: 0.3,
                        onComplete: () => {
                            element.textContent = '$' + payoutAmount;
                            gsap.to(element, {
                                scale: 1,
                                color: '#ff6b6b',
                                duration: 0.3
                            });
                        }
                    });
                }
                
                // Also update other stats periodically
                const randomTraffic = Math.floor(Math.random() * 500) + 1500;
                const randomROI = Math.floor(Math.random() * 50) + 180;
                const randomConversion = Math.floor(Math.random() * 3) + 1;
                
                animateCounter('traffic-counter', randomTraffic, 'визитов', 1000);
                animateCounter('roi-counter', randomROI, '%', 1000);
                animateCounter('conversion-counter', randomConversion, 'конверсия', 1000);
                
                // Update mobile counters if they exist
                animateCounter('mobile-traffic-counter', randomTraffic, 'визитов', 1000);
                animateCounter('mobile-roi-counter', randomROI, '%', 1000);
            }, 1500); // Update every 1.5 seconds
        </script>
    <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=timoon811/testmobile" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
    </html>