Spaces:
Running
Running
File size: 27,092 Bytes
e6b697e | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Filmpremier | Exclusive Movie Events</title>
<!-- Google Fonts -->
<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=Playfair+Display:wght@400;700;900&family=Lato:wght@300;400;700&display=swap" rel="stylesheet">
<!-- Font Awesome for Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary-color: #d4af37; /* Gold */
--primary-hover: #b5952f;
--dark-bg: #0a0a0a;
--light-text: #f5f5f5;
--gray-text: #a0a0a0;
--card-bg: #1a1a1a;
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Lato', sans-serif;
background-color: var(--dark-bg);
color: var(--light-text);
line-height: 1.6;
overflow-x: hidden;
}
h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
font-weight: 700;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
/* --- Navigation --- */
nav {
position: fixed;
top: 0;
width: 100%;
padding: 1.5rem 5%;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
transition: var(--transition);
}
nav.scrolled {
background-color: rgba(10, 10, 10, 0.9);
backdrop-filter: blur(10px);
padding: 1rem 5%;
box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.logo {
font-family: 'Playfair Display', serif;
font-size: 2rem;
font-weight: 900;
color: var(--light-text);
letter-spacing: 2px;
}
.logo span {
color: var(--primary-color);
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--light-text);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
transition: var(--transition);
position: relative;
}
.nav-links a:hover {
color: var(--primary-color);
}
.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--primary-color);
transition: var(--transition);
}
.nav-links a:hover::after {
width: 100%;
}
.cta-btn {
padding: 0.8rem 2rem;
background-color: var(--primary-color);
color: var(--dark-bg);
font-weight: 700;
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 2px;
transition: var(--transition);
border: 1px solid var(--primary-color);
}
.cta-btn:hover {
background-color: transparent;
color: var(--primary-color);
}
.hamburger {
display: none;
cursor: pointer;
font-size: 1.5rem;
color: var(--light-text);
}
/* --- Hero Section --- */
.hero {
height: 100vh;
width: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
}
.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
filter: brightness(0.4);
}
.hero-content {
max-width: 800px;
padding: 0 20px;
animation: fadeInUp 1s ease;
}
.hero h1 {
font-size: 5rem;
line-height: 1.1;
margin-bottom: 1.5rem;
color: #fff;
text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hero p {
font-size: 1.5rem;
color: #ddd;
margin-bottom: 2.5rem;
font-weight: 300;
}
.hero-btns {
display: flex;
gap: 1rem;
justify-content: center;
}
.btn-secondary {
padding: 0.8rem 2.5rem;
border: 1px solid var(--light-text);
color: var(--light-text);
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 2px;
transition: var(--transition);
background: transparent;
}
.btn-secondary:hover {
background: rgba(255,255,255,0.1);
border-color: var(--primary-color);
color: var(--primary-color);
}
/* --- About Section --- */
.section {
padding: 8rem 10%;
}
.section-title {
text-align: center;
margin-bottom: 4rem;
}
.section-title h2 {
font-size: 3.5rem;
margin-bottom: 1rem;
color: var(--light-text);
}
.section-title .line {
width: 80px;
height: 4px;
background-color: var(--primary-color);
margin: 0 auto;
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.about-text p {
color: var(--gray-text);
margin-bottom: 1.5rem;
}
.about-image {
width: 100%;
height: 500px;
object-fit: cover;
border-radius: 4px;
box-shadow: 20px 20px 0px var(--primary-color);
}
/* --- Movies / Features --- */
.movies-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 3rem;
}
.movie-card {
background-color: var(--card-bg);
border-radius: 8px;
overflow: hidden;
transition: var(--transition);
position: relative;
}
.movie-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.movie-img {
width: 100%;
height: 450px;
object-fit: cover;
transition: var(--transition);
}
.movie-card:hover .movie-img {
transform: scale(1.05);
}
.movie-info {
padding: 2rem;
}
.movie-meta {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
color: var(--primary-color);
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.movie-info h3 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.movie-info p {
color: var(--gray-text);
font-size: 0.95rem;
margin-bottom: 1.5rem;
}
.ticket-btn {
display: inline-block;
padding: 0.7rem 1.5rem;
background-color: transparent;
border: 1px solid var(--light-text);
color: var(--light-text);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 2px;
transition: var(--transition);
width: 100%;
text-align: center;
}
.movie-card:hover .ticket-btn {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: var(--dark-bg);
}
/* --- Events / Features --- */
.features-section {
background-color: #111;
text-align: center;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
}
.feature-item {
padding: 2rem;
}
.feature-icon {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.feature-item h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.feature-item p {
color: var(--gray-text);
}
/* --- Newsletter --- */
.newsletter {
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
background-size: cover;
background-position: center;
text-align: center;
padding: 6rem 2rem;
}
.newsletter h2 {
font-size: 3rem;
margin-bottom: 1rem;
}
.newsletter p {
color: var(--gray-text);
margin-bottom: 2.5rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.newsletter-form {
display: flex;
justify-content: center;
gap: 10px;
max-width: 500px;
margin: 0 auto;
}
.newsletter-input {
flex: 1;
padding: 1rem;
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
border-radius: 4px;
}
.newsletter-input::placeholder {
color: #aaa;
}
/* --- Footer --- */
footer {
background-color: #050505;
padding: 5rem 10% 2rem;
border-top: 1px solid #222;
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 3rem;
margin-bottom: 4rem;
}
.footer-col h4 {
color: var(--light-text);
font-size: 1.2rem;
margin-bottom: 1.5rem;
font-family: 'Playfair Display', serif;
}
.footer-col ul li {
margin-bottom: 0.8rem;
}
.footer-col ul li a {
color: var(--gray-text);
font-size: 0.9rem;
transition: var(--transition);
}
.footer-col ul li a:hover {
color: var(--primary-color);
padding-left: 5px;
}
.social-links {
display: flex;
gap: 1.5rem;
margin-top: 2rem;
}
.social-links a {
color: var(--light-text);
font-size: 1.2rem;
transition: var(--transition);
}
.social-links a:hover {
color: var(--primary-color);
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid #1a1a1a;
color: var(--gray-text);
font-size: 0.85rem;
}
.anycoder-link {
display: inline-block;
margin-top: 10px;
color: #5e5e5e;
font-size: 0.75rem;
text-decoration: underline;
}
.anycoder-link:hover {
color: var(--primary-color);
}
/* --- Responsive Design --- */
@media (max-width: 992px) {
.hero h1 { font-size: 3.5rem; }
.about-content { grid-template-columns: 1fr; }
.about-image { width: 100%; height: 350px; }
}
@media (max-width: 768px) {
.nav-links {
position: fixed;
top: 70px;
left: 0;
width: 100%;
background-color: var(--dark-bg);
flex-direction: column;
align-items: center;
padding: 2rem 0;
transform: translateY(-150%);
transition: transform 0.4s ease-in-out;
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.nav-links.active {
transform: translateY(0);
}
.hamburger {
display: block;
z-index: 1001;
}
.hero h1 { font-size: 2.5rem; }
.hero p { font-size: 1.1rem; }
.hero-btns { flex-direction: column; }
.footer-grid {
grid-template-columns: 1fr;
text-align: center;
}
.social-links { justify-content: center; }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body>
<!-- Navigation -->
<nav id="navbar">
<a href="#" class="logo">FILM<span>PREMIER</span></a>
<div class="hamburger" id="hamburger">
<i class="fas fa-bars"></i>
</div>
<div class="nav-links" id="nav-links">
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#movies">Now Screening</a>
<a href="#events">Experiences</a>
<a href="#newsletter" class="cta-btn">Join Club</a>
</div>
</nav>
<!-- Hero Section -->
<section class="hero" id="home">
<img src="https://images.unsplash.com/photo-1598880940044-5a32c707908d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80" alt="Cinema Screen" class="hero-bg">
<div class="hero-content">
<h1>Cinema Reimagined</h1>
<p>Experience the magic of the movies like never before. Exclusive premieres, premium comfort, and unforgettable moments.</p>
<div class="hero-btns">
<a href="#movies" class="cta-btn">Get Tickets</a>
<a href="#about" class="btn-secondary">Our Story</a>
</div>
</div>
</section>
<!-- About Section -->
<section class="section" id="about">
<div class="about-content">
<div class="about-text">
<div class="section-title" style="text-align: left; margin-bottom: 2rem;">
<h2 style="text-align: left;">More Than Just a Movie</h2>
<div class="line" style="margin: 0;"></div>
</div>
<p>At Filmpremier, we believe that going to the cinema is an event, not just a pastime. Established in 2024, we have redefined the movie-going experience by blending cutting-edge technology with timeless comfort.</p>
<p>From our Dolby Atmos sound systems to our plush leather recliners, every detail is designed to immerse you fully into the story. Whether it's a blockbuster premiere or an indie masterpiece, we ensure the focus remains on the screen.</p>
<p>Join our exclusive membership club to access VIP screenings, director Q&As, and priority booking for the hottest releases.</p>
<br>
<a href="#" class="cta-btn" style="padding: 1rem 2.5rem;">Discover Luxury</a>
</div>
<div class="about-image-container">
<img src="https://images.unsplash.com/photo-1514432324607-a09d9b4aefdd?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80" alt="Luxury Cinema Seat" class="about-image">
</div>
</div>
</section>
<!-- Movies Section -->
<section class="section" id="movies" style="background-color: #0f0f0f;">
<div class="section-title">
<h2>Currently Screening</h2>
<div class="line"></div>
</div>
<div class="movies-grid">
<!-- Movie 1 -->
<div class="movie-card">
<img src="https://images.unsplash.com/photo-1626814026160-2237a95fc5a4?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="Movie Poster" class="movie-img">
<div class="movie-info">
<div class="movie-meta">
<span>Sci-Fi</span>
<span>2h 15m</span>
<span>4K Dolby Vision</span>
</div>
<h3>The Last Horizon</h3>
<p>When humanity's last hope finds itself lost in deep space, a lone pilot must face the unknown to save us all.</p>
<button class="ticket-btn">Book Now</button>
</div>
</div>
<!-- Movie 2 -->
<div class="movie-card">
<img src="https://images.unsplash.com/photo-1626814026123-6598ed7dc554?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="Movie Poster" class="movie-img">
<div class="movie-info">
<div class="movie-meta">
<span>Thriller</span>
<span>1h 58m</span>
<span>IMAX</span>
</div>
<h3>Shadows of the Past</h3>
<p>A detective uncovering a conspiracy that reaches the highest echelons of power must stay one step ahead.</p>
<button class="ticket-btn">Book Now</button>
</div>
</div>
<!-- Movie 3 -->
<div class="movie-card">
<img src="https://images.unsplash.com/photo-1579345255543-c41700357064?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="Movie Poster" class="movie-img">
<div class="movie-info">
<div class="movie-meta">
<span>Documentary</span>
<span>1h 30m</span>
<span>Dolby Atmos</span>
</div>
<h3>Oceans Unseen</h3>
<p>Explore the deepest, darkest corners of our planet's final frontier. A visual masterpiece.</p>
<button class="ticket-btn">Book Now</button>
</div>
</div>
<!-- Movie 4 -->
<div class="movie-card">
<img src="https://images.unsplash.com/photo-1626814026193-22f695988715?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="Movie Poster" class="movie-img">
<div class="movie-info">
<div class="movie-meta">
<span>Horror</span>
<span>2h 05m</span>
<span>Standard</span>
</div>
<h3>The Whispering House</h3>
<p>After inheriting a remote manor, a family discovers the walls have ears—and they're hungry.</p>
<button class="ticket-btn">Book Now</button>
</div>
</div>
<!-- Movie 5 -->
<div class="movie-card">
<img src="https://images.unsplash.com/photo-1626814026183-35c783e21111?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="Movie Poster" class="movie-img">
<div class="movie-info">
<div class="movie-meta">
<span>Action</span>
<span>2h 30m</span>
<span>IMAX 3D</span>
</div>
<h3>Cyber Dawn</h3>
<p>In a neon-soaked future, a rogue AI hunter must confront her creator to stop a digital apocalypse.</p>
<button class="ticket-btn">Book Now</button>
</div>
</div>
<!-- Movie 6 -->
<div class="movie-card">
<img src="https://images.unsplash.com/photo-1626814026248-2585c5416f1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="Movie Poster" class="movie-img">
<div class="movie-info">
<div class="movie-meta">
<span>Romance</span>
<span>1h 45m</span>
<span>Standard</span>
</div>
<h3>Starlight Nights</h3>
<p>Two strangers meet under the aurora borealis and find that fate is written in the stars.</p>
<button class="ticket-btn">Book Now</button>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="section features-section" id="events">
<div class="section-title">
<h2>Our Experiences</h2>
<div class="line"></div>
</div>
<div class="features-grid">
<div class="feature-item">
<i class="fas fa-couch feature-icon"></i>
<h3>Private Lounges</h3>
<p>Upgrade to our VIP lounges for exclusive pre-screening cocktails and private access to the screening room.</p>
</div>
<div class="feature-item">
<i class="fas fa-utensils feature-icon"></i>
<h3>Gourmet Dining</h3>
<p>Our executive chefs prepare fresh, gourmet meals delivered straight to your seat before the show begins.</p>
</div>
<div class="feature-item">
<i class="fas fa-ticket-alt feature-icon"></i>
<h3>Priority Booking</h3>
<p>Members get access to book tickets 48 hours before the general public for all premier releases.</p>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section class="newsletter" id="newsletter">
<h2>Join the Filmpremier Club</h2>
<p>Sign up to receive exclusive invites to premieres, special screenings, and member-only discounts. Your first month is on us.</p>
<form class="newsletter-form" onsubmit="event.preventDefault(); alert('Welcome to the Club! You have successfully subscribed.');">
<input type="email" class="newsletter-input" placeholder="Enter your email address" required>
<button type="submit" class="cta-btn">Subscribe</button>
</form>
</section>
<!-- Footer -->
<footer>
<div class="footer-grid">
<div class="footer-col">
<a href="#" class="logo" style="font-size: 1.5rem; margin-bottom: 1rem; display: inline-block;">FILM<span>PREMIER</span></a>
<p style="color: var(--gray-text); font-size: 0.9rem; line-height: 1.6;">
Redefining the cinematic experience with luxury, technology, and an unwavering passion for storytelling.
</p>
<div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="footer-col">
<h4>Cinemas</h4>
<ul>
<li><a href="#">Downtown Plaza</a></li>
<li><a href="#">Westside Luxury</a></li>
<li><a href="#">Eastgate IMAX</a></li>
<li><a href="#">Northside Drive-In</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Events</h4>
<ul>
<li><a href="#">Premiere Nights</a></li>
<li><a href="#">Director Q&A</a></li>
<li><a href="#">Film Festivals</a></li>
<li><a href="#">Private Rentals</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Support</h4>
<ul>
<li><a href="#">Help Center</a></li>
<li><a href="#">Terms of Service</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
© 2024 Filmpremier Entertainment Group. All rights reserved.
<br>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">Built with anycoder</a>
</div>
</footer>
<script>
// Navigation Scroll Effect
window.addEventListener('scroll', function() {
const nav = document.getElementById('navbar');
if (window.scrollY > 50) {
nav.classList.add('scrolled');
} else {
nav.classList.remove('scrolled');
}
});
// Mobile Menu Toggle
const hamburger = document.getElementById('hamburger');
const navLinks = document.getElementById('nav-links');
const links = document.querySelectorAll('.nav-links a');
hamburger.addEventListener('click', () => {
navLinks.classList.toggle('active');
// Toggle icon between bars and times (X)
const icon = hamburger.querySelector('i');
if (navLinks.classList.contains('active')) {
icon.classList.remove('fa-bars');
icon.classList.add('fa-times');
} else {
icon.classList.remove('fa-times');
icon.classList.add('fa-bars');
}
});
// Close mobile menu when a link is clicked
links.forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
const icon = hamburger.querySelector('i');
icon.classList.remove('fa-times');
icon.classList.add('fa-bars');
});
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>
</body>
</html> |