/* ===== DataCraft — Enhanced Styles ===== */ html { scroll-behavior: smooth; } body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } /* Selection color */ ::selection { background: rgba(99, 102, 241, 0.2); color: #312e81; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #9ca3af; } /* ===== Scroll Reveal Animations ===== */ .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); } .reveal.visible { opacity: 1; transform: translateY(0); } .reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); } .reveal-left.visible { opacity: 1; transform: translateX(0); } .reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); } .reveal-right.visible { opacity: 1; transform: translateX(0); } .reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); } .reveal-scale.visible { opacity: 1; transform: scale(1); } /* Staggered children */ .stagger-children > * { opacity: 0; transform: translateY(24px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); } .stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; } .stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; } .stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; } .stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; } .stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; } .stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; } .stagger-children.visible > * { opacity: 1; transform: translateY(0); } /* ===== Hero gradient animation ===== */ @keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } .hero-gradient-text { background: linear-gradient(135deg, #4f46e5, #7c3aed, #4f46e5); background-size: 200% 200%; animation: gradientShift 4s ease infinite; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* ===== Floating animation ===== */ @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } .animate-float { animation: float 3s ease-in-out infinite; } .animate-float-delayed { animation: float 3s ease-in-out 1.5s infinite; } /* ===== Pulse ring ===== */ @keyframes pulseRing { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } } .pulse-ring::before { content: ''; position: absolute; inset: -4px; border-radius: 9999px; border: 2px solid #6366f1; animation: pulseRing 2s ease-out infinite; } /* ===== Card hover effects ===== */ .card-hover { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1); } .card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.12); } /* Pricing card hover */ .pricing-card { transition: transform 0.3s ease, box-shadow 0.3s ease; } .pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15); } /* ===== Button shine effect ===== */ .btn-shine { position: relative; overflow: hidden; } .btn-shine::after { content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform: skewX(-20deg); transition: left 0.6s ease; } .btn-shine:hover::after { left: 120%; } /* ===== Animated counter ===== */ .counter-value { display: inline-block; font-variant-numeric: tabular-nums; } /* ===== Toast notifications ===== */ .toast { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(100px); background: #1f2937; color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; z-index: 100; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.2); } .toast.show { transform: translateX(-50%) translateY(0); } /* ===== Status badges ===== */ .badge-pending { background: #fef3c7; color: #92400e; } .badge-estimated { background: #dbeafe; color: #1e40af; } .badge-paid { background: #d1fae5; color: #065f46; } .badge-in-progress { background: #e0e7ff; color: #3730a3; } .badge-completed { background: #d1fae5; color: #065f46; } /* ===== Modal ===== */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 60; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; } .modal-backdrop.active { opacity: 1; pointer-events: auto; } .modal-content { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); z-index: 70; width: calc(100% - 2rem); max-width: 32rem; max-height: calc(100vh - 4rem); overflow-y: auto; opacity: 0; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; } .modal-content.active { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; } /* ===== Forms ===== */ textarea { resize: vertical; min-height: 80px; } input:focus, textarea:focus, select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } input[type="checkbox"]:checked { background-color: #6366f1; border-color: #6366f1; } /* ===== Back to top button ===== */ #backToTop { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; background: #4f46e5; color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease; z-index: 40; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3); pointer-events: none; } #backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; } #backToTop:hover { background: #4338ca; transform: translateY(-2px); } /* ===== Mobile bottom nav ===== */ .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-top: 1px solid #f3f4f6; z-index: 40; padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom)); display: none; } @media (max-width: 639px) { .mobile-bottom-nav { display: flex; } body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); } .toast { bottom: calc(5rem + env(safe-area-inset-bottom)); } #backToTop { bottom: calc(5rem + env(safe-area-inset-bottom)); } } .mobile-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.25rem 0; color: #9ca3af; text-decoration: none; font-size: 0.625rem; font-weight: 500; transition: color 0.2s ease; } .mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: #4f46e5; } .mobile-bottom-nav svg { width: 20px; height: 20px; } /* ===== Cookie banner ===== */ .cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1f2937; color: white; padding: 1rem; z-index: 90; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); } .cookie-banner.show { transform: translateY(0); } @media (max-width: 639px) { .cookie-banner { bottom: calc(3.5rem + env(safe-area-inset-bottom)); } } /* ===== Number ticker ===== */ @keyframes countUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* ===== Logo strip scroll ===== */ @keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } .logo-scroll { animation: scrollLogos 20s linear infinite; } .logo-scroll:hover { animation-play-state: paused; } /* ===== Shimmer loading ===== */ @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .shimmer { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
