Akshansh115 commited on
Commit
a28931c
·
verified ·
1 Parent(s): 5b7d61e

make the feront page like this in above image and rest of page normal

Browse files
Files changed (1) hide show
  1. index.html +1488 -18
index.html CHANGED
@@ -1,20 +1,1490 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>My app</title>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta charset="utf-8">
7
- <script src="https://cdn.tailwindcss.com"></script>
8
- </head>
9
- <body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6">
10
- <div class="w-full">
11
- <span class="text-xs rounded-full mb-2 inline-block px-2 py-1 border border-amber-500/15 bg-amber-500/15 text-amber-500">🔥 New version dropped!</span>
12
- <h1 class="text-4xl lg:text-6xl font-bold font-sans">
13
- <span class="text-2xl lg:text-4xl text-gray-400 block font-medium">I'm ready to work,</span>
14
- Ask me anything.
15
- </h1>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  </div>
17
- <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="absolute bottom-8 left-0 w-[100px] transform rotate-[30deg]" />
18
- <script></script>
19
- </body>
20
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>WiseFind - Personalized Product Recommendations</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
8
+ <style>
9
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ box-sizing: border-box;
13
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
14
+ }
15
+
16
+ body {
17
+ background-color: #ffffff;
18
+ color: #333;
19
+ line-height: 1.6;
20
+ }
21
+
22
+ .container {
23
+ width: 90%;
24
+ max-width: 1200px;
25
+ margin: 0 auto;
26
+ padding: 0 20px;
27
+ }
28
+
29
+ /* Header Styles */
30
+ header {
31
+ background-color: #fff;
32
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
33
+ position: fixed;
34
+ width: 100%;
35
+ top: 0;
36
+ z-index: 1000;
37
+ }
38
+
39
+ .header-container {
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ padding: 15px 0;
44
+ }
45
+
46
+ .logo {
47
+ display: flex;
48
+ align-items: center;
49
+ font-size: 1.8rem;
50
+ font-weight: bold;
51
+ color: #4361ee;
52
+ }
53
+
54
+ .logo i {
55
+ margin-right: 10px;
56
+ color: #4361ee;
57
+ }
58
+
59
+ nav ul {
60
+ display: flex;
61
+ list-style: none;
62
+ }
63
+
64
+ nav ul li {
65
+ margin-left: 25px;
66
+ }
67
+
68
+ nav ul li a {
69
+ text-decoration: none;
70
+ color: #333;
71
+ font-weight: 500;
72
+ transition: color 0.3s;
73
+ }
74
+
75
+ nav ul li a:hover {
76
+ color: #4361ee;
77
+ }
78
+
79
+ .cta-buttons {
80
+ display: flex;
81
+ }
82
+
83
+ .btn {
84
+ padding: 10px 20px;
85
+ border-radius: 5px;
86
+ font-weight: 600;
87
+ cursor: pointer;
88
+ transition: all 0.3s;
89
+ text-decoration: none;
90
+ display: inline-block;
91
+ margin-left: 15px;
92
+ }
93
+
94
+ .btn-outline {
95
+ border: 2px solid #4361ee;
96
+ color: #4361ee;
97
+ background: transparent;
98
+ }
99
+
100
+ .btn-outline:hover {
101
+ background-color: #4361ee;
102
+ color: white;
103
+ }
104
+
105
+ .btn-primary {
106
+ background-color: #4361ee;
107
+ color: white;
108
+ border: none;
109
+ }
110
+
111
+ .btn-primary:hover {
112
+ background-color: #3a56d4;
113
+ }
114
+
115
+ /* Hero Section */
116
+ .hero {
117
+ padding: 100px 0;
118
+ background: white;
119
+ }
120
+
121
+ .hero .container {
122
+ display: flex;
123
+ align-items: center;
124
+ gap: 50px;
125
+ }
126
+
127
+ .hero-content {
128
+ flex: 1;
129
+ }
130
+
131
+ .hero-image {
132
+ flex: 1;
133
+ }
134
+
135
+ .hero-image img {
136
+ width: 100%;
137
+ border-radius: 12px;
138
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
139
+ }
140
+
141
+ .hero h1 {
142
+ font-size: 3rem;
143
+ margin-bottom: 15px;
144
+ color: #333;
145
+ line-height: 1.2;
146
+ }
147
+
148
+ .hero-subtitle {
149
+ font-size: 1.2rem;
150
+ color: #666;
151
+ margin-bottom: 30px;
152
+ }
153
+
154
+ .search-box {
155
+ display: flex;
156
+ max-width: 600px;
157
+ margin-bottom: 30px;
158
+ }
159
+
160
+ .search-input {
161
+ flex: 1;
162
+ display: flex;
163
+ align-items: center;
164
+ padding: 0 15px;
165
+ border: 2px solid #4361ee;
166
+ border-radius: 8px 0 0 8px;
167
+ background: white;
168
+ }
169
+
170
+ .search-input i {
171
+ color: #666;
172
+ margin-right: 10px;
173
+ }
174
+
175
+ .search-input input {
176
+ flex: 1;
177
+ border: none;
178
+ padding: 15px 0;
179
+ font-size: 1rem;
180
+ outline: none;
181
+ }
182
+
183
+ .search-btn {
184
+ background: #4361ee;
185
+ color: white;
186
+ border: none;
187
+ padding: 0 30px;
188
+ border-radius: 0 8px 8px 0;
189
+ font-weight: 600;
190
+ cursor: pointer;
191
+ transition: background 0.3s;
192
+ }
193
+
194
+ .search-btn:hover {
195
+ background: #3a56d4;
196
+ }
197
+
198
+ .hero-categories {
199
+ display: flex;
200
+ flex-wrap: wrap;
201
+ gap: 10px;
202
+ }
203
+
204
+ .category-tag {
205
+ background: #f5f7ff;
206
+ color: #4361ee;
207
+ padding: 8px 15px;
208
+ border-radius: 20px;
209
+ font-size: 0.9rem;
210
+ font-weight: 500;
211
+ cursor: pointer;
212
+ transition: all 0.3s;
213
+ }
214
+
215
+ .category-tag:hover {
216
+ background: #4361ee;
217
+ color: white;
218
+ }
219
+ .form-group {
220
+ margin-bottom: 20px;
221
+ text-align: left;
222
+ }
223
+
224
+ .form-group label {
225
+ display: block;
226
+ margin-bottom: 8px;
227
+ font-weight: 600;
228
+ color: #444;
229
+ }
230
+
231
+ .form-control {
232
+ width: 100%;
233
+ padding: 12px 15px;
234
+ border: 1px solid #ddd;
235
+ border-radius: 5px;
236
+ font-size: 1rem;
237
+ transition: border 0.3s;
238
+ }
239
+
240
+ .form-control:focus {
241
+ border-color: #4361ee;
242
+ outline: none;
243
+ }
244
+
245
+ .form-row {
246
+ display: flex;
247
+ gap: 20px;
248
+ }
249
+
250
+ .form-row .form-group {
251
+ flex: 1;
252
+ }
253
+
254
+ /* Budget Slider */
255
+ .budget-slider-container {
256
+ margin-top: 10px;
257
+ }
258
+
259
+ .budget-slider {
260
+ width: 100%;
261
+ height: 8px;
262
+ border-radius: 5px;
263
+ background: #ddd;
264
+ outline: none;
265
+ -webkit-appearance: none;
266
+ }
267
+
268
+ .budget-slider::-webkit-slider-thumb {
269
+ -webkit-appearance: none;
270
+ appearance: none;
271
+ width: 20px;
272
+ height: 20px;
273
+ border-radius: 50%;
274
+ background: #4361ee;
275
+ cursor: pointer;
276
+ }
277
+
278
+ .budget-slider::-moz-range-thumb {
279
+ width: 20px;
280
+ height: 20px;
281
+ border-radius: 50%;
282
+ background: #4361ee;
283
+ cursor: pointer;
284
+ border: none;
285
+ }
286
+
287
+ .budget-display {
288
+ text-align: center;
289
+ margin-top: 10px;
290
+ font-size: 1.2rem;
291
+ font-weight: bold;
292
+ color: #4361ee;
293
+ }
294
+
295
+ /* Features Section */
296
+ .features {
297
+ padding: 80px 0;
298
+ background-color: #f8f9fa;
299
+ }
300
+
301
+ .section-title {
302
+ text-align: center;
303
+ margin-bottom: 50px;
304
+ }
305
+
306
+ .section-title h2 {
307
+ font-size: 2.5rem;
308
+ margin-bottom: 15px;
309
+ color: #333;
310
+ }
311
+
312
+ .section-title p {
313
+ font-size: 1.1rem;
314
+ color: #666;
315
+ max-width: 700px;
316
+ margin: 0 auto;
317
+ }
318
+
319
+ .features-grid {
320
+ display: grid;
321
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
322
+ gap: 30px;
323
+ }
324
+
325
+ .feature-card {
326
+ background: white;
327
+ padding: 30px;
328
+ border-radius: 10px;
329
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
330
+ text-align: center;
331
+ transition: transform 0.3s, box-shadow 0.3s;
332
+ }
333
+
334
+ .feature-card:hover {
335
+ transform: translateY(-10px);
336
+ box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
337
+ }
338
+
339
+ .feature-icon {
340
+ font-size: 3rem;
341
+ color: #4361ee;
342
+ margin-bottom: 20px;
343
+ }
344
+
345
+ .feature-card h3 {
346
+ font-size: 1.5rem;
347
+ margin-bottom: 15px;
348
+ color: #333;
349
+ }
350
+
351
+ .feature-card p {
352
+ color: #666;
353
+ }
354
+
355
+ /* Categories Section */
356
+ .categories {
357
+ padding: 80px 0;
358
+ }
359
+
360
+ .categories-grid {
361
+ display: grid;
362
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
363
+ gap: 20px;
364
+ }
365
+
366
+ .category-card {
367
+ background: white;
368
+ border: 1px solid #eee;
369
+ border-radius: 10px;
370
+ padding: 30px 20px;
371
+ text-align: center;
372
+ transition: all 0.3s;
373
+ cursor: pointer;
374
+ }
375
+
376
+ .category-card:hover {
377
+ border-color: #4361ee;
378
+ transform: translateY(-5px);
379
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
380
+ }
381
+
382
+ .category-icon {
383
+ font-size: 2.5rem;
384
+ color: #4361ee;
385
+ margin-bottom: 15px;
386
+ }
387
+
388
+ .category-card h4 {
389
+ font-size: 1.2rem;
390
+ color: #333;
391
+ }
392
+
393
+ /* Recommendations Modal */
394
+ .recommendations-modal {
395
+ display: none;
396
+ position: fixed;
397
+ top: 0;
398
+ left: 0;
399
+ width: 100%;
400
+ height: 100%;
401
+ background-color: rgba(0, 0, 0, 0.5);
402
+ z-index: 1002;
403
+ overflow-y: auto;
404
+ }
405
+
406
+ .recommendations-content {
407
+ background-color: white;
408
+ margin: 3% auto;
409
+ padding: 30px;
410
+ border-radius: 10px;
411
+ width: 90%;
412
+ max-width: 900px;
413
+ position: relative;
414
+ }
415
+
416
+ .close-modal {
417
+ position: absolute;
418
+ top: 15px;
419
+ right: 20px;
420
+ font-size: 2rem;
421
+ cursor: pointer;
422
+ color: #aaa;
423
+ }
424
+
425
+ .close-modal:hover {
426
+ color: #333;
427
+ }
428
+
429
+ .ai-recommendation {
430
+ background-color: #f8f9fa;
431
+ border-left: 4px solid #4361ee;
432
+ padding: 20px;
433
+ margin-bottom: 30px;
434
+ border-radius: 0 10px 10px 0;
435
+ }
436
+
437
+ .ai-disclaimer {
438
+ font-style: italic;
439
+ color: #e74c3c;
440
+ font-weight: 600;
441
+ margin-bottom: 15px;
442
+ }
443
+
444
+ .ai-suggestion {
445
+ margin-bottom: 15px;
446
+ }
447
+
448
+ .product-list {
449
+ margin-top: 20px;
450
+ }
451
+
452
+ .product-item {
453
+ background-color: white;
454
+ border: 1px solid #eee;
455
+ border-radius: 8px;
456
+ padding: 15px;
457
+ margin-bottom: 15px;
458
+ transition: transform 0.3s;
459
+ }
460
+
461
+ .product-item:hover {
462
+ transform: translateY(-3px);
463
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
464
+ }
465
+
466
+ .product-header {
467
+ display: flex;
468
+ justify-content: space-between;
469
+ align-items: center;
470
+ margin-bottom: 10px;
471
+ }
472
+
473
+ .product-name {
474
+ font-weight: bold;
475
+ font-size: 1.1rem;
476
+ color: #333;
477
+ }
478
+
479
+ .product-price {
480
+ font-weight: bold;
481
+ color: #4361ee;
482
+ font-size: 1.1rem;
483
+ }
484
+
485
+ .product-details {
486
+ display: flex;
487
+ justify-content: space-between;
488
+ align-items: center;
489
+ }
490
+
491
+ .product-source {
492
+ display: flex;
493
+ align-items: center;
494
+ color: #666;
495
+ font-size: 0.9rem;
496
+ }
497
+
498
+ .product-source i {
499
+ margin-right: 5px;
500
+ }
501
+
502
+ .product-link {
503
+ background-color: #4361ee;
504
+ color: white;
505
+ padding: 6px 12px;
506
+ border-radius: 4px;
507
+ text-decoration: none;
508
+ font-size: 0.9rem;
509
+ transition: background-color 0.3s;
510
+ }
511
+
512
+ .product-link:hover {
513
+ background-color: #3a56d4;
514
+ }
515
+
516
+ .experts-section {
517
+ margin-top: 30px;
518
+ }
519
+
520
+ .experts-title {
521
+ font-size: 1.8rem;
522
+ margin-bottom: 20px;
523
+ color: #333;
524
+ text-align: center;
525
+ }
526
+
527
+ .experts-grid {
528
+ display: grid;
529
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
530
+ gap: 20px;
531
+ }
532
+
533
+ .expert-card {
534
+ background-color: #f8f9fa;
535
+ border-radius: 10px;
536
+ padding: 20px;
537
+ text-align: center;
538
+ transition: transform 0.3s;
539
+ }
540
+
541
+ .expert-card:hover {
542
+ transform: translateY(-5px);
543
+ }
544
+
545
+ .expert-avatar {
546
+ width: 80px;
547
+ height: 80px;
548
+ border-radius: 50%;
549
+ margin: 0 auto 15px;
550
+ object-fit: cover;
551
+ }
552
+
553
+ .expert-name {
554
+ font-size: 1.2rem;
555
+ font-weight: bold;
556
+ margin-bottom: 5px;
557
+ color: #333;
558
+ }
559
+
560
+ .expert-specialty {
561
+ color: #4361ee;
562
+ margin-bottom: 10px;
563
+ }
564
+
565
+ .expert-rating {
566
+ color: #f39c12;
567
+ margin-bottom: 15px;
568
+ }
569
+
570
+ .btn-expert {
571
+ background-color: #4361ee;
572
+ color: white;
573
+ border: none;
574
+ padding: 8px 15px;
575
+ border-radius: 5px;
576
+ cursor: pointer;
577
+ font-weight: 600;
578
+ transition: background-color 0.3s;
579
+ }
580
+
581
+ .btn-expert:hover {
582
+ background-color: #3a56d4;
583
+ }
584
+
585
+ /* CTA Section */
586
+ .cta-section {
587
+ padding: 80px 0;
588
+ background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
589
+ color: white;
590
+ text-align: center;
591
+ }
592
+
593
+ .cta-section h2 {
594
+ font-size: 2.5rem;
595
+ margin-bottom: 20px;
596
+ }
597
+
598
+ .cta-section p {
599
+ font-size: 1.2rem;
600
+ max-width: 700px;
601
+ margin: 0 auto 30px;
602
+ }
603
+
604
+ .btn-light {
605
+ background-color: white;
606
+ color: #4361ee;
607
+ border: none;
608
+ padding: 12px 30px;
609
+ font-size: 1.1rem;
610
+ }
611
+
612
+ .btn-light:hover {
613
+ background-color: #f8f9fa;
614
+ }
615
+
616
+ /* Footer */
617
+ footer {
618
+ background-color: #333;
619
+ color: #ddd;
620
+ padding: 60px 0 20px;
621
+ }
622
+
623
+ .footer-grid {
624
+ display: grid;
625
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
626
+ gap: 30px;
627
+ margin-bottom: 40px;
628
+ }
629
+
630
+ .footer-col h3 {
631
+ font-size: 1.3rem;
632
+ margin-bottom: 20px;
633
+ color: white;
634
+ }
635
+
636
+ .footer-col ul {
637
+ list-style: none;
638
+ }
639
+
640
+ .footer-col ul li {
641
+ margin-bottom: 10px;
642
+ }
643
+
644
+ .footer-col ul li a {
645
+ color: #ddd;
646
+ text-decoration: none;
647
+ transition: color 0.3s;
648
+ }
649
+
650
+ .footer-col ul li a:hover {
651
+ color: #4361ee;
652
+ }
653
+
654
+ .social-links {
655
+ display: flex;
656
+ gap: 15px;
657
+ margin-top: 20px;
658
+ }
659
+
660
+ .social-links a {
661
+ display: inline-flex;
662
+ align-items: center;
663
+ justify-content: center;
664
+ width: 40px;
665
+ height: 40px;
666
+ background-color: #444;
667
+ color: white;
668
+ border-radius: 50%;
669
+ transition: background-color 0.3s;
670
+ }
671
+
672
+ .social-links a:hover {
673
+ background-color: #4361ee;
674
+ }
675
+
676
+ .copyright {
677
+ text-align: center;
678
+ padding-top: 20px;
679
+ border-top: 1px solid #444;
680
+ font-size: 0.9rem;
681
+ }
682
+
683
+ /* Mobile Responsive */
684
+ .mobile-menu-btn {
685
+ display: none;
686
+ background: none;
687
+ border: none;
688
+ font-size: 1.5rem;
689
+ cursor: pointer;
690
+ color: #333;
691
+ }
692
+ @media (max-width: 992px) {
693
+ .hero .container {
694
+ flex-direction: column;
695
+ }
696
+
697
+ .hero-content,
698
+ .hero-image {
699
+ width: 100%;
700
+ }
701
+
702
+ .hero h1 {
703
+ font-size: 2.5rem;
704
+ }
705
+ }
706
+ @media (max-width: 768px) {
707
+ .header-container {
708
+ padding: 15px;
709
+ }
710
+
711
+ nav {
712
+ position: fixed;
713
+ top: 70px;
714
+ left: 0;
715
+ width: 100%;
716
+ background: white;
717
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
718
+ padding: 20px;
719
+ transform: translateY(-150%);
720
+ transition: transform 0.3s;
721
+ z-index: 999;
722
+ }
723
+
724
+ nav.active {
725
+ transform: translateY(0);
726
+ }
727
+
728
+ nav ul {
729
+ flex-direction: column;
730
+ }
731
+
732
+ nav ul li {
733
+ margin: 10px 0;
734
+ }
735
+
736
+ .mobile-menu-btn {
737
+ display: block;
738
+ }
739
+
740
+ .cta-buttons {
741
+ display: none;
742
+ }
743
+
744
+ .hero {
745
+ padding: 120px 0 60px;
746
+ }
747
+
748
+ .hero h1 {
749
+ font-size: 2.2rem;
750
+ }
751
+
752
+ .hero-form {
753
+ padding: 20px;
754
+ }
755
+
756
+ .section-title h2 {
757
+ font-size: 2rem;
758
+ }
759
+
760
+ .features, .categories, .cta-section {
761
+ padding: 60px 0;
762
+ }
763
+
764
+ .footer-grid {
765
+ grid-template-columns: 1fr;
766
+ text-align: center;
767
+ }
768
+
769
+ .social-links {
770
+ justify-content: center;
771
+ }
772
+ }
773
+ </style>
774
+ </head>
775
+ <body>
776
+ <!-- Header -->
777
+ <header>
778
+ <div class="container header-container">
779
+ <div class="logo">
780
+
781
+ <i class="fas fa-check-circle"></i>
782
+ WiseFind
783
+ </div>
784
+
785
+ <button class="mobile-menu-btn" id="mobileMenuBtn">
786
+ <i class="fas fa-bars"></i>
787
+ </button>
788
+
789
+ <nav id="mainNav">
790
+ <ul>
791
+ <li><a href="#home">Home</a></li>
792
+ <li><a href="#features">How It Works</a></li>
793
+ <li><a href="#categories">Categories</a></li>
794
+ <li><a href="#contact">Contact</a></li>
795
+ </ul>
796
+ </nav>
797
+
798
+ <div class="cta-buttons">
799
+ <a href="#" class="btn btn-outline">Log In</a>
800
+ <a href="#" class="btn btn-primary">Sign Up</a>
801
+ </div>
802
+ </div>
803
+ </header>
804
+ <!-- Hero Section -->
805
+ <section class="hero" id="home">
806
+ <div class="container">
807
+ <div class="hero-content">
808
+ <h1>Find the Perfect Product for You</h1>
809
+ <p class="hero-subtitle">Get personalized recommendations from experts and community members</p>
810
+
811
+ <div class="search-box">
812
+ <div class="search-input">
813
+ <i class="fas fa-search"></i>
814
+ <input type="text" placeholder="What are you looking for?">
815
+ </div>
816
+ <button class="search-btn">Search</button>
817
+ </div>
818
+
819
+ <div class="hero-categories">
820
+ <div class="category-tag">Electronics</div>
821
+ <div class="category-tag">Fashion</div>
822
+ <div class="category-tag">Home & Kitchen</div>
823
+ <div class="category-tag">Beauty</div>
824
+ <div class="category-tag">Sports</div>
825
+ <div class="category-tag">Books</div>
826
+ </div>
827
+ </div>
828
+ <div class="hero-image">
829
+ <img src="https://static.photos/technology/1200x630/42" alt="Smartphone and accessories">
830
+ </div>
831
+ </div>
832
+ </section>
833
+ <!-- Features Section -->
834
+ <section class="features" id="features">
835
+ <div class="container">
836
+ <div class="section-title">
837
+ <h2>How It Works</h2>
838
+ <p>Our simple three-step process connects you with the perfect products for your needs</p>
839
+ </div>
840
+
841
+ <div class="features-grid">
842
+ <div class="feature-card">
843
+ <div class="feature-icon">
844
+ <i class="fas fa-edit"></i>
845
+ </div>
846
+ <h3>Tell Us Your Needs</h3>
847
+ <p>Share your budget, category, and purpose. The more details you provide, the better our recommendations.</p>
848
+ </div>
849
+
850
+ <div class="feature-card">
851
+ <div class="feature-icon">
852
+ <i class="fas fa-users"></i>
853
+ </div>
854
+ <h3>Get Expert Advice</h3>
855
+ <p>Our community of experts, moderators, and enthusiasts will provide tailored recommendations based on your needs.</p>
856
+ </div>
857
+
858
+ <div class="feature-card">
859
+ <div class="feature-icon">
860
+ <i class="fas fa-shopping-cart"></i>
861
+ </div>
862
+ <h3>Make Your Choice</h3>
863
+ <p>Compare recommendations, read reviews, and make your purchase with confidence knowing you've made the right choice.</p>
864
+ </div>
865
+ </div>
866
+ </div>
867
+ </section>
868
+
869
+ <!-- Categories Section -->
870
+ <section class="categories" id="categories">
871
+ <div class="container">
872
+ <div class="section-title">
873
+ <h2>Explore Categories</h2>
874
+ <p>We cover a wide range of product categories to meet all your needs</p>
875
+ </div>
876
+
877
+ <div class="categories-grid">
878
+ <div class="category-card" data-category="tech">
879
+ <div class="category-icon">
880
+ <i class="fas fa-laptop"></i>
881
+ </div>
882
+ <h4>Tech & Electronics</h4>
883
+ </div>
884
+
885
+ <div class="category-card" data-category="sports">
886
+ <div class="category-icon">
887
+ <i class="fas fa-football-ball"></i>
888
+ </div>
889
+ <h4>Sports Equipment</h4>
890
+ </div>
891
+
892
+ <div class="category-card" data-category="fitness">
893
+ <div class="category-icon">
894
+ <i class="fas fa-dumbbell"></i>
895
+ </div>
896
+ <h4>Gym & Fitness</h4>
897
+ </div>
898
+
899
+ <div class="category-card" data-category="home">
900
+ <div class="category-icon">
901
+ <i class="fas fa-home"></i>
902
+ </div>
903
+ <h4>Household Products</h4>
904
+ </div>
905
+
906
+ <div class="category-card" data-category="outdoor">
907
+ <div class="category-icon">
908
+ <i class="fas fa-campground"></i>
909
+ </div>
910
+ <h4>Outdoor & Recreation</h4>
911
+ </div>
912
+
913
+ <div class="category-card" data-category="fashion">
914
+ <div class="category-icon">
915
+ <i class="fas fa-tshirt"></i>
916
+ </div>
917
+ <h4>Fashion & Accessories</h4>
918
+ </div>
919
+ </div>
920
+ </div>
921
+ </section>
922
+
923
+ <!-- Recommendations Modal -->
924
+ <div id="recommendationsModal" class="recommendations-modal">
925
+ <div class="recommendations-content">
926
+ <span class="close-modal">&times;</span>
927
+
928
+ <div class="ai-recommendation">
929
+ <div class="ai-disclaimer">This is a suggestion of AI. Do not consider as expert advice.</div>
930
+ <div class="ai-suggestion" id="aiSuggestion">
931
+ <!-- AI recommendation will be populated by JavaScript -->
932
+ </div>
933
+ <div class="product-list" id="productList">
934
+ <!-- Product recommendations will be populated by JavaScript -->
935
+ </div>
936
+ </div>
937
+
938
+ <div class="experts-section">
939
+ <h2 class="experts-title">Our Experts</h2>
940
+ <div class="experts-grid" id="expertsGrid">
941
+ <!-- Experts will be populated by JavaScript -->
942
+ </div>
943
+ </div>
944
+ </div>
945
  </div>
