@@ -1299,48 +1299,149 @@ main>.hero-section:has(.hero-code-snippets) {
12991299}
13001300
13011301
1302- /* ── Hero Meta ─────────────────────────────────────────────── */
1303- .hero-meta {
1302+ /* ── Stats Dashboard ───────────────────────────────────────── */
1303+ .stats-dashboard {
1304+ display : grid;
1305+ grid-template-columns : repeat (6 , 1fr );
1306+ gap : 1rem ;
1307+ width : 100% ;
1308+ max-width : 1200px ;
1309+ margin : 2rem auto 0 ;
1310+ padding : 0 1rem ;
1311+ box-sizing : border-box;
1312+ }
1313+
1314+ .stats-card {
13041315 display : flex;
1305- gap : 0.8 rem ;
1306- flex-wrap : wrap ;
1316+ flex-direction : column ;
1317+ align-items : center ;
13071318 justify-content : center;
1308- font-family : var (--font-mono );
1309- font-size : 0.78rem ;
1310- color : var (--text-secondary );
1311- margin : 1.25rem 0 0 ;
1319+ background : rgba (255 , 255 , 255 , 0.45 );
1320+ backdrop-filter : blur (16px );
1321+ -webkit-backdrop-filter : blur (16px );
1322+ border : 1px solid rgba (255 , 255 , 255 , 0.5 );
1323+ border-radius : 16px ;
1324+ padding : 1.25rem 1rem ;
1325+ cursor : pointer;
1326+ transition : all 0.3s cubic-bezier (0.25 , 0.8 , 0.25 , 1 );
1327+ box-shadow : 0 8px 32px 0 rgba (31 , 38 , 135 , 0.05 );
1328+ outline : none;
1329+ font-family : inherit;
1330+ color : inherit;
1331+ box-sizing : border-box;
13121332}
13131333
1314- .hero-meta span {
1315- padding : 0.6rem 0.95rem ;
1316- border-radius : 12px ;
1317- background : rgba (255 , 255 , 255 , 0.78 );
1318- border : 1px solid rgba (128 , 104 , 85 , 0.08 );
1319- font-size : 0.82rem ;
1320- box-shadow : 0 2px 6px rgba (146 , 111 , 74 , 0.04 );
1321- display : inline-flex;
1322- align-items : center;
1323- gap : 0.45rem ;
1334+ [data-theme = "dark" ] .stats-card {
1335+ background : rgba (255 , 255 , 255 , 0.03 );
1336+ border : 1px solid rgba (255 , 255 , 255 , 0.08 );
1337+ box-shadow : 0 8px 32px 0 rgba (0 , 0 , 0 , 0.37 );
13241338}
13251339
1326- .hero-meta strong {
1327- color : var (--text );
1328- font-weight : 600 ;
1340+ /* Hover and focus styles */
1341+ .stats-card : hover ,
1342+ .stats-card : focus-visible {
1343+ transform : translateY (-5px ) scale (1.03 );
1344+ background : rgba (255 , 255 , 255 , 0.6 );
1345+ border-color : rgba (34 , 197 , 94 , 0.5 ); /* Glowing green border on hover */
1346+ box-shadow : 0 0 15px rgba (34 , 197 , 94 , 0.3 ), 0 12px 40px rgba (31 , 38 , 135 , 0.08 );
13291347}
13301348
1331- .hero-meta span ::before {
1332- content : "" ;
1333- width : 4px ;
1334- height : 4px ;
1349+ [data-theme = "dark" ] .stats-card : hover ,
1350+ [data-theme = "dark" ] .stats-card : focus-visible {
1351+ background : rgba (255 , 255 , 255 , 0.07 );
1352+ border-color : rgba (74 , 222 , 128 , 0.6 ); /* Green glowing border in dark mode */
1353+ box-shadow : 0 0 20px rgba (74 , 222 , 128 , 0.3 ), 0 12px 40px rgba (0 , 0 , 0 , 0.5 );
1354+ }
1355+
1356+ /* Active/selected state filter highlight */
1357+ .stats-card .active {
1358+ background : rgba (255 , 255 , 255 , 0.7 );
1359+ border-color : rgba (34 , 197 , 94 , 0.8 );
1360+ box-shadow : 0 0 20px rgba (34 , 197 , 94 , 0.4 ), 0 8px 24px rgba (31 , 38 , 135 , 0.06 );
1361+ }
1362+
1363+ [data-theme = "dark" ] .stats-card .active {
1364+ background : rgba (255 , 255 , 255 , 0.09 );
1365+ border-color : rgba (74 , 222 , 128 , 0.9 );
1366+ box-shadow : 0 0 25px rgba (74 , 222 , 128 , 0.5 ), 0 8px 24px rgba (0 , 0 , 0 , 0.4 );
1367+ }
1368+
1369+ /* Accents and text elements */
1370+ .stats-icon {
1371+ margin-bottom : 0.75rem ;
1372+ display : flex;
1373+ align-items : center;
1374+ justify-content : center;
1375+ width : 44px ;
1376+ height : 44px ;
13351377 border-radius : 50% ;
1336- background : var (--accent );
1337- opacity : 0.6 ;
1378+ background : rgba (34 , 197 , 94 , 0.1 );
1379+ color : # 22c55e ;
1380+ transition : transform 0.3s ease;
13381381}
13391382
1340- [data-theme = "dark" ] .hero-meta span {
1341- background : rgba (255 , 255 , 255 , 0.08 );
1342- border-color : rgba (255 , 239 , 223 , 0.1 );
1343- box-shadow : none;
1383+ [data-theme = "dark" ] .stats-icon {
1384+ background : rgba (74 , 222 , 128 , 0.15 );
1385+ color : # 4ade80 ;
1386+ }
1387+
1388+ .stats-icon svg {
1389+ width : 20px ;
1390+ height : 20px ;
1391+ stroke-width : 2.25 ;
1392+ }
1393+
1394+ .stats-card : hover .stats-icon {
1395+ transform : rotate (8deg ) scale (1.1 );
1396+ }
1397+
1398+ .stats-info {
1399+ display : flex;
1400+ flex-direction : column;
1401+ align-items : center;
1402+ }
1403+
1404+ /* customized green accents for metrics counters */
1405+ .stats-info strong {
1406+ font-size : 1.75rem ;
1407+ font-weight : 700 ;
1408+ line-height : 1.2 ;
1409+ color : # 166534 ; /* customized dark-green accent */
1410+ transition : all 0.3s ease;
1411+ }
1412+
1413+ [data-theme = "dark" ] .stats-info strong {
1414+ color : # 4ade80 ; /* customized light-green/neon accent for dark mode */
1415+ }
1416+
1417+ .stats-info span {
1418+ font-size : 0.8rem ;
1419+ font-weight : 500 ;
1420+ color : var (--text-secondary );
1421+ text-transform : uppercase;
1422+ letter-spacing : 0.05em ;
1423+ margin-top : 0.25rem ;
1424+ text-align : center;
1425+ }
1426+
1427+ @media (max-width : 1024px ) {
1428+ .stats-dashboard {
1429+ grid-template-columns : repeat (3 , 1fr );
1430+ gap : 1rem ;
1431+ }
1432+ }
1433+
1434+ @media (max-width : 640px ) {
1435+ .stats-dashboard {
1436+ grid-template-columns : repeat (2 , 1fr );
1437+ gap : 0.75rem ;
1438+ }
1439+ }
1440+
1441+ @media (max-width : 400px ) {
1442+ .stats-dashboard {
1443+ grid-template-columns : 1fr ;
1444+ }
13441445}
13451446
13461447
0 commit comments