File size: 31,577 Bytes
98129a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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
<html class="scroll-smooth" lang="en">

<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <title>FaceAging AI - AI-Powered Face Age Transformation</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&amp;display=swap" rel="stylesheet" />
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet" />
    <style>

        html {

            scroll-behavior: smooth;

        }



        body {

            font-family: "Inter", sans-serif;

            background-color: #faf9f6;

            color: #3e2723;

            transition: background-color 0.4s ease, color 0.4s ease;

            min-height: 100vh;

        }



        body.dark {

            background-color: #6d4c41;

            color: #d7ccc8;

        }



        ::-webkit-scrollbar {

            width: 8px;

            height: 8px;

        }



        ::-webkit-scrollbar-track {

            background: transparent;

        }



        ::-webkit-scrollbar-thumb {

            background-color: #a1887f;

            border-radius: 4px;

        }



        body.dark ::-webkit-scrollbar-thumb {

            background-color: #5d4037;

        }



        header.scrolled {

            box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);

            backdrop-filter: saturate(180%) blur(10px);

            background-color: rgba(250, 249, 246, 0.85);

            transition: background-color 0.3s ease, box-shadow 0.3s ease;

        }



        body.dark header.scrolled {

            background-color: rgba(109, 76, 65, 0.9);

            box-shadow: 0 2px 12px rgb(0 0 0 / 0.5);

        }



        #darkToggle {

            cursor: pointer;

            transition: transform 0.3s ease, color 0.3s ease;

            color: #3e2723;

        }



        #darkToggle:hover,

        #darkToggle:focus {

            transform: scale(1.1);

            outline: none;

            color: #ff7043;

        }



        body.dark #darkToggle {

            color: #d7ccc8;

        }



        body.dark #darkToggle:hover,

        body.dark #darkToggle:focus {

            color: #ffccbc;

        }



        .fade-in {

            opacity: 0;

            transform: translateY(20px);

            transition: opacity 0.8s ease, transform 0.8s ease;

        }



        .fade-in.visible {

            opacity: 1;

            transform: translateY(0);

        }



        .scroll-animate {

            opacity: 0;

            transform: translateY(30px);

            transition: opacity 0.8s ease, transform 0.8s ease;

        }



        .scroll-animate.visible {

            opacity: 1;

            transform: translateY(0);

        }



        button.primary-btn {

            background-color: #6d4c41;

            color: #faf9f6;

            box-shadow: 0 4px 8px rgb(109 76 65 / 0.5);

            transition: background-color 0.3s ease, box-shadow 0.3s ease,

                transform 0.15s ease, color 0.3s ease;

            border-radius: 0.5rem;

            font-weight: 600;

        }



        button.primary-btn:hover,

        button.primary-btn:focus {

            background-color: #4e342e;

            box-shadow: 0 6px 12px rgb(78 52 46 / 0.7);

            outline: none;

            transform: scale(1.05);

            color: #ffccbc;

        }



        .feature-card,

        .step-card {

            background-color: #ffccbc;

            border-radius: 1rem;

            box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);

            transition: box-shadow 0.3s ease, transform 0.3s ease,

                background-color 0.3s ease;

            cursor: default;

            color: #4e342e;

        }



        .feature-card:hover,

        .feature-card:focus-within,

        .step-card:hover,

        .step-card:focus-within {

            box-shadow: 0 8px 20px rgb(109 76 65 / 0.3);

            transform: translateY(-6px);

            outline: none;

            background-color: #ffab91;

            color: #3e2723;

        }



        .image-container {

            border-radius: 1rem;

            box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);

            overflow: hidden;

            background-color: #fff7f3;

            position: relative;

        }



        .image-container img {

            opacity: 0;

            transition: opacity 1s ease;

            display: block;

            width: 100%;

            height: auto;

            user-select: none;

            pointer-events: none;

            border-radius: 1rem;

        }



        .image-container img.loaded {

            opacity: 1;

        }



        .spinner {

            border: 4px solid #e0d7d1;

            border-top: 4px solid #6d4c41;

            border-radius: 50%;

            width: 48px;

            height: 48px;

            animation: spin 1s linear infinite;

            margin: auto;

        }



        @keyframes spin {

            0% {

                transform: rotate(0deg);

            }



            100% {

                transform: rotate(360deg);

            }

        }



        .upload-area {

            border: 2px dashed #d7ccc8;

            border-radius: 1rem;

            background-color: #fff7f3;

            transition: background-color 0.3s ease, border-color 0.3s ease,

                color 0.3s ease;

            cursor: pointer;

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            padding: 3rem 1.5rem;

            text-align: center;

            color: #6d4c41;

            user-select: none;

            outline-offset: 4px;

        }



        .upload-area:hover,

        .upload-area.dragover {

            background-color: #ffebe6;

            border-color: #6d4c41;

            color: #4e342e;

        }



        body.dark .upload-area {

            background-color: #4e342e;

            color: #ffccbc;

            border-color: #a1887f;

        }



        body.dark .upload-area:hover,

        body.dark .upload-area.dragover {

            background-color: #3e2723;

            border-color: #ffab91;

            color: #ffccbc;

        }



        input[type="file"] {

            display: none;

        }



        .upload-label {

            font-weight: 600;

            font-size: 1.125rem;

            margin-top: 1rem;

            color: inherit;

            user-select: none;

        }



        .before-after-container {

            position: relative;

            overflow: hidden;

            border-radius: 1rem;

            box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);

            background-color: #fff7f3;

            max-width: 100%;

            user-select: none;

            display: flex;

            gap: 1rem;

            justify-content: center;

            align-items: center;

            flex-wrap: wrap;

        }



        .before-image,

        .after-image {

            display: block;

            width: 48%;

            height: auto;

            pointer-events: none;

            user-select: none;

            border-radius: 1rem;

            box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);

            transition: opacity 1s ease;

        }



        @media (max-width: 768px) {

            .before-after-container {

                flex-direction: column;

            }



            .before-image,

            .after-image {

                width: 100%;

            }



            .upload-area {

                padding: 2rem 1rem;

            }

        }



        @media (max-width: 480px) {

            .before-after-container {

                max-height: none;

            }



            .upload-area {

                padding: 1.5rem 1rem;

            }

        }



        .features-grid,

        .steps-grid {

            display: grid;

            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

            gap: 1.5rem;

        }



        #learnMoreContent {

            max-height: 0;

            overflow: hidden;

            transition: max-height 0.5s ease;

            color: #6d4c41;

        }



        #learnMoreContent.open {

            max-height: 500px;

        }



        .learn-more-btn {

            color: #6d4c41;

            font-weight: 600;

            cursor: pointer;

            user-select: none;

            transition: color 0.3s ease;

        }



        .learn-more-btn:hover,

        .learn-more-btn:focus {

            color: #4e342e;

            outline: none;

        }



        ul li a {

            transition: color 0.3s ease;

        }



        ul li a:hover,

        ul li a:focus {

            color: #6d4c41;

            outline: none;

        }



        footer {

            color: #6d4c41;

        }



        footer a {

            color: #6d4c41;

            transition: color 0.3s ease;

        }



        footer a:hover,

        footer a:focus {

            color: #4e342e;

            outline: none;

        }



        form#uploadForm {

            margin-top: 1.5rem;

            display: flex;

            flex-direction: column;

            align-items: center;

            gap: 1rem;

            max-width: 320px;

            margin-left: auto;

            margin-right: auto;

        }



        form#uploadForm select,

        form#uploadForm button {

            width: 100%;

            border-radius: 0.5rem;

            border: 1.5px solid #6d4c41;

            padding: 0.5rem 1rem;

            font-size: 1rem;

            font-weight: 600;

            color: #3e2723;

            background-color: #fff7f3;

            transition: background-color 0.3s ease, border-color 0.3s ease;

            cursor: pointer;

        }



        form#uploadForm select:focus,

        form#uploadForm button:focus {

            outline: none;

            border-color: #4e342e;

            background-color: #ffebe6;

        }



        form#uploadForm button {

            background-color: #6d4c41;

            color: #faf9f6;

            box-shadow: 0 4px 8px rgb(109 76 65 / 0.5);

            transition: background-color 0.3s ease, box-shadow 0.3s ease,

                transform 0.15s ease, color 0.3s ease;

        }



        form#uploadForm button:hover,

        form#uploadForm button:focus {

            background-color: #4e342e;

            box-shadow: 0 6px 12px rgb(78 52 46 / 0.7);

            color: #ffccbc;

            transform: scale(1.05);

            outline: none;

        }



        form#uploadForm input[type="file"] {

            cursor: pointer;

            border-radius: 0.5rem;

            border: 1.5px solid #6d4c41;

            padding: 0.5rem 1rem;

            background-color: #fff7f3;

            color: #3e2723;

            font-weight: 600;

            transition: background-color 0.3s ease, border-color 0.3s ease;

            width: 100%;

            display: block;

        }



        form#uploadForm input[type="file"]:focus {

            outline: none;

            border-color: #4e342e;

            background-color: #ffebe6;

        }



        #result {

            margin-top: 2rem;

            text-align: center;

            color: #3e2723;

        }



        #result h2 {

            font-weight: 700;

            font-size: 1.5rem;

            margin-bottom: 1rem;

        }



        #outputImage {

            max-width: 100%;

            border-radius: 1rem;

            box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);

            display: none;

            margin: 0 auto;

        }



        body.dark form#uploadForm select,

        body.dark form#uploadForm button,

        body.dark form#uploadForm input[type="file"] {

            background-color: #4e342e;

            color: #ffccbc;

            border-color: #a1887f;

        }



        body.dark form#uploadForm select:focus,

        body.dark form#uploadForm button:focus,

        body.dark form#uploadForm input[type="file"]:focus {

            background-color: #3e2723;

            border-color: #ffab91;

            color: #ffccbc;

        }



        body.dark #result {

            color: #d7ccc8;

        }

    </style>