946
+
947
+ <!-- CTA Section -->
948
+ <section class="cta-section">
949
+ <div class="container">
950
+ <h2>Ready to Find Your Perfect Product?</h2>
951
+ <p>Join our community today and get personalized recommendations from experts and enthusiasts.</p>
952
+ <a href="#" class="btn btn-light">Get Started Now</a>
953
+ </div>
954
+ </section>
955
+
956
+ <!-- Footer -->
957
+ <footer id="contact">
958
+ <div class="container">
959
+ <div class="footer-grid">
960
+ <div class="footer-col">
961
+ <h3>WiseFind
962
+
963
+ </h3>
964
+ <p>Your trusted platform for personalized product recommendations across all categories.</p>
965
+ <div class="social-links">
966
+ <a href="#"><i class="fab fa-facebook-f"></i></a>
967
+ <a href="#"><i class="fab fa-twitter"></i></a>
968
+ <a href="#"><i class="fab fa-instagram"></i></a>
969
+ <a href="#"><i class="fab fa-linkedin-in"></i></a>
970
+ </div>
971
+ </div>
972
+
973
+ <div class="footer-col">
974
+ <h3>Quick Links</h3>
975
+ <ul>
976
+ <li><a href="#">Home</a></li>
977
+ <li><a href="#">How It Works</a></li>
978
+ <li><a href="#">Categories</a></li>
979
+ <li><a href="#">Contact Us</a></li>
980
+ </ul>
981
+ </div>
982
+
983
+ <div class="footer-col">
984
+ <h3>Categories</h3>
985
+ <ul>
986
+ <li><a href="#">Tech & Electronics</a></li>
987
+ <li><a href="#">Sports Equipment</a></li>
988
+ <li><a href="#">Gym & Fitness</a></li>
989
+ <li><a href="#">Household Products</a></li>
990
+ <li><a href="#">Outdoor & Recreation</a></li>
991
+ </ul>
992
+ </div>
993
+
994
+ <div class="footer-col">
995
+ <h3>Contact Us (India)</h3>
996
+ <ul>
997
+ <li><i class="fas fa-map-marker-alt"></i> 123, Brigade Road, Bangalore, Karnataka 560001</li>
998
+ <li><i class="fas fa-phone"></i> +91 80 1234 5678</li>
999
+ <li><i class="fas fa-envelope"></i> info@WiseFind
1000
+ .in</li>
1001
+ </ul>
1002
+ </div>
1003
+ </div>
1004
+
1005
+ <div class="copyright">
1006
+ <p>&copy; 2025 WiseFind
1007
+ . All Rights Reserved.</p>
1008
+ </div>
1009
+ </div>
1010
+ </footer>
1011
+
1012
+ <script>
1013
+ // Subcategories data
1014
+ const subcategories = {
1015
+ tech: [
1016
+ 'Laptops & Computers',
1017
+ 'Smartphones & Tablets',
1018
+ 'TVs & Home Entertainment',
1019
+ 'Cameras & Photography',
1020
+ 'Audio & Headphones',
1021
+ 'Gaming Consoles',
1022
+ 'Wearables',
1023
+ 'Smart Home Devices',
1024
+ 'Computer Accessories',
1025
+ 'Networking Devices'
1026
+ ],
1027
+ sports: [
1028
+ 'Cricket Equipment',
1029
+ 'Football Gear',
1030
+ 'Badminton',
1031
+ 'Tennis',
1032
+ 'Basketball',
1033
+ 'Fitness Accessories',
1034
+ 'Outdoor Sports',
1035
+ 'Indoor Games',
1036
+ 'Cycling',
1037
+ 'Swimming'
1038
+ ],
1039
+ fitness: [
1040
+ 'Cardio Equipment',
1041
+ 'Strength Training',
1042
+ 'Yoga & Pilates',
1043
+ 'Fitness Accessories',
1044
+ 'Gym Wearables',
1045
+ 'Supplements',
1046
+ 'Home Gym Setup',
1047
+ 'Exercise Mats',
1048
+ 'Resistance Bands',
1049
+ 'Fitness Trackers'
1050
+ ],
1051
+ home: [
1052
+ 'Kitchen Appliances',
1053
+ 'Furniture',
1054
+ 'Home Decor',
1055
+ 'Cleaning Tools',
1056
+ 'Storage Solutions',
1057
+ 'Lighting',
1058
+ 'Bathroom Essentials',
1059
+ 'Home Security',
1060
+ 'Bedding',
1061
+ 'Laundry Appliances'
1062
+ ],
1063
+ outdoor: [
1064
+ 'Camping Gear',
1065
+ 'Hiking Equipment',
1066
+ 'Cycling',
1067
+ 'Water Sports',
1068
+ 'Travel Accessories',
1069
+ 'Adventure Sports',
1070
+ 'Picnic & Beach',
1071
+ 'Fishing',
1072
+ 'Climbing',
1073
+ 'Winter Sports'
1074
+ ],
1075
+ fashion: [
1076
+ 'Men\'s Clothing',
1077
+ 'Women\'s Clothing',
1078
+ 'Footwear',
1079
+ 'Bags & Wallets',
1080
+ 'Watches',
1081
+ 'Jewelry',
1082
+ 'Sunglasses',
1083
+ 'Winter Wear',
1084
+ 'Accessories',
1085
+ 'Ethnic Wear'
1086
+ ]
1087
+ };
1088
+
1089
+ // Products database
1090
+ const products = {
1091
+ 'laptops-&-computers': [
1092
+ {
1093
+ name: 'Dell Inspiron 15 3501',
1094
+ price: 34990,
1095
+ source: 'Amazon',
1096
+ link: '#',
1097
+ description: '15.6 inch FHD Display, 11th Gen Intel Core i3, 8GB RAM, 1TB HDD'
1098
+ },
1099
+ {
1100
+ name: 'HP 15s-er0023AU',
1101
+ price: 32999,
1102
+ source: 'Flipkart',
1103
+ link: '#',
1104
+ description: '15.6 inch FHD Display, AMD Ryzen 3, 8GB RAM, 512GB SSD'
1105
+ },
1106
+ {
1107
+ name: 'Lenovo IdeaPad Slim 3',
1108
+ price: 35990,
1109
+ source: 'Amazon',
1110
+ link: '#',
1111
+ description: '15.6 inch FHD Display, 11th Gen Intel Core i3, 8GB RAM, 256GB SSD'
1112
+ }
1113
+ ],
1114
+ 'smartphones-&-tablets': [
1115
+ {
1116
+ name: 'Redmi Note 12',
1117
+ price: 14999,
1118
+ source: 'Amazon',
1119
+ link: '#',
1120
+ description: '6.67 inch FHD+ AMOLED Display, Snapdragon 4 Gen 1, 6GB RAM, 128GB Storage'
1121
+ },
1122
+ {
1123
+ name: 'Samsung Galaxy M13',
1124
+ price: 13999,
1125
+ source: 'Flipkart',
1126
+ link: '#',
1127
+ description: '6.6 inch FHD+ Display, Exynos 850, 6GB RAM, 128GB Storage'
1128
+ },
1129
+ {
1130
+ name: 'Realme 10',
1131
+ price: 15999,
1132
+ source: 'Amazon',
1133
+ link: '#',
1134
+ description: '6.4 inch FHD+ AMOLED Display, MediaTek Dimensity 700, 8GB RAM, 128GB Storage'
1135
+ }
1136
+ ],
1137
+ 'tvs-&-home-entertainment': [
1138
+ {
1139
+ name: 'Mi 5X 43 inch',
1140
+ price: 24999,
1141
+ source: 'Amazon',
1142
+ link: '#',
1143
+ description: '43 inch 4K Ultra HD Smart Android TV, Dolby Vision, HDR10'
1144
+ },
1145
+ {
1146
+ name: 'Samsung Crystal 4K Pro',
1147
+ price: 27999,
1148
+ source: 'Flipkart',
1149
+ link: '#',
1150
+ description: '43 inch 4K Ultra HD Smart TV, Crystal Processor 4K, HDR'
1151
+ },
1152
+ {
1153
+ name: 'LG UM7290PTD',
1154
+ price: 29999,
1155
+ source: 'Croma',
1156
+ link: '#',
1157
+ description: '43 inch 4K Ultra HD Smart TV, Active HDR, ThinQ AI'
1158
+ }
1159
+ ],
1160
+ 'cricket-equipment': [
1161
+ {
1162
+ name: 'SG Sunny Tonny English Willow',
1163
+ price: 12999,
1164
+ source: 'Amazon',
1165
+ link: '#',
1166
+ description: 'English Willow Cricket Bat, Short Handle, Size 6'
1167
+ },
1168
+ {
1169
+ name: 'Kookaburra Kahuna 150',
1170
+ price: 14999,
1171
+ source: 'Flipkart',
1172
+ link: '#',
1173
+ description: 'English Willow Cricket Bat, Short Handle, Size 5'
1174
+ },
1175
+ {
1176
+ name: 'SS Ton Gold',
1177
+ price: 9999,
1178
+ source: 'Amazon',
1179
+ link: '#',
1180
+ description: 'English Willow Cricket Bat, Short Handle, Size 6'
1181
+ }
1182
+ ],
1183
+ 'fitness-accessories': [
1184
+ {
1185
+ name: 'Fitbit Charge 5',
1186
+ price: 12999,
1187
+ source: 'Amazon',
1188
+ link: '#',
1189
+ description: 'Advanced Health & Fitness Tracker with GPS, 24/7 Heart Rate'
1190
+ },
1191
+ {
1192
+ name: 'Mi Band 6',
1193
+ price: 3499,
1194
+ source: 'Flipkart',
1195
+ link: '#',
1196
+ description: 'Fitness Tracker with 1.56 inch AMOLED Display, SpO2 Monitoring'
1197
+ },
1198
+ {
1199
+ name: 'Realme Band 2',
1200
+ price: 2499,
1201
+ source: 'Amazon',
1202
+ link: '#',
1203
+ description: 'Fitness Tracker with 1.4 inch Large Color Display, 50m Water Resistant'
1204
+ }
1205
+ ],
1206
+ 'kitchen-appliances': [
1207
+ {
1208
+ name: 'Philips Air Fryer HD9252',
1209
+ price: 8995,
1210
+ source: 'Amazon',
1211
+ link: '#',
1212
+ description: '4.1 Liters, 1400W, Rapid Air Technology, Black'
1213
+ },
1214
+ {
1215
+ name: 'Prestige PAF 4.0',
1216
+ price: 6495,
1217
+ source: 'Flipkart',
1218
+ link: '#',
1219
+ description: '4 Liters, 1500W, Air Fryer with Digital Control Panel'
1220
+ },
1221
+ {
1222
+ name: 'Inalsa Air Fryer',
1223
+ price: 7495,
1224
+ source: 'Amazon',
1225
+ link: '#',
1226
+ description: '4.2 Liters, 1500W, Digital Control Panel, 7 Presets'
1227
+ }
1228
+ ]
1229
+ };
1230
+
1231
+ // Experts data
1232
+ const experts = [
1233
+ {
1234
+ name: "Rajesh Sharma",
1235
+ specialty: "Tech & Electronics",
1236
+ rating: 4.8,
1237
+ avatar: "https://randomuser.me/api/portraits/men/32.jpg"
1238
+ },
1239
+ {
1240
+ name: "Priya Patel",
1241
+ specialty: "Fashion & Accessories",
1242
+ rating: 4.9,
1243
+ avatar: "https://randomuser.me/api/portraits/women/44.jpg"
1244
+ },
1245
+ {
1246
+ name: "Amit Kumar",
1247
+ specialty: "Sports Equipment",
1248
+ rating: 4.7,
1249
+ avatar: "https://randomuser.me/api/portraits/men/67.jpg"
1250
+ },
1251
+ {
1252
+ name: "Neha Singh",
1253
+ specialty: "Home & Kitchen",
1254
+ rating: 4.6,
1255
+ avatar: "https://randomuser.me/api/portraits/women/28.jpg"
1256
+ }
1257
+ ];
1258
+
1259
+ // Mobile menu toggle
1260
+ const mobileMenuBtn = document.getElementById('mobileMenuBtn');
1261
+ const mainNav = document.getElementById('mainNav');
1262
+
1263
+ mobileMenuBtn.addEventListener('click', () => {
1264
+ mainNav.classList.toggle('active');
1265
+ });
1266
+
1267
+ // Budget slider
1268
+ const budgetSlider = document.getElementById('budget');
1269
+ const budgetDisplay = document.getElementById('budgetDisplay');
1270
+
1271
+ budgetSlider.addEventListener('input', () => {
1272
+ const value = parseInt(budgetSlider.value);
1273
+ budgetDisplay.textContent = `₹${value.toLocaleString('en-IN')}`;
1274
+ });
1275
+
1276
+ // Category and subcategory handling
1277
+ const categorySelect = document.getElementById('category');
1278
+ const subcategorySelect = document.getElementById('subcategory');
1279
+
1280
+ categorySelect.addEventListener('change', () => {
1281
+ const selectedCategory = categorySelect.value;
1282
+
1283
+ // Clear existing subcategories
1284
+ subcategorySelect.innerHTML = '<option value="">Select Subcategory</option>';
1285
+
1286
+ if (selectedCategory && subcategories[selectedCategory]) {
1287
+ // Populate subcategories
1288
+ subcategories[selectedCategory].forEach(sub => {
1289
+ const option = document.createElement('option');
1290
+ option.value = sub.toLowerCase().replace(/\s+/g, '-');
1291
+ option.textContent = sub;
1292
+ subcategorySelect.appendChild(option);
1293
+ });
1294
+ }
1295
+ });
1296
+
1297
+ // Category cards interaction
1298
+ const categoryCards = document.querySelectorAll('.category-card');
1299
+
1300
+ categoryCards.forEach(card => {
1301
+ card.addEventListener('click', () => {
1302
+ const category = card.getAttribute('data-category');
1303
+ const categoryName = card.querySelector('h4').textContent;
1304
+
1305
+ // Set category in form
1306
+ categorySelect.value = category;
1307
+
1308
+ // Trigger change event to populate subcategory dropdown
1309
+ const event = new Event('change');
1310
+ categorySelect.dispatchEvent(event);
1311
+
1312
+ // Scroll to form
1313
+ window.scrollTo({
1314
+ top: document.querySelector('.hero-form').offsetTop - 100,
1315
+ behavior: 'smooth'
1316
+ });
1317
+ });
1318
+ });
1319
+
1320
+ // Close modal when clicking on X or outside modal
1321
+ document.querySelectorAll('.close-modal').forEach(btn => {
1322
+ btn.addEventListener('click', () => {
1323
+ document.getElementById('recommendationsModal').style.display = 'none';
1324
+ });
1325
+ });
1326
+
1327
+ window.addEventListener('click', (e) => {
1328
+ if (e.target === document.getElementById('recommendationsModal')) {
1329
+ document.getElementById('recommendationsModal').style.display = 'none';
1330
+ }
1331
+ });
1332
+
1333
+ // Form submission
1334
+ const recommendationForm = document.getElementById('recommendationForm');
1335
+ const recommendationsModal = document.getElementById('recommendationsModal');
1336
+ const aiSuggestion = document.getElementById('aiSuggestion');
1337
+ const productList = document.getElementById('productList');
1338
+ const expertsGrid = document.getElementById('expertsGrid');
1339
+
1340
+ recommendationForm.addEventListener('submit', (e) => {
1341
+ e.preventDefault();
1342
+
1343
+ const budget = document.getElementById('budget').value;
1344
+ const category = document.getElementById('category').value;
1345
+ const subcategory = document.getElementById('subcategory').value;
1346
+ const purpose = document.getElementById('purpose').value;
1347
+
1348
+ // Get budget text for display
1349
+ const budgetText = `₹${parseInt(budget).toLocaleString('en-IN')}`;
1350
+ const categoryText = document.getElementById('category').options[document.getElementById('category').selectedIndex].text;
1351
+ const subcategoryText = document.getElementById('subcategory').options[document.getElementById('subcategory').selectedIndex].text;
1352
+
1353
+ // Generate AI recommendation
1354
+ aiSuggestion.innerHTML = `
1355
+ <p>Based on your requirements for a <strong>${subcategoryText}</strong> in the <strong>${categoryText}</strong> category with a budget of <strong>${budgetText}</strong> for <strong>${purpose}</strong>, our AI suggests the following:</p>
1356
+ <p>Consider products with high ratings in the mid-range of your budget. Look for items that offer the best value for money with features specifically suited to your stated purpose. Check for warranty options and after-sales service availability in your area.</p>
1357
+ <p>Popular options in this category typically include brands that offer a good balance of quality and affordability. Be sure to read recent customer reviews focusing on durability and performance for your specific use case.</p>
1358
+ `;
1359
+
1360
+ // Clear existing products
1361
+ productList.innerHTML = '';
1362
+
1363
+ // Add product list heading
1364
+ const productHeading = document.createElement('h3');
1365
+ productHeading.textContent = 'Recommended Products';
1366
+ productHeading.style.marginTop = '20px';
1367
+ productHeading.style.marginBottom = '15px';
1368
+ productHeading.style.color = '#333';
1369
+ productList.appendChild(productHeading);
1370
+
1371
+ // Get products for the selected subcategory
1372
+ const subcategoryKey = subcategory.toLowerCase().replace(/\s+/g, '-');
1373
+ const categoryProducts = products[subcategoryKey] || [];
1374
+
1375
+ // Filter products by budget (within ±20% of user's budget)
1376
+ const minBudget = parseInt(budget) * 0.8;
1377
+ const maxBudget = parseInt(budget) * 1.2;
1378
+ const filteredProducts = categoryProducts.filter(product =>
1379
+ product.price >= minBudget && product.price <= maxBudget
1380
+ );
1381
+
1382
+ // Display up to 3 products
1383
+ const productsToShow = filteredProducts.slice(0, 3);
1384
+
1385
+ if (productsToShow.length > 0) {
1386
+ productsToShow.forEach(product => {
1387
+ const productItem = document.createElement('div');
1388
+ productItem.className = 'product-item';
1389
+ productItem.innerHTML = `
1390
+ <div class="product-header">
1391
+ <div class="product-name">${product.name}</div>
1392
+ <div class="product-price">₹${product.price.toLocaleString('en-IN')}</div>
1393
+ </div>
1394
+ <div class="product-details">
1395
+ <div class="product-source">
1396
+ <i class="fas fa-shopping-cart"></i> ${product.source}
1397
+ </div>
1398
+ <a href="${product.link}" target="_blank" class="product-link">View Product</a>
1399
+ </div>
1400
+ <div style="margin-top: 10px; font-size: 0.9rem; color: #666;">
1401
+ ${product.description}
1402
+ </div>
1403
+ `;
1404
+ productList.appendChild(productItem);
1405
+ });
1406
+ } else {
1407
+ const noProducts = document.createElement('div');
1408
+ noProducts.style.padding = '15px';
1409
+ noProducts.style.textAlign = 'center';
1410
+ noProducts.style.color = '#666';
1411
+ noProducts.textContent = 'No products found in your budget range. Please adjust your budget or try a different category.';
1412
+ productList.appendChild(noProducts);
1413
+ }
1414
+
1415
+ // Clear existing experts
1416
+ expertsGrid.innerHTML = '';
1417
+
1418
+ // Populate experts
1419
+ experts.forEach(expert => {
1420
+ const expertCard = document.createElement('div');
1421
+ expertCard.className = 'expert-card';
1422
+ expertCard.innerHTML = `
1423
+ <img src="${expert.avatar}" alt="${expert.name}" class="expert-avatar">
1424
+ <div class="expert-name">${expert.name}</div>
1425
+ <div class="expert-specialty">${expert.specialty}</div>
1426
+ <div class="expert-rating">
1427
+ ${generateStars(expert.rating)} ${expert.rating}
1428
+ </div>
1429
+ <button class="btn-expert" data-expert="${expert.name}">Get Advice</button>
1430
+ `;
1431
+ expertsGrid.appendChild(expertCard);
1432
+ });
1433
+
1434
+ // Add event listeners to expert buttons
1435
+ document.querySelectorAll('.btn-expert').forEach(btn => {
1436
+ btn.addEventListener('click', () => {
1437
+ const expertName = btn.getAttribute('data-expert');
1438
+ alert(`Your request has been sent to ${expertName}. They will contact you soon with personalized recommendations!`);
1439
+ });
1440
+ });
1441
+
1442
+ // Show recommendations modal
1443
+ recommendationsModal.style.display = 'block';
1444
+ });
1445
+
1446
+ // Generate star rating
1447
+ function generateStars(rating) {
1448
+ let stars = '';
1449
+ const fullStars = Math.floor(rating);
1450
+ const hasHalfStar = rating % 1 >= 0.5;
1451
+
1452
+ for (let i = 0; i < fullStars; i++) {
1453
+ stars += '<i class="fas fa-star"></i>';
1454
+ }
1455
+
1456
+ if (hasHalfStar) {
1457
+ stars += '<i class="fas fa-star-half-alt"></i>';
1458
+ }
1459
+
1460
+ const emptyStars = 5 - Math.ceil(rating);
1461
+ for (let i = 0; i < emptyStars; i++) {
1462
+ stars += '<i class="far fa-star"></i>';
1463
+ }
1464
+
1465
+ return stars;
1466
+ }
1467
+
1468
+ // Smooth scrolling for navigation links
1469
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
1470
+ anchor.addEventListener('click', function (e) {
1471
+ e.preventDefault();
1472
+
1473
+ const targetId = this.getAttribute('href');
1474
+ if (targetId === '#') return;
1475
+
1476
+ const targetElement = document.querySelector(targetId);
1477
+ if (targetElement) {
1478
+ window.scrollTo({
1479
+ top: targetElement.offsetTop - 80,
1480
+ behavior: 'smooth'
1481
+ });
1482
+
1483
+ // Close mobile menu if open
1484
+ mainNav.classList.remove('active');
1485
+ }
1486
+ });
1487
+ });
1488
+ </script>
1489
+ </body>
1490
+ </html>