heroedge.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. /* ══════════════════════════════════════════
  2. VARIABLES
  3. ══════════════════════════════════════════ */
  4. .hs {
  5. --blue: #1e88e5;
  6. --blue-deep: #072066;
  7. --blue-light: #64b5f6;
  8. --accent: #2196f3;
  9. --white: #ffffff;
  10. --off: #f4f6f9;
  11. --gray: #9e9e9e;
  12. --dark: #424242;
  13. --dur: 900ms;
  14. --ease: cubic-bezier(0.77, 0, 0.175, 1);
  15. }
  16. /* ══════════════════════════════════════════
  17. WRAPPER
  18. ══════════════════════════════════════════ */
  19. .hs {
  20. position: relative;
  21. width: 100%;
  22. min-width: 320px;
  23. height: 92vh;
  24. background: var(--off);
  25. }
  26. /* ══════════════════════════════════════════
  27. BACKGROUND ELEMENTS
  28. ══════════════════════════════════════════ */
  29. .hs-bg-panel {
  30. position: absolute;
  31. top: 0;
  32. right: 0;
  33. width: 58%;
  34. height: 100%;
  35. background: var(--blue-deep);
  36. clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  37. z-index: 0;
  38. }
  39. /* ══════════════════════════════════════════
  40. SLIDES TRACK
  41. ══════════════════════════════════════════ */
  42. .hs-track {
  43. position: relative;
  44. width: 100%;
  45. height: 100%;
  46. }
  47. .hs-slide {
  48. position: absolute;
  49. inset: 0;
  50. display: grid;
  51. grid-template-columns: 1fr 1fr;
  52. z-index: 1;
  53. pointer-events: none;
  54. }
  55. .hs-slide.is-active {
  56. z-index: 2;
  57. pointer-events: auto;
  58. }
  59. .hs-slide.is-leaving {
  60. z-index: 2;
  61. pointer-events: none;
  62. }
  63. /* ══════════════════════════════════════════
  64. LEFT — TEXT PANEL
  65. ══════════════════════════════════════════ */
  66. .hs-left {
  67. display: flex;
  68. flex-direction: column;
  69. justify-content: center;
  70. padding: 0 48px 80px 64px;
  71. position: relative;
  72. z-index: 3;
  73. }
  74. .hs-index {
  75. font-size: 7rem;
  76. font-weight: 800;
  77. line-height: 1;
  78. color: rgba(7, 32, 102, 0.15);
  79. position: absolute;
  80. top: 18%;
  81. left: 56px;
  82. letter-spacing: -4px;
  83. pointer-events: none;
  84. user-select: none;
  85. opacity: 0;
  86. transform: translateY(20px);
  87. transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  88. }
  89. .hs-slide:not(.is-active) .hs-index {
  90. opacity: 0;
  91. transform: translateY(20px);
  92. }
  93. .hs-slide.is-active .hs-index {
  94. opacity: 1;
  95. transform: translateY(0);
  96. transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
  97. }
  98. .hs-label {
  99. display: flex;
  100. align-items: center;
  101. gap: 10px;
  102. margin-bottom: 20px;
  103. }
  104. .hs-label-dot {
  105. width: 8px;
  106. height: 8px;
  107. border-radius: 50%;
  108. background: var(--blue);
  109. flex-shrink: 0;
  110. }
  111. .hs-label-text {
  112. font-size: 0.72rem;
  113. font-weight: 500;
  114. letter-spacing: 3px;
  115. text-transform: uppercase;
  116. color: var(--blue);
  117. }
  118. .hs-title {
  119. font-family: 'Syne', sans-serif;
  120. font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  121. font-weight: 800;
  122. line-height: 1.05;
  123. color: #000;
  124. margin-bottom: 20px;
  125. }
  126. .hs-title span {
  127. color: var(--blue);
  128. position: relative;
  129. display: inline-block;
  130. }
  131. .hs-title span::after {
  132. content: '';
  133. position: absolute;
  134. bottom: 2px;
  135. left: 0;
  136. right: 0;
  137. height: 3px;
  138. background: linear-gradient(90deg, var(--blue), var(--blue-light));
  139. border-radius: 2px;
  140. transform: scaleX(0);
  141. transform-origin: left;
  142. transition: transform 0.5s var(--ease) 0.6s;
  143. }
  144. .hs-slide.is-active .hs-title span::after {
  145. transform: scaleX(1);
  146. }
  147. .hs-desc {
  148. font-size: 0.93rem;
  149. line-height: 1.75;
  150. color: var(--dark);
  151. max-width: 340px;
  152. margin-bottom: 36px;
  153. }
  154. .hs-btns {
  155. display: flex;
  156. gap: 14px;
  157. align-items: center;
  158. }
  159. .hs-btn-a {
  160. background: var(--blue);
  161. color: #fff;
  162. border: none;
  163. border-radius: 4px;
  164. padding: 13px 30px;
  165. font-size: 0.875rem;
  166. font-weight: 500;
  167. cursor: pointer;
  168. box-shadow: 0 8px 24px rgba(30, 136, 229, 0.35);
  169. transition: transform 0.25s, box-shadow 0.25s;
  170. }
  171. .hs-btn-a:hover {
  172. transform: translateY(-2px);
  173. box-shadow: 0 14px 32px rgba(30, 136, 229, 0.5);
  174. }
  175. .hs-btn-b {
  176. background: transparent;
  177. color: #000;
  178. border: none;
  179. font-size: 0.875rem;
  180. font-weight: 500;
  181. cursor: pointer;
  182. display: flex;
  183. align-items: center;
  184. gap: 8px;
  185. transition: gap 0.25s;
  186. }
  187. .hs-btn-b:hover {
  188. gap: 14px;
  189. }
  190. .hs-btn-b svg {
  191. width: 18px;
  192. height: 18px;
  193. stroke: var(--blue);
  194. fill: none;
  195. stroke-width: 2;
  196. stroke-linecap: round;
  197. stroke-linejoin: round;
  198. }
  199. /* ══════════════════════════════════════════
  200. RIGHT — IMAGE PANEL
  201. ══════════════════════════════════════════ */
  202. .hs-right {
  203. position: relative;
  204. overflow: hidden;
  205. z-index: 3;
  206. }
  207. .hs-img-wrap {
  208. position: absolute;
  209. inset: 0;
  210. }
  211. .hs-img {
  212. position: absolute;
  213. inset: 0;
  214. width: 100%;
  215. height: 100%;
  216. object-fit: cover;
  217. object-position: center top;
  218. opacity: 0.55;
  219. will-change: transform, opacity;
  220. transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  221. }
  222. .hs-right::before {
  223. content: '';
  224. position: absolute;
  225. inset: 0;
  226. z-index: 4;
  227. background:
  228. linear-gradient(to right, var(--blue-deep) 0%, transparent 30%),
  229. linear-gradient(to top, var(--blue-deep) 0%, transparent 40%);
  230. pointer-events: none;
  231. }
  232. .hs-card {
  233. position: absolute;
  234. bottom: 100px;
  235. left: 32px;
  236. z-index: 5;
  237. background: rgba(255, 255, 255, 0.08);
  238. backdrop-filter: blur(16px);
  239. -webkit-backdrop-filter: blur(16px);
  240. border: 1px solid rgba(255, 255, 255, 0.12);
  241. border-radius: 10px;
  242. padding: 16px 22px;
  243. color: #fff;
  244. min-width: 180px;
  245. opacity: 0;
  246. transform: translateY(16px);
  247. transition: opacity 0.6s var(--ease) 0.5s, transform 0.6s var(--ease) 0.5s;
  248. }
  249. .hs-slide.is-active .hs-card {
  250. opacity: 1;
  251. transform: translateY(0);
  252. }
  253. .hs-slide:not(.is-active) .hs-card {
  254. opacity: 0;
  255. transform: translateY(16px);
  256. transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  257. }
  258. .hs-card-num {
  259. font-family: 'Syne', sans-serif;
  260. font-size: 2rem;
  261. font-weight: 800;
  262. line-height: 1;
  263. margin-bottom: 4px;
  264. }
  265. .hs-card-label {
  266. font-size: 0.72rem;
  267. letter-spacing: 1.5px;
  268. text-transform: uppercase;
  269. opacity: 0.65;
  270. }
  271. /* ══════════════════════════════════════════
  272. BOTTOM BAR
  273. ══════════════════════════════════════════ */
  274. .hs-bar {
  275. position: absolute;
  276. bottom: 0;
  277. left: 0;
  278. right: 0;
  279. height: 72px;
  280. z-index: 10;
  281. display: flex;
  282. align-items: stretch;
  283. }
  284. .hs-socials-nav {
  285. display: flex;
  286. justify-content: space-around;
  287. }
  288. .hs-socials {
  289. display: flex;
  290. align-items: center;
  291. padding: 0 28px 0 64px;
  292. gap: 4px;
  293. border-top: 1px solid rgba(7, 32, 102, 0.1);
  294. background: var(--off);
  295. }
  296. .hs-soc {
  297. width: 34px;
  298. height: 34px;
  299. display: flex;
  300. align-items: center;
  301. justify-content: center;
  302. cursor: pointer;
  303. opacity: 0.35;
  304. transition: opacity 0.2s;
  305. }
  306. .hs-soc:hover {
  307. opacity: 1;
  308. }
  309. .hs-soc svg {
  310. width: 15px;
  311. height: 15px;
  312. fill: var(--blue-deep);
  313. }
  314. .hs-bar-div {
  315. width: 1px;
  316. background: rgba(7, 32, 102, 0.12);
  317. margin: 14px 0;
  318. }
  319. .hs-nav {
  320. display: flex;
  321. align-items: center;
  322. gap: 16px;
  323. padding: 0 32px;
  324. border-top: 1px solid rgba(7, 32, 102, 0.1);
  325. background: var(--off);
  326. }
  327. .hs-nav-arr {
  328. display: flex;
  329. align-items: center;
  330. gap: 10px;
  331. }
  332. .hs-arr {
  333. width: 34px;
  334. height: 34px;
  335. border-radius: 50%;
  336. border: 1.5px solid rgba(7, 32, 102, 0.2);
  337. background: transparent;
  338. display: flex;
  339. align-items: center;
  340. justify-content: center;
  341. cursor: pointer;
  342. transition: border-color 0.2s, background 0.2s;
  343. }
  344. .hs-arr:hover {
  345. border-color: var(--blue);
  346. background: var(--blue);
  347. }
  348. .hs-arr:hover svg {
  349. stroke: #fff;
  350. }
  351. .hs-arr svg {
  352. width: 13px;
  353. height: 13px;
  354. stroke: var(--dark);
  355. fill: none;
  356. stroke-width: 2;
  357. stroke-linecap: round;
  358. stroke-linejoin: round;
  359. }
  360. .hs-count {
  361. font-family: 'Syne', sans-serif;
  362. font-size: 0.9rem;
  363. font-weight: 700;
  364. color: var(--blue-deep);
  365. letter-spacing: 1px;
  366. white-space: nowrap;
  367. }
  368. .hs-count-sep {
  369. color: var(--gray);
  370. font-weight: 400;
  371. margin: 0 2px;
  372. }
  373. .hs-dots-nav {
  374. display: flex;
  375. align-items: center;
  376. gap: 6px;
  377. margin-left: 4px;
  378. }
  379. .hs-dot {
  380. width: 6px;
  381. height: 6px;
  382. border-radius: 50%;
  383. background: rgba(7, 32, 102, 0.2);
  384. transition: width 0.35s var(--ease), background 0.35s;
  385. cursor: pointer;
  386. }
  387. .hs-dot.is-active {
  388. width: 22px;
  389. border-radius: 3px;
  390. background: var(--blue);
  391. }
  392. .hs-logos {
  393. flex: 1;
  394. overflow: hidden;
  395. border-top: 1px solid rgba(255, 255, 255, 0.08);
  396. background: var(--blue-deep);
  397. display: flex;
  398. align-items: center;
  399. height: 72px;
  400. }
  401. .hs-logos-track {
  402. display: flex;
  403. align-items: center;
  404. width: max-content;
  405. animation: hsMarquee 40s linear infinite;
  406. }
  407. .hs-logos-track:hover {
  408. animation-play-state: paused;
  409. }
  410. .hs-logo {
  411. display: flex;
  412. align-items: center;
  413. justify-content: center;
  414. padding: 0 36px;
  415. border-right: 1px solid rgba(255, 255, 255, 0.07);
  416. width: 200px;
  417. height: 60px;
  418. flex-shrink: 0;
  419. }
  420. .hs-logo img {
  421. width: 100%;
  422. height: 100%;
  423. object-fit: contain;
  424. opacity: 0.20;
  425. transition: opacity 0.25s;
  426. }
  427. .hs-logo:hover img {
  428. opacity: 0.85;
  429. }
  430. @keyframes hsMarquee {
  431. from { transform: translateX(0); }
  432. to { transform: translateX(-50%); }
  433. }
  434. /* ══════════════════════════════════════════
  435. ANIMATION SYSTEM
  436. ══════════════════════════════════════════ */
  437. .hs-ac {
  438. will-change: transform, opacity;
  439. }
  440. /* Settled active slide */
  441. .hs-slide.is-active:not(.is-leaving) .hs-ac {
  442. opacity: 1;
  443. transform: translateY(0);
  444. }
  445. .hs-slide.is-active:not(.is-leaving) .hs-img {
  446. opacity: 0.55;
  447. transform: scale(1);
  448. }
  449. /* Resting hidden state */
  450. .hs-slide:not(.is-active):not(.is-entering):not(.is-leaving) .hs-ac {
  451. opacity: 0;
  452. transform: translateY(48px);
  453. }
  454. .hs-slide:not(.is-active):not(.is-entering):not(.is-leaving) .hs-img {
  455. opacity: 0;
  456. transform: translateX(30px);
  457. }
  458. /* Text entering — staggered slide up */
  459. .hs-slide.is-entering .hs-ac {
  460. animation: hsUp var(--dur) var(--ease) both;
  461. }
  462. .hs-slide.is-entering .hs-ac:nth-child(1) { animation-delay: 0ms; }
  463. .hs-slide.is-entering .hs-ac:nth-child(2) { animation-delay: 70ms; }
  464. .hs-slide.is-entering .hs-ac:nth-child(3) { animation-delay: 140ms; }
  465. .hs-slide.is-entering .hs-ac:nth-child(4) { animation-delay: 210ms; }
  466. /* Text leaving — slide up and fade */
  467. .hs-slide.is-leaving .hs-ac {
  468. animation: hsDown var(--dur) var(--ease) both;
  469. }
  470. /* Image entering — scale + fade */
  471. .hs-slide.is-entering .hs-img {
  472. animation: hsImgIn var(--dur) var(--ease) both;
  473. }
  474. /* Image leaving — scale down + fade */
  475. .hs-slide.is-leaving .hs-img {
  476. animation: hsImgOut var(--dur) var(--ease) both;
  477. }
  478. @keyframes hsUp {
  479. from { transform: translateY(50px); opacity: 0; }
  480. to { transform: translateY(0); opacity: 1; }
  481. }
  482. @keyframes hsDown {
  483. from { transform: translateY(0); opacity: 1; }
  484. to { transform: translateY(-40px); opacity: 0; }
  485. }
  486. @keyframes hsImgIn {
  487. from { opacity: 0; transform: scale(1.08); }
  488. to { opacity: 0.55; transform: scale(1); }
  489. }
  490. @keyframes hsImgOut {
  491. from { opacity: 0.55; transform: scale(1); }
  492. to { opacity: 0; transform: scale(0.96); }
  493. }
  494. @media (max-width: 775px) {
  495. .hs {
  496. height: 750px;
  497. }
  498. .hs-bg-panel {
  499. display: none;
  500. }
  501. .hs-slide {
  502. grid-template-columns: 1fr;
  503. grid-template-rows: 500px 200px;
  504. height: 700px;
  505. }
  506. .hs-left {
  507. padding: 20px;
  508. }
  509. .hs-bar {
  510. width: 100%;
  511. display: inline;
  512. }
  513. .hs-socials {
  514. padding: 0px;
  515. }
  516. .hs-nav {
  517. display: flex;
  518. flex-direction: column;
  519. gap: 10px;
  520. padding: 10px;
  521. width: 100%;
  522. }
  523. .hs-logos {
  524. display: none;
  525. }
  526. }