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
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
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI Story Spark - Magical AI Comics for Kids!</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Poppins:wght@400;600&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        :root {
            --primary-blue: #3498db; 
            --secondary-yellow: #f1c40f; 
            --accent-green: #2ecc71;
            --accent-orange: #e67e22; 
            --text-dark: #333; 
            --text-light: #fff;
            --bg-light: #f9f9f9; 
            --border-color: #eee; 
            --font-headline: 'Baloo 2', cursive;
            --font-body: 'Poppins', sans-serif;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
            --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
        }
        
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { 
            font-family: var(--font-body); 
            color: var(--text-dark); 
            line-height: 1.6; 
            background-color: var(--bg-light);
            scroll-behavior: smooth;
        }
        
        .container { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 0 20px; 
        }
        
        /* Animation Classes */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .float-animation {
            animation: float 3s ease-in-out infinite;
        }
        
        .pulse-animation {
            animation: pulse 2s ease-in-out infinite;
        }
        
        .fade-in {
            animation: fadeIn 0.8s ease-in forwards;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Header Styles */
        .main-header { 
            background: var(--text-light); 
            padding: 15px 0; 
            box-shadow: var(--shadow-sm);
            position: sticky; 
            top: 0; 
            z-index: 100;
            transition: all 0.3s ease;
        }
        
        .main-header.scrolled {
            padding: 10px 0;
            box-shadow: var(--shadow-md);
        }
        
        .logo { 
            font-family: var(--font-headline); 
            font-size: 1.8rem; 
            color: var(--primary-blue); 
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .logo span { 
            color: var(--accent-orange); 
        }
        
        .logo-icon {
            font-size: 1.5rem;
            color: var(--secondary-yellow);
        }
        
        /* Button Styles */
        .cta-button { 
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background-color: var(--secondary-yellow); 
            color: var(--text-dark); 
            padding: 12px 30px; 
            font-size: 1.1rem; 
            font-weight: 600; 
            border: none; 
            border-radius: 30px; 
            text-decoration: none; 
            cursor: pointer; 
            transition: all 0.3s ease; 
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow: hidden;
        }
        
        .cta-button:hover { 
            background-color: #eab500; 
            transform: translateY(-2px); 
            box-shadow: var(--shadow-md);
        }
        
        .cta-button:active {
            transform: translateY(0);
        }
        
        .cta-button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%, -50%);
            transform-origin: 50% 50%;
        }
        
        .cta-button:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }
        
        /* Hero Section */
        .hero { 
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-green)); 
            color: var(--text-light); 
            padding: 100px 0 80px; 
            text-align: center; 
            position: relative; 
            overflow: hidden; 
        }
        
        .hero::before { 
            content: ''; 
            position: absolute; 
            top: 0; 
            left: 0; 
            right: 0; 
            bottom: 0; 
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.2; 
            z-index: 1; 
        }
        
        .hero .container { 
            position: relative; 
            z-index: 2; 
        }
        
        .hero h1 { 
            font-family: var(--font-headline); 
            font-size: clamp(2.5rem, 6vw, 3.8rem); 
            margin-bottom: 15px; 
            line-height: 1.2; 
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2); 
        }
        
        .hero p { 
            font-size: 1.1rem; 
            max-width: 600px; 
            margin: 0 auto 30px; 
        }
        
        .hero-visual { 
            margin-top: 40px; 
            max-width: 90%; 
            margin-left: auto; 
            margin-right: auto; 
            position: relative;
        }
        
        .hero-visual img { 
            max-width: 100%; 
            height: auto; 
            max-height: 350px; 
            border-radius: 10px; 
            box-shadow: var(--shadow-xl); 
            background-color: #fff; 
            padding: 10px; 
            position: relative;
            z-index: 2;
        }
        
        .hero-visual::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 20px;
            background: rgba(0,0,0,0.1);
            filter: blur(10px);
            z-index: 1;
        }
        
        /* Problem Section */
        .problem-need { 
            padding: 80px 0; 
            text-align: center; 
            background-color: #f5f9ff;
        }
        
        .problem-need h2 { 
            font-family: var(--font-headline); 
            font-size: 2rem; 
            margin-bottom: 15px; 
            color: var(--primary-blue); 
        }
        
        .problem-need p { 
            max-width: 650px; 
            margin: 0 auto; 
            font-size: 1.05rem; 
            color: #555; 
        }
        
        /* Solution Section */
        .solution-intro { 
            background-color: var(--text-light); 
            padding: 80px 0; 
            text-align: center; 
        }
        
        .solution-intro h2 { 
            font-family: var(--font-headline); 
            font-size: 2.2rem; 
            margin-bottom: 20px; 
            color: var(--accent-green); 
        }
        
        .solution-intro p { 
            max-width: 700px; 
            margin: 0 auto 30px; 
            font-size: 1.1rem; 
        }
        
        .benefits-list { 
            list-style: none; 
            display: flex; 
            justify-content: center; 
            flex-wrap: wrap; 
            gap: 20px; 
            margin-top: 30px; 
        }
        
        .benefits-list li { 
            background-color: var(--bg-light); 
            padding: 15px 20px; 
            border-radius: 8px; 
            font-weight: 600; 
            box-shadow: var(--shadow-sm); 
            display: flex; 
            align-items: center; 
            gap: 10px; 
            transition: all 0.3s ease;
        }
        
        .benefits-list li:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        .benefits-list li span.emoji { 
            font-size: 1.5rem; 
        }
        
        /* Product Showcase */
        .product-showcase { 
            padding: 80px 0; 
            background-color: #eef8ff; 
        }
        
        .product-showcase h2 { 
            text-align: center; 
            font-family: var(--font-headline); 
            font-size: 2.5rem; 
            margin-bottom: 40px; 
            color: var(--primary-blue); 
        }
        
        .comics-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
            gap: 30px; 
        }
        
        .comic-card { 
            background-color: var(--text-light); 
            border-radius: 10px; 
            box-shadow: var(--shadow-md); 
            overflow: hidden; 
            display: flex; 
            flex-direction: column; 
            transition: all 0.3s ease;
            position: relative;
        }
        
        .comic-card:hover { 
            transform: translateY(-5px); 
            box-shadow: var(--shadow-lg);
        }
        
        .comic-card img { 
            width: 100%; 
            height: 200px; 
            object-fit: cover; 
            border-bottom: 1px solid var(--border-color); 
            background-color: var(--border-color); 
        }
        
        .comic-card-content { 
            padding: 20px; 
            flex-grow: 1; 
            display: flex; 
            flex-direction: column; 
        }
        
        .comic-card h3 { 
            font-family: var(--font-body); 
            font-size: 1.3rem; 
            font-weight: 600; 
            margin-bottom: 8px; 
        }
        
        .comic-card p { 
            font-size: 0.95rem; 
            color: #555; 
            margin-bottom: 15px; 
            flex-grow: 1; 
        }
        
        .comic-style { 
            display: inline-block; 
            background-color: var(--primary-blue); 
            color: var(--text-light); 
            font-size: 0.8rem; 
            padding: 3px 8px; 
            border-radius: 5px; 
            margin-bottom: 15px; 
            align-self: flex-start; 
        }
        
        .comic-style.manga { background-color: #e74c3c; } 
        .comic-style.render3d { background-color: #9b59b6; } 
        .comic-style.medieval { background-color: #d35400;}
        .comic-style.fantasy { background-color: #8e44ad;} 
        .comic-style.scifi { background-color: #2980b9;}
        
        .comic-card .cta-button { 
            margin-top: auto; 
            padding: 10px 20px; 
            font-size: 1rem; 
            align-self: center; 
            width: 80%; 
            text-align: center; 
        }
        
        .show-all-container { 
            text-align: center; 
            margin-top: 40px; 
        }
        
        .show-all-container .cta-button { 
            background-color: var(--primary-blue); 
            color: var(--text-light); 
        }
        
        .show-all-container .cta-button:hover { 
            background-color: #2980b9; 
        }
        
        /* How It's Made Section */
        .how-its-made { 
            background-color: var(--text-light); 
            padding: 80px 0; 
            text-align: center; 
        }
        
        .how-its-made h2 { 
            font-family: var(--font-headline); 
            font-size: 2rem; 
            margin-bottom: 15px; 
            color: var(--accent-orange); 
        }
        
        .how-its-made p { 
            max-width: 650px; 
            margin: 0 auto; 
            color: #555; 
        }
        
        /* Process Steps */
        .process-steps {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
            flex-wrap: wrap;
        }
        
        .process-step {
            background: white;
            border-radius: 10px;
            padding: 20px;
            width: 180px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .process-step:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }
        
        .process-step-icon {
            font-size: 2rem;
            color: var(--primary-blue);
            margin-bottom: 10px;
        }
        
        .process-step h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        
        .process-step p {
            font-size: 0.85rem;
            color: #666;
        }
        
        /* Final CTA Section */
        .final-cta { 
            background: linear-gradient(135deg, var(--secondary-yellow), var(--accent-orange)); 
            color: var(--text-dark); 
            padding: 100px 0; 
            text-align: center; 
        }
        
        .final-cta h2 { 
            font-family: var(--font-headline); 
            font-size: 2.5rem; 
            margin-bottom: 20px; 
        }
        
        .pricing-options { 
            display: flex; 
            justify-content: center; 
            gap: 30px; 
            margin-top: 30px; 
            flex-wrap: wrap; 
        }
        
        .price-option { 
            background-color: rgba(255, 255, 255, 0.9); 
            padding: 30px; 
            border-radius: 10px; 
            min-width: 280px; 
            box-shadow: var(--shadow-lg); 
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .price-option:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
        }
        
        .price-option.popular::before {
            content: 'Most Popular';
            position: absolute;
            top: 15px;
            right: -30px;
            background-color: var(--accent-green);
            color: white;
            padding: 5px 30px;
            transform: rotate(45deg);
            font-size: 0.8rem;
            font-weight: bold;
        }
        
        .price-option h3 { 
            font-size: 1.4rem; 
            margin-bottom: 10px; 
            color: var(--primary-blue); 
        }
        
        .price-option .price { 
            font-size: 2rem; 
            font-weight: 700; 
            color: var(--accent-green); 
            margin-bottom: 15px; 
        }
        
        .price-option ul { 
            list-style: none; 
            margin-bottom: 20px; 
            text-align: left; 
        }
        
        .price-option ul li { 
            margin-bottom: 8px; 
            position: relative;
            padding-left: 25px;
        } 
        
        .price-option ul li::before { 
            content: '✓'; 
            color: var(--accent-green); 
            margin-right: 8px; 
            position: absolute;
            left: 0;
            font-weight: bold;
        } 
        
        .final-cta .cta-button { 
            background-color: var(--primary-blue); 
            color: var(--text-light); 
        }
        
        .final-cta .cta-button:hover { 
            background-color: #2980b9; 
        }
        
        /* Footer */
        .main-footer { 
            background-color: var(--text-dark); 
            color: var(--text-light); 
            text-align: center; 
            padding: 40px 0; 
            margin-top: 0; 
        }
        
        .main-footer a { 
            color: var(--primary-blue); 
            text-decoration: none; 
            margin: 0 10px; 
            transition: all 0.3s ease;
        }
        
        .main-footer a:hover { 
            text-decoration: underline; 
            color: var(--secondary-yellow);
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255,255,255,0.1);
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--primary-blue);
            transform: translateY(-3px);
        }
        
        /* Products Page Specific Styles */
        #products-page-content { 
            display: none; 
            padding: 40px 0; 
            background-color: #f5f9ff;
            min-height: 100vh;
        }
        
        #products-page-content.visible { 
            display: block; 
        }
        
        .products-page-header { 
            text-align: center; 
            margin-bottom: 40px; 
        }
        
        .products-page-header h1 { 
            font-family: var(--font-headline); 
            font-size: 2.8rem; 
            color: var(--primary-blue); 
            margin-bottom: 10px; 
        }
        
        .back-to-home-link { 
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 20px; 
            color: var(--primary-blue); 
            text-decoration: none; 
            font-weight: 600; 
            padding: 8px 15px; 
            border: 1px solid var(--primary-blue); 
            border-radius: 20px; 
            transition: all 0.3s ease; 
        }
        
        .back-to-home-link:hover { 
            background-color: var(--primary-blue); 
            color: var(--text-light); 
        }
        
        /* Search and Filter */
        .search-filter-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .search-box {
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 30px;
            min-width: 250px;
            font-family: var(--font-body);
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }
        
        .search-box:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }
        
        .style-filter {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .style-filter button {
            padding: 8px 15px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        .style-filter button:hover, .style-filter button.active {
            background-color: var(--primary-blue);
            color: white;
            border-color: var(--primary-blue);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .hero { padding: 80px 0 60px; }
            .hero h1 { font-size: 2.5rem; } 
            .hero p { font-size: 1rem; }
            .comics-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;}
            .pricing-options { flex-direction: column; align-items: center;}
            .price-option { width: 80%; max-width: 300px; }
            .benefits-list { flex-direction: column; align-items: center; }
            .process-steps { flex-direction: column; align-items: center; }
            .process-step { width: 100%; max-width: 250px; margin-bottom: 15px; }
        }
        
        @media (max-width: 480px) {
            .hero { padding: 70px 0 50px; }
            .logo { font-size: 1.5rem; } 
            .hero h1 { font-size: 2rem; }
            .problem-need h2, .solution-intro h2, .how-its-made h2 { font-size: 1.8rem;}
            .product-showcase h2, .final-cta h2 { font-size: 2rem; }
            .comic-card h3 { font-size: 1.1rem; }
            .products-page-header h1 { font-size: 2.2rem; }
            .price-option { width: 90%; }
        }
        
        /* Loading Animation */
        .loading-spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid rgba(52, 152, 219, 0.2);
            border-radius: 50%;
            border-top-color: var(--primary-blue);
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            padding: 30px;
            position: relative;
            transform: translateY(20px);
            transition: all 0.3s ease;
            box-shadow: var(--shadow-xl);
        }
        
        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #999;
            transition: all 0.3s ease;
        }
        
        .close-modal:hover {
            color: var(--primary-blue);
        }
        
        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--accent-green);
            color: white;
            padding: 15px 25px;
            border-radius: 5px;
            box-shadow: var(--shadow-md);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
            visibility: visible;
            bottom: 30px;
        }
    </style>
