<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Google Fonts - Roboto -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
<!-- Ionicons -->
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
overflow-x: hidden;
}
/* Navbar */
.navbar-custom {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 1000;
padding: 25px 0;
background: transparent;
transition: all 0.3s ease;
}
.navbar-custom.scrolled {
position: fixed;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
padding: 15px 0;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
font-weight: 700;
font-size: 1.8rem;
color: white !important;
display: flex;
align-items: center;
gap: 10px;
transition: color 0.3s ease;
}
.navbar-custom.scrolled .navbar-brand {
color: #667eea !important;
}
.navbar-brand ion-icon {
font-size: 32px;
}
.navbar-nav .nav-link {
color: rgba(255, 255, 255, 0.9) !important;
font-weight: 500;
margin: 0 15px;
transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
color: white !important;
}
.navbar-custom.scrolled .navbar-nav .nav-link {
color: #4b5563 !important;
}
.navbar-custom.scrolled .navbar-nav .nav-link:hover {
color: #667eea !important;
}
.btn-navbar {
background: white;
color: #667eea;
padding: 10px 30px;
border-radius: 50px;
font-weight: 600;
border: 2px solid white;
transition: all 0.3s ease;
}
.btn-navbar:hover {
background: transparent;
color: white;
transform: translateY(-2px);
}
.navbar-custom.scrolled .btn-navbar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-color: #667eea;
}
.navbar-custom.scrolled .btn-navbar:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
/* Hero Section */
.hero-section {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
overflow: hidden;
}
/* Background Image */
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1920&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: 1;
}
/* Animated Background Pattern */
.hero-background::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
animation: moveGradient 15s ease infinite;
}
@keyframes moveGradient {
0%, 100% { opacity: 0.5; }
50% { opacity: 0.8; }
}
/* Dark Overlay */
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.85) 100%);
z-index: 2;
}
/* Animated Particles */
.particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 3;
overflow: hidden;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
animation: float 20s linear infinite;
}
@keyframes float {
0% {
transform: translateY(100vh) translateX(0);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(-100px) translateX(100px);
opacity: 0;
}
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 17s; }
/* Hero Content */
.hero-content {
position: relative;
z-index: 4;
color: white;
padding: 120px 0 80px;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
padding: 10px 25px;
border-radius: 50px;
font-weight: 500;
font-size: 0.95rem;
margin-bottom: 30px;
border: 1px solid rgba(255, 255, 255, 0.2);
animation: fadeInDown 1s ease 0.2s both;
}
.hero-badge ion-icon {
font-size: 20px;
}
.hero-title {
font-size: 4rem;
font-weight: 900;
line-height: 1.15;
margin-bottom: 25px;
text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
animation: fadeInUp 1s ease 0.4s both;
}
.hero-subtitle {
font-size: 1.4rem;
font-weight: 300;
line-height: 1.7;
margin-bottom: 40px;
opacity: 0.95;
max-width: 650px;
animation: fadeInUp 1s ease 0.6s both;
}
.hero-buttons {
display: flex;
gap: 20px;
flex-wrap: wrap;
animation: fadeInUp 1s ease 0.8s both;
}
.btn-hero-primary {
background: white;
color: #667eea;
padding: 18px 45px;
border-radius: 50px;
font-weight: 700;
font-size: 1.1rem;
border: none;
display: inline-flex;
align-items: center;
gap: 12px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}
.btn-hero-primary:hover {
transform: translateY(-3px);
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
color: #667eea;
}
.btn-hero-primary ion-icon {
font-size: 24px;
}
.btn-hero-secondary {
background: transparent;
color: white;
padding: 18px 45px;
border-radius: 50px;
font-weight: 600;
font-size: 1.1rem;
border: 2px solid rgba(255, 255, 255, 0.5);
display: inline-flex;
align-items: center;
gap: 12px;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
background: rgba(255, 255, 255, 0.15);
border-color: white;
transform: translateY(-3px);
color: white;
}
.btn-hero-secondary ion-icon {
font-size: 24px;
}
/* Stats Section */
.hero-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 40px;
margin-top: 60px;
padding-top: 60px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
animation: fadeInUp 1s ease 1s both;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 3rem;
font-weight: 900;
display: block;
margin-bottom: 10px;
}
.stat-label {
font-size: 1rem;
opacity: 0.9;
font-weight: 400;
}
/* Scroll Indicator */
.scroll-indicator {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
z-index: 4;
animation: bounce 2s infinite;
}
.scroll-indicator ion-icon {
font-size: 36px;
color: white;
opacity: 0.8;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
40% { transform: translateX(-50%) translateY(-10px); }
60% { transform: translateX(-50%) translateY(-5px); }
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.1rem;
}
.hero-buttons {
flex-direction: column;
}
.btn-hero-primary,
.btn-hero-secondary {
width: 100%;
justify-content: center;
}
.hero-stats {
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}
.stat-number {
font-size: 2rem;
}
}
</style>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-custom" id="navbar">
<div class="container">
<a class="navbar-brand" href="#">
<ion-icon name="flame"></ion-icon>
BrandName
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" style="border-color: rgba(255,255,255,0.5);">
<span class="navbar-toggler-icon" style="filter: brightness(0) invert(1);"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto align-items-center">
<li class="nav-item">
<a class="nav-link" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#features">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#pricing">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<button class="btn btn-navbar">
Get Started
</button>
</li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="hero-section" id="home">
<!-- Background Image -->
<div class="hero-background"></div>
<!-- Overlay -->
<div class="hero-overlay"></div>
<!-- Animated Particles -->
<div class="particles">
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
</div>
<!-- Content -->
<div class="container">
<div class="row">
<div class="col-lg-10 col-xl-8">
<div class="hero-content">
<span class="hero-badge">
<ion-icon name="sparkles"></ion-icon>
New Feature Available
</span>
<h1 class="hero-title">
Transform Your Business with Innovation
</h1>
<p class="hero-subtitle">
Empower your team with cutting-edge solutions designed to accelerate growth,
streamline operations, and unlock new possibilities for your business.
</p>
<div class="hero-buttons">
<button class="btn btn-hero-primary">
Start Free Trial
<ion-icon name="arrow-forward-circle"></ion-icon>
</button>
<button class="btn btn-hero-secondary">
<ion-icon name="play-circle"></ion-icon>
Watch Demo
</button>
</div>
<!-- Stats -->
<div class="hero-stats">
<div class="stat-item">
<span class="stat-number">10K+</span>
<span class="stat-label">Active Users</span>
</div>
<div class="stat-item">
<span class="stat-number">50+</span>
<span class="stat-label">Countries</span>
</div>
<div class="stat-item">
<span class="stat-number">99%</span>
<span class="stat-label">Satisfaction</span>
</div>
<div class="stat-item">
<span class="stat-number">24/7</span>
<span class="stat-label">Support</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Scroll Indicator -->
<div class="scroll-indicator">
<ion-icon name="chevron-down"></ion-icon>
</div>
</section>
<!-- Additional Content Section -->
<section style="min-height: 100vh; background: #f5f7fa; display: flex; align-items: center; justify-content: center;">
<div class="container text-center">
<h2 style="font-size: 2.5rem; font-weight: 700; color: #333; margin-bottom: 20px;">
Continue Your Journey
</h2>
<p style="font-size: 1.2rem; color: #666;">
Scroll down to discover more amazing features and content.
</p>
</div>
</section>
<!-- Bootstrap 5 JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Navbar scroll effect
window.addEventListener('scroll', function() {
const navbar = document.getElementById('navbar');
if (window.scrollY > 100) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
</script>
Login to leave a comment
Login
No comments yet. Be the first!