/* Custom Properties */ :root { --primary: #8b5cf6; --secondary: #06b6d4; --dark: #0f172a; --surface: #1e293b; --cursor-size: 20px; --cursor-outline-size: 40px; } /* Global Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } /* Custom Cursor */ body { cursor: none; } .cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; } .cursor-dot { width: 8px; height: 8px; background-color: var(--primary); box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary); transition: width 0.2s, height 0.2s; } .cursor-outline { width: var(--cursor-outline-size); height: var(--cursor-outline-size); border: 2px solid rgba(139, 92, 246, 0.3); transition: width 0.2s, height 0.2s, background-color 0.2s; } .cursor-dot.hovering { width: 12px; height: 12px; background-color: var(--secondary); box-shadow: 0 0 15px var(--secondary), 0 0 30px var(--secondary); } .cursor-outline.hovering { width: 60px; height: 60px; background-color: rgba(139, 92, 246, 0.1); border-color: var(--secondary); } /* Gradient Text */ .gradient-text { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradient-shift 3s ease infinite; } @keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } /* Reveal Text Animation */ .reveal-text { opacity: 0; transform: translateY(100%) rotate(5deg); animation: reveal-text 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes reveal-text { to { opacity: 1; transform: translateY(0) rotate(0); } } /* Fade In Up */ .animate-fade-in-up { opacity: 0; transform: translateY(30px); animation: fade-in-up 0.8s ease forwards; } @keyframes fade-in-up { to { opacity: 1; transform: translateY(0); } } .animate-fade-in { animation: fade-in 0.8s ease forwards; } @keyframes fade-in { to { opacity: 1; } } /* Scroll Down Animation */ .animate-scroll-down { animation: scroll-down 2s infinite; } @keyframes scroll-down { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(15px); opacity: 0; } } /* Marquee Animation */ .marquee-container { overflow: hidden; white-space: nowrap; } .marquee-content { display: inline-block; animation: marquee 20s linear infinite; } .marquee-content:hover { animation-play-state: paused; } @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } /* Page Transition */ .page-transition { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); z-index: 9998; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1); } .page-transition.active { transform: translateY(0); } /* Magnetic Button Effect */ .magnetic-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; } .magnetic-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .magnetic-btn:hover::before { width: 300px; height: 300px; } /* 3D Tilt Card Effect */ [data-tilt] { transform-style: preserve-3d; transform: perspective(1000px); transition: transform 0.1s; } [data-tilt]:hover { z-index: 10; } /* Scroll Reveal */ .reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; } .reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); } /* Project Card Hover Effects */ .project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%); background-size: 200% 200%; transform: translateX(-100%); transition: transform 0.6s; } .project-card:hover::after { transform: translateX(100%); } /* Navbar Glass Effect */ .glass-nav { backdrop-filter: blur(20px); background: rgba(15, 23, 42, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.05); } /* Input Focus Effects */ input:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1); } /* Ripple Effect */ .ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple 0.6s linear; background-color: rgba(255, 255, 255, 0.3); } @keyframes ripple { to { transform: scale(4); opacity: 0; } } /* Stats Counter Animation */ .counter { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Floating Elements */ .floating { animation: float 6s ease-in-out infinite; } .floating:nth-child(2) { animation-delay: 1s; } .floating:nth-child(3) { animation-delay: 2s; } /* Responsive */ @media (max-width: 768px) { .cursor-dot, .cursor-outline { display: none; } body { cursor: auto; } } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--dark); } ::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--secondary)); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--secondary), var(--primary)); }