No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar.css 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. :root {
  2. --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
  3. 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  4. --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
  5. 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  6. --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
  7. 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  8. --color: #063f6f;
  9. --color2: #161d27;
  10. --color2-dark: #0f131a;
  11. }
  12. *,
  13. *::before,
  14. *::after {
  15. padding: 0;
  16. margin: 0;
  17. box-sizing: border-box;
  18. list-style: none;
  19. list-style-type: none;
  20. text-decoration: none;
  21. -webkit-font-smoothing: antialiased;
  22. -moz-osx-font-smoothing: grayscale;
  23. text-rendering: optimizeLegibility;
  24. }
  25. html {
  26. scroll-behavior: smooth;
  27. height: -webkit-fill-available;
  28. }
  29. body {
  30. font-family: "Inter", sans-serif;
  31. font-size: 14px;
  32. font-weight: 400;
  33. line-height: 1.4;
  34. color: #000;
  35. background-color: #fff;
  36. transition: 0.35s;
  37. }
  38. body.darkmode {
  39. color: #fff;
  40. background-color: var(--color2-dark);
  41. }
  42. main {
  43. overflow: hidden;
  44. }
  45. a,
  46. button {
  47. cursor: pointer;
  48. -webkit-user-select: none;
  49. -moz-user-select: none;
  50. -ms-user-select: none;
  51. user-select: none;
  52. border: none;
  53. outline: none;
  54. background: none;
  55. }
  56. img,
  57. video {
  58. display: block;
  59. max-width: 100%;
  60. height: auto;
  61. -o-object-fit: cover;
  62. object-fit: cover;
  63. }
  64. img {
  65. image-rendering: -webkit-optimize-contrast;
  66. image-rendering: -moz-crisp-edges;
  67. image-rendering: crisp-edges;
  68. }
  69. @-webkit-keyframes slideLeft {
  70. 0% {
  71. opacity: 0;
  72. transform: translateX(100%);
  73. }
  74. 100% {
  75. opacity: 1;
  76. transform: translateX(0%);
  77. }
  78. }
  79. @keyframes slideLeft {
  80. 0% {
  81. opacity: 0;
  82. transform: translateX(100%);
  83. }
  84. 100% {
  85. opacity: 1;
  86. transform: translateX(0%);
  87. }
  88. }
  89. @-webkit-keyframes slideRight {
  90. 0% {
  91. opacity: 1;
  92. transform: translateX(0%);
  93. }
  94. 100% {
  95. opacity: 0;
  96. transform: translateX(100%);
  97. }
  98. }
  99. @keyframes slideRight {
  100. 0% {
  101. opacity: 1;
  102. transform: translateX(0%);
  103. }
  104. 100% {
  105. opacity: 0;
  106. transform: translateX(100%);
  107. }
  108. }
  109. .section {
  110. margin: 0 auto;
  111. padding: 6rem 0 2rem;
  112. }
  113. .container {
  114. /* max-width: 75rem; */
  115. height: auto;
  116. margin-inline: auto;
  117. padding-inline: 1.5rem;
  118. }
  119. .centered {
  120. text-align: center;
  121. vertical-align: middle;
  122. margin-bottom: 1rem;
  123. }
  124. .header {
  125. position: fixed;
  126. top: 0;
  127. left: 0;
  128. width: 100%;
  129. height: auto;
  130. z-index: 100;
  131. margin: 0 auto;
  132. background-color: #fff;
  133. box-shadow: var(--shadow-medium);
  134. }
  135. .darkmode .header {
  136. background-color: var(--color2);
  137. }
  138. .navbar {
  139. display: flex;
  140. flex-wrap: wrap;
  141. align-content: center;
  142. align-items: center;
  143. justify-content: center;
  144. width: 100%;
  145. height: 100px;
  146. margin: 0 auto;
  147. }
  148. .navbar .navbar__left {
  149. display: flex;
  150. align-items: center;
  151. flex: 0 0 17%;
  152. }
  153. @media (max-width: 766px) {
  154. .navbar .navbar__left {
  155. flex: 0 0 auto;
  156. }
  157. }
  158. .navbar .navbar__center {
  159. display: flex;
  160. }
  161. @media (max-width: 766px) {
  162. .navbar .navbar__center {
  163. flex: 0 0 100%;
  164. order: 3;
  165. align-items: center;
  166. }
  167. }
  168. .navbar .navbar__right {
  169. display: flex;
  170. flex: 0 0 17%;
  171. align-items: center;
  172. justify-content: flex-end;
  173. -moz-column-gap: 1.5rem;
  174. column-gap: 1.5rem;
  175. }
  176. @media (max-width: 766px) {
  177. .navbar .navbar__right {
  178. flex: 0 0 auto;
  179. align-items: center;
  180. }
  181. .brand img {
  182. max-width: 200px;
  183. }
  184. }
  185. .brand {
  186. display: flex;
  187. align-items: center;
  188. order: 1;
  189. }
  190. .brand svg {
  191. width: 60px;
  192. height: 60px;
  193. }
  194. @media (max-width: 766px) {
  195. .menu {
  196. position: fixed;
  197. top: 0;
  198. left: 0;
  199. width: 350px;
  200. max-width: 85%;
  201. height: 100%;
  202. z-index: 100;
  203. overflow: hidden;
  204. background-color: #fff;
  205. transform: translate(-100%);
  206. transition: all 0.4s ease-in-out;
  207. }
  208. .menu.is-active {
  209. transform: translate(0%);
  210. }
  211. .darkmode .menu {
  212. background-color: var(--color2);
  213. }
  214. }
  215. .menu .menu__header {
  216. display: none;
  217. box-shadow: var(--shadow-medium);
  218. }
  219. @media (max-width: 766px) {
  220. .menu .menu__header {
  221. position: relative;
  222. top: 0;
  223. display: flex;
  224. align-items: center;
  225. justify-content: flex-start;
  226. height: 4rem;
  227. z-index: 110;
  228. visibility: hidden;
  229. background: transparent;
  230. }
  231. .menu .menu__header.is-active {
  232. visibility: visible;
  233. background-color: #fff;
  234. }
  235. .menu .menu__header.is-active > .menu__arrow {
  236. display: flex;
  237. }
  238. .darkmode .menu .menu__header.is-active {
  239. background-color: var(--color2);
  240. }
  241. }
  242. @media (max-width: 766px) {
  243. .menu .menu__header .menu__arrow {
  244. display: none;
  245. justify-content: center;
  246. align-items: center;
  247. cursor: pointer;
  248. width: 3rem;
  249. }
  250. .menu .menu__header .menu__arrow:hover i {
  251. color: var(--color);
  252. }
  253. .menu .menu__header .menu__arrow > i {
  254. font-size: 1.5rem;
  255. color: #000;
  256. transition: all 0.25s ease;
  257. }
  258. .darkmode .menu .menu__header .menu__arrow > i {
  259. color: #fff;
  260. }
  261. }
  262. @media (max-width: 766px) {
  263. .menu .menu__header .menu__title {
  264. cursor: pointer;
  265. font-weight: 500;
  266. text-transform: capitalize;
  267. color: #000;
  268. transition: all 0.25s ease;
  269. }
  270. .menu .menu__header .menu__title:hover {
  271. color: var(--color);
  272. }
  273. .darkmode .menu .menu__header .menu__title {
  274. color: #fff;
  275. }
  276. }
  277. @media (max-width: 766px) {
  278. .menu .menu__inner {
  279. height: 100%;
  280. margin-top: -3rem;
  281. overflow-y: auto;
  282. overflow-x: hidden;
  283. }
  284. }
  285. .menu .menu__inner .menu__item {
  286. position: static;
  287. display: inline-block;
  288. padding-right: 20px;
  289. padding: 15px 25px 15px 0;
  290. }
  291. .menu .menu__inner .menu__item:last-child {
  292. padding-right: 0;
  293. }
  294. .menu .menu__inner .menu__item:hover > .menu__link {
  295. color: var(--color);
  296. font-weight: bold;
  297. }
  298. .darkmode .menu .menu__inner .menu__item:hover > .menu__link {
  299. color: var(--color);
  300. }
  301. @media (max-width: 766px) {
  302. .menu .menu__inner .menu__item {
  303. display: block;
  304. padding: 0;
  305. }
  306. }
  307. @media (min-width: 767px) {
  308. .menu .menu__inner .menu__item:hover > .menu__link i {
  309. transform: rotate(-90deg);
  310. }
  311. }
  312. @media (min-width: 767px) {
  313. .menu .menu__inner .menu__item.menu__dropdown:hover > .submenu {
  314. opacity: 1;
  315. visibility: visible;
  316. top: 95%;
  317. }
  318. }
  319. .menu .menu__inner .menu__item .menu__link {
  320. display: flex;
  321. align-items: center;
  322. justify-content: center;
  323. cursor: pointer;
  324. font-size: 16px;
  325. font-weight: 500;
  326. color: #000;
  327. text-transform: capitalize;
  328. transition: all 0.25s ease;
  329. }
  330. @media (max-width: 766px) {
  331. .menu .menu__inner .menu__item .menu__link {
  332. justify-content: space-between;
  333. padding: 20px;
  334. }
  335. }
  336. .menu .menu__inner .menu__item .menu__link > i {
  337. margin-left: 5px;
  338. font-size: 1.35rem;
  339. transform: rotate(90deg);
  340. transition: 0.35s;
  341. }
  342. @media (max-width: 766px) {
  343. .menu .menu__inner .menu__item .menu__link > i {
  344. margin-left: 10px;
  345. transform: rotate(0deg);
  346. }
  347. }
  348. .darkmode .menu .menu__inner .menu__item .menu__link {
  349. color: #fff;
  350. }
  351. .submenu {
  352. position: absolute;
  353. z-index: 100;
  354. top: 110%;
  355. left: 50%;
  356. width: 100%;
  357. height: auto;
  358. padding: 20px 15px;
  359. border-radius: 0.25rem;
  360. border-top: 2px solid var(--color);
  361. background-color: #fff;
  362. box-shadow: var(--shadow-medium);
  363. opacity: 0;
  364. visibility: hidden;
  365. transition: all 0.35s ease-in-out;
  366. transform: translateX(-50%);
  367. }
  368. .darkmode .submenu {
  369. border-top: 2px solid var(--color);
  370. background-color: var(--color2);
  371. }
  372. @media (max-width: 766px) {
  373. .submenu {
  374. position: absolute;
  375. display: none;
  376. top: 0;
  377. left: 0;
  378. width: 100%;
  379. height: 100%;
  380. max-width: none;
  381. min-width: auto;
  382. margin: 0;
  383. padding: 100px 15px 0 15px;
  384. border-radius: 0;
  385. border-top: 0;
  386. box-shadow: none;
  387. opacity: 1;
  388. overflow-y: auto;
  389. visibility: visible;
  390. transform: translateX(0%);
  391. }
  392. .submenu.is-active {
  393. display: block;
  394. }
  395. }
  396. @media (min-width: 767px) {
  397. .submenu {
  398. -webkit-animation: none !important;
  399. animation: none !important;
  400. }
  401. }
  402. @media (min-width: 767px) {
  403. .submenu.megamenu__normal {
  404. left: 65%;
  405. max-width: 250px;
  406. width: 100%;
  407. height: auto;
  408. margin: 0 auto;
  409. }
  410. .submenu.megamenu__normal.products {
  411. left: 58%;
  412. }
  413. .submenu.megamenu__normal.investors {
  414. left: 70%;
  415. }
  416. }
  417. @media (min-width: 767px) {
  418. .submenu.megamenu__text, .submenu.megamenu__image {
  419. display: flex;
  420. flex-wrap: wrap;
  421. max-width: 95%;
  422. height: auto;
  423. margin: 0 auto;
  424. justify-content: space-around;
  425. }
  426. }
  427. @media (min-width: 975px) {
  428. .submenu.megamenu__text, .submenu.megamenu__image {
  429. max-width: 992px;
  430. }
  431. }
  432. .submenu.megamenu__image .submenu__inner a {
  433. display: flex;
  434. flex-flow: column;
  435. align-items: center;
  436. }
  437. @media (max-width: 766px) {
  438. .submenu.megamenu__image .submenu__inner a {
  439. flex-flow: row;
  440. align-items: center;
  441. padding-bottom: 20px;
  442. }
  443. }
  444. .submenu.megamenu__image .submenu__inner a img {
  445. display: block;
  446. width: 100%;
  447. height: 150px;
  448. margin-bottom: 15px;
  449. -o-object-fit: cover;
  450. object-fit: cover;
  451. border-radius: 10px;
  452. }
  453. @media (max-width: 766px) {
  454. .submenu.megamenu__image .submenu__inner a img {
  455. width: 30%;
  456. height: 80px;
  457. margin-bottom: 0;
  458. margin-right: 15px;
  459. }
  460. }
  461. .submenu .submenu__inner {
  462. /* width: 25%; */
  463. padding: 0 15px;
  464. }
  465. @media (max-width: 766px) {
  466. .submenu .submenu__inner {
  467. width: 100%;
  468. padding: 0;
  469. }
  470. }
  471. .submenu .submenu__inner .submenu__title {
  472. font-size: 16px;
  473. font-weight: 500;
  474. color: var(--color);
  475. text-transform: uppercase;
  476. margin-left: 30px;
  477. transition: all 0.3s ease;
  478. }
  479. .darkmode .submenu .submenu__inner .submenu__title {
  480. color: var(--color);
  481. }
  482. @media (max-width: 766px) {
  483. .submenu .submenu__list {
  484. margin-bottom: 20px;
  485. }
  486. }
  487. .submenu .submenu__list li {
  488. display: block;
  489. line-height: 1;
  490. margin: 0 auto;
  491. }
  492. .submenu .submenu__list li a {
  493. display: inline-block;
  494. padding: 10px 0;
  495. line-height: 1.4;
  496. text-transform: capitalize;
  497. color: #000;
  498. transition: all 0.25s ease-in-out;
  499. }
  500. .submenu .submenu__list li a:hover {
  501. color: var(--color);
  502. }
  503. @media (max-width: 766px) {
  504. .submenu .submenu__list li a {
  505. display: block;
  506. }
  507. }
  508. .darkmode .submenu .submenu__list li a {
  509. color: #fff;
  510. }
  511. .darkmode .submenu .submenu__list li a:hover {
  512. color: var(--color);
  513. }
  514. .switch {
  515. position: relative;
  516. display: block;
  517. cursor: pointer;
  518. -webkit-user-select: none;
  519. -moz-user-select: none;
  520. -ms-user-select: none;
  521. user-select: none;
  522. margin-right: 10px;
  523. }
  524. .switch .switch__light,
  525. .switch .switch__dark {
  526. position: absolute;
  527. top: 50%;
  528. left: 50%;
  529. transform-origin: center;
  530. transform: translate(-50%, -50%);
  531. transition: all 0.3s ease-in;
  532. }
  533. .switch .switch__light {
  534. font-size: 20px;
  535. visibility: visible;
  536. color: #000;
  537. }
  538. .darkmode .switch .switch__light {
  539. font-size: 0;
  540. visibility: hidden;
  541. }
  542. .switch .switch__dark {
  543. font-size: 0;
  544. visibility: hidden;
  545. color: #fff;
  546. }
  547. .darkmode .switch .switch__dark {
  548. font-size: 20px;
  549. visibility: visible;
  550. }
  551. .overlay {
  552. position: fixed;
  553. display: block;
  554. top: 0;
  555. left: 0;
  556. width: 100%;
  557. height: 100%;
  558. z-index: 9;
  559. opacity: 0;
  560. visibility: hidden;
  561. background-color: rgba(0, 0, 0, 0.7);
  562. transition: all 0.45s ease-in-out;
  563. pointer-events: none;
  564. }
  565. @media (max-width: 766px) {
  566. .overlay {
  567. cursor: url("https://i.imgur.com/cPh9Zm5.png"), zoom-out;
  568. pointer-events: visible;
  569. }
  570. .overlay.is-active {
  571. opacity: 1;
  572. visibility: visible;
  573. }
  574. }
  575. .burger {
  576. position: relative;
  577. display: block;
  578. cursor: pointer;
  579. width: 25px;
  580. height: 15px;
  581. margin-right: 15px;
  582. opacity: 0;
  583. visibility: hidden;
  584. background: transparent;
  585. }
  586. @media (max-width: 766px) {
  587. .burger {
  588. opacity: 1;
  589. visibility: visible;
  590. }
  591. }
  592. .burger .burger-line {
  593. position: absolute;
  594. display: block;
  595. left: 0;
  596. width: 100%;
  597. height: 2px;
  598. opacity: 1;
  599. border-radius: 15px;
  600. background: #000;
  601. }
  602. .darkmode .burger .burger-line {
  603. background: #fff;
  604. }
  605. .burger .burger-line:nth-child(1) {
  606. top: 0px;
  607. }
  608. .burger .burger-line:nth-child(2) {
  609. top: 8px;
  610. width: 70%;
  611. }
  612. .burger .burger-line:nth-child(3) {
  613. top: 16px;
  614. }