Spaces:
Running
Running
File size: 49,817 Bytes
9889b4c 70f41c8 0598577 70f41c8 5e81b45 f92edc4 5e81b45 f92edc4 5e81b45 70f41c8 d25e368 368d036 d25e368 368d036 d25e368 368d036 d25e368 368d036 d25e368 368d036 d25e368 f92edc4 368d036 70f41c8 0598577 368d036 0598577 d25e368 0db8706 70f41c8 f6a51c3 70f41c8 0598577 05d8f63 0598577 05d8f63 0598577 70f41c8 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 05d8f63 0598577 70f41c8 42d4597 70f41c8 42d4597 70f41c8 42d4597 70f41c8 5e81b45 368d036 5e81b45 368d036 f92edc4 368d036 5e81b45 368d036 0db8706 368d036 70f41c8 d25e368 70f41c8 0db8706 70f41c8 0db8706 70f41c8 5e81b45 70f41c8 0db8706 f92edc4 0db8706 70f41c8 | 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 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>C.V Light — Light Your Future</title>
<link href="https://fonts.googleapis.com/css2?family=Oleo+Script:wght@700&family=Cairo:wght@300;400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<style>
/* 3D Experience Styles */
.feature-card {
background: rgba(255,255,255,0.9);
padding: 20px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
margin-bottom: 20px;
transition: all 0.5s ease;
}
.feature-card h3 {
color: var(--dark-navy);
font-size: 24px;
margin-bottom: 10px;
}
.step-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255,255,255,0.3);
border: none;
cursor: pointer;
transition: all 0.3s ease;
}
.step-dot.active {
background: var(--accent-yellow);
transform: scale(1.2);
}
@media (max-width: 1000px) {
#characterContainer {
width: 200px;
height: 350px;
right: 10px;
}
#featureSteps {
width: 60%;
left: 20px;
bottom: 50px;
}
.feature-card {
padding: 15px;
}
}
@media (max-width: 700px) {
#characterContainer {
position: relative;
width: 100%;
height: 300px;
right: 0;
margin: 0 auto;
}
#featureSteps {
position: relative;
width: 100%;
left: 0;
bottom: 0;
margin-top: 20px;
padding: 0 20px;
}
.step-nav {
position: relative;
bottom: 0;
margin: 20px auto;
}
}
:root{
--bg-hero:#1a4a5a;
--dark-navy:#0a0f2a;
--accent-yellow:#ffd700;
--white:#ffffff;
--card-bg: rgba(255,255,255,0.95);
--max-width:1400px;
--container-padding:32px;
--transition: all 0.3s ease;
}
/* Reset & base */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
font-family:"Montserrat","Cairo",system-ui, -apple-system, "Segoe UI", Arial;
color:#12323a;
background:var(--white);
-webkit-font-smoothing:antialiased;
line-height:1.5;
padding-top:78px; /* header spacing for fixed topbar */
}
.container{max-width:var(--max-width);margin:0 auto;padding:0 var(--container-padding)}
/* TOPBAR */
.topbar{
position:fixed;top:0;left:0;right:0;height:80px;
background:linear-gradient(180deg,var(--dark-navy),rgba(10,15,42,0.98));
backdrop-filter: blur(8px);
display:flex;align-items:center;z-index:220;
box-shadow:0 4px 30px rgba(0,0,0,0.1);
border-bottom: 1px solid rgba(255,255,255,0.05);
transition: var(--transition);
}
.topbar.scrolled {
height: 70px;
box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.topbar .inner{width:100%;max-width:var(--max-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 var(--container-padding)}
.brand{display:flex;align-items:center;gap:12px;color:var(--white);text-decoration:none}
.brand .logo{font-family:"Oleo Script",cursive;font-size:28px}
.brand .logo .cv{color:var(--white)}
.brand .logo .light{color:var(--accent-yellow)}
/* nav area */
.nav-wrap{display:flex;align-items:center;gap:18px;flex:1;justify-content:center}
.nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.nav a{color:var(--white);text-decoration:none;font-weight:600;padding:8px 12px;border-radius:8px}
.nav a:hover{background:rgba(255,255,255,0.06)}
/* language button (moved outside nav to ensure visibility) */
.lang-area{display:flex;align-items:center;gap:12px;flex:0 0 auto}
#langBtn{
background:var(--accent-yellow);
color:var(--dark-navy);
border:0;padding:10px 14px;border-radius:18px;font-weight:800;
cursor:pointer;font-size:14px;
box-shadow:0 6px 18px rgba(1,5,53,0.18);
}
/* HERO */
.hero{
background: linear-gradient(135deg, var(--bg-hero) 0%, var(--dark-navy) 100%);
color:var(--white);
padding:120px 0 80px;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('http://static.photos/technology/1024x576/42') center/cover no-repeat;
opacity: 0.08;
z-index: 0;
}
.hero .grid{display:flex;gap:36px;align-items:center}
.hero-left{flex:1}
.hero-right{flex:0 0 420px}
.hero-title{
font-family:"Oleo Script",cursive;
font-size:84px;
line-height:0.95;
margin-bottom:12px;
position: relative;
z-index: 1;
animation: fadeInDown 1s ease;
}
.hero-title .cv{color:var(--white)}
.hero-title .light{color:var(--accent-yellow)}
.hero-slogan{font-family:"Oleo Script",cursive;font-size:28px;margin-bottom:12px}
.hero-sub{max-width:760px;font-size:16px;opacity:0.95}
.hero-cta{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:12px;border:0;cursor:pointer;text-decoration:none;font-weight:700}
.btn-primary{background:var(--accent-yellow);color:var(--dark-navy)}
.btn-outline{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,0.12)}
/* Sections & cards */
.section{padding:64px 0}
.section-title{font-family:"Oleo Script",cursive;font-size:36px;color:var(--dark-navy);text-align:center;margin-bottom:8px}
.section-sub{max-width:920px;margin:0 auto;text-align:center;color:#395a58;margin-bottom:28px}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.card{
background:var(--card-bg);
border-radius:16px;
padding:32px 28px;
border:1px solid rgba(255,255,255,0.1);
box-shadow:0 15px 35px rgba(0,0,0,0.1);
min-height:220px;
transition: var(--transition);
position: relative;
overflow: hidden;
backdrop-filter: blur(5px);
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: var(--accent-yellow);
}
.card h3{color:var(--dark-navy);font-size:18px;margin-bottom:10px}
.card p{color:#234b49;font-size:15px;line-height:1.45}
.feature-hero{display:flex;gap:20px;align-items:center;background:linear-gradient(180deg,#fff,#f8fffd);padding:24px;border-radius:12px;box-shadow:0 18px 48px rgba(3,10,20,0.06);border:1px solid rgba(2,10,20,0.03)}
.hub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:18px}
.hub-card{background:var(--white);padding:20px;border-radius:12px;box-shadow:0 18px 48px rgba(3,10,20,0.06);border:1px solid rgba(2,10,20,0.03)}
.partners{display:flex;gap:18px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:18px}
.partner-logo{width:140px;height:60px;background:#fff;padding:6px;border-radius:8px;object-fit:contain}
.network-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.entrepreneur-hero{display:flex;gap:20px;align-items:center;background:linear-gradient(180deg,#fff,#fffdf8);padding:24px;border-radius:12px;box-shadow:0 18px 48px rgba(3,10,20,0.06);border:1px solid rgba(2,10,20,0.03);margin-top:18px}
.entrepreneur-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.entre-card{background:var(--card-bg);padding:18px;border-radius:12px;border:1px solid rgba(2,10,20,0.04)}
.footer{background:var(--dark-navy);color:var(--white);padding:36px 0;margin-top:18px}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:18px;max-width:var(--max-width);margin:0 auto;padding:0 24px}
.footer-grid h5{color:var(--accent-yellow);font-family:"Oleo Script",cursive;margin-bottom:8px}
/* responsive tweaks */
@media (max-width:1000px){
.features-grid{grid-template-columns:1fr 1fr}
.hub-grid{grid-template-columns:1fr}
.hero .grid{flex-direction:column}
.feature-hero{flex-direction:column}
.entrepreneur-hero{flex-direction:column}
.entrepreneur-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
.mobile-lang-btn {
position: fixed;
top: 20px;
left: 12px;
z-index: 1000;
}
.mobile-lang-btn button {
background: var(--accent-yellow);
color: var(--dark-navy);
border: 0;
padding: 8px 12px;
border-radius: 18px;
font-weight: 800;
cursor: pointer;
font-size: 14px;
box-shadow: 0 6px 18px rgba(1,5,53,0.18);
}
.features-grid{grid-template-columns:1fr}
.entrepreneur-grid{grid-template-columns:1fr}
.network-grid{grid-template-columns:1fr}
.footer-grid{grid-template-columns:1fr 1fr}
body{padding-top:70px}
/* Mobile topbar fixes */
.topbar {
height: 70px;
padding: 0 16px;
overflow: hidden;
}
.topbar .inner {
padding: 0 12px;
width: 100%;
}
.brand {
flex: 1;
min-width: 0;
}
.brand .logo {
font-size: 22px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.nav-wrap {
display: none; /* Hide nav on mobile */
position: absolute;
top: 70px;
left: 0;
right: 0;
background: var(--dark-navy);
flex-direction: column;
padding: 16px;
gap: 8px;
border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-wrap.show {
display: flex;
}
.nav {
flex-direction: column;
width: 100%;
gap: 8px;
}
.nav a {
padding: 12px;
background: rgba(255,255,255,0.05);
}
.lang-area {
margin-left: auto;
padding-right: 12px;
}
.mobile-menu-toggle {
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
color: white;
cursor: pointer;
z-index: 10;
position: fixed;
top: 20px;
right: 12px;
}
}
/* RTL tweaks */
[dir="rtl"] .nav{direction:rtl}
[dir="rtl"] .nav a{margin-left:0;margin-right:12px}
[dir="rtl"] .hero-left, [dir="rtl"] .feature-hero .left{ text-align:right }
</style>
<!-- Three.js Scripts -->
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/loaders/GLTFLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.11.4/dist/gsap.min.js"></script>
</head>
<body>
<!-- Mobile menu toggle -->
<div class="mobile-menu-toggle">
<svg width="24" height="24" viewBox="0 0 24 24">
<path fill="currentColor" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"/>
</svg>
</div>
<!-- Mobile language button -->
<div class="mobile-lang-btn">
<button id="mobileLangBtn" aria-pressed="false">عربي</button>
</div>
<!-- TOPBAR -->
<div class="topbar" role="banner">
<div class="inner container">
<a class="brand" href="#" aria-label="C.V Light home">
<div class="logo"><span class="logo"><span class="cv">C.V</span> <span class="light">Light</span></span></div>
</a>
<div class="nav-wrap" style="gap:20px;">
<nav class="nav" aria-label="Main Navigation">
<a href="#features" data-en="Features" data-ar="المميزات">Features</a>
<a href="#entrepreneurship" data-en="Entrepreneurship" data-ar="ريادة الأعمال">Entrepreneurship</a>
<a href="#mentors" data-en="Join as Mentor" data-ar="انضم كمرشد">Join as Mentor</a>
<a href="#institutes" data-en="Institutes" data-ar="المعاهد">Institutes</a>
<a href="#companies" data-en="Companies" data-ar="الشركات">Companies</a>
<a href="#partners" data-en="Partners" data-ar="شركاؤنا">Partners</a>
</nav>
<!-- LANGUAGE BUTTON (visible & outside nav) -->
<div class="lang-area">
<button id="langBtn" aria-pressed="false">عربي</button>
</div>
</div>
</div>
</div>
<!-- 3D INTERACTIVE HERO -->
<header class="hero" role="banner" style="background: linear-gradient(135deg, var(--bg-hero) 0%, var(--dark-navy) 100%);">
<div class="container" style="position: relative; height: 100%;">
<!-- 3D Student Character Container -->
<div id="characterContainer" style="position: absolute; width: 350px; height: 600px; right: 5%; bottom: 0; z-index: 5;">
<!-- Three.js will render student character here -->
</div>
<!-- Feature Steps -->
<div id="featureSteps" style="position: absolute; bottom: 100px; left: 5%; width: 40%; z-index: 10;">
<div class="feature-card animate__animated" data-step="1">
<h3>AI Career Roadmap</h3>
<p>Our AI guides you step-by-step to your dream job with personalized milestones and skill recommendations.</p>
</div>
<div class="feature-card animate__animated" data-step="2" style="display:none">
<h3>CV Editing Tool</h3>
<p>Real-time CV editing with European standards and ATS optimization to get your resume noticed.</p>
</div>
<div class="feature-card animate__animated" data-step="3" style="display:none">
<h3>Skill Development</h3>
<p>Access bite-sized courses, books, and TikTok-style videos to build in-demand skills quickly.</p>
</div>
<div class="feature-card animate__animated" data-step="4" style="display:none">
<h3>Job Matching</h3>
<p>AI matches you with relevant jobs and internships based on your skills and career goals.</p>
</div>
<div class="feature-card animate__animated" data-step="5" style="display:none">
<h3>Mentorship</h3>
<p>Connect with industry experts and entrepreneurs who can guide your career growth.</p>
</div>
</div>
<!-- Navigation Controls -->
<div class="step-nav" style="position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10;">
<button class="step-dot active" data-step="1"></button>
<button class="step-dot" data-step="2"></button>
<button class="step-dot" data-step="3"></button>
<button class="step-dot" data-step="4"></button>
<button class="step-dot" data-step="5"></button>
</div>
</div>
<div class="container grid">
<div class="hero-left">
<div class="hero-title"><span class="cv">C.V</span> <span class="light">Light</span></div>
<div class="hero-slogan"><span class="light">Light</span> Your Future</div>
<p class="hero-sub" data-en="AI-powered career guidance, European-standard CV builder, personalized roadmaps, mentorship and job matching — built to make students globally competitive." data-ar="منصة إرشاد مهني مدعومة بالذكاء الاصطناعي، منشئ سيرة ذاتية بمعايير أوروبية، خرائط طريق مخصصة، إرشاد وتوصيل للوظائف — لبناء مستقبل عالمي للطلاب."></p>
<div class="hero-cta">
<a class="btn btn-primary" href="#features" data-en="Get Started" data-ar="ابدأ الآن"></a>
<a class="btn btn-outline" href="#mentors" data-en="Join as Mentor" data-ar="انضم كمرشد"></a>
</div>
<div style="margin-top:14px">
<span class="yellow-box" style="background:var(--accent-yellow);color:var(--dark-navy);padding:8px 12px;border-radius:10px;font-weight:800" data-en="Start early — strategy, mentorship & real roadmaps" data-ar="ابدأ مبكراً — استراتيجية، إرشاد وخارطة طريق حقيقية"></span>
</div>
</div>
<div class="hero-right">
<div style="background:linear-gradient(180deg,#ffffff 0%, #f6fffd 100%);border-radius:12px;padding:18px;color:#083433">
<h4 data-en="Why C.V Light?" data-ar="لماذا C.V Light؟"></h4>
<p data-en="We prepare students to be Senior-level professionals for global jobs by combining European CV standards, practical training and employer partnerships." data-ar="نؤهل الطلاب ليصبحوا محترفين بمستوى Senior عالمي من خلال سِيَر بمعايير أوروبية، تدريب عملي وشراكات توظيف."></p>
<div style="margin-top:10px">
<a class="btn btn-primary" href="#features" data-en="Explore Features" data-ar="استكشف المميزات"></a>
</div>
</div>
</div>
</div>
</header>
<!-- 3D Character Animation Script -->
<script>
document.addEventListener('DOMContentLoaded', function() {
// Initialize Three.js scene
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, 300/500, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true });
renderer.setSize(300, 500);
document.getElementById('characterContainer').appendChild(renderer.domElement);
// Lighting
const ambientLight = new THREE.AmbientLight(0xffffff, 0.6);
scene.add(ambientLight);
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);
directionalLight.position.set(0, 1, 1);
scene.add(directionalLight);
// Character loader
const loader = new THREE.GLTFLoader();
let character;
loader.load('https://cdn.jsdelivr.net/gh/mrdoob/three.js@r132/examples/models/gltf/Soldier.glb', (gltf) => {
character = gltf.scene;
character.scale.set(0.8, 0.8, 0.8);
character.position.y = -1.5;
// Change character appearance to look like a student
character.traverse(function(child) {
if (child.isMesh) {
// Make uniform dark blue (like student clothes)
if (child.material) {
child.material.color.setHex(0x1a4a5a);
}
}
});
scene.add(character);
// Start animation sequence
animateCharacter(1);
});
camera.position.z = 5;
// Animation function
function animateCharacter(step) {
const cards = document.querySelectorAll('.feature-card');
cards.forEach(card => card.style.display = 'none');
document.querySelector(`.feature-card[data-step="${step}"]`).style.display = 'block';
// Animate character based on step
switch(step) {
case 1:
// Career roadmap animation - student looking at roadmap
gsap.to(character.rotation, { y: Math.PI/4, duration: 1 });
gsap.to(character.position, { x: 0.5, duration: 1 });
gsap.to(character.rotation, { x: -0.2, duration: 0.5 }); // Looking down
break;
case 2:
// CV editing animation - student typing on laptop
gsap.to(character.rotation, { y: -Math.PI/4, duration: 1 });
gsap.to(character.position, { x: -0.5, duration: 1 });
gsap.to(character.rotation, { z: 0.1, duration: 0.5 }); // Typing motion
break;
case 3:
// Skill development animation - student watching video
gsap.to(character.rotation, { y: 0, duration: 1 });
gsap.to(character.position, { x: 0, duration: 1 });
gsap.to(character.rotation, { x: 0.3, duration: 0.5 }); // Looking up at screen
break;
case 4:
// Job matching animation - student excited about matches
gsap.to(character.position, { y: 0.3, duration: 0.3, yoyo: true, repeat: 1 }); // Jump motion
gsap.to(character.rotation, { x: 0.2, duration: 0.3 }); // Happy head tilt
break;
case 5:
// Mentorship animation - student shaking hand
gsap.to(character.rotation, { y: Math.PI/2, duration: 1 });
gsap.to(character.position, { x: 0.8, z: -0.5, duration: 1 }); // Move forward
break;
}
}
// Navigation controls
document.querySelectorAll('.step-dot').forEach(button => {
button.addEventListener('click', function() {
const step = parseInt(this.dataset.step);
document.querySelectorAll('.step-dot').forEach(btn => btn.classList.remove('active'));
this.classList.add('active');
animateCharacter(step);
});
});
// Auto-rotate and animate
function animate() {
requestAnimationFrame(animate);
if (character) {
character.rotation.y += 0.005;
// Slight breathing animation
character.position.y = -1.5 + Math.sin(Date.now() * 0.002) * 0.05;
}
renderer.render(scene, camera);
}
animate();
});
</script>
<!-- FEATURES -->
<section id="features" class="section" aria-labelledby="features-title">
<div class="container">
<h2 id="features-title" class="section-title" data-en="Our Features" data-ar="مميزاتنا"></h2>
<p class="section-sub" data-en="Everything a student needs to go from curious beginner to senior-level professional — CV, skills, roadmaps, mentorship, & real job pipelines." data-ar="كل ما يحتاجه الطالب من مبتدئ إلى محترف — سيرة، مهارات، خرائط طريق، إرشاد وشراكات توظيف."></p>
<div class="feature-hero" aria-hidden="false">
<div class="left">
<h3 class="kicker" data-en="End-to-end Career System" data-ar="نظام مهني متكامل"></h3>
<p data-en="We combine short educational videos, gamified skill practice, personalized roadmaps and European-standard CV building — then connect you to employers and scholarships." data-ar="نجمّع فيديوهات تعليمية قصيرة، تدريب تفاعلي للأدوار والمهارات، خرائط طريق مخصصة وبناء سيرة ذاتية بمعايير أوروبية — وبعدها نربطك بشركات ومنح."></p>
<ul style="margin-top:12px;color:#104d4a">
<li data-en="<strong>Video Library:</strong> Short, focused videos to build knowledge and career awareness." data-ar="<strong>مكتبة فيديو:</strong> فيديوهات قصيرة ومركزة لرفع الثقافة المهنية."></li>
<li data-en="<strong>Play-to-Learn:</strong> Gamified lessons & simulations to practice soft & technical skills." data-ar="<strong>اللعب للتعلم:</strong> دروس تفاعلية ومحاكاة لبناء المهارات الناعمة والتقنية."></li>
<li data-en="<strong>Roadmap Builder:</strong> Step-by-step courses and milestones tailored to your target job." data-ar="<strong>منشئ خارطة الطريق:</strong> كورسات ومعالم خطوة بخطوة حسب الوظيفة المستهدفة."></li>
<li data-en="<strong>Institute Matches:</strong> Suggested institutes & scholarships aligned with your roadmap." data-ar="<strong>ترشيحات المعاهد:</strong> معاهد ومنح تناسب خريطتك المهنية."></li>
<li data-en="<strong>AI CV Builder:</strong> ATS-friendly CVs following European formatting and global best practices." data-ar="<strong>منشئ سيرة بالذكاء الاصطناعي:</strong> سِيَر متوافقة مع أنظمة التوظيف ومعايير أوروبية."></li>
<li data-en="<strong>Networking & Apply:</strong> Share CVs with relevant companies in one click." data-ar="<strong>التواصل والتقديم:</strong> شارك سيرتك مع شركات متطابقة بضغطة واحدة."></li>
<li data-en="<strong>HR Feedback Loop:</strong> HR sends rejection reasons and we guide students how to improve." data-ar="<strong>دورة ملاحظات الـHR:</strong> الموارد البشرية ترجع أسباب الرفض ونرشدك لتحسين سيرتك."></li>
<li data-en="<strong>Global Senior Training:</strong> Training & standards prepare you for international senior roles." data-ar="<strong>تأهيل لمستوى عالمي:</strong> تدريب ومعايير تؤهلك لوظائف Senior عالمية."></li>
<li data-en="<strong>Entrepreneurship for Small Founders:</strong> We list local & international competitions, help form professional teams, and connect founders with instructors & advisors across all needed areas." data-ar="<strong>ريادة الأعمال للمؤسسين الصغار:</strong> نعرض المسابقات المحلية والدولية المناسبة لأفكاركم، نساعد في تكوين فريق محترف، ونربطكم بمدرّسين ومستشارين في كافة المجالات المطلوبة."></li>
</ul>
</div>
<div class="right center">
<img src="http://static.photos/office/640x360/42" alt="App preview showing employees" class="animate__animated animate__fadeInRight" style="width:100%;border-radius:16px;object-fit:cover;box-shadow: 0 25px 50px rgba(0,0,0,0.2);">
</div>
</div>
<div class="features-grid" role="list">
<div class="card" role="listitem">
<h3 data-en="AI-Powered CV Builder" data-ar="منشئ سيرة بالذكاء الاصطناعي"></h3>
<p data-en="Create an ATS-ready CV that follows European standards, includes exportable templates and LinkedIn summaries." data-ar="انشئ سيرة جاهزة لأنظمة التوظيف بمعايير أوروبية، قوالب قابلة للتصدير وملخص لينكدإن."></p>
</div>
<div class="card" role="listitem">
<h3 data-en="Play-to-Learn (Soft Skills)" data-ar="اللعب للتعلم (المهارات الناعمة)"></h3>
<p data-en="Micro-games & simulations to develop communication, teamwork and interview skills — results are shareable." data-ar="ألعاب ميكرو ومحاكاة لتطوير التواصل والعمل الجماعي ومهارات المقابلات — يمكن مشاركة النتائج."></p>
</div>
<div class="card" role="listitem">
<h3 data-en="Personal Career Roadmaps" data-ar="خرائط طريق مهنية"></h3>
<p data-en="Select your target job and receive step-by-step courses, skills and milestones — we recommend institutes for each step." data-ar="اختر وظيفتك المستهدفة واحصل على كورسات وخطوات ومعالم — نرشّح معاهد مناسبة لكل مرحلة."></p>
</div>
<div class="card" role="listitem">
<h3 data-en="Institute & Scholarship Matching" data-ar="ترشيح المعاهد والمنح"></h3>
<p data-en="Curated matches and partner discounts — promoted placements for partner institutes." data-ar="ترشيحات منسقة وخصومات شريكة — عقود ترويجية للمعاهد الشريكة."></p>
</div>
<div class="card" role="listitem">
<h3 data-en="Mentorship Network" data-ar="شبكة المرشدين"></h3>
<p data-en="Verified mentors who review portfolios, run mock interviews and provide career guidance." data-ar="مرشدون موثوقون يراجعون المحافظ ويقدمون مقابلات تجريبية وتوجيه مهني."></p>
</div>
<div class="card" role="listitem">
<h3 data-en="One-Click CV Share & Tracker" data-ar="مشاركة السيرة ومتعقب الطلبات"></h3>
<p data-en="Send your CV to multiple matched employers with one click and track the status of each application." data-ar="أرسل سيرتك لعدة أصحاب عمل متطابقين بضغطة وتتبع حالة كل طلب."></p>
</div>
</div>
</div>
</section>
<!-- ENTREPRENEURSHIP (NEW SECTION) -->
<section id="entrepreneurship" class="section" aria-labelledby="entrepreneurship-title">
<div class="container">
<h2 id="entrepreneurship-title" class="section-title" data-en="Entrepreneurship for Small Founders" data-ar="ريادة الأعمال للمؤسسين الصغار"></h2>
<p class="section-sub" data-en="Support, exposure and practical tools for early-stage founders — competitions, team-building, instructors and advisors." data-ar="دعم، ظهور وأدوات عملية للمؤسسين في المراحل المبكرة — مسابقات، تكوين فرق، مدرسين ومستشارين."></p>
<div class="entrepreneur-hero">
<div class="left">
<h3 data-en="What we offer to founders" data-ar="ما نقدمه للمؤسسين"></h3>
<p data-en="We help early-stage founders turn ideas into real products and teams. Through C.V Light we offer promotion, mentorship, instructor access and connections to competitions and funding opportunities." data-ar="نساعد المؤسسين في تحويل الفكرة إلى منتج وفريق حقيقي. عبر C.V Light نقدم الترويج، الإرشاد، الوصول إلى مدرّسين وروّاد، وربطكم بمسابقات وفرص تمويلية."></p>
<ul style="margin-top:12px;color:#104d4a">
<li data-en="Competition Listings: We list local & international competitions and grant calls tailored to your idea and sector." data-ar="قوائم المسابقات: نعرض المسابقات والجوائز المحلية والدولية المناسبة لفكرتك وقطاعك."></li>
<li data-en="Team Formation Support: We help you find co-founders and form a balanced, professional team." data-ar="دعم تكوين الفريق: نساعدك في إيجاد شركاء مؤسسين وبناء فريق محترف متكامل."></li>
<li data-en="Instructor & Advisor Network: Access instructors and advisors across product, marketing, tech, legal and growth." data-ar="شبكة مدرسين ومستشارين: وصلات لمدرّسين ومستشارين في المنتج، التسويق، التقنية، القانون والنمو."></li>
<li data-en="Pitch & Demo Support: Coaching, pitch deck templates and demo-day prep to increase your acceptance chances." data-ar="دعم العرض والبراءة: تدريب، قوالب عرض واستعداد ليوم العروض لرفع فرص قبول مشروعك."></li>
<li data-en="Visibility & Promotion: Featured founder tiles, success stories and promotional campaigns inside the app." data-ar="الظهور والترويج: بطاقات مؤسسين مميزة، قصص نجاح وحملات ترويجية داخل التطبيق."></li>
</ul>
<div style="margin-top:14px">
<a class="btn btn-primary" href="mailto:founders@cvlight.com?subject=Founder%20Support%20Inquiry" data-en="Contact Us Now" data-ar="تواصل معنا الآن"></a>
</div>
</div>
<div class="right center">
<img src="http://static.photos/office/640x360/43" alt="Entrepreneur support with employees" class="animate__animated animate__fadeInRight" style="width:100%;border-radius:16px;object-fit:cover;box-shadow: 0 25px 50px rgba(0,0,0,0.2);">
</div>
</div>
<div class="entrepreneur-grid">
<div class="entre-card">
<h4 data-en="Competitions & Grants" data-ar="المسابقات والمنح"></h4>
<p data-en="Daily-updated feed of relevant competitions and grants with eligibility notes and deadlines." data-ar="تغذية يومية بأحدث المسابقات والمنح المناسبة مع ملاحظات الأهلية والمواعيد النهائية."></p>
</div>
<div class="entre-card">
<h4 data-en="Team & Talent Match" data-ar="تكوين الفريق"></h4>
<p data-en="Find co-founders, interns or early hires from our student base with matching skills and motivation." data-ar="إيجاد شركاء مؤسسين، متدربين أو موظفين أوّليين من قاعدة طلابنا بمهارات وحوافز متطابقة."></p>
</div>
<div class="entre-card">
<h4 data-en="Instructors & Workshops" data-ar="مدرّسون وورش عمل"></h4>
<p data-en="Book expert instructors for workshops across tech, product, marketing and business operations." data-ar="حجز مدرسين خبراء لورش في التقنية، المنتج، التسويق وعمليات الأعمال."></p>
</div>
</div>
</div>
</section>
<!-- (rest of page: mentors, institutes, companies, networking, partners, CTA, footer)
kept same structure and data-en/data-ar pairs as before for full translation support.
For brevity I keep them identical to your last verified page - if you want I can paste the entire file again. -->
<!-- JOIN AS MENTOR -->
<section id="mentors" class="section" aria-labelledby="mentors-title">
<div class="container">
<h2 id="mentors-title" class="section-title" data-en="Join as a Mentor" data-ar="انضم كمرشد"></h2>
<p class="section-sub" data-en="Share your expertise, shape the next generation and get paid for mentoring." data-ar="شارك خبرتك، ساهم في بناء الجيل القادم واحصل على مقابل مالي مقابل الإرشاد."></p>
<div class="hub-grid">
<div class="hub-card">
<h4 data-en="Benefits for Mentors" data-ar="فوائد الانضمام كمرشد"></h4>
<ul style="margin-left:18px;color:#234b49">
<li data-en="Grow your professional network and visibility among early-career talent." data-ar="وسع شبكتك المهنية واحصل على ظهور أمام المواهب المبكرة."></li>
<li data-en="Monetize mentorship through paid sessions, workshops and masterclasses." data-ar="احصل على دخل من خلال جلسات مدفوعة وورش عمل ودورات."></li>
<li data-en="Access a mentor dashboard to manage sessions and mentees." data-ar="لوحة تحكم لإدارة الجلسات والمتدربين."></li>
<li data-en="Discover hiring and partnership opportunities within the platform." data-ar="اكتشف فرص توظيف وشراكات عبر المنصة."></li>
</ul>
<div style="margin-top:14px">
<a class="btn btn-primary" href="https://docs.google.com/forms/d/e/1FAIpQLSfdQp2s_xYZfwitIIrgGMEn8uwVyUXQ8N1sCw4VMTWseqZI5g/viewform?usp=sharing" target="_blank" data-en="Register as Mentor" data-ar="سجل كمرشد"></a>
</div>
</div>
<div class="hub-card">
<h4 data-en="Mentor Tools" data-ar="أدوات المرشد"></h4>
<p data-en="Scheduling, feedback templates, mentee analytics and priority visibility to students in your specialty." data-ar="أدوات للحجز، قوالب ملاحظات، تحليلات المتدربين وأولوية الظهور للطلاب في تخصصك."></p>
<div style="margin-top:12px">
<a class="btn btn-outline" href="#contact" data-en="Contact Partnership Team" data-ar="تواصل مع فريق الشراكات"></a>
</div>
</div>
</div>
</div>
</section>
<!-- INSTITUTES -->
<section id="institutes" class="section" aria-labelledby="institutes-title">
<div class="container">
<h2 id="institutes-title" class="section-title" data-en="For Training Institutes" data-ar="للمعاهد التدريبية"></h2>
<p class="section-sub" data-en="Why advertise & partner with C.V Light" data-ar="لماذا تعلن وتتعاون مع C.V Light"></p>
<div class="feature-hero" style="margin-top:18px">
<div class="left">
<h3 data-en="Massive, Targeted Student Database" data-ar="قاعدة طلابية ضخمة ومحددة الهدف"></h3>
<p data-en="Reach thousands of students actively seeking courses and career guidance. Promote programs targeted by roadmap, major and location." data-ar="وصل لآلاف الطلاب الباحثين عن دورات وإرشاد مهني مع استهداف حسب خارطة الطريق والتخصص والموقع."></p>
<ul style="margin-top:12px;color:#104d4a">
<li data-en="Targeted Ads per major & roadmap" data-ar="إعلانات مستهدفة حسب التخصص وخارطة الطريق"></li>
<li data-en="Featured Tiles inside app & web" data-ar="أجزاء دعائية مميزة داخل التطبيق والموقع"></li>
<li data-en="Conversion tracking & reporting" data-ar="تقارير وتحليلات عن الأداء والتحويلات"></li>
<li data-en="Co-branded bootcamps & scholarships" data-ar="معسكرات وبرامج مشتركة ومنح بالتعاون"></li>
</ul>
<div style="margin-top:14px">
<a class="btn btn-primary" href="mailto:partners@cvlight.com?subject=Institute%20Partnership%20Inquiry" data-en="Contact Us Now" data-ar="تواصل معنا الآن"></a>
</div>
</div>
<div class="right center">
<img src="http://static.photos/office/640x360/44" alt="Professional training session" class="animate__animated animate__fadeInRight" style="width:100%;border-radius:16px;object-fit:cover;box-shadow: 0 25px 50px rgba(0,0,0,0.2);">
</div>
</div>
<div style="margin-top:18px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center">
<img class="partner-logo" src="http://static.photos/education/200x200/1" alt="Future Skills" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
<img class="partner-logo" src="http://static.photos/technology/200x200/2" alt="DataPro" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
<img class="partner-logo" src="http://static.photos/education/200x200/3" alt="DesignLab" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
</div>
</div>
</section>
<!-- COMPANIES -->
<section id="companies" class="section" aria-labelledby="companies-title" style="background:linear-gradient(180deg,#f8fffb,#f2fdfb)">
<div class="container">
<h2 id="companies-title" class="section-title" data-en="For Companies" data-ar="للشركات"></h2>
<p class="section-sub" data-en="Hire trained talent & upskill your workforce" data-ar="وظف كفاءات مدربة وطور موظفيك"></p>
<div class="hub-grid">
<div class="hub-card">
<h4 data-en="Hire Trained Talent" data-ar="توظيف كفاءات مدربة"></h4>
<p data-en="We provide candidates trained in soft skills and essential technical skills, ready to join and contribute immediately." data-ar="نوفر مرشحين مدربين على المهارات الشخصية والتقنية الضرورية، جاهزين للانضمام والمساهمة فورًا."></p>
<div style="margin-top:12px">
<a class="btn btn-primary" href="mailto:employer@cvlight.com?subject=Employer%20Partnership%20Inquiry" data-en="Contact Us Now" data-ar="تواصل معنا الآن"></a>
</div>
</div>
<div class="hub-card">
<h4 data-en="Upskill & Employer Branding" data-ar="تطوير الموظفين وإبراز العلامة التجارية"></h4>
<p data-en="Run large-scale upskilling programs for your workforce at competitive rates and showcase your brand to targeted talent." data-ar="قدّم برامج تطوير شاملة للعمالة الحالية بأسعار منافسة وعرّض علامتك لشريحة مستهدفة من المواهب."></p>
<div style="margin-top:12px">
<a class="btn btn-outline" href="#contact" data-en="Request Employer Demo" data-ar="اطلب عرض توضيحي"></a>
</div>
</div>
</div>
</div>
</section>
<!-- NETWORKING -->
<section id="networking" class="section">
<div class="container">
<h2 class="section-title" data-en="Networking & One-Click CV Share" data-ar="التواصل ومشاركة السيرة بضغطة"></h2>
<p class="section-sub" data-en="Send your CV to matched companies, track applications and receive HR feedback to improve." data-ar="أرسل سيرتك للشركات المتطابقة، تابع طلباتك وتلقى ملاحظات الموارد البشرية للتحسين."></p>
<div class="network-grid">
<div class="card">
<h3 data-en="One-Click Distribution" data-ar="التوزيع بضغطة"></h3>
<p data-en="Distribute your CV to a curated list of employers matched to your roadmap." data-ar="وزّع سيرتك على قائمة شركات متطابقة مع خريطتك المهنية."></p>
</div>
<div class="card">
<h3 data-en="Application Tracker" data-ar="متعقب الطلبات"></h3>
<p data-en="Manage all applications, interviews and offers in one place." data-ar="إدارة كل الطلبات والمقابلات والعروض من مكان واحد."></p>
</div>
<div class="card">
<h3 data-en="HR Feedback Loop" data-ar="دورة ملاحظات الموارد البشرية"></h3>
<p data-en="If rejected, HR provides feedback and we guide you to improve and reapply." data-ar="في حالة الرفض، يقدم HR ملاحظات ونرشدك لتحسين السيرة وإعادة التقديم."></p>
</div>
</div>
</div>
</section>
<!-- PARTNERS -->
<section id="partners" class="section">
<div class="container center">
<h2 class="section-title" data-en="Our Partners" data-ar="شركاؤنا"></h2>
<div class="partners" aria-hidden="false">
<img class="partner-logo" src="http://static.photos/finance/200x200/1" alt="Partner 1" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
<img class="partner-logo" src="http://static.photos/technology/200x200/2" alt="Partner 2" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
<img class="partner-logo" src="http://static.photos/education/200x200/3" alt="Partner 3" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
<img class="partner-logo" src="http://static.photos/office/200x200/4" alt="Partner 4" style="filter: grayscale(100%) contrast(0.5) brightness(1.2); transition: var(--transition);">
</div>
</div>
</section>
<!-- CTA -->
<section class="section" style="background:linear-gradient(90deg,var(--bg-hero),#1b5a59);color:var(--white)">
<div class="container center">
<h2 class="section-title" style="color:var(--white)" data-en="Ready to Light Your Future?" data-ar="هل أنت جاهز لتنوير مستقبلك؟"></h2>
<p style="color:rgba(255,255,255,0.92);max-width:720px;margin:0 auto 18px" data-en="Join thousands of students building global careers with practical roadmaps, trusted mentors and employer partnerships." data-ar="انضم لآلاف الطلاب الذين يبنون مسيراتهم المهنية العالمية بخارطات طريق عملية ومرشدين موثوقين وشراكات توظيف."></p>
<a class="btn btn-primary" href="#mentors" data-en="Get Started" data-ar="ابدأ الآن"></a>
</div>
</section>
<!-- FOOTER -->
<footer class="footer">
<div class="container footer-grid">
<div>
<h5 data-en="About C.V Light" data-ar="عن C.V Light">About C.V Light</h5>
<div data-en="C.V Light prepares students for global careers through European-standard CVs, hands-on training and employer pipelines." data-ar="C.V Light يؤهل الطلاب لوظائف عالمية من خلال سِيَر بمعايير أوروبية وتدريب عملي وشراكات توظيف."></div>
</div>
<div>
<h5 data-en="For Institutes" data-ar="للمعاهد">For Institutes</h5>
<div><a href="#institutes" data-en="Advertise & Partner" data-ar="الإعلان والشراكة"></a></div>
<div><a href="mailto:partners@cvlight.com">partners@cvlight.com</a></div>
</div>
<div>
<h5 data-en="For Companies" data-ar="للشركات">For Companies</h5>
<div><a href="#companies" data-en="Hire Trained Talent" data-ar="توظيف كفاءات مدربة"></a></div>
<div><a href="mailto:employer@cvlight.com">employer@cvlight.com</a></div>
</div>
<div>
<h5 data-en="Quick Links" data-ar="روابط سريعة">Quick Links</h5>
<div><a href="#features" data-en="Features" data-ar="المميزات"></a></div>
<div><a href="#mentors" data-en="Mentors" data-ar="المرشدون"></a></div>
<div><a href="#partners" data-en="Partners" data-ar="الشركاء"></a></div>
</div>
</div>
<div style="text-align:center;margin-top:36px;color:rgba(255,255,255,0.9);padding-bottom:24px;font-size:14px;letter-spacing:0.5px;">
© <span id="year"></span> <span style="font-family:'Oleo Script',cursive;color:#fff">C.V</span> <span style="font-family:'Oleo Script',cursive;color:var(--accent-yellow)">Light</span> — <span style="font-family:'Oleo Script',cursive;color:#fff"><span style="color:var(--accent-yellow)">Light</span> Your Future</span>
</div>
</footer>
<script>
// Mobile menu and language functionality
document.addEventListener('DOMContentLoaded', function() {
const mobileToggle = document.querySelector('.mobile-menu-toggle');
const navWrap = document.querySelector('.nav-wrap');
const langBtn = document.getElementById('langBtn');
// Show/hide mobile elements
function checkMobile() {
if (window.innerWidth <= 700) {
mobileToggle.style.display = 'flex';
navWrap.style.display = 'none';
langBtn.style.display = 'none';
} else {
mobileToggle.style.display = 'none';
navWrap.style.display = 'flex';
langBtn.style.display = 'block';
}
}
// Toggle menu visibility
mobileToggle.addEventListener('click', function() {
navWrap.style.display = navWrap.style.display === 'flex' ? 'none' : 'flex';
});
// Mobile language button functionality
const mobileLangBtn = document.getElementById('mobileLangBtn');
if (mobileLangBtn) {
mobileLangBtn.addEventListener('click', function() {
applyLanguage(currentLang === 'en' ? 'ar' : 'en');
});
}
// Initial check
checkMobile();
window.addEventListener('resize', checkMobile);
});
// Scroll effect for header
window.addEventListener('scroll', function() {
const topbar = document.querySelector('.topbar');
if (window.scrollY > 50) {
topbar.classList.add('scrolled');
} else {
topbar.classList.remove('scrolled');
}
});
// Intersection Observer for animations
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate__animated', 'animate__fadeInUp');
}
});
}, {threshold: 0.1});
document.querySelectorAll('.card, .section-title, .hub-card').forEach(el => {
observer.observe(el);
});
/* Translation logic (works across the whole page).
Initial language detected from navigator; saved to localStorage.
Button visible and toggles languages.
*/
const DEFAULT_LANG = (navigator.language && navigator.language.startsWith('ar')) ? 'ar' : 'en';
let currentLang = localStorage.getItem('cvlight_lang') || DEFAULT_LANG;
const langBtn = document.getElementById('langBtn');
function applyLanguage(lang){
document.querySelectorAll('[data-en]').forEach(el=>{
const en = el.getAttribute('data-en');
const ar = el.getAttribute('data-ar');
if(lang === 'ar' && ar !== null){
el.innerHTML = ar;
} else if(lang === 'en' && en !== null) {
el.innerHTML = en;
}
});
// direction & button label
if(lang === 'ar'){
document.documentElement.dir = 'rtl';
document.documentElement.lang = 'ar';
langBtn.innerText = 'EN';
langBtn.setAttribute('aria-pressed','true');
if (document.getElementById('mobileLangBtn')) {
document.getElementById('mobileLangBtn').innerText = 'EN';
document.getElementById('mobileLangBtn').setAttribute('aria-pressed','true');
}
} else {
document.documentElement.dir = 'ltr';
document.documentElement.lang = 'en';
langBtn.innerText = 'عربي';
langBtn.setAttribute('aria-pressed','false');
if (document.getElementById('mobileLangBtn')) {
document.getElementById('mobileLangBtn').innerText = 'عربي';
document.getElementById('mobileLangBtn').setAttribute('aria-pressed','false');
}
}
localStorage.setItem('cvlight_lang', lang);
currentLang = lang;
}
// Event
langBtn.addEventListener('click', ()=> applyLanguage(currentLang === 'en' ? 'ar' : 'en'));
// Make sure the language button is focused/visible on load for accessibility
langBtn.style.outline = 'none';
// Sync mobile language button with main button
const mobileLangBtn = document.getElementById('mobileLangBtn');
if (mobileLangBtn) {
mobileLangBtn.addEventListener('click', () => {
applyLanguage(currentLang === 'en' ? 'ar' : 'en');
langBtn.click(); // Trigger the main button as well
});
// Update mobile button text when language changes
function updateMobileLangBtn() {
mobileLangBtn.innerText = currentLang === 'en' ? 'عربي' : 'EN';
mobileLangBtn.setAttribute('aria-pressed', currentLang === 'ar' ? 'true' : 'false');
}
// Show/hide mobile language button
function checkMobileLangBtn() {
const mobileLangBtnContainer = document.querySelector('.mobile-lang-btn');
if (window.innerWidth <= 700) {
mobileLangBtnContainer.style.display = 'block';
updateMobileLangBtn();
} else {
mobileLangBtnContainer.style.display = 'none';
}
}
window.addEventListener('resize', checkMobileLangBtn);
checkMobileLangBtn();
}
// initial
applyLanguage(currentLang);
// Show/hide mobile language button based on screen size
function checkMobileLangBtn() {
const mobileLangBtn = document.querySelector('.mobile-lang-btn');
if (window.innerWidth <= 700) {
mobileLangBtn.style.display = 'block';
} else {
mobileLangBtn.style.display = 'none';
}
}
window.addEventListener('resize', checkMobileLangBtn);
// fill year
document.getElementById('year').textContent = new Date().getFullYear();
</script>
</body>
</html> |