/* === Mac Category Container === */ .mac-apps-container { padding: calc(var(--header-height) + var(--sp-16)) 0 var(--sp-24); position: relative; overflow: hidden; opacity: 0; animation: fadeIn 1s ease forwards 0.2s; } /* === Hero Section === */ .mac-apps-hero { position: relative; text-align: center; margin-bottom: var(--sp-24); opacity: 0; transform: translateY(30px); animation: fadeSlideUp 1s ease forwards; } .mac-apps-title { font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; margin-bottom: var(--sp-6); background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; position: relative; z-index: 1; } .mac-apps-description { max-width: 650px; margin: 0 auto var(--sp-16); font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-secondary); line-height: 1.6; font-weight: 300; position: relative; z-index: 1; text-wrap: pretty; } /* Premium glowing orb background effect */ .mac-apps-hero::before { content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient( circle, rgba(0, 112, 243, 0.2) 0%, rgba(121, 40, 202, 0.1) 50%, transparent 70% ); top: -30%; left: 50%; transform: translateX(-50%); z-index: 0; border-radius: 50%; filter: blur(50px); opacity: 0.7; } /* === Mac App Grid === */ .mac-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); gap: var(--sp-8); margin-bottom: var(--sp-16); position: relative; } .mac-app-card { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); border: 1px solid var(--border); position: relative; display: flex; flex-direction: column; padding: var(--sp-8); opacity: 0; transform: translateY(30px); max-width: 400px; margin: 0 auto; display: flex; justify-content: center; flex-direction: column; align-content: flex-start; align-items: flex-start; } /* Animation class added by JS */ .mac-app-card.animate-in { opacity: 1; transform: translateY(0); } /* Premium hover effect with subtle shadow and lift */ .mac-app-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border-color: rgba(0, 112, 243, 0.3); } .mac-app-card::after { content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 2px; background: linear-gradient(135deg, transparent, transparent, rgba(0, 112, 243, 0), rgba(0, 112, 243, 0.3)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.5s ease; } .mac-app-card:hover::after { opacity: 1; } .mac-app-card-icon { width: 80px; height: 80px; border-radius: 16px; overflow: hidden; margin-bottom: var(--sp-4); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); position: relative; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); padding: 2px; } .mac-app-card:hover .mac-app-card-icon { transform: scale(1.1) translateY(-5px); } .mac-app-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; } .mac-app-card-title { font-size: 1.6rem; font-weight: 600; margin-bottom: var(--sp-3); /* text-align: center; */ transition: color 0.3s ease; } .mac-app-card-description { color: var(--text-secondary); /* text-align: center; */ margin-bottom: var(--sp-6); font-size: 1rem; line-height: 1.6; flex-grow: 1; } .mac-app-card-actions { display: flex; justify-content: center; gap: var(--sp-4); margin-top: auto; z-index: 2; } .mac-app-card-link { padding: 0.6rem 1.2rem; border-radius: 99px; font-weight: 500; font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); background: var(--surface-2); color: var(--text); position: relative; overflow: hidden; text-align: center; } .mac-app-card-link::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent); transform: translateX(-100%); transition: transform 1s ease; } .mac-app-card-link:hover { background: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 112, 243, 0.4); } .mac-app-card-link:hover::after { transform: translateX(100%); } .mac-app-card-store { padding: 0.6rem 1.2rem; border-radius: 99px; font-weight: 500; font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); background: var(--primary); color: white; position: relative; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 112, 243, 0.2); text-align: center; } .mac-app-card-store::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent); transform: translateX(-100%); transition: transform 1s ease; } .mac-app-card-store:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 112, 243, 0.4); } .mac-app-card-store:hover::after { transform: translateX(100%); } /* === Footer Section === */ .mac-apps-footer { text-align: center; margin-top: var(--sp-16); opacity: 0; animation: fadeIn 1s ease forwards 1s; } .mac-apps-footer .language-switch { display: inline-block; padding: 0.7rem 1.5rem; background: var(--surface); color: var(--text); border-radius: 99px; font-weight: 500; transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); border: 1px solid var(--border); } .mac-apps-footer .language-switch:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3); border-color: transparent; } /* === Category Sections === */ .mac-apps-category { margin-bottom: var(--sp-20); opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1); } .mac-apps-category.animate-in { opacity: 1; transform: translateY(0); } .category-header { margin-bottom: var(--sp-8); position: relative; overflow: hidden; padding-inline: var(--sp-4); } .category-title { font-size: 2.5rem; font-weight: 700; margin-bottom: var(--sp-3); position: relative; display: inline-block; } .category-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 40px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.5s ease; } .category-header:hover .category-title::after { width: 100%; } .category-description { color: var(--text-secondary); max-width: 800px; margin-bottom: var(--sp-6); } /* === Animations === */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Animation classes to be added by JavaScript */ .animate-in { opacity: 1 !important; transform: translateY(0) !important; } /* === Responsive Styles === */ @media (max-width: 992px) { .mac-apps-title { font-size: clamp(2.5rem, 5vw, 4rem); } } @media (max-width: 768px) { .mac-apps-container { padding-top: calc(var(--header-height) + var(--sp-8)); } .mac-app-card-link, .mac-app-card-store { width: 100%; text-align: center; } .mac-apps-hero::before { width: 100vw; height: 100vw; } } /* RTL Support */ [dir="rtl"] .mac-app-card-actions { flex-direction: row-reverse; } [dir="rtl"] .category-title::after { left: auto; right: 0; } /* Dark Mode Enhancements */ @media (prefers-color-scheme: dark) { .mac-apps-hero::before { background: radial-gradient( ellipse 140% 120% at center, rgba(0, 112, 243, 0.3) 0%, rgba(24, 100, 238, 0.285) 8%, rgba(48, 88, 233, 0.268) 16%, rgba(72, 76, 228, 0.248) 24%, rgba(88, 66, 223, 0.228) 32%, rgba(100, 58, 218, 0.208) 40%, rgba(110, 50, 212, 0.188) 48%, rgba(118, 44, 207, 0.168) 54%, rgba(121, 40, 202, 0.148) 60%, rgba(121, 40, 202, 0.125) 66%, rgba(121, 40, 202, 0.100) 72%, rgba(121, 40, 202, 0.075) 77%, rgba(121, 40, 202, 0.050) 82%, rgba(121, 40, 202, 0.030) 87%, rgba(121, 40, 202, 0.015) 91%, rgba(121, 40, 202, 0.007) 94%, rgba(121, 40, 202, 0.003) 96%, transparent 100% ); } .mac-app-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } .mac-app-card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); } .mac-app-card::after { background: linear-gradient(135deg, transparent, transparent, rgba(0, 112, 243, 0), rgba(0, 112, 243, 0.4)); } .mac-app-card-link:hover { box-shadow: 0 5px 15px rgba(0, 112, 243, 0.5); } .mac-app-card-store { box-shadow: 0 5px 15px rgba(0, 112, 243, 0.3); } .mac-app-card-store:hover { box-shadow: 0 8px 20px rgba(0, 112, 243, 0.5); } .mac-apps-footer .language-switch { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); } .mac-apps-footer .language-switch:hover { box-shadow: 0 8px 20px rgba(0, 112, 243, 0.4); } }
