/* ===== Ultra Premium Web Applications Collection CSS ===== */ /* Clean tech variables - can override root variables */ :root { --card-radius: 12px; --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.04); --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08); --card-border: 1px solid rgba(0, 0, 0, 0.06); --card-transition: all 0.25s cubic-bezier(0.1, 0.7, 0.1, 1); --clean-gradient: linear-gradient(130deg, var(--primary), var(--secondary)); --tech-accent: rgba(0, 112, 243, 0.08); --app-hover-overlay: rgba(255, 255, 255, 0.7); } @media (prefers-color-scheme: dark) { :root { --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.2); --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3); --card-border: 1px solid rgba(255, 255, 255, 0.06); --tech-accent: rgba(0, 199, 183, 0.08); --app-hover-overlay: rgba(0, 0, 0, 0.5); } } /* Minimal hero section */ .hero { padding: var(--sp-16) var(--sp-6) var(--sp-12); margin-bottom: var(--sp-12); position: relative; background-color: transparent; } .hero-content { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; } .main-title { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: var(--sp-6); color: var(--text); position: relative; display: inline-block; } .main-title::after { content: ''; position: absolute; width: 60px; height: 4px; background: var(--clean-gradient); bottom: -12px; left: 50%; transform: translateX(-50%); border-radius: 2px; } .subtitle { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 500; color: var(--text-secondary); margin-bottom: var(--sp-8); letter-spacing: -0.01em; } .hero p { font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); /* color: var(--text-primary); */ max-width: 700px; margin: 0 auto; } main { padding: 0 var(--sp-6); max-width: min(1920px, 100%); margin: 0 auto; } /* App grid layout */ .app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--sp-8); margin: var(--sp-12) 0; } /* Ultra clean app card */ .app-frame { border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); background: var(--surface); transition: var(--card-transition); border: var(--card-border); height: 100%; display: flex; flex-direction: column; transform: translateY(0); opacity: 0; animation: fadeIn 0.5s forwards ease-out; animation-delay: calc(var(--animation-order) * 0.05s); text-align: left; } [dir='rtl'] .app-frame { text-align: right; } @keyframes fadeIn { to { opacity: 1; } } .app-frame:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); } .app-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s ease-out; cursor: pointer; display: block; } .app-frame:hover .app-image { transform: scale(1.03); } .app-content { padding: 28px 24px; display: flex; flex-direction: column; color: var(--app-color, var(--text)); /* position: relative; */ } /* Title with minimal styling */ .app-content h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--app-color, var(--text)); letter-spacing: -0.01em; transition: color 0.2s ease; line-height: 1.3; } .app-content a { text-decoration: none; color: inherit; } .app-content p { font-size: 0.9375rem; line-height: 1.6; color: var(--app-color, var(--text-secondary)); opacity: 0.9;} /* Clean pageviews counter */ .pageviews { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; opacity: 0.6; color: var(--app-color, var(--text-secondary)); font-weight: 500; bottom: var(--sp-4); right: var(--sp-6); left: auto; position: initial; } [dir='rtl'] .pageviews { left: var(--sp-6); right: auto; } .eye-icon { width: 14px; height: 14px; opacity: 0.75; } /* Modern button */ .cta-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 6px; background-color: rgba(0, 0, 0, 0.05); color: var(--app-color, var(--text)); font-weight: 600; font-size: 0.875rem; text-decoration: none; transition: all 0.2s ease; align-self: flex-start; position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.03); } .cta-button:hover { background-color: rgba(0, 0, 0, 0.08); transform: translateY(-2px); } .cta-button::after { content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: -100%; background: linear-gradient( var(--gradient-direction), transparent, rgba(255, 255, 255, 0.2), transparent ); transition: 0.5s; } .cta-button:hover::after { left: 100%; } [dir='rtl'] .cta-button::after { left: auto; right: -100%; } /* Fixed aspect ratio for container */ .app-image-container { position: relative; overflow: hidden; } /* Hover effect overlay */ .app-image-overlay { position: absolute; inset: 0; background: var(--app-hover-overlay); opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: center; justify-content: center; } .app-frame:hover .app-image-overlay { opacity: 1; } .view-app-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: scale(0.8); opacity: 0; transition: all 0.3s ease 0.1s; } .app-frame:hover .view-app-icon { transform: scale(1); opacity: 1; } .view-app-icon svg { width: 24px; height: 24px; fill: white; } /* Loading indicator */ @keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } } .pageviews:empty, .pageviews:contains("Loading") { width: 80px; height: 16px; background: linear-gradient( var(--gradient-direction), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05) ); background-size: 400px 100%; animation: shimmer 1.5s infinite linear; border-radius: 4px; } /* Dark mode adjustments */ @media (prefers-color-scheme: dark) { .cta-button { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.05); } .cta-button:hover { background-color: rgba(255, 255, 255, 0.15); } .pageviews:empty, .pageviews:contains("Loading") { background: linear-gradient( var(--gradient-direction), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) ); } } /* Responsive adjustments */ @media (max-width: 992px) { .app-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } } @media (max-width: 768px) { .app-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .app-content { padding: 20px 16px; } .hero { padding: var(--sp-8) var(--sp-4) var(--sp-6); } } @media (max-width: 576px) { .app-grid { grid-template-columns: 1fr; gap: 20px; } } /* Accessibility improvements */ @media (prefers-reduced-motion: reduce) { .app-frame, .app-frame:hover, .app-image, .app-frame:hover .app-image, .cta-button, .cta-button:hover, .cta-button::after, .view-app-icon { transition: none; animation: none; transform: none; } .cta-button:hover::after { left: -100%; } .pageviews:empty, .pageviews:contains("Loading") { animation: none; background: rgba(0, 0, 0, 0.05); } @media (prefers-color-scheme: dark) { .pageviews:empty, .pageviews:contains("Loading") { background: rgba(255, 255, 255, 0.08); } } } /* Perfect scrollbar */ html { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background-color: var(--primary); border-radius: 6px; } /* RTL support */ /* [dir="rtl"] .cta-button { align-self: flex-end; } */ [dir="rtl"] .cta-button::after { left: auto; right: -100%; } [dir="rtl"] .cta-button:hover::after { left: auto; right: 100%; } /* Add view app overlay */ .app-image-container { position: relative; } .app-frame:hover .app-image-overlay { opacity: 1; } /* Premium badge for popular apps */ .app-premium-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.75); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; z-index: 10; letter-spacing: 0.5px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } [dir="rtl"] .app-premium-badge { right: auto; left: 12px; } /* App frame wrapper with hover state for entire card */ .app-frame a { display: block; text-decoration: none; color: inherit; } /* Accent style for featured apps */ .app-frame.featured { grid-column: span 2; grid-row: span 1; } .app-frame.featured .app-image { aspect-ratio: 21/9; } @media (max-width: 768px) { .app-frame.featured { grid-column: auto; } .app-frame.featured .app-image { aspect-ratio: 16/9; } } /** * App Grid Animation Styles * Enhanced viewport-triggered animations for app cards */ /* Override the existing animation to use our viewport system */ .app-frame { /* Remove the auto-animation that fires on page load */ animation: none !important; /* Make sure opacity is 0 initially */ opacity: 0; /* Add transition for our viewport animation system */ transition: transform 0.5s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)), opacity 0.5s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)), box-shadow 0.3s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)); /* Initial transform state for animation */ transform: translateY(30px); } /* When card enters viewport, animate it in */ .app-frame.animated { opacity: 1; transform: translateY(0); } /* App card reveal animation */ [data-animation="app-card-reveal"] { /* Start with transform and opacity for animation */ transform: translateY(30px); opacity: 0; } [data-animation="app-card-reveal"].animated { transform: translateY(0); opacity: 1; } /* Enhanced hover effect builds on the animated state */ .app-frame.animated:hover { transform: translateY(-8px); } /* Premium hover effect for cards */ .app-frame.animated::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--clean-gradient, linear-gradient(130deg, var(--primary), var(--secondary))); opacity: 0; transform: scaleX(0.3); transition: transform 0.5s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)), opacity 0.5s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)); border-radius: 0 0 var(--card-radius, 12px) var(--card-radius, 12px); } .app-frame.animated:hover::after { opacity: 1; transform: scaleX(1); } /* Enhanced app image container animation */ .app-image-container { overflow: hidden; position: relative; } .app-image { transform: scale(1.03); transition: transform 0.7s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)); } .app-frame.animated .app-image { transform: scale(1); } .app-frame.animated:hover .app-image { transform: scale(1.03); } /* View app icon animation */ .view-app-icon { transform: scale(0.8); opacity: 0; transition: transform 0.4s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)), opacity 0.4s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)); } .app-frame.animated:hover .view-app-icon { transform: scale(1); opacity: 1; } /* Hero section animations */ .hero .animate-item { opacity: 0; transform: translateY(20px); transition: transform 0.6s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)), opacity 0.6s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)); } .hero .animate-item.animated { opacity: 1; transform: translateY(0); } /* Main title special animation */ .main-title.animate-item::after { transform: scaleX(0) translateX(-50%); transition: transform 0.6s var(--ease-premium, cubic-bezier(0.08, 0.82, 0.17, 1)) 0.3s; } .main-title.animate-item.animated::after { transform: scaleX(1) translateX(-50%); } /* Featured app card animation */ .app-frame.featured { transition-duration: 0.7s; } /* Grid-aware staggered animations */ .app-grid { --animation-base-delay: 100ms; --animation-row-delay: 50ms; --animation-col-delay: 100ms; } /* Custom animations for different screen sizes */ @media (max-width: 768px) { .app-frame { transform: translateY(20px); /* Smaller initial transform on mobile */ } .app-frame.animated:hover { transform: translateY(-5px); /* Smaller hover lift on mobile */ } .hero p { font-size: 1rem; /* Smaller font size on mobile */ } .hero-content { padding: 0 var(--sp-4); } .app-content { padding: 20px 16px; } } /* Reduced motion support */ @media (prefers-reduced-motion: reduce) { .app-frame, .app-frame.animated, .app-frame.animated:hover, .app-image, .app-frame.animated .app-image, .app-frame.animated:hover .app-image, .view-app-icon, .app-frame.animated:hover .view-app-icon, .hero .animate-item, .hero .animate-item.animated, .main-title.animate-item::after, .main-title.animate-item.animated::after { transition: none !important; transform: none !important; opacity: 1 !important; } /* Still allow some feedback for hover states */ .app-frame:hover { box-shadow: var(--card-shadow-hover, 0 8px 32px rgba(0, 0, 0, 0.08)); } }
