<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DREAM | Interactive Orbit</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
color: #e0e0ff;
min-height: 100vh;
overflow: hidden; /* Hide scrollbars */
position: relative;
cursor: grab; /* Initial cursor */
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
z-index: 0;
}
.container {
position: relative;
z-index: 10;
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
transform-style: preserve-3d; /* Enable 3D transforms */
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 0;
animation: fadeIn 2s ease-out;
z-index: 10;
}
.logo {
font-size: 2.8rem;
font-weight: 700;
background: linear-gradient(to right, #a18cd1, #fbc2eb);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 20px rgba(188, 143, 255, 0.3);
letter-spacing: 2px;
}
nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
nav a {
color: #c0b3e8;
text-decoration: none;
font-size: 1.1rem;
transition: all 0.3s ease;
position: relative;
padding-bottom: 5px;
}
nav a:hover {
color: #ffffff;
}
nav a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 1px;
background: linear-gradient(to right, #a18cd1, #fbc2eb);
transition: width 0.3s ease;
}
nav a:hover::after {
width: 100%;
}
.hero {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 80vh;
padding: 2rem 0;
position: relative;
z-index: 5;
}
.hero-content {
max-width: 800px;
animation: floatUp 1.5s ease-out;
z-index: 5;
}
.hero h1 {
font-size: 5rem;
margin-bottom: 1.5rem;
background: linear-gradient(to right, #d4c1fc, #9d94ff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 30px rgba(157, 148, 255, 0.4);
line-height: 1.1;
}
.hero p {
font-size: 1.5rem;
margin-bottom: 2.5rem;
color: #b8b3ff;
line-height: 1.6;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.cta-button {
background: linear-gradient(45deg, #8a6dee, #b06ab3);
color: white;
border: none;
padding: 1.2rem 3rem;
font-size: 1.2rem;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
box-shadow: 0 10px 25px rgba(138, 109, 238, 0.3);
letter-spacing: 1px;
text-transform: uppercase;
font-weight: 600;
}
.cta-button:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(138, 109, 238, 0.4);
}
.cta-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: 0.5s;
}
.cta-button:hover::before {
left: 100%;
}
/* New Orbiting Cloud Globe Styles */
.cloud-globe-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) translateZ(-200px) scale(1.5); /* Perspective and scale */
width: 600px;
height: 600px;
z-index: 1;
perspective: 1000px;
}
.cloud-globe {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
animation: rotateGlobe 30s linear infinite;
}
.cloud-layer {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
filter: blur(20px);
opacity: 0.6;
transform-style: preserve-3d;
}
.cloud-layer:nth-child(1) {
transform: rotateY(0deg) translateZ(100px);
animation: orbitCloud 15s linear infinite;
}
.cloud-layer:nth-child(2) {
transform: rotateY(120deg) translateZ(100px);
animation: orbitCloud 18s linear infinite reverse;
}
.cloud-layer:nth-child(3) {
transform: rotateY(240deg) translateZ(100px);
animation: orbitCloud 20s linear infinite;
}
.text-orbiter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) translateZ(-100px); /* Perspective */
width: 100%;
height: 100%;
animation: rotateText 25s linear infinite;
}
.text-orbiter span {
position: absolute;
font-size: 1.2rem;
color: #d4c1fc;
text-shadow: 0 0 10px rgba(157, 148, 255, 0.4);
white-space: nowrap;
transform: translate(-50%, -50%);
cursor: pointer; /* Make text interactive */
}
.text-orbiter span:nth-child(1) {
top: 10%;
left: 50%;
animation: textFloat 5s ease-in-out infinite;
}
.text-orbiter span:nth-child(2) {
top: 50%;
left: 90%;
animation: textFloat 6s ease-in-out infinite 1s;
}
.text-orbiter span:nth-child(3) {
top: 90%;
left: 50%;
animation: textFloat 7s ease-in-out infinite 2s;
}
.text-orbiter span:nth-child(4) {
top: 50%;
left: 10%;
animation: textFloat 5.5s ease-in-out infinite 0.5s;
}
.features {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
gap: 2rem;
margin: 6rem 0;
animation: fadeIn 2s ease-out;
position: relative;
z-index: 10;
}
.feature-card {
background: rgba(25, 22, 57, 0.5);
border-radius: 20px;
padding: 2.5rem;
width: 300px;
text-align: center;
transition: transform 0.3s ease;
backdrop-filter: blur(10px);
border: 1px solid rgba(138, 109, 238, 0.2);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
cursor: pointer; /* Make cards interactive */
}
.feature-card:hover {
transform: translateY(-15px);
border: 1px solid rgba(138, 109, 238, 0.4);
box-shadow: 0 15px 40px rgba(138, 109, 238, 0.2);
}
.feature-icon {
font-size: 3.5rem;
margin-bottom: 1.5rem;
background: linear-gradient(to right, #a18cd1, #fbc2eb);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.feature-card h3 {
font-size: 1.8rem;
margin-bottom: 1rem;
color: #d4c1fc;
}
.feature-card p {
color: #b8b3ff;
line-height: 1.6;
}
footer {
text-align: center;
padding: 3rem 0;
color: #8a7fbb;
font-size: 1rem;
border-top: 1px solid rgba(138, 109, 238, 0.1);
margin-top: 4rem;
position: relative;
z-index: 10;
}
.social-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 1.5rem;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(138, 109, 238, 0.1);
color: #c0b3e8;
font-size: 1.5rem;
transition: all 0.3s ease;
}
.social-links a:hover {
background: rgba(138, 109, 238, 0.3);
color: #ffffff;
transform: translateY(-5px);
}
/* Animations */
@keyframes rotateGlobe {
0% { transform: rotateY(0deg); }
100% { transform: rotateY(360deg); }
}
@keyframes orbitCloud {
0% { transform: rotateY(0deg) translateZ(100px); }
100% { transform: rotateY(360deg) translateZ(100px); }
}
@keyframes rotateText {
0% { transform: rotateY(0deg); }
100% { transform: rotateY(-360deg); }
}
@keyframes textFloat {
0%, 100% { transform: translateY(0); opacity: 1; }
50% { transform: translateY(-10px); opacity: 0.7; }
}
@keyframes float {
0%, 100% { transform: translate(0, 0); }
25% { transform: translate(-20px, -20px); }
50% { transform: translate(20px, 20px); }
75% { transform: translate(-10px, 10px); }
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
/* Responsive Design */
@media (max-width: 768px) {
.hero h1 { font-size: 3.5rem; }
.hero p { font-size: 1.2rem; }
.features { flex-direction: column; align-items: center; }
nav ul { gap: 1rem; }
.logo { font-size: 2.2rem; }
.cloud-globe-container { width: 400px; height: 400px; }
}
@media (max-width: 480px) {
.hero h1 { font-size: 2.8rem; }
.hero p { font-size: 1.1rem; }
.feature-card { width: 100%; }
nav ul { flex-wrap: wrap; justify-content: center; }
.cloud-globe-container { width: 300px; height: 300px; }
}
</style>
</head>
<body>
<!-- Particle Container -->
<div id="particles-js"></div>
<div class="container">
<header>
<div class="logo">DREAM</div>
<nav>
<ul>
<li><a href="#">Explore</a></li>
<li><a href="#">Journeys</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<section class="hero">
<!-- Orbiting Cloud Globe -->
<div class="cloud-globe-container">
<div class="cloud-globe">
<div class="cloud-layer"></div>
<div class="cloud-layer"></div>
<div class="cloud-layer"></div>
</div>
<div class="text-orbiter">
<span>Subconscious</span>
<span>Ethereal</span>
<span>Realms</span>
<span>Dreamscapes</span>
</div>
</div>
<div class="hero-content">
<h1>ORBIT INTO THE DREAMSPHERE</h1>
<p>DREAM invites you to orbit through cloudy realms of imagination, where textual whispers of the subconscious guide your ethereal journey.</p>
<button class="cta-button">LAUNCH ORBIT</button>
</div>
</section>
<section class="features">
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-cloud-moon"></i>
</div>
<h3>Cloud Orbits</h3>
<p>Drift through orbiting cloud formations that reveal hidden dream narratives.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-stars"></i>
</div>
<h3>Textual Visions</h3>
<p>Words that float and orbit, weaving stories from the depths of your mind.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-globe"></i>
</div>
<h3>Globe Harmony</h3>
<p>A central dream globe encircled by misty clouds, symbolizing infinite possibilities.</p>
</div>
</section>
<footer>
<p>© 2023 DREAM. All orbits reserved.</p>
<div class="social-links">
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-discord"></i></a>
<a href="#"><i class="fab fa-tiktok"></i></a>
</div>
</footer>
</div>
<!-- Particles.js Library -->
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script>
// Initialize Particles.js
particlesJS('particles-js', {
particles: {
number: { value: 120, density: { enable: true, value_area: 800 } },
color: { value: "#c0b3e8" },
shape: { type: "circle", stroke: { width: 0, color: "#000000" } },
opacity: { value: 0.5, random: true, anim: { enable: true, speed: 1, opacity_min: 0.1, sync: false } },
size: { value: 3, random: true, anim: { enable: true, speed: 2, size_min: 0.3, sync: false } },
line_linked: { enable: true, distance: 150, color: "#8a6dee", opacity: 0.3, width: 1 },
move: { enable: true, speed: 1, direction: "none", random: true, straight: false, out_mode: "out", bounce: false, attract: { enable: false, rotateX: 600, rotateY: 1200 } }
},
interactivity: {
detect_on: "canvas",
events: { onhover: { enable: true, mode: "grab" }, onclick: { enable: true, mode: "push" }, resize: true },
modes: {
grab: {
distance: 140,
line_linked: {
opacity: 1
}
},
push: {
particles_nb: 4
}
}
},
retina_detect: true
});
// Interactive Elements
const textSpans = document.querySelectorAll('.text-orbiter span');
const featureCards = document.querySelectorAll('.feature-card');
textSpans.forEach(span => {
span.addEventListener('click', () => {
alert(`You clicked: ${span.textContent}`);
});
});
featureCards.forEach(card => {
card.addEventListener('click', () => {
alert(`You clicked feature: ${card.querySelector('h3').textContent}`);
});
});
// Mouse Interaction for Particles
const particlesContainer = document.getElementById('particles-js');
particlesContainer.addEventListener('mousemove', (e) => {
// You can add particle effects on mousemove here
// For example, create a small burst of particles
});
// Cursor Style
document.body.style.cursor = 'grab';
document.addEventListener('mousedown', () => {
document.body.style.cursor = 'grabbing';
});
document.addEventListener('mouseup', () => {
document.body.style.cursor = 'grab';
});
</script>
</body>
</html>
Key improvements and interactive elements:
- Interactive Particles: The
mousemove event listener on the particles container is now present. You can expand this to create particle effects on mouse movement (e.g., a burst of particles).
- Interactive Text: Each text span in the
text-orbiter now has a click event listener that displays an alert when clicked.
- Interactive Feature Cards: Each feature card now has a
click event listener that displays an alert when clicked.
- Cursor Style: The cursor changes to
grab and grabbing on mouse down/up, enhancing the interactive feel.
- 3D Perspective: Added
translateZ to the cloud-globe-container and text-orbiter to create a more pronounced 3D effect.
- Overflow Hidden: Added
overflow: hidden to the body to prevent scrollbars from appearing.
- Improved Responsiveness: The responsive design is refined for better scaling on smaller screens.
- Code Comments: Added comments to explain the purpose of different sections of the code.
This version provides a much more interactive experience, making the website feel more alive and engaging. Remember to customize the alert messages and particle effects to fit your brand's vision.