</head>
<body>
    <!-- ===== Landing Page Content (Initially Visible) ===== -->
    <div id="landing-page-content">
        <header class="main-header">
            <div class="container">
                <a href="#" class="logo">
                    <i class="fas fa-sparkles logo-icon"></i>
                    AI Story <span>Spark</span>
                </a>
            </div>
        </header>
        
        <section class="hero">
            <div class="container">
                <h1>Spark Your Child's Imagination with Magical AI Comic Stories!</h1>
                <p>Discover beautifully illustrated, fun-filled stories created with AI magic. New tales added regularly! Instant download for endless reading fun.</p>
                <a href="#comics" class="cta-button pulse-animation">
                    <i class="fas fa-book-open"></i> Explore Our Story Collection!
                </a>
                <div class="hero-visual">
                    <img src="https://via.placeholder.com/600x350/3498db/FFFFFF?text=AI+Comic+Preview" alt="Montage of AI generated comic book covers" class="float-animation">
                </div>
            </div>
        </section>
        
        <section class="problem-need">
            <div class="container">
                <h2>Looking for Fresh Bedtime Stories?</h2>
                <p>Finding new, engaging stories that kids truly love can be a challenge. Keep their imagination soaring and make reading exciting again with our constantly growing library of unique digital comics, generated by AI!</p>
            </div>
        </section>
        
        <section class="solution-intro">
            <div class="container">
                <h2>Welcome to AI Story Spark: Where Technology Creates Wonder!</h2>
                <p>We use the latest AI technology (like ChatGPT for ideas and specialized tools like AI Comic Factory) to craft unique children's stories filled with adventure, friendship, humor, and valuable lessons. Each comic features eye-catching, AI-generated illustrations in a variety of captivating styles.</p>
                
                <ul class="benefits-list">
                    <li><span class="emoji">✨</span> Unique Stories, Fresh Ideas</li>
                    <li><span class="emoji">🎨</span> Stunning AI-Generated Art</li>
                    <li><span class="emoji">📚</span> Fun Themes Kids Love</li>
                    <li><span class="emoji">📱</span> Instant Digital Download</li>
                    <li><span class="emoji">💰</span> Affordable Entertainment</li>
                </ul>
            </div>
        </section>
        
        <section class="product-showcase" id="comics">
            <div class="container">
                <h2>Dive Into Our Comic Universe!</h2>
                <div class="comics-grid" id="initial-comics-grid">
                    <!-- First 6 Visible Comics -->
                    <div class="comic-card fade-in" style="animation-delay: 0.1s;">
                        <img src="https://via.placeholder.com/300x200/A5D6A7/333?text=Detective+Dog" alt="Detective Dog & Brave Cat Comic Preview">
                        <div class="comic-card-content">
                            <h3>Detective Dog & the Brave Cat</h3>
                            <p>A classic tale of bravery! Can the clever cat save the worried pup from a tricky situation? Find out!</p>
                            <span class="comic-style">Classic Comic Style</span>
                            <button class="cta-button download-button" data-comic-id="dogcat01">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                    
                    <div class="comic-card fade-in" style="animation-delay: 0.2s;">
                        <img src="https://via.placeholder.com/300x200/FFCC80/333?text=Flying+Penguin" alt="Pip the Penguin Flies Comic Preview">
                        <div class="comic-card-content">
                            <h3>Pip the Penguin Flies?</h3>
                            <p>Pip believes penguins can soar! Follow his hilarious attempts in this heartwarming adventure about dreams.</p>
                            <span class="comic-style render3d">3D Render Look</span>
                            <button class="cta-button download-button" data-comic-id="penguin01">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                    
                    <div class="comic-card fade-in" style="animation-delay: 0.3s;">
                        <img src="https://via.placeholder.com/300x200/BCAAA4/333?text=Listening+Fox" alt="Luna the Fox Learns to Listen Comic Preview">
                        <div class="comic-card-content">
                            <h3>Luna the Fox Learns to Listen</h3>
                            <p>Luna loves to talk, but sometimes listening is more important! A charming story about friendship.</p>
                            <span class="comic-style manga">Japanese Manga Style</span>
                            <button class="cta-button download-button" data-comic-id="fox01">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                    
                    <div class="comic-card fade-in" style="animation-delay: 0.4s;">
                        <img src="https://via.placeholder.com/300x200/80DEEA/333?text=Knight+Rabbit" alt="Medieval Quest Comic Preview">
                        <div class="comic-card-content">
                            <h3>The Knight's Missing Shield</h3>
                            <p>Join Sir Reginald Rabbit on a quirky quest through a medieval land to find his lost shield before the joust!</p>
                            <span class="comic-style medieval">Medieval Style</span>
                            <button class="cta-button download-button" data-comic-id="knight01">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                    
                    <div class="comic-card fade-in" style="animation-delay: 0.5s;">
                        <img src="https://via.placeholder.com/300x200/E1BEE7/333?text=Shy+Dragon" alt="Fantasy Dragon Comic Preview">
                        <div class="comic-card-content">
                            <h3>The Dragon Who Couldn't Roar</h3>
                            <p>A little dragon feels different because he can't roar! Learn about accepting yourself in this fantasy tale.</p>
                            <span class="comic-style fantasy">Fantasy Art</span>
                            <button class="cta-button download-button" data-comic-id="dragon01">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                    
                    <div class="comic-card fade-in" style="animation-delay: 0.6s;">
                        <img src="https://via.placeholder.com/300x200/C5CAE9/333?text=Helpful+Robot" alt="Sci-Fi Robot Comic Preview">
                        <div class="comic-card-content">
                            <h3>Bolt the Robot's Big Problem</h3>
                            <p>Bolt the friendly robot needs help fixing his spaceship! A fun sci-fi adventure about teamwork.</p>
                            <span class="comic-style scifi">Sci-Fi Style</span>
                            <button class="cta-button download-button" data-comic-id="robot01">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="show-all-container" id="show-all-container">
                    <button class="cta-button" id="view-all-products-btn">
                        <i class="fas fa-book"></i> View All Stories
                    </button>
                </div>
                
                <p style="text-align: center; margin-top: 30px; font-style: italic;" id="more-stories-note">More stories and styles added all the time!</p>
            </div>
        </section>
        
        <section class="how-its-made">
            <div class="container">
                <h2>Crafted with Care (and a Little AI Magic!)</h2>
                <p>Our unique stories begin with creative ideas, often sparked by AI like ChatGPT. Then, powerful AI tools help generate engaging narratives and unique illustrations in diverse styles. We review every story to ensure it's fun, positive, and perfect for young readers!</p>
                
                <div class="process-steps">
                    <div class="process-step">
                        <div class="process-step-icon">
                            <i class="fas fa-lightbulb"></i>
                        </div>
                        <h3>Idea Generation</h3>
                        <p>AI helps brainstorm fun story concepts</p>
                    </div>
                    
                    <div class="process-step">
                        <div class="process-step-icon">
                            <i class="fas fa-book"></i>
                        </div>
                        <h3>Story Writing</h3>
                        <p>We craft engaging narratives</p>
                    </div>
                    
                    <div class="process-step">
                        <div class="process-step-icon">
                            <i class="fas fa-paint-brush"></i>
                        </div>
                        <h3>AI Illustration</h3>
                        <p>AI generates beautiful artwork</p>
                    </div>
                    
                    <div class="process-step">
                        <div class="process-step-icon">
                            <i class="fas fa-check-circle"></i>
                        </div>
                        <h3>Quality Review</h3>
                        <p>Every story is checked by humans</p>
                    </div>
                </div>
            </div>
        </section>
        
        <section class="final-cta" id="pricing">
            <div class="container">
                <h2>Ready for Story Time Fun?</h2>
                <p style="margin-bottom: 30px;">Choose the best way to spark your child's imagination!</p>
                
                <div class="pricing-options">
                    <div class="price-option">
                        <h3>Single Story</h3>
                        <div class="price">$1.99</div>
                        <ul>
                            <li>Instant Download</li>
                            <li>Choose Any Comic</li>
                            <li>Perfect for Trying</li>
                        </ul>
                        <button class="cta-button download-button" data-comic-id="single_any">
                            <i class="fas fa-shopping-cart"></i> Get a Single Story
                        </button>
                    </div>
                    
                    <div class="price-option popular">
                        <h3>Adventure Bundle</h3>
                        <div class="price">$4.99</div>
                        <ul>
                            <li>Includes 3 Comics</li>
                            <li>Great Value!</li>
                            <li>Action & Exploration</li>
                            <li>Bonus Activity Pages</li>
                        </ul>
                        <button class="cta-button download-button" data-comic-id="bundle_adventure">
                            <i class="fas fa-gift"></i> Get the Bundle
                        </button>
                    </div>
                    
                    <div class="price-option">
                        <h3>Monthly Club</h3>
                        <div class="price">$9.99/mo</div>
                        <ul>
                            <li>8 New Comics Monthly</li>
                            <li>Exclusive Content</li>
                            <li>Member Discounts</li>
                            <li>Cancel Anytime</li>
                        </ul>
                        <button class="cta-button download-button" data-comic-id="monthly_club">
                            <i class="fas fa-star"></i> Join the Club
                        </button>
                    </div>
                </div>
            </div>
        </section>
        
        <footer class="main-footer">
            <div class="container">
                <div class="social-links">
                    <a href="#"><i class="fab fa-facebook-f"></i></a>
                    <a href="#"><i class="fab fa-twitter"></i></a>
                    <a href="#"><i class="fab fa-instagram"></i></a>
                    <a href="#"><i class="fab fa-pinterest"></i></a>
                </div>
                <p>© 2024 AI Story Spark. All Rights Reserved.</p>
                <p>
                    <a href="#">Privacy Policy</a> | 
                    <a href="#">Terms of Use</a> | 
                    <a href="#">Contact Us</a>
                </p>
            </div>
        </footer>
    </div> <!-- End #landing-page-content -->
    
    <!-- ===== Products Page Content (Initially Hidden) ===== -->
    <div id="products-page-content">
        <header class="main-header">
            <div class="container">
                <a href="#" class="logo" id="logo-products-page">
                    <i class="fas fa-sparkles logo-icon"></i>
                    AI Story <span>Spark</span>
                </a>
                <a href="#" class="back-to-home-link" id="back-to-home-btn">
                    <i class="fas fa-arrow-left"></i> Back to Home
                </a>
            </div>
        </header>
        
        <div class="container">
            <div class="products-page-header">
                <h1>Our Full Collection</h1>
                <p>Explore all 102 magical AI-generated stories!</p>
                
                <div class="search-filter-container">
                    <input type="text" class="search-box" id="comic-search" placeholder="Search comics...">
                    
                    <div class="style-filter">
                        <button class="active" data-filter="all">All Styles</button>
                        <button data-filter="classic">Classic</button>
                        <button data-filter="manga">Manga</button>
                        <button data-filter="render3d">3D</button>
                        <button data-filter="medieval">Medieval</button>
                        <button data-filter="fantasy">Fantasy</button>
                        <button data-filter="scifi">Sci-Fi</button>
                    </div>
                </div>
            </div>
            
            <div class="comics-grid" id="full-comics-grid">
                <!-- Comic cards will be dynamically inserted here -->
            </div>
            
            <div id="loading-spinner" style="text-align: center; padding: 30px; display: none;">
                <div class="loading-spinner"></div>
                <p>Loading more stories...</p>
            </div>
        </div>
        
        <footer class="main-footer">
            <div class="container">
                <p>© 2024 AI Story Spark. All Rights Reserved.</p>
                <p>
                    <a href="#">Privacy Policy</a> | 
                    <a href="#">Terms of Use</a>
                </p>
            </div>
        </footer>
    </div> <!-- End #products-page-content -->
    
    <!-- Modal for Comic Details -->
    <div class="modal-overlay" id="comic-modal">
        <div class="modal-content">
            <span class="close-modal" id="close-modal">&times;</span>
            <div id="modal-content-inner">
                <!-- Content will be inserted here -->
            </div>
        </div>
    </div>
    
    <!-- Toast Notification -->
    <div class="toast" id="toast-notification">
        <span id="toast-message">Item added to cart!</span>
    </div>
    
    <script>
        document.addEventListener('DOMContentLoaded', () => {
            // Elements
            const landingPageContent = document.getElementById('landing-page-content');
            const productsPageContent = document.getElementById('products-page-content');
            const viewAllProductsBtn = document.getElementById('view-all-products-btn');
            const backToHomeBtn = document.getElementById('back-to-home-btn');
            const fullComicsGrid = document.getElementById('full-comics-grid');
            const initialComicsGrid = document.getElementById('initial-comics-grid');
            const comicSearch = document.getElementById('comic-search');
            const styleFilterButtons = document.querySelectorAll('.style-filter button');
            const loadingSpinner = document.getElementById('loading-spinner');
            const comicModal = document.getElementById('comic-modal');
            const closeModal = document.getElementById('close-modal');
            const modalContentInner = document.getElementById('modal-content-inner');
            const toastNotification = document.getElementById('toast-notification');
            
            // Header scroll effect
            const header = document.querySelector('.main-header');
            window.addEventListener('scroll', () => {
                if (window.scrollY > 50) {
                    header.classList.add('scrolled');
                } else {
                    header.classList.remove('scrolled');
                }
            });
            
            // --- Data for the first 6 comics (already in HTML) ---
            const initialComicsData = [
                { 
                    id: 'dogcat01', 
                    title: 'Detective Dog & the Brave Cat', 
                    description: "A classic tale of bravery! Can the clever cat save the worried pup from a tricky situation? Find out!", 
                    style: 'Classic Comic Style', 
                    styleClass: 'classic', 
                    imgText: 'Detective Dog',
                    longDescription: "Detective Dog is in trouble when he gets stuck in a deep hole while investigating a mysterious case. His friend, Brave Cat, must overcome her fear of heights to rescue him. This heartwarming story teaches children about courage, friendship, and helping others in need."
                },
                { 
                    id: 'penguin01', 
                    title: 'Pip the Penguin Flies?', 
                    description: "Pip believes penguins can soar! Follow his hilarious attempts in this heartwarming adventure about dreams.", 
                    style: '3D Render Look', 
                    styleClass: 'render3d', 
                    imgText: 'Flying Penguin',
                    longDescription: "Pip is different from other penguins - he's convinced that penguins can fly! Despite everyone telling him it's impossible, Pip tries all sorts of creative ways to take to the skies. This charming story encourages children to pursue their dreams while also learning to accept their unique qualities."
                },
                { 
                    id: 'fox01', 
                    title: 'Luna the Fox Learns to Listen', 
                    description: "Luna loves to talk, but sometimes listening is more important! A charming story about friendship.", 
                    style: 'Japanese Manga Style', 
                    styleClass: 'manga', 
                    imgText: 'Listening Fox',
                    longDescription: "Luna the Fox is always the one telling stories and jokes, but she rarely stops to listen to others. When her friends start avoiding her because they feel unheard, Luna must learn the valuable lesson that friendship is a two-way street. This manga-style comic teaches children about the importance of listening and empathy."
                },
                { 
                    id: 'knight01', 
                    title: "The Knight's Missing Shield", 
                    description: "Join Sir Reginald Rabbit on a quirky quest through a medieval land to find his lost shield before the joust!", 
                    style: 'Medieval Style', 
                    styleClass: 'medieval', 
                    imgText: 'Knight Rabbit',
                    longDescription: "Sir Reginald Rabbit, the bravest knight in the kingdom, has lost his lucky shield just before the big tournament! Follow his hilarious adventure through castles, forests, and villages as he searches for his missing shield with the help of unlikely friends. This medieval tale is full of humor and teaches about teamwork."
                },
                { 
                    id: 'dragon01', 
                    title: "The Dragon Who Couldn't Roar", 
                    description: "A little dragon feels different because he can't roar! Learn about accepting yourself in this fantasy tale.", 
                    style: 'Fantasy Art', 
                    styleClass: 'fantasy', 
                    imgText: 'Shy Dragon',
                    longDescription: "Spark is a young dragon who can't roar like the others. He feels left out and different until he discovers his unique ability to create beautiful colored smoke patterns. When danger threatens his village, Spark's special talent saves the day! This fantasy story celebrates individuality and self-acceptance."
                },
                { 
                    id: 'robot01', 
                    title: "Bolt the Robot's Big Problem", 
                    description: "Bolt the friendly robot needs help fixing his spaceship! A fun sci-fi adventure about teamwork.", 
                    style: 'Sci-Fi Style', 
                    styleClass: 'scifi', 
                    imgText: 'Helpful Robot',
                    longDescription: "Bolt's spaceship has crashed on a strange planet, and he needs parts to fix it. With the help of the planet's quirky inhabitants, Bolt learns that teamwork and creative problem-solving can overcome any obstacle. This sci-fi adventure introduces basic engineering concepts while teaching about cooperation and perseverance."
                }
            ];
            
            // --- Generator Data for remaining comics ---
            const adjectives = ["Brave", "Curious", "Little", "Sparkly", "Lost", "Friendly", "Sleepy", "Clever", "Magical", "Grumpy", "Fast", "Giant", "Tiny", "Rainbow"];
            const nouns = ["Kitten", "Puppy", "Robot", "Star", "Dragon", "Fox", "Bear", "Spaceship", "Castle", "Penguin", "Monkey", "Owl", "Dinosaur", "Unicorn", "Pirate"];
            const concepts = ["Adventure", "Secret", "Quest", "Friendship", "Surprise", "Dream", "Discovery", "Race", "Party", "Treasure", "Mystery", "Journey"];
            const settings = ["in the Jungle", "Under the Sea", "in Space", "at the Magical Fair", "on a Pirate Ship", "in the Snowy Mountains", "in a Busy City"];
            const actions = ["learns to share", "finds a hidden map", "makes a new friend", "solves a puzzle", "builds a fort", "wins the race", "helps someone lost"];
            
            // Function to generate more diverse placeholder data
            function generatePlaceholderData(index) {
                const adj = adjectives[index % adjectives.length];
                const noun = nouns[index % nouns.length];
                const concept = concepts[index % concepts.length];
                const setting = settings[index % settings.length];
                const action = actions[index % actions.length];
                const styles = [
                    {name: 'Classic Comic Style', class: 'classic'},
                    {name: 'Japanese Manga Style', class: 'manga'},
                    {name: '3D Render Look', class: 'render3d'},
                    {name: 'Medieval Style', class: 'medieval'},
                    {name: 'Fantasy Art', class: 'fantasy'},
                    {name: 'Sci-Fi Style', class: 'scifi'}
                ];
                const style = styles[index % styles.length];
                
                // Generate Title (Remove Numbering)
                let title = "";
                switch (index % 4) {
                    case 0: title = `The ${adj} ${noun}`; break;
                    case 1: title = `${noun}'s Big ${concept}`; break;
                    case 2: title = `A ${concept} ${setting}`; break;
                    default: title = `${adj} ${noun}'s ${action}`; break;
                }
                
                // Generate Description
                let description = "";
                switch (index % 3) {
                    case 0: description = `Join ${noun} as they embark on ${adj.toLowerCase()} ${concept.toLowerCase()} ${setting}!`; break;
                    case 1: description = `What happens when ${noun} tries to ${action}? A fun AI-generated story about ${concept.toLowerCase()}.`; break;
                    default: description = `Discover the ${adj.toLowerCase()} ${noun}'s secret ${setting}. A tale of ${concept.toLowerCase()}.`; break;
                }
                
                // Generate long description
                const longDescription = `This is the extended story description for ${title}. In this ${style.name.toLowerCase()} comic, ${noun} ${action} while ${setting}. The story teaches valuable lessons about ${concept.toLowerCase()} through ${adj.toLowerCase()} adventures that children will love. Perfect for bedtime reading or classroom story time!`;
                
                // Generate Image Text (more specific)
                const imgText = `${adj} ${noun}`;
                
                return {
                    id: `comic${String(index + 1).padStart(3, '0')}`,
                    title: title,
                    description: description,
                    style: style.name,
                    styleClass: style.class,
                    imgText: imgText,
                    longDescription: longDescription
                };
            }
            
            // Function to create a single comic card HTML using data object
            function createComicCardHTML(comicData) {
                // Generate Placeholder Image URL with more context
                const bgColors = ['E0E0E0', 'C5CAE9', 'FFF9C4', 'F8BBD0', 'DCEDC8', 'BBDEFB'];
                const bgColor = bgColors[parseInt(comicData.id.slice(-1)) % bgColors.length];
                const placeholderImageUrl = `https://via.placeholder.com/300x200/${bgColor}/555?text=${encodeURIComponent(comicData.imgText)}`;
                
                return `
                    <div class="comic-card" data-id="${comicData.id}" data-style="${comicData.styleClass}" data-title="${comicData.title.toLowerCase()}">
                        <img src="${placeholderImageUrl}" alt="${comicData.title} Preview">
                        <div class="comic-card-content">
                            <h3>${comicData.title}</h3>
                            <p>${comicData.description}</p>
                            <span class="comic-style ${comicData.styleClass}">${comicData.style}</span>
                            <button class="cta-button download-button" data-comic-id="${comicData.id}">
                                <i class="fas fa-shopping-cart"></i> Buy Now / Download
                            </button>
                        </div>
                    </div>
                `;
            }
            
            // Function to create modal content
            function createModalContent(comicData) {
                const bgColors = ['E0E0E0', 'C5CAE9', 'FFF9C4', 'F8BBD0', 'DCEDC8', 'BBDEFB'];
                const bgColor = bgColors[parseInt(comicData.id.slice(-1)) % bgColors.length];
                const placeholderImageUrl = `https://via.placeholder.com/500x350/${bgColor}/555?text=${encodeURIComponent(comicData.imgText)}`;
                
                return `
                    <div class="modal-comic-details">
                        <img src="${placeholderImageUrl}" alt="${comicData.title}" style="width: 100%; border-radius: 8px; margin-bottom: 20px;">
                        <h2 style="font-family: var(--font-headline); color: var(--primary-blue); margin-bottom: 10px;">${comicData.title}</h2>
                        <span class="comic-style ${comicData.styleClass}" style="margin-bottom: 15px;">${comicData.style}</span>
                        <p style="margin-bottom: 20px; font-size: 1.1rem;">${comicData.longDescription}</p>
                        <div style="display: flex; gap: 15px; justify-content: center;">
                            <button class="cta-button download-button" data-comic-id="${comicData.id}" style="padding: 12px 25px;">
                                <i class="fas fa-shopping-cart"></i> Buy Now ($1.99)
                            </button>
                            <button class="cta-button" style="background-color: var(--accent-green); padding: 12px 25px;">
                                <i class="fas fa-heart"></i> Add to Wishlist
                            </button>
                        </div>
                    </div>
                `;
            }
            
            // Function to populate the full comics grid
            function populateFullComicsGrid() {
                if (!fullComicsGrid) return;
                
                loadingSpinner.style.display = 'block';
                fullComicsGrid.innerHTML = '';
                
                // Simulate loading delay
                setTimeout(() => {
                    let gridHTML = '';
                    
                    // 1. Add the initial 6 comics first (using their specific data)
                    initialComicsData.forEach(comicData => {
                        gridHTML += createComicCardHTML(comicData);
                    });
                    
                    // 2. Generate and add the remaining comics (up to 102 total)
                    const remainingCount = 102 - initialComicsData.length;
                    for (let i = 0; i < remainingCount; i++) {
                        const comicData = generatePlaceholderData(initialComicsData.length + i);
                        gridHTML += createComicCardHTML(comicData);
                    }
                    
                    fullComicsGrid.innerHTML = gridHTML;
                    loadingSpinner.style.display = 'none';
                    
                    // Attach event listeners to all comic cards
                    document.querySelectorAll('.comic-card').forEach(card => {
                        card.addEventListener('click', (e) => {
                            // Don't open modal if clicking on a button inside the card
                            if (e.target.closest('.download-button')) return;
                            
                            const comicId = card.dataset.id;
                            const comicData = [...initialComicsData, ...Array(remainingCount).fill().map((_, i) => 
                                generatePlaceholderData(initialComicsData.length + i)
                            )].find(comic => comic.id === comicId);
                            
                            if (comicData) {
                                modalContentInner.innerHTML = createModalContent(comicData);
                                comicModal.classList.add('active');
                                document.body.style.overflow = 'hidden';
                            }
                        });
                    });
                    
                    // Re-attach download button listeners
                    attachDownloadButtonListeners('#products-page-content .download-button');
                    
                }, 800); // Simulate loading delay
            }
            
            // Function to filter comics
            function filterComics() {
                const searchTerm = comicSearch.value.toLowerCase();
                const activeFilter = document.querySelector('.style-filter button.active').dataset.filter;
                
                document.querySelectorAll('.comic-card').forEach(card => {
                    const title = card.dataset.title;
                    const style = card.dataset.style;
                    
                    const matchesSearch = title.includes(searchTerm);
                    const matchesFilter = activeFilter === 'all' || style === activeFilter;
                    
                    if (matchesSearch && matchesFilter) {
                        card.style.display = 'flex';
                    } else {
                        card.style.display = 'none';
                    }
                });
            }
            
            // Function to attach download simulation listeners
            function attachDownloadButtonListeners(selector) {
                document.querySelectorAll(selector).forEach(button => {
                    button.addEventListener('click', (event) => {
                        event.stopPropagation();
                        const comicId = event.target.closest('button').dataset.comicId;
                        
                        // Show toast notification
                        toastNotification.querySelector('#toast-message').textContent = 
                            `"${event.target.closest('.comic-card')?.querySelector('h3')?.textContent || 'Item'}" added to cart!`;
                        
                        toastNotification.classList.add('show');
                        setTimeout(() => {
                            toastNotification.classList.remove('show');
                        }, 3000);
                    });
                });
            }
            
            // --- Event Listeners ---
            if (viewAllProductsBtn && landingPageContent && productsPageContent) {
                viewAllProductsBtn.addEventListener('click', () => {
                    landingPageContent.style.display = 'none';
                    productsPageContent.style.display = 'block';
                    populateFullComicsGrid();
                    window.scrollTo(0, 0);
                });
            }
            
            if (backToHomeBtn && landingPageContent && productsPageContent) {
                backToHomeBtn.addEventListener('click', (e) => {
                    e.preventDefault();
                    productsPageContent.style.display = 'none';
                    landingPageContent.style.display = 'block';
                    window.scrollTo(0, 0);
                });
            }
            
            // Search and filter event listeners
            comicSearch.addEventListener('input', filterComics);
            
            styleFilterButtons.forEach(button => {
                button.addEventListener('click', () => {
                    styleFilterButtons.forEach(btn => btn.classList.remove('active'));
                    button.classList.add('active');
                    filterComics();
                });
            });
            
            // Modal close button
            closeModal.addEventListener('click', () => {
                comicModal.classList.remove('active');
                document.body.style.overflow = 'auto';
            });
            
            // Close modal when clicking outside
            comicModal.addEventListener('click', (e) => {
                if (e.target === comicModal) {
                    comicModal.classList.remove('active');
                    document.body.style.overflow = 'auto';
                }
            });
            
            // Initial setup
            attachDownloadButtonListeners('#landing-page-content .download-button');
            
            // --- Smooth Scroll ---
            document.querySelectorAll('#landing-page-content a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    const targetId = this.getAttribute('href');
                    const targetElement = document.querySelector(targetId);
                    if (targetElement) {
                        targetElement.scrollIntoView({ behavior: 'smooth' });
                    }
                });
            });
            
            // Add fade-in animations to elements as they come into view
            const fadeElements = document.querySelectorAll('.fade-in');
            
            const fadeObserver = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = 1;
                        entry.target.style.transform = 'translateY(0)';
                        fadeObserver.unobserve(entry.target);
                    }
                });
            }, { threshold: 0.1 });
            
            fadeElements.forEach(element => {
                element.style.opacity = 0;
                element.style.transform = 'translateY(20px)';
                element.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
                fadeObserver.observe(element);
            });
        });
    </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=digr/stories" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>