</head>

<body class="relative flex flex-col min-h-screen transition-colors duration-500">
    <!-- HEADER -->
    <header class="fixed top-0 left-0 right-0 z-50 border-b border-transparent backdrop-blur-sm" id="header"

        role="banner" style="background-color: rgba(250, 249, 246, 0.85)">
        <nav aria-label="Primary Navigation"

            class="max-w-7xl mx-auto flex items-center justify-between px-6 sm:px-8 lg:px-12 h-16">
            <a aria-label="FaceAging AI Home" class="flex items-center space-x-3 font-semibold text-xl select-none"

                href="#" style="color: #3e2723">
                <img alt="FaceAging AI logo, stylized FA letters in circle" aria-hidden="true"

                    class="w-10 h-10 rounded-full" draggable="false" height="40"

                    src="https://storage.googleapis.com/a1aa/image/02d7a33c-afc0-4d71-885c-1ebc483270ab.jpg"

                    width="40" />
                <span class="font-inter font-bold tracking-wide">FaceAging AI</span>
            </a>
            <ul class="hidden md:flex space-x-10 font-medium text-brown" role="menubar" style="color: #3e2723">
                <li role="none">
                    <a class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41]" href="#about"

                        role="menuitem" tabindex="0">About</a>
                </li>
                <li role="none">
                    <a class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41]" href="#features"

                        role="menuitem" tabindex="0">Features</a>
                </li>
                <li role="none">
                    <a class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41]" href="#tryItOut"

                        role="menuitem" tabindex="0">Try It Out</a>
                </li>
                <li role="none">
                    <a class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41]" href="#contact"

                        role="menuitem" tabindex="0">Contact</a>
                </li>
            </ul>
            <div class="flex items-center space-x-4">
                <button aria-label="Toggle dark mode"

                    class="focus:outline-none focus:ring-2 focus:ring-[#FF7043] rounded p-1 " id="darkToggle"

                    title="Toggle dark mode" type="button" style="color: #3e2723; visibility: hidden;">
                    <i class="fas fa-moon fa-lg"></i>
                </button>
                <!-- Mobile menu button -->
                <button aria-controls="mobileMenu" aria-expanded="false" aria-label="Toggle menu"

                    class="md:hidden focus:outline-none focus:ring-2 focus:ring-[#FF7043] rounded p-1"

                    id="mobileMenuButton" type="button" style="color: #3e2723">
                    <i class="fas fa-bars fa-lg"></i>
                </button>
            </div>
        </nav>
        <!-- Mobile menu -->
        <div aria-label="Mobile Navigation" class="hidden md:hidden border-t border-transparent" id="mobileMenu"

            role="menu" style="background-color: rgba(250, 249, 246, 0.95)">
            <ul class="flex flex-col space-y-2 p-4 font-medium" style="color: #3e2723">
                <li role="none">
                    <a class="block px-3 py-2 rounded hover:bg-[#FFEBE6] hover:text-[#6D4C41] focus:outline-none focus:bg-[#FFEBE6] focus:text-[#6D4C41] transition"

                        href="#about" role="menuitem" tabindex="0">About</a>
                </li>
                <li role="none">
                    <a class="block px-3 py-2 rounded hover:bg-[#FFEBE6] hover:text-[#6D4C41] focus:outline-none focus:bg-[#FFEBE6] focus:text-[#6D4C41] transition"

                        href="#features" role="menuitem" tabindex="0">Features</a>
                </li>
                <li role="none">
                    <a class="block px-3 py-2 rounded hover:bg-[#FFEBE6] hover:text-[#6D4C41] focus:outline-none focus:bg-[#FFEBE6] focus:text-[#6D4C41] transition"

                        href="#tryItOut" role="menuitem" tabindex="0">Try It Out</a>
                </li>
                <li role="none">
                    <a class="block px-3 py-2 rounded hover:bg-[#FFEBE6] hover:text-[#6D4C41] focus:outline-none focus:bg-[#FFEBE6] focus:text-[#6D4C41] transition"

                        href="#contact" role="menuitem" tabindex="0">Contact</a>
                </li>
            </ul>
        </div>
    </header>
    <!-- MAIN CONTENT -->
    <main class="flex-grow pt-20">
        <!-- HERO -->
        <section class="max-w-5xl mx-auto px-6 sm:px-8 lg:px-12 text-center py-20 fade-in" id="hero" tabindex="-1">
            <h1 class="text-4xl sm:text-5xl font-extrabold leading-tight max-w-3xl mx-auto" style="color: #3e2723">
                FaceAging AI
            </h1>
            <p class="mt-4 text-lg sm:text-xl max-w-2xl mx-auto" style="color: #6d4c41">
                Realistic AI-powered face age transformation — look older or younger
                instantly.
            </p>
            <button aria-label="Upload Image"

                class="primary-btn mt-10 px-8 py-4 text-lg rounded-lg shadow-lg focus:outline-none focus:ring-4 focus:ring-[#FF7043]"

                id="uploadBtnHero" type="button">
                <i class="fas fa-upload mr-3"></i> Upload Image
            </button>
        </section>

       
