@@ -418,27 +418,24 @@ body {
418418}
419419
420420.timeline-content {
421+ position : relative;
421422 max-width : 800px ;
422423 margin : 0 auto;
423- position : relative;
424424}
425425
426426.timeline-content ::before {
427427 content : '' ;
428428 position : absolute;
429- left : 50% ;
430- transform : translateX (-50% );
431429 width : 2px ;
432- height : 100% ;
433430 background-color : var (--border-color );
431+ top : 0 ;
432+ bottom : 0 ;
433+ left : 50% ;
434+ transform : translateX (-50% );
434435}
435436
436437.timeline-item {
437- background-color : var (--card-bg );
438- padding : 2rem ;
439438 margin-bottom : 2rem ;
440- border-radius : 10px ;
441- box-shadow : 0 2px 10px var (--shadow-color );
442439 position : relative;
443440 width : calc (50% - 30px );
444441 margin-left : auto;
@@ -449,23 +446,30 @@ body {
449446 margin-right : auto;
450447}
451448
449+ .timeline-text {
450+ background-color : var (--card-bg );
451+ padding : 1.5rem ;
452+ border-radius : 8px ;
453+ box-shadow : 0 2px 10px var (--shadow-color );
454+ }
455+
452456.timeline-item ::before {
453457 content : '' ;
454458 position : absolute;
455- width : 20 px ;
456- height : 20 px ;
459+ width : 16 px ;
460+ height : 16 px ;
457461 background-color : var (--link-color );
458462 border-radius : 50% ;
459- top : 50 % ;
463+ top : 20 px ;
460464 transform : translateY (-50% );
461465}
462466
463467.timeline-item : nth-child (odd)::before {
464- left : -40 px ;
468+ left : -38 px ;
465469}
466470
467471.timeline-item : nth-child (even)::before {
468- right : -40 px ;
472+ right : -38 px ;
469473}
470474
471475.timeline-item h3 {
@@ -477,13 +481,71 @@ body {
477481.timeline-item .date {
478482 color : var (--link-color );
479483 font-size : 0.9rem ;
480- margin-bottom : 1 rem ;
484+ margin-bottom : 0.5 rem ;
481485 font-weight : 500 ;
482486}
483487
484488.timeline-item p {
485489 color : var (--text-color );
486490 line-height : 1.6 ;
491+ font-size : 0.95rem ;
492+ }
493+
494+ .video-thumbnail {
495+ display : block;
496+ position : absolute;
497+ border-radius : 8px ;
498+ overflow : hidden;
499+ box-shadow : 0 2px 10px var (--shadow-color );
500+ transition : transform 0.3s ease, box-shadow 0.3s ease;
501+ width : calc (50% - 30px );
502+ left : 0 ;
503+ top : 0 ;
504+ }
505+
506+ .video-thumbnail img {
507+ width : 100% ;
508+ height : auto;
509+ display : block;
510+ transition : transform 0.3s ease;
511+ }
512+
513+ .play-overlay {
514+ position : absolute;
515+ top : 0 ;
516+ left : 0 ;
517+ width : 100% ;
518+ height : 100% ;
519+ background-color : rgba (0 , 0 , 0 , 0.4 );
520+ display : flex;
521+ align-items : center;
522+ justify-content : center;
523+ opacity : 0 ;
524+ transition : opacity 0.3s ease;
525+ }
526+
527+ .play-overlay i {
528+ color : white;
529+ font-size : 2rem ;
530+ transform : scale (0.8 );
531+ transition : transform 0.3s ease;
532+ }
533+
534+ .video-thumbnail : hover {
535+ transform : translateY (-3px );
536+ box-shadow : 0 4px 12px var (--shadow-color );
537+ }
538+
539+ .video-thumbnail : hover img {
540+ transform : scale (1.03 );
541+ }
542+
543+ .video-thumbnail : hover .play-overlay {
544+ opacity : 1 ;
545+ }
546+
547+ .video-thumbnail : hover .play-overlay i {
548+ transform : scale (1 );
487549}
488550
489551/* Timeline Responsive */
@@ -494,18 +556,20 @@ body {
494556
495557 .timeline-item {
496558 width : calc (100% - 30px );
497- margin-left : 30px ;
498- }
499-
500- .timeline-item : nth-child (even) {
501- margin-left : 30px ;
502- margin-right : 0 ;
559+ margin-left : 30px !important ;
560+ margin-right : 0 !important ;
503561 }
504562
505563 .timeline-item ::before {
506- left : -40 px !important ;
564+ left : -38 px !important ;
507565 right : auto !important ;
508566 }
567+
568+ .video-thumbnail {
569+ position : relative;
570+ width : calc (100% - 30px );
571+ margin : 1rem 0 1rem 30px ;
572+ }
509573}
510574
511575/* Contact Section */
0 commit comments