-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
928 lines (871 loc) · 32.7 KB
/
index.html
File metadata and controls
928 lines (871 loc) · 32.7 KB
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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Techno-Web - Interactive Website</title>
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="assets/favicon.png" type="image/png" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<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=Outfit:wght@100..900&display=swap"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/04ce6fe281.js"
crossorigin="anonymous"
></script>
</head>
<body>
<!-- Loading Overlay -->
<div class="loading-overlay" id="loadingOverlay">
<div class="spinner"></div>
</div>
<header>
<nav
class="navbar navbar-expand-lg navbar-light bg-white px-4 border-bottom fixed-top"
>
<div class="container-fluid">
<a class="navbar-brand fs-2" href="#">
Techno-<span class="text-primary">Web</span>
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 fs-5 text-center">
<li class="nav-item">
<a class="nav-link active text-primary" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#services">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#team">Our Team</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="home" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button
type="button"
data-bs-target="#home"
data-bs-slide-to="0"
class="active"
aria-current="true"
aria-label="Slide 1"
></button>
<button
type="button"
data-bs-target="#home"
data-bs-slide-to="1"
aria-label="Slide 2"
></button>
<button
type="button"
data-bs-target="#home"
data-bs-slide-to="2"
aria-label="Slide 3"
></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img
src="https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
class="d-block w-100"
alt="Technology Team"
/>
<div class="carousel-caption d-block">
<h5>Innovative Solutions</h5>
<p>
Transforming businesses with cutting-edge technology and
creative solutions.
</p>
</div>
</div>
<div class="carousel-item">
<img
src="https://images.unsplash.com/photo-1606857521015-7f9fcf423740?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
class="d-block w-100"
alt="Digital Innovation"
/>
<div class="carousel-caption d-block">
<h5>Digital Excellence</h5>
<p>
Building the future with advanced analytics and blockchain
technology.
</p>
</div>
</div>
<div class="carousel-item">
<img
src="https://images.unsplash.com/photo-1647510283889-c74d12318ab5?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
class="d-block w-100"
alt="Data Analytics"
/>
<div class="carousel-caption d-block">
<h5>Data-Driven Growth</h5>
<p>
Empowering decisions with powerful analytics and intelligent
insights.
</p>
</div>
</div>
</div>
<button
class="carousel-control-prev"
type="button"
data-bs-target="#home"
data-bs-slide="prev"
>
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button
class="carousel-control-next"
type="button"
data-bs-target="#home"
data-bs-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</header>
<section id="about" class="about">
<div class="container">
<div class="heading fade-in">
<h1 class="text-center section-title">About Us</h1>
<hr class="section-divider" />
</div>
<div class="row align-items-center">
<div class="col-sm-12 col-md-6 col-lg-6 col-12 slide-left">
<div class="about-content">
<h1>
What do you <span class="text-primary">want to know?</span>
</h1>
<p>
We are a cutting-edge technology company specializing in
innovative solutions that drive business growth. Our team of
experts combines creativity with technical excellence to deliver
outstanding results. From SEO optimization to blockchain
development, we transform ideas into reality.
</p>
<button type="button" class="btn btn-custom mb-4">
Discover More
</button>
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button
class="accordion-button"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseOne"
aria-expanded="true"
aria-controls="collapseOne"
>
<i class="fas fa-project-diagram me-3"></i>Our Projects
</button>
</h2>
<div
id="collapseOne"
class="accordion-collapse collapse show"
aria-labelledby="headingOne"
data-bs-parent="#accordionExample"
>
<div class="accordion-body">
We've successfully delivered over 500+ projects across
various industries, from startup MVPs to enterprise-level
solutions. Our portfolio spans e-commerce platforms,
fintech applications, and AI-powered analytics dashboards.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseTwo"
aria-expanded="false"
aria-controls="collapseTwo"
>
<i class="fas fa-trophy me-3"></i>Why Choose Us?
</button>
</h2>
<div
id="collapseTwo"
class="accordion-collapse collapse"
aria-labelledby="headingTwo"
data-bs-parent="#accordionExample"
>
<div class="accordion-body">
Our commitment to excellence, innovative approach, and
client-centric solutions set us apart. We deliver projects
on time, within budget, and exceed expectations with 24/7
support and ongoing maintenance.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseThree"
aria-expanded="false"
aria-controls="collapseThree"
>
<i class="fas fa-eye me-3"></i>Our Vision
</button>
</h2>
<div
id="collapseThree"
class="accordion-collapse collapse"
aria-labelledby="headingThree"
data-bs-parent="#accordionExample"
>
<div class="accordion-body">
To be the leading technology partner that empowers
businesses to thrive in the digital age. We envision a
future where technology seamlessly integrates with human
potential to create extraordinary experiences.
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6 col-12 slide-right">
<div class="about-image">
<img
src="https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
alt="Team Collaboration"
class="img-fluid"
/>
</div>
</div>
</div>
</div>
</section>
<section id="services" class="services">
<div class="container">
<div class="heading fade-in">
<h1 class="text-center section-title">Our Services</h1>
<hr class="section-divider" />
</div>
<div class="row">
<div class="col-sm-12 col-md-4 col-lg-4 col-12 mb-4 fade-in">
<div class="service-card text-center">
<div class="service-icon">
<i class="fas fa-search"></i>
</div>
<h5>SEO Optimization</h5>
<p>
Boost your online visibility with our comprehensive SEO
strategies and drive organic traffic to your website.
</p>
<a href="#" class="btn btn-custom">Learn More</a>
</div>
</div>
<div class="col-sm-12 col-md-4 col-lg-4 col-12 mb-4 fade-in">
<div class="service-card text-center">
<div class="service-icon">
<i class="fas fa-chart-line"></i>
</div>
<h5>Data Analytics</h5>
<p>
Transform raw data into actionable insights with our advanced
analytics solutions and business intelligence tools.
</p>
<a href="#" class="btn btn-custom">Learn More</a>
</div>
</div>
<div class="col-sm-12 col-md-4 col-lg-4 col-12 mb-4 fade-in">
<div class="service-card text-center">
<div class="service-icon">
<i class="fas fa-link"></i>
</div>
<h5>Blockchain Development</h5>
<p>
Build secure, decentralized applications with our blockchain
expertise and smart contract development.
</p>
<a href="#" class="btn btn-custom">Learn More</a>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-sm-12 col-md-4 col-lg-4 col-12 mb-4 fade-in">
<div class="service-card text-center">
<div class="service-icon">
<i class="fas fa-palette"></i>
</div>
<h5>UX/UI Design</h5>
<p>
Create stunning user experiences with our design expertise, from
wireframes to interactive prototypes.
</p>
<a href="#" class="btn btn-custom">Learn More</a>
</div>
</div>
<div class="col-sm-12 col-md-4 col-lg-4 col-12 mb-4 fade-in">
<div class="service-card text-center">
<div class="service-icon">
<i class="fas fa-chart-bar"></i>
</div>
<h5>Statistical Analytics</h5>
<p>
Leverage statistical models and machine learning algorithms to
uncover patterns and predict trends.
</p>
<a href="#" class="btn btn-custom">Learn More</a>
</div>
</div>
<div class="col-sm-12 col-md-4 col-lg-4 col-12 mb-4 fade-in">
<div class="service-card text-center">
<div class="service-icon">
<i class="fas fa-mobile-alt"></i>
</div>
<h5>App Development</h5>
<p>
Build powerful mobile and web applications with cutting-edge
technologies and frameworks with high-performance.
</p>
<a href="#" class="btn btn-custom">Learn More</a>
</div>
</div>
</div>
</div>
</section>
<!-- Team Section -->
<section id="team" class="py-5">
<div class="container">
<div class="heading fade-in">
<h1 class="text-center section-title">Meet Our Team</h1>
<hr class="section-divider" />
</div>
<div class="row">
<div class="col-md-4 mb-4 fade-in">
<div class="service-card text-center">
<img
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=400&q=80"
alt="Team Member"
class="rounded-circle mb-3"
style="width: 150px; height: 150px; object-fit: cover"
/>
<h5>John Smith</h5>
<p class="text-muted">CEO & Founder</p>
<p>
Leading innovation with 15+ years of experience in technology
and business strategy.
</p>
<div class="social-icons justify-content-center">
<a href="#" class="social-icon"
><i class="fab fa-facebook"></i
></a>
<a href="#" class="social-icon"
><i class="fab fa-twitter"></i
></a>
</div>
</div>
</div>
<div class="col-md-4 mb-4 fade-in">
<div class="service-card text-center">
<img
src="https://plus.unsplash.com/premium_photo-1705009607254-5618bb0d0c35?fm=jpg&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8d29tYW4lMjBzbWlsaW5nfGVufDB8fDB8fHww&ixlib=rb-4.1.0&q=60&w=3000"
alt="Team Member"
class="rounded-circle mb-3"
style="width: 150px; height: 150px; object-fit: cover"
/>
<h5>Sarah Johnson</h5>
<p class="text-muted">CTO</p>
<p>
Technology visionary with expertise in AI, blockchain, and
scalable system architecture.
</p>
<div class="social-icons justify-content-center">
<a href="#" class="social-icon"
><i class="fab fa-linkedin"></i
></a>
<a href="#" class="social-icon"
><i class="fab fa-github"></i
></a>
</div>
</div>
</div>
<div class="col-md-4 mb-4 fade-in">
<div class="service-card text-center">
<img
src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=400&q=80"
alt="Team Member"
class="rounded-circle mb-3"
style="width: 150px; height: 150px; object-fit: cover"
/>
<h5>Mike Chen</h5>
<p class="text-muted">Lead Designer</p>
<p>
Creative director crafting beautiful user experiences and brand
identities that inspire.
</p>
<div class="social-icons justify-content-center">
<a href="#" class="social-icon"
><i class="fab fa-dribbble"></i
></a>
<a href="#" class="social-icon"
><i class="fab fa-behance"></i
></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-5 bg-light">
<div class="container">
<!-- Heading -->
<div class="heading fade-in text-center mb-5">
<h1 class="section-title" style="font-weight: 700; color: #6a11cb">
Get In Touch
</h1>
<hr class="section-divider" />
</div>
<div class="row align-items-center">
<!-- Contact Info -->
<div class="col-md-6 fade-in d-flex justify-content-center">
<div class="contact-info w-100" style="max-width: 400px">
<h4 class="mb-4 fw-bold">Contact Information</h4>
<!-- Address -->
<div
class="d-grid mb-4"
style="grid-template-columns: 60px auto; align-items: center"
>
<div class="service-icon">
<i class="fas fa-map-marker-alt"></i>
</div>
<div>
<h6 class="mb-1">Address</h6>
<p class="mb-0">123 Tech Street, Digital City, TC 12345</p>
</div>
</div>
<!-- Phone -->
<div
class="d-grid mb-4"
style="grid-template-columns: 60px auto; align-items: center"
>
<div class="service-icon">
<i class="fas fa-phone"></i>
</div>
<div>
<h6 class="mb-1">Phone</h6>
<p class="mb-0">+1 (555) 123-4567</p>
</div>
</div>
<!-- Email -->
<div
class="d-grid mb-4"
style="grid-template-columns: 60px auto; align-items: center"
>
<div class="service-icon">
<i class="fas fa-envelope"></i>
</div>
<div>
<h6 class="mb-1">Email</h6>
<p class="mb-0">info@technoweb.com</p>
</div>
</div>
</div>
</div>
<!-- Contact Form -->
<div class="col-md-6 fade-in">
<form class="contact-form shadow p-4 rounded bg-white">
<div class="mb-3">
<input
type="text"
class="form-control"
placeholder="Your Name"
required
/>
</div>
<div class="mb-3">
<input
type="email"
class="form-control"
placeholder="Your Email"
required
/>
</div>
<div class="mb-3">
<input
type="text"
class="form-control"
placeholder="Subject"
required
/>
</div>
<div class="mb-3">
<textarea
class="form-control"
rows="5"
placeholder="Your Message"
required
></textarea>
</div>
<button type="submit" class="btn btn-custom w-100">
Send Message
</button>
</form>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-4 mb-4 fade-in">
<h5 class="footer-brand">Techno-Web</h5>
<p class="mb-4">
Transforming businesses through innovative technology solutions.
We bring your digital vision to life with cutting-edge expertise
and creative excellence.
</p>
<div class="social-icons">
<a href="#" class="social-icon"
><i class="fab fa-facebook-f"></i
></a>
<a href="#" class="social-icon"><i class="fab fa-twitter"></i></a>
<a href="#" class="social-icon"
><i class="fab fa-linkedin-in"></i
></a>
<a href="#" class="social-icon"
><i class="fab fa-instagram"></i
></a>
<a href="#" class="social-icon"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="col-md-2 mb-4 fade-in">
<h5>Quick Links</h5>
<ul class="footer-links">
<li><a href="#home">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#team">Our Team</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<div class="col-md-3 mb-4 fade-in">
<h5>Services</h5>
<ul class="footer-links">
<li><a href="#">SEO Optimization</a></li>
<li><a href="#">Data Analytics</a></li>
<li><a href="#">Blockchain Development</a></li>
<li><a href="#">UX/UI Design</a></li>
<li><a href="#">App Development</a></li>
</ul>
</div>
<div class="col-md-3 mb-4 fade-in">
<h5>Newsletter</h5>
<p>
Subscribe to our newsletter for the latest updates and insights.
</p>
<form class="newsletter-form">
<div class="input-group mb-3">
<input
type="email"
class="form-control"
placeholder="Enter your email"
/>
<button class="btn btn-custom" type="submit">Subscribe</button>
</div>
</form>
</div>
</div>
<div class="footer-bottom">
<p>
© 2025 Techno-Web. All rights reserved. | Privacy Policy |
Terms of Service
</p>
</div>
</div>
</footer>
<!-- Scroll to Top Button -->
<button class="scroll-top" id="scrollTop">
<i class="fas fa-arrow-up"></i>
</button>
<!-- Scripts -->
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"
></script>
<script>
// Loading Animation
window.addEventListener("load", function () {
const loadingOverlay = document.getElementById("loadingOverlay");
loadingOverlay.classList.add("hidden");
setTimeout(() => {
loadingOverlay.style.display = "none";
}, 500);
});
// Navbar Scroll Effect
window.addEventListener("scroll", function () {
const navbar = document.querySelector(".navbar");
if (window.scrollY > 50) {
navbar.classList.add("scrolled");
} else {
navbar.classList.remove("scrolled");
}
});
// Scroll Animations
const observerOptions = {
threshold: 0.1,
rootMargin: "0px 0px -50px 0px",
};
const observer = new IntersectionObserver(function (entries) {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("visible");
}
});
}, observerOptions);
// Observe all animated elements
document
.querySelectorAll(".fade-in, .slide-left, .slide-right")
.forEach((el) => {
observer.observe(el);
});
// Smooth Scroll for Navigation Links
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute("href"));
if (target) {
const offsetTop = target.offsetTop - 80;
window.scrollTo({
top: offsetTop,
behavior: "smooth",
});
}
});
});
// Active Navigation Link
window.addEventListener("scroll", function () {
const sections = document.querySelectorAll("section[id], div[id]");
const navLinks = document.querySelectorAll(".nav-link");
let current = "";
sections.forEach((section) => {
const sectionTop = section.offsetTop - 100;
const sectionHeight = section.offsetHeight;
if (
window.scrollY >= sectionTop &&
window.scrollY < sectionTop + sectionHeight
) {
current = section.getAttribute("id");
}
});
navLinks.forEach((link) => {
link.classList.remove("active");
if (link.getAttribute("href") === "#" + current) {
link.classList.add("active");
}
});
});
// Scroll to Top Button
const scrollTopBtn = document.getElementById("scrollTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
scrollTopBtn.classList.add("visible");
} else {
scrollTopBtn.classList.remove("visible");
}
});
scrollTopBtn.addEventListener("click", function () {
window.scrollTo({
top: 0,
behavior: "smooth",
});
});
// Service Card Hover Effects
document.querySelectorAll(".service-card").forEach((card) => {
card.addEventListener("mouseenter", function () {
this.style.transform = "translateY(-10px) scale(1.02)";
});
card.addEventListener("mouseleave", function () {
this.style.transform = "translateY(0) scale(1)";
});
});
// Form Submission
document
.querySelector(".contact-form")
.addEventListener("submit", function (e) {
e.preventDefault();
// Show success message (you can replace this with actual form submission)
const submitBtn = this.querySelector('button[type="submit"]');
const originalText = submitBtn.textContent;
submitBtn.textContent = "Sending...";
submitBtn.disabled = true;
setTimeout(() => {
submitBtn.textContent = "Message Sent!";
submitBtn.style.background =
"linear-gradient(135deg, #28a745, #20c997)";
setTimeout(() => {
submitBtn.textContent = originalText;
submitBtn.disabled = false;
submitBtn.style.background = "";
this.reset();
}, 2000);
}, 1000);
});
// Newsletter Subscription
document
.querySelector(".newsletter-form")
.addEventListener("submit", function (e) {
e.preventDefault();
const submitBtn = this.querySelector('button[type="submit"]');
const originalText = submitBtn.textContent;
submitBtn.textContent = "Subscribing...";
submitBtn.disabled = true;
setTimeout(() => {
submitBtn.textContent = "Subscribed!";
submitBtn.style.background =
"linear-gradient(135deg, #28a745, #20c997)";
setTimeout(() => {
submitBtn.textContent = originalText;
submitBtn.disabled = false;
submitBtn.style.background = "";
this.reset();
}, 2000);
}, 1000);
});
/*
Parallax Effect for Hero Section
window.addEventListener("scroll", function () {
const scrolled = window.pageYOffset;
const parallax = document.querySelector(".carousel-inner");
const speed = scrolled * 0.5;
if (parallax) {
parallax.style.transform = `translateY(${speed}px)`;
}
});
*/
// Add stagger animation to service cards
const serviceCards = document.querySelectorAll(".service-card");
serviceCards.forEach((card, index) => {
card.style.animationDelay = `${index * 0.1}s`;
});
// Typing Animation for Hero Text
function typeWriter(element, text, speed = 100) {
let i = 0;
element.innerHTML = "";
function type() {
if (i < text.length) {
element.innerHTML += text.charAt(i);
i++;
setTimeout(type, speed);
}
}
type();
}
// Initialize typing animation when carousel caption is visible
const carouselCaptions = document.querySelectorAll(
".carousel-caption h5"
);
carouselCaptions.forEach((caption) => {
const originalText = caption.textContent;
caption.addEventListener("animationend", function () {
typeWriter(this, originalText, 80);
});
});
// Add mouse tracking effect to service cards
document.querySelectorAll(".service-card").forEach((card) => {
card.addEventListener("mousemove", function (e) {
const rect = this.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
const centerX = rect.width / 2;
const centerY = rect.height / 2;
const rotateX = (y - centerY) / 10;
const rotateY = (centerX - x) / 10;
this.style.transform = `translateY(-10px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
});
card.addEventListener("mouseleave", function () {
this.style.transform = "translateY(0) rotateX(0) rotateY(0)";
});
});
// Add ripple effect to buttons
document.querySelectorAll(".btn-custom").forEach((button) => {
button.addEventListener("click", function (e) {
const ripple = document.createElement("span");
const rect = this.getBoundingClientRect();
const size = Math.max(rect.width, rect.height);
const x = e.clientX - rect.left - size / 2;
const y = e.clientY - rect.top - size / 2;
ripple.style.width = ripple.style.height = size + "px";
ripple.style.left = x + "px";
ripple.style.top = y + "px";
ripple.classList.add("ripple");
this.appendChild(ripple);
setTimeout(() => {
ripple.remove();
}, 600);
});
});
// Add CSS for ripple effect
const style = document.createElement("style");
style.textContent = `
.btn-custom {
position: relative;
overflow: hidden;
}
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
pointer-events: none;
transform: scale(0);
animation: ripple-animation 0.6s linear;
}
@keyframes ripple-animation {
to {
transform: scale(2);
opacity: 0;
}
}
`;
document.head.appendChild(style);
</script>
</body>
</html>