<!-- TRY IT OUT -->
<section aria-label="Try FaceAging AI"

  class="max-w-full mx-auto px-12 sm:px-20 lg:px-28 py-20 scroll-animate"

  id="tryItOut" tabindex="-1">

  <form class="space-y-10 max-w-5xl mx-auto" id="uploadForm" enctype="multipart/form-data" novalidate>

    <!-- Upload Box -->
    <div class="border-2 border-dashed border-[#A1887F] rounded-3xl p-14 text-center bg-[#EFEBE9] shadow-md">
      <label for="fileInput" class="block text-3xl font-semibold text-[#3E2723] mb-6">
        Upload Your Face Image
      </label>
      <input accept="image/*" class="block mx-auto text-lg mb-5 w-full max-w-4xl" id="fileInput" name="file" required

        type="file" aria-label="Upload face image" />
      <p class="text-base text-[#5D4037]">Supported formats: JPG, PNG • Max size: 5MB</p>
    </div>

    <!-- Controls Section -->
    <div class="flex flex-col sm:flex-row items-center justify-center gap-10 max-w-5xl mx-auto">

      <!-- Dropdown -->
      <div class="w-full sm:w-1/2">
        <label for="conversion" class="block text-lg font-medium text-[#3E2723] mb-3">
          Choose Transformation
        </label>
        <select id="conversion" name="conversion" required

          class="w-full px-6 py-4 rounded-3xl border border-[#A1887F] bg-white text-[#3E2723] text-lg shadow-sm focus:outline-none focus:ring-4 focus:ring-[#6D4C41] transition">
          <option value="young_to_old">Young to Old</option>
          <option value="old_to_young">Old to Young</option>
        </select>
      </div>

      <!-- Generate Button -->
      <div class="w-full sm:w-1/3 mt-6 sm:mt-0">
        <button id="generateBtn" type="submit"

          class="primary-btn w-full sm:w-auto px-8 py-4 bg-[#6D4C41] text-white font-semibold text-xl rounded-3xl shadow-md hover:bg-[#5D4037] transition focus:outline-none focus:ring-6 focus:ring-[#6D4C41]"

          aria-label="Generate aged or de-aged face image">
          Generate
        </button>
      </div>

    </div>
  </form>

  <!-- Result -->
  <div id="result" class="mt-20 text-center max-w-6xl mx-auto">
    <h2 class="text-3xl font-bold mb-8 text-[#3e2723]">Result:</h2>
    <img alt="Result Image showing the face after aging or de-aging transformation"

      class="mx-auto rounded-3xl shadow-lg max-w-full" id="outputImage" src="#" style="display: none" loading="lazy" />
  </div>
