/* Improved Base Styles */ :root { --bg-primary: #0f0a19; --bg-secondary: #1a1033; --text-primary: #e2e8f0; --text-secondary: #c7d2fe; --accent-purple: #8b5cf6; --accent-pink: #c084fc; --accent-deep: #a855f7; --border-color: rgba(139, 92, 246, 0.3); --glow-color: rgba(168, 85, 247, 0.5); } body { font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); margin: 0; padding: 0; min-height: 100vh; perspective: 1px; transform-style: preserve-3d; overflow-x: hidden; overflow-y: auto; line-height: 1.7; scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background-image: radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.1) 0%, transparent 50%); background-attachment: fixed; } @keyframes typing { from { width: 0 } to { width: 100% } } @keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #8b5cf6 } } .typing-text { overflow: hidden; white-space: nowrap; border-right: 3px solid #8b5cf6; animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite; } .parallax { position: relative; height: 100vh; min-height: 600px; transform-style: preserve-3d; z-index: -1; isolation: isolate; } .parallax::after { content: ''; position: absolute; inset: 0; background: radial-gradient( circle at center, transparent 0%, var(--bg-primary) 100% ); z-index: 1; pointer-events: none; } .parallax-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .parallax-back { transform: translateZ(-1px) scale(2); } .parallax-base { transform: translateZ(0); } .parallax-front { transform: translateZ(1px) scale(0.5); } .fade-in { animation: fadeIn 1s ease-in-out both; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Staggered animations */ [data-animate] { opacity: 0; animation: fadeIn 0.8s ease-out forwards; } [data-animate-delay="100"] { animation-delay: 0.1s; } [data-animate-delay="200"] { animation-delay: 0.2s; } [data-animate-delay="300"] { animation-delay: 0.3s; } [data-animate-delay="400"] { animation-delay: 0.4s; } .float { animation: float 6s ease-in-out infinite; } @keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } 100% { transform: translateY(0px) rotate(0deg); } } /* Smooth scroll behavior */ @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } } /* Focus styles for accessibility */ :focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 2px; border-radius: 0.25rem; } /* Improved transitions */ .transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } /* Better typography */ h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin-bottom: 1rem; } p { margin-bottom: 1.25rem; max-width: 65ch; } /* Enhanced Fluid Typography */ html { font-size: 15px; } @media (min-width: 640px) { html { font-size: 16px; } } @media (min-width: 1024px) { html { font-size: 18px; } } @media (min-width: 1536px) { html { font-size: 20px; } } /* Better Text Contrast */ .text-purple-200 { color: rgba(216, 180, 254, 0.9); } .text-purple-300 { color: rgba(196, 181, 253, 0.95); } .glow-animate { animation: glow-pulse 2s infinite alternate; } @keyframes glow-pulse { from { box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); } to { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); } } .gradient-text { background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-pink) 50%, var(--accent-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; background-size: 200% auto; animation: gradient-shift 4s ease infinite; } @keyframes gradient-shift { 0% { background-position: 0% center; } 50% { background-position: 100% center; } 100% { background-position: 0% center; } } .glow { box-shadow: 0 0 15px var(--glow-color); transition: all 0.3s ease; position: relative; } .glow:hover { box-shadow: 0 0 25px var(--glow-color); transform: translateY(-3px); } .glow::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; box-shadow: 0 0 30px var(--glow-color); opacity: 0; transition: opacity 0.3s ease; } .glow:hover::after { opacity: 0.5; } /* Responsive container with fluid scaling */ .container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); } @media (min-width: 1536px) { .container { max-width: 1536px; } } /* Enhanced Buttons with 3D Effect */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 500; border-radius: 9999px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; user-select: none; white-space: nowrap; } .btn-primary { background-color: var(--accent-purple); color: white; padding: 0.75rem 1.75rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; position: relative; overflow: hidden; } .btn-primary:hover { background-color: var(--accent-deep); transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; } .btn-primary::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( to bottom right, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60% ); transform: rotate(30deg); transition: all 0.3s ease; } .btn-primary:hover::before { transform: rotate(30deg) translate(20%, 20%); } .btn-primary:active { transform: translateY(0); } .btn-outline { border: 1px solid var(--border-color); color: var(--text-secondary); padding: 0.75rem 1.75rem; background-color: transparent; } .btn-outline:hover { background-color: rgba(139, 92, 246, 0.1); border-color: var(--accent-purple); } /* Enhanced cards with depth */ .card { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 1rem; padding: 2rem; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100% ); z-index: 0; opacity: 0; transition: opacity 0.3s ease; } .card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.2), 0 10px 10px -5px rgba(139, 92, 246, 0.1); } .card:hover::before { opacity: 1; } .card-content { position: relative; z-index: 1; }