@@ -1320,72 +1320,76 @@ body {
13201320/* Card width slightly bigger */
13211321/* Ensure hover transform works with animate-on-scroll */
13221322
1323+ /* Card wrapper */
13231324.achievement-card {
13241325 background : # fff ;
1325- flex : 0 0 320px ;
1326+ flex : 0 0 280px ; /* smaller fixed width */
1327+ max-width : 320px ; /* cap max size */
13261328 border-radius : 0 ;
1327- box-shadow : 0 6px 15px rgba (0 , 0 , 0 , 0.1 ); /* base shadow */
1329+ box-shadow : 0 6px 15px rgba (0 , 0 , 0 , 0.1 );
13281330 display : flex;
13291331 flex-direction : column;
13301332 justify-content : space-between;
13311333 padding : 12px ;
1332- will-change : transform, box-shadow;
1333- transition : transform 0.5s ease, box-shadow 0.3s ease; /* 👈 smooth transition */
1334+ transition : transform 0.4s ease, box-shadow 0.3s ease;
13341335}
13351336
1336-
1337- /* Hover effect */
1338- .achievement-card : hover {
1339- transform : scale (1.05 ) translateZ (0 ); /* ensure GPU acceleration */
1340- z-index : 2 ;
1341- }
1342-
1343- /* Image/iframe wrapper */
1337+ /* Image/iframe container */
13441338.achievement-image {
13451339 width : 100% ;
1346- height : 200 px ;
1347- overflow : hidden;
1340+ height : 180 px ; /* 👈 stable height */
1341+ overflow : hidden; /* hide overflow cleanly */
13481342 display : flex;
13491343 align-items : center;
13501344 justify-content : center;
13511345 background : # fafafa ;
13521346}
13531347
1354- .achievement-image img ,
1348+ /* Images scale proportionally */
1349+ .achievement-image img {
1350+ max-width : 100% ;
1351+ max-height : 100% ;
1352+ object-fit : contain; /* never stretch */
1353+ display : block;
1354+ }
1355+
1356+ /* Iframe behaves like an image */
13551357.achievement-image iframe {
13561358 width : 100% ;
13571359 height : 100% ;
1358- overflow : hidden;
1359- object-position : top;
1360- object-fit : contain;
13611360 border : none;
1361+ display : block;
1362+ transform : scale (0.9 ); /* 👈 scale down a bit */
1363+ transform-origin : top left;
13621364}
13631365
13641366/* Info section */
13651367.achievement-info {
1366- padding : 10 px 0 5px ;
1368+ padding : 8 px 0 5px ;
13671369 background : # fdfdfd ;
13681370 text-align : center;
13691371}
13701372
13711373.achievement-info h4 {
13721374 margin : 0 ;
1373- font-size : 1. 1rem ;
1375+ font-size : 1rem ;
13741376 font-weight : 600 ;
13751377 color : # 333 ;
13761378}
13771379
1378- /* certificates */
1379-
1380- .certificate-frame {
1381- width : 100% ;
1382- height : 260px ; /* adjust based on card size */
1383- border : none;
1384- border-radius : 4px ;
1380+ /* Mobile: adjust slightly */
1381+ @media (max-width : 768px ) {
1382+ .achievement-card {
1383+ flex : 0 0 240px ; /* narrower cards */
1384+ }
1385+ .achievement-image {
1386+ height : 160px ;
1387+ }
13851388}
13861389
13871390
13881391
1392+
13891393/* Coursework */
13901394.coursework-card {
13911395 background : white;
@@ -1744,12 +1748,17 @@ body {
17441748 height : 250px ;
17451749 }
17461750
1751+ .resume-btn {
1752+ width : 50% ;
1753+ height : 50px ;
1754+ }
1755+
17471756 .nav-menu {
17481757 position : fixed;
17491758 top : 80px ;
17501759 left : -110% ;
17511760 width : 100% ;
1752- height : calc ( 100vh - 80 px ) ;
1761+ height : 100vh ;
17531762 background : white;
17541763 flex-direction : column;
17551764 justify-content : center;
0 commit comments