/* Global Resets and Variables */ :root { --primary-color: #0a2540; /* Dark blue */ --accent-color: #00aaff; /* Bright blue */ --text-color: #ffffff; --bg-color: #0f0f1a; /* Dark background */ --secondary-bg: #1a1a2e; --font-family: 'Inter', sans-serif; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-family); color: var(--text-color); background-color: var(--bg-color); line-height: 1.6; overflow-x: hidden; } /* Navbar */ .navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; position: fixed; top: 0; width: 100%; background: rgba(10, 37, 64, 0.8); backdrop-filter: blur(10px); z-index: 10; transition: var(--transition); } .logo { font-size: 1.5rem; font-weight: 800; color: var(--accent-color); } .nav-links { display: flex; list-style: none; } .nav-links li { margin-left: 2rem; } .nav-links a { color: var(--text-color); text-decoration: none; transition: var(--transition); } .nav-links a:hover { color: var(--accent-color); transform: scale(1.05); } /* Hero Section */ .hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(135deg, var(--primary-color), var(--bg-color)); position: relative; overflow: hidden; } /* Background Animations */ .hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0,170,255,0.1) 0%, transparent 70%); animation: pulse 5s infinite; } .hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(0,170,255,0.05), rgba(0,255,170,0.05)); animation: gradientWave 10s infinite linear; } /* Particle Effects (Starfield-like) */ .hero .particle { position: absolute; background: var(--accent-color); border-radius: 50%; opacity: 0.4; animation: particleMove 10s infinite ease-in-out; } .hero .particle:nth-child(1) { top: 20%; left: 10%; width: 6px; height: 6px; animation-delay: 0s; animation: particleMoveDiag 8s infinite; } .hero .particle:nth-child(2) { top: 50%; left: 80%; width: 4px; height: 4px; animation-delay: 2s; } .hero .particle:nth-child(3) { top: 70%; left: 30%; width: 5px; height: 5px; animation-delay: 4s; animation: particleMoveDiag 12s infinite; } .hero .particle:nth-child(4) { top: 30%; left: 60%; width: 7px; height: 7px; animation-delay: 6s; } .hero .particle:nth-child(5) { top: 40%; left: 20%; width: 3px; height: 3px; animation-delay: 8s; } .hero .particle:nth-child(6) { top: 60%; left: 70%; width: 5px; height: 5px; animation-delay: 10s; animation: particleMoveDiag 10s infinite; } @keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0.2; } 100% { transform: scale(1); opacity: 0.5; } } @keyframes gradientWave { 0% { background-position: 0% 50%; } 100% { background-position: 400% 50%; } } @keyframes particleMove { 0% { transform: translate(0, 0); opacity: 0.4; } 50% { transform: translate(60px, 60px); opacity: 0.7; } 100% { transform: translate(0, 0); opacity: 0.4; } } @keyframes particleMoveDiag { 0% { transform: translate(0, 0); opacity: 0.4; } 50% { transform: translate(-50px, 70px); opacity: 0.7; } 100% { transform: translate(0, 0); opacity: 0.4; } } .hero-content { z-index: 5; padding: 120px 1rem 0; overflow: visible; animation: fadeIn 1.5s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .headline { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; width: 0; /* Start hidden */ white-space: nowrap; /* Prevent wrapping during animation */ overflow: hidden; /* Clip text during typing */ border-right: 0.15em solid var(--accent-color); animation: typeWriter 5s steps(50, end) forwards, blinkCaret 0.75s step-end infinite; } @keyframes typeWriter { 0% { width: 0; } 100% { width: 60ch; } } @keyframes blinkCaret { from, to { border-color: transparent; } 50% { border-color: var(--accent-color); } } .subheadline { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; animation: fadeIn 2s ease-out 1s forwards; } .cta-button { display: inline-block; padding: 1rem 2rem; background: var(--accent-color); color: var(--primary-color); text-decoration: none; font-weight: 600; border-radius: 5px; transition: var(--transition); box-shadow: 0 4px 10px rgba(0,170,255,0.3); } .cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,170,255,0.5); } /* About Section */ .about-section { padding: 5rem 5%; background: var(--secondary-bg); text-align: center; background-attachment: fixed; background-image: linear-gradient(to bottom, transparent, var(--bg-color)); } .about-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; position: relative; } .about-section h2::after { content: ''; width: 50px; height: 3px; background: var(--accent-color); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); animation: underline 1s ease-out; } @keyframes underline { from { width: 0; } to { width: 50px; } } .features { list-style: none; max-width: 600px; margin: 2rem auto; text-align: left; } .features li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; } .features li::before { content: '✓'; color: var(--accent-color); position: absolute; left: 0; } /* CTA Section */ .cta-section { padding: 5rem 5%; text-align: center; background: linear-gradient(135deg, var(--primary-color), var(--secondary-bg)); } .cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; } .signup-form { display: flex; justify-content: center; max-width: 500px; margin: 2rem auto; } .signup-form input { padding: 1rem; flex: 1; border: none; border-radius: 5px 0 0 5px; background: var(--bg-color); color: var(--text-color); } .signup-form button { padding: 1rem 2rem; background: var(--accent-color); color: var(--primary-color); border: none; border-radius: 0 5px 5px 0; cursor: pointer; transition: var(--transition); } .signup-form button:hover { background: #0088cc; } /* Footer */ footer { padding: 2rem 5%; text-align: center; background: var(--primary-color); } /* Responsiveness */ @media (max-width: 768px) { .navbar { flex-direction: column; } .nav-links { margin-top: 1rem; } .nav-links li { margin: 0 1rem; } .headline { font-size: 1.8rem; width: 0; animation: typeWriter 5s steps(50, end) forwards, blinkCaret 0.75s step-end infinite; } @keyframes typeWriter { 0% { width: 0; } 100% { width: 50ch; } } .hero-content { padding-top: 150px; } .about-section h2, .cta-section h2 { font-size: 2rem; } .signup-form { flex-direction: column; } .signup-form input { border-radius: 5px; margin-bottom: 1rem; } .signup-form button { border-radius: 5px; } } @media (max-width: 480px) { .headline { font-size: 1.5rem; width: 0; animation: typeWriter 5s steps(50, end) forwards, blinkCaret 0.75s step-end infinite; } @keyframes typeWriter { 0% { width: 0; } 100% { width: 45ch; } } .hero-content { padding-top: 150px; } }