Here's a complete HTML file with embedded CSS and JavaScript for a futuristic neon cyberpunk landing page:
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neon Nexus | Cyberpunk 2077</title>
<style>
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Rajdhani', 'Orbitron', sans-serif;
}
@font-face {
font-family: 'Rajdhani';
src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
}
@font-face {
font-family: 'Orbitron';
src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
}
body {
background-color: #0a0a1a;
color: #e0e0e0;
overflow-x: hidden;
position: relative;
min-height: 100vh;
}
/* Neon Glow Effects */
.neon-text {
text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff, 0 0 20px #00f0ff;
color: #ffffff;
}
.neon-pink {
text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff;
color: #ffffff;
}
.neon-purple {
text-shadow: 0 0 5px #9d00ff, 0 0 10px #9d00ff, 0 0 20px #9d00ff;
color: #ffffff;
}
.neon-border {
box-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff, inset 0 0 5px #00f0ff;
border: 1px solid #00f0ff;
}
.neon-border-pink {
box-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, inset 0 0 5px #ff00ff;
border: 1px solid #ff00ff;
}
/* Background Elements */
.grid-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
z-index: -1;
}
.scanlines {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.15),
rgba(0, 0, 0, 0.15) 1px,
transparent 1px,
transparent 2px
);
pointer-events: none;
z-index: 0;
}
/* Header Styles */
header {
padding: 1.5rem 5%;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 10;
}
.logo {
font-family: 'Orbitron', sans-serif;
font-size: 2rem;
font-weight: 700;
letter-spacing: 0.2rem;
text-transform: uppercase;
}
nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
nav a {
color: #e0e0e0;
text-decoration: none;
font-size: 1.1rem;
font-weight: 500;
letter-spacing: 0.1rem;
text-transform: uppercase;
transition: all 0.3s ease;
position: relative;
padding: 0.5rem 0;
}
nav a:hover {
color: #00f0ff;
}
nav a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: #00f0ff;
transition: width 0.3s ease;
}
nav a:hover::after {
width: 100%;
}
/* Hero Section */
.hero {
height: 80vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 0 5%;
position: relative;
z-index: 5;
}
.hero h1 {
font-family: 'Orbitron', sans-serif;
font-size: 4.5rem;
font-weight: 700;
letter-spacing: 0.5rem;
margin-bottom: 1.5rem;
text-transform: uppercase;
}
.hero p {
font-size: 1.5rem;
max-width: 800px;
margin-bottom: 3rem;
line-height: 1.6;
}
.cta-button {
display: inline-block;
padding: 1rem 2.5rem;
background: transparent;
color: #00f0ff;
font-size: 1.2rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.cta-button:hover {
color: #0a0a1a;
background: #00f0ff;
box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}
.cta-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
transition: 0.5s;
}
.cta-button:hover::before {
left: 100%;
}
/* Floating Elements */
.floating-elements {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
.floating-element {
position: absolute;
border-radius: 50%;
opacity: 0.7;
filter: blur(1px);
}
.floating-element:nth-child(1) {
width: 100px;
height: 100px;
background: radial-gradient(circle, #00f0ff, transparent 70%);
top: 20%;
left: 10%;
animation: float 15s infinite ease-in-out;
}
.floating-element:nth-child(2) {
width: 150px;
height: 150px;
background: radial-gradient(circle, #ff00ff, transparent 70%);
top: 60%;
left: 80%;
animation: float 20s infinite ease-in-out reverse;
}
.floating-element:nth-child(3) {
width: 200px;
height: 200px;
background: radial-gradient(circle, #9d00ff, transparent 70%);
top: 30%;
left: 60%;
animation: float 25s infinite ease-in-out;
}
@keyframes float {
0%, 100% {
transform: translateY(0) translateX(0);
}
50% {
transform: translateY(-50px) translateX(20px);
}
}
/* Features Section */
.features {
padding: 5rem 5%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
position: relative;
z-index: 5;
}
.feature-card {
padding: 2rem;
background: rgba(10, 10, 26, 0.7);
border-radius: 5px;
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);