</section>




        <!-- AI INSIGHT PANEL -->
        <section aria-label="AI Insight Panel"

            class="max-w-5xl mx-auto px-6 sm:px-8 lg:px-12 py-16 scroll-animate bg-[#FFCCBC] rounded-3xl shadow-lg mt-20"

            id="aiInsight" tabindex="-1" style="color: #4e342e">
            <h2 class="text-3xl font-extrabold mb-6 select-none" style="color: #6d4c41">
                AI Insight
            </h2>
            <p class="max-w-3xl leading-relaxed">
                FaceAging AI leverages state-of-the-art deep learning models trained on
                diverse datasets to realistically simulate aging and de-aging effects on
                facial images. Our proprietary algorithms ensure natural,
                high-fidelity transformations while preserving your unique features.
            </p>
            <button aria-controls="learnMoreContent" aria-expanded="false"

                class="mt-4 learn-more-btn font-semibold rounded focus:ring-2 focus:ring-[#6D4C41]" id="learnMoreBtn"

                type="button">
                Learn More
            </button>
            <div class="mt-4 max-w-3xl overflow-hidden" hidden id="learnMoreContent" style="color: #6d4c41">
                <p class="mb-3">
                    Our AI pipeline includes advanced face detection, landmark alignment,
                    and generative adversarial networks (GANs) fine-tuned for age
                    progression and regression. The model adapts to various lighting,
                    angles, and ethnicities to provide consistent results.
                </p>
                <p>
                    We prioritize user privacy by processing images securely and never
                    storing personal data. The transformations happen in real-time,
                    offering a seamless and engaging experience.
                </p>
            </div>
        </section>

        <!-- ABOUT -->
        <section aria-label="About FaceAging AI" class="max-w-5xl mx-auto px-6 sm:px-8 lg:px-12 py-16 scroll-animate"

            id="about" tabindex="-1" style="color: #3e2723">
            <h2 class="text-3xl font-extrabold mb-6 text-center select-none" style="color: #6d4c41">
                About FaceAging AI
            </h2>
            <p class="max-w-3xl mx-auto leading-relaxed text-center">
                <strong>FaceAging AI</strong> is a modern, AI-powered web application designed to transform facial
                images by simulating realistic age progression and regression. Powered by cutting-edge deep learning
                models and computer vision techniques, FaceAging AI allows users to visualize themselves at different
                ages with high-quality, photorealistic results—directly through their browser.
            </p>
            <br />
            <p class="max-w-3xl mx-auto leading-relaxed text-center">
                Whether you're curious to see your older self or wish to recreate a youthful look, FaceAging AI provides
                a secure, seamless, and intuitive experience. All uploaded images are handled with the utmost care and
                privacy. The platform is designed to be fast, accessible, and user-friendly, requiring no advanced
                technical skills to use.
            </p>
            <br />
            <p class="max-w-3xl mx-auto leading-relaxed text-center">
                This application was thoughtfully developed by <strong>Saksham Pathak</strong>, a passionate AI
                researcher and developer currently pursuing a Master's degree in <strong>Artificial Intelligence and
                    Machine Learning</strong> at <strong>IIIT Lucknow</strong>. With a strong foundation in AI
                technologies and a commitment to building ethical and impactful digital solutions, Saksham created
                FaceAging AI to demonstrate how artificial intelligence can be applied to enhance everyday digital
                experiences in a safe and meaningful way.
            </p>
            <br />
            <p class="max-w-3xl mx-auto leading-relaxed text-center">
                Thank you for using FaceAging AI. We hope you enjoy exploring the possibilities of AI-powered facial
                transformation. Your feedback is always welcome and appreciated.
            </p>
        </section>

        <!-- FEATURES -->
        <section aria-label="Features of FaceAging AI"

            class="max-w-6xl mx-auto px-6 sm:px-8 lg:px-12 py-16 scroll-animate" id="features" tabindex="-1">
            <h2 class="text-3xl font-extrabold mb-10 text-center select-none" style="color: #3e2723">
                Features
            </h2>
            <div class="features-grid">
                <article aria-label="High accuracy feature" class="feature-card p-6 text-center focus:outline-none"

                    tabindex="0">
                    <i aria-hidden="true" class="fas fa-bullseye text-[#6D4C41] text-5xl mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2" style="color: #4e342e">
                        High Accuracy
                    </h3>
                    <p>
                        Our AI models deliver precise and realistic age transformations,
                        preserving your unique facial features.
                    </p>
                </article>
                <article aria-label="Fast processing feature" class="feature-card p-6 text-center focus:outline-none"

                    tabindex="0">
                    <i aria-hidden="true" class="fas fa-bolt text-[#6D4C41] text-5xl mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2" style="color: #4e342e">
                        Fast Processing
                    </h3>
                    <p>
                        Experience near-instant results with optimized AI pipelines and
                        efficient cloud processing.
                    </p>
                </article>
                <article aria-label="Seamless integration feature"

                    class="feature-card p-6 text-center focus:outline-none" tabindex="0">
                    <i aria-hidden="true" class="fas fa-plug text-[#6D4C41] text-5xl mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2" style="color: #4e342e">
                        Seamless Integration
                    </h3>
                    <p>
                        Easily embed FaceAging AI into your apps or websites with our
                        flexible APIs and SDKs.
                    </p>
                </article>
                <article aria-label="Privacy focused feature" class="feature-card p-6 text-center focus:outline-none"

                    tabindex="0">
                    <i aria-hidden="true" class="fas fa-user-shield text-[#6D4C41] text-5xl mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2" style="color: #4e342e">
                        Privacy Focused
                    </h3>
                    <p>
                        Your images are processed securely and never stored, ensuring your
                        privacy and data protection.
                    </p>
                </article>
            </div>
        </section>
        <!-- CONTACT -->
        <section aria-label="Contact information" class="max-w-5xl mx-auto px-6 sm:px-8 lg:px-12 py-16 scroll-animate"

            id="contact" tabindex="-1" style="color: #3e2723">
            <h2 class="text-3xl font-extrabold mb-6 text-center select-none" style="color: #6d4c41">
                Contact
            </h2>
            <p class="text-center max-w-3xl mx-auto mb-6" style="color: #4e342e">
                Have questions or want to collaborate with us ? Reach out to us via email or
                social media:
            </p>
            <ul class="flex flex-col sm:flex-row justify-center gap-8 text-lg max-w-3xl mx-auto" style="color: #3e2723">
                <li class="flex items-center space-x-3">
                    <i class="fas fa-envelope text-[#6D4C41] text-xl"></i>
                    <a class="hover:text-[#4E342E] focus:outline-none focus:text-[#4E342E] transition"

                        href="mailto:pathaksaksham430@gmail.com" tabindex="0">pathaksaksham430@gmail.com</a>
                </li>
                <li class="flex items-center space-x-3">
                    <i class="fab fa-linkedin-in text-[#6D4C41] text-xl"></i>
                    <a class="hover:text-[#4E342E] focus:outline-none focus:text-[#4E342E] transition"

                        href="https://linkedin.com/in/sakshampathak" rel="noopener noreferrer" target="_blank"

                        tabindex="0">linkedin.com/in/sakshampathak</a>
                </li>
                <li class="flex items-center space-x-3">
                    <i class="fab fa-github text-[#6D4C41] text-xl"></i>
                    <a class="hover:text-[#4E342E] focus:outline-none focus:text-[#4E342E] transition"

                        href="https://github.com/parthmax2" rel="noopener noreferrer" target="_blank"

                        tabindex="0">github.com/parthmax2</a>
                </li>
            </ul>
        </section>
    </main>
    <!-- FOOTER -->
    <footer class="border-t border-[#D7CCC8] py-8 px-6 sm:px-12 mt-20" role="contentinfo" style="color: #3e2723">
        <div class="max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between space-y-6 sm:space-y-0">
            <div class="flex space-x-6 text-2xl" style="color: #3e2723">
                <a aria-label="Instagram"

                    class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41] transition"

                    href="https://instagram.com/parthmax_" rel="noopener noreferrer" target="_blank" tabindex="0"><i

                        class="fab fa-instagram"></i></a>
                <a aria-label="LinkedIn" class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41] transition"

                    href="https://linkedin.com/sakshampathak" rel="noopener noreferrer" target="_blank" tabindex="0"><i

                        class="fab fa-linkedin-in"></i></a>
                <a aria-label="GitHub" class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41] transition"

                    href="https://github.com/parthmax2" rel="noopener noreferrer" target="_blank" tabindex="0"><i

                        class="fab fa-github"></i></a>
            </div>
            <p class="text-center sm:text-left text-sm max-w-xl select-none" style="color: #3e2723">
                FaceAging AI © developed by <a aria-label="Instagram"

                    class="hover:text-[#6D4C41] focus:outline-none focus:text-[#6D4C41] transition"

                    href="https://instagram.com/parthmax_" rel="noopener noreferrer" target="_blank" tabindex="0"><strong>Parthmax</strong></a> 
            </p>
        </div>
    </footer>
    <script src="/static/script.js"></script>
</body>

</html>