Modern Calisthenics Website - Single HTML File
Here's a complete, modern, and dynamic calisthenics website in a single HTML file with embedded CSS and JavaScript:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calisthenics Pro | Bodyweight Training</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary: #ff5e14;
--secondary: #1a1a2e;
--light: #f8f9fa;
--dark: #16213e;
--text: #333;
--text-light: #f8f9fa;
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--light);
color: var(--text);
overflow-x: hidden;
}
/* Preloader */
.preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--secondary);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.5s ease;
}
.preloader.fade-out {
opacity: 0;
}
.loader {
width: 50px;
height: 50px;
border: 5px solid var(--primary);
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s linear infinite;
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
/* Scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: var(--light);
}
::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 5px;
}
/* Header */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 20px 10%;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
background-color: rgba(26, 26, 46, 0.9);
backdrop-filter: blur(10px);
transition: var(--transition);
}
header.scrolled {
padding: 15px 10%;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.logo {
font-size: 2rem;
font-weight: 700;
color: var(--light);
text-decoration: none;
display: flex;
align-items: center;
}
.logo i {
color: var(--primary);
margin-right: 10px;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--light);
text-decoration: none;
font-weight: 500;
font-size: 1.1rem;
position: relative;
transition: var(--transition);
}
.nav-links a:hover {
color: var(--primary);
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary);
transition: var(--transition);
}
.nav-links a:hover::after {
width: 100%;
}
.menu-toggle {
display: none;
cursor: pointer;
color: var(--light);
font-size: 1.5rem;
}
/* Hero Section */
.hero {
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
display: flex;
align-items: center;
padding: 0 10%;
color: var(--light);
}
.hero-content {
max-width: 600px;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
line-height: 1.2;
}
.hero h1 span {
color: var(--primary);
}
.hero p {
font-size: 1.1rem;
margin-bottom: 2rem;
line-height: 1.6;
}
.cta-button {
display: inline-block;
padding: 12px 30px;
background-color: var(--primary);
color: var(--light);
text-decoration: none;
border-radius: 30px;
font-weight: 600;
transition: var(--transition);
border: 2px solid var(--primary);
}
.cta-button:hover {
background-color: transparent;
color: var(--primary);
}
.secondary-button {
background-color: transparent;
color: var(--primary);
margin-left: 15px;
border: 2px solid var(--primary);
}
.secondary-button:hover {
background-color: var(--primary);
color: var(--light);
}
/* About Section */
.section {
padding: 100px 10%;
}
.section-title {
text-align: center;
margin-bottom: 60px;
}
.section-title h2 {
font-size: 2.5rem;
color: var(--secondary);
position: relative;
display: inline-block;
}
.section-title h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background-color: var(--primary);
}
.about-content {
display: flex;
align-items: center;
gap: 50px;
}
.about-image {
flex: 1;
position: relative;
}
.about-image img {
width: 100%;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.about-image::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
border: 5px solid var(--primary);
border-radius: 10px;
top: 20px;
left: 20px;
z-index: -1;
}
.about-text {
flex: 1;
}
.about-text h3 {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--secondary);
}
.about-text p {
margin-bottom: 15px;
line-height: 1.6;
}
.stats {
display: flex;
gap: 30px;
margin-top: 30px;
}
.stat-item {
text-align: center;
}
.stat-item h4 {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 5px;
}
.stat-item p {
font-size: 1rem;
color: var(--text);
}
/* Exercises Section */
.exercises {
background-color: var(--secondary);
color: var(--light);
}
.exercises .section-title h2 {
color: var(--light);
}
.exercise-tabs {
display: flex;
justify-content: center;
margin-bottom: 40px;
flex-wrap: wrap;
gap: 10px;
}
.tab-btn {
padding: 10px 25px;
background-color: transparent;
color: var(--light);
border: 1px solid var(--primary);
border-radius: 30px;
cursor: pointer;
transition: var(--transition);
font-weight: 500;
}
.tab-btn.active {
background-color: var(--primary);
}
.tab-btn:hover:not(.active) {
background-color: rgba(255