@@ -86,18 +86,18 @@ const yearsExperience = new Date().getFullYear() - firstJobStartDate.getFullYear
8686 </section >
8787
8888 <!-- About Me Section -->
89- <section class =" relative bg-gradient-to-b from-white via-brand-25/30 to-white py-20 sm:py-24 lg:py-32" >
89+ <section class =" relative bg-gradient-to-b from-white via-brand-25/30 to-white py-20 sm:py-24 lg:py-32 overflow-x-hidden " >
9090 <div class =" max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" >
9191 <!-- Main Content Grid -->
9292 <div class =" grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-16 items-start" >
9393 <!-- Profile Card -->
9494 <div class =" lg:col-span-4 animate-on-scroll fade-in-left" >
95- <div class =" relative group" >
95+ <div class =" relative group max-w-full " >
9696 <!-- Decorative background -->
9797 <div class =" absolute inset-0 bg-gradient-to-br from-brand-500/20 via-brand-600/10 to-brand-700/20 rounded-2xl transform rotate-3 group-hover:rotate-6 transition-transform duration-500" ></div >
9898
9999 <!-- Main card -->
100- <div class =" relative bg-white/90 backdrop-blur-sm p-8 lg:p-10 rounded-2xl shadow-xl border border-brand-100/60 hover:shadow-2xl transition-all duration-500" >
100+ <div class =" relative bg-white/90 backdrop-blur-sm p-8 lg:p-10 rounded-2xl border border-brand-100/60 hover:shadow-2xl transition-all duration-500" >
101101 <!-- Profile Image -->
102102 <div class =" relative mb-8" >
103103 <div class =" w-48 h-48 mx-auto rounded-2xl overflow-hidden border-4 border-white shadow-2xl transform group-hover:scale-105 transition-transform duration-500" >
@@ -434,6 +434,52 @@ const yearsExperience = new Date().getFullYear() - firstJobStartDate.getFullYear
434434 }
435435 }
436436
437+ /* Prevent horizontal scroll on mobile by disabling hover transforms on smaller screens */
438+ @media (max-width: 1023px) {
439+ /* Ensure containers don't overflow */
440+ .relative.group {
441+ overflow: hidden;
442+ }
443+
444+ /* Disable transform-based hover effects that can cause overflow */
445+ .group:hover .group-hover\:scale-105,
446+ .group:hover .group-hover\:rotate-6,
447+ .social-link:hover {
448+ transform: none !important;
449+ }
450+ .group:hover .group-hover\:scale-110 {
451+ transform: none !important;
452+ }
453+
454+ /* Disable the decorative background rotation on mobile */
455+ .group:hover .transform.rotate-3 {
456+ transform: rotate(3deg) !important;
457+ }
458+
459+ /* Keep minimal hover effects for mobile feedback */
460+ .social-link:hover {
461+ transform: none !important;
462+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
463+ }
464+
465+ /* Ensure the main card container stays within bounds */
466+ .lg\:col-span-4 {
467+ max-width: 100%;
468+ overflow: hidden;
469+ }
470+ }
471+
472+ /* Additional mobile touch behavior */
473+ @media (max-width: 767px) {
474+ /* Disable all transform animations on mobile for touch devices */
475+ .group:hover .transform,
476+ .group:hover [class*="transform"],
477+ .group:hover [class*="scale"],
478+ .group:hover [class*="rotate"] {
479+ transform: none !important;
480+ }
481+ }
482+
437483 /* Respect reduced motion preferences */
438484 @media (prefers-reduced-motion: reduce) {
439485 .fade-in-up,
0 commit comments