<div class=”hero-section”>
<!– Center Content –>
<div class=”hero-content”>
<h1>
Breathe in peace.<br />
Breathe out the world.
</h1>
<p>
Find freedom on the open road, where every sunrise brings a new horizon.
Let the stars guide your nights<br />
and the silence fill your soul.
</p>
</div>

<!– Left Icons –>
<div class=”icon-group left”>
<div class=”icon-card”>
<div class=”icon-img”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/02/Career-Growth.png” />
</div>
<p>Road Trips</p>
</div>

<div class=”icon-card”>
<div class=”icon-img”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/02/Career-Growth.png” />
</div>
<p>New Horizons</p>
</div>

<div class=”icon-card”>
<div class=”icon-img”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/02/Career-Growth.png” />
</div>
<p>Camping</p>
</div>
</div>

<!– Right Icons –>
<div class=”icon-group right”>
<div class=”icon-card”>
<div class=”icon-img”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/02/Career-Growth.png” />
</div>
<p>Under the Stars</p>
</div>

<div class=”icon-card”>
<div class=”icon-img”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/02/Career-Growth.png” />
</div>
<p>Sunrise Spots</p>
</div>

<div class=”icon-card”>
<div class=”icon-img”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/02/Career-Growth.png” />
</div>
<p>Hello Adventure</p>
</div>
</div>
</div>

<style>
/* ===== ORIGINAL STYLES (UNCHANGED) ===== */

.hero-section {
position: relative;
width: 100%;
min-height: 100vh;
background: url(“https://images.unsplash.com/photo-1518770660439-4636190af475”)
center / cover no-repeat;
font-family: “Georgia”, serif;
position: relative;
z-index: 0;
}

.hero-section::after {
content: “”;
position: absolute;
inset: 0;
background: radial-gradient(
circle at center,
rgba(255, 255, 255, 0.18) 0%,
rgba(0, 0, 0, 0.45) 25%,
rgba(0, 0, 0, 0.9) 80%
);
z-index: 1;

}

.hero-content {
position: relative;
z-index: 2;
text-align: center;
color: #ffffff;
max-width: 900px;
margin: auto;
padding-top: 120px;
}

.hero-content h1 {
font-size: 56px;
line-height: 1.2;
color: #ffffff;
margin-bottom: 20px;
opacity: 0;
transform: translateY(-40px);
transition: 0.8s ease;

}

.hero-content p {
font-size: 18px;
opacity: 0;
transform: translateY(-30px);
transition: 0.8s ease;
transition-delay: 0.3s;
}

.icon-group {
position: absolute;
top: 60%;
transform: translateY(-50%);
z-index: 2;
display: flex;
flex-direction: column;
gap: 18px;
}

.icon-group.left {
left: 40px;
}

.icon-group.right {
right: 40px;
}

.icon-card {
display: flex;
align-items: center;
gap: 14px;
border-radius: 14px;
color: #fff;
min-width: 180px;
opacity: 0;
overflow: hidden;
}

.icon-img {
width: 50px;
height: 50px;
padding: 5px 8px;
background: #cc3e00;
border-radius: 10px 0 0 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
z-index: 2;
}

.icon-img img {
width: 45px;
filter: brightness(0) invert(1);
}

.icon-card p {
margin: 0;
font-size: 15px;
white-space: nowrap;
}

/* STAGGERED LEFT ICONS */
.icon-group.left .icon-card:nth-child(1) {
transform: translate(140px, -20px);
}

.icon-group.left .icon-card:nth-child(2) {
transform: translate(0px, 0px);
}

.icon-group.left .icon-card:nth-child(3) {
transform: translate(140px, 60px);
}

/* STAGGERED RIGHT ICONS */
.icon-group.right .icon-card:nth-child(1) {
transform: translate(-100px, -20px);
}

.icon-group.right .icon-card:nth-child(2) {
transform: translate(10px, 0px);
}

.icon-group.right .icon-card:nth-child(3) {
transform: translate(-100px, 60px);
}

/* ===== ONLY ANIMATION LOGIC ADDED ===== */

.icon-card {
width: 60px;
transition: width 0.8s cubic-bezier(.22,1,.36,1),
opacity 0.4s ease;
}

.icon-img {
transform: translateX(120px);
animation: zoomThenSlide 2s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes zoomThenSlide {
0% {
transform: scale(0.1) translateX(100px);
}
60% {
transform: scale(1) translateX(100px);
}
100% {
transform: scale(1) translateX(0);
}
}

.icon-card p {
opacity: 0;
transform: translateX(-20px);
transition: opacity 0.5s ease,
transform 2s cubic-bezier(.22,1,.36,1);
}

/* Trigger animation */
.hero-section.animate h1,
.hero-section.animate p {
opacity: 1;
transform: translateY(0);
}

.hero-section.animate .icon-card {
opacity: 1;
transition-delay: 0.9s;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(8px);
}

.hero-section.animate .icon-img {
transform: translateX(0);
transition-delay: 0.9s;
}

.hero-section.animate .icon-card p {
opacity: 1;
transform: translateX(0);
transition-delay: 1.05s;
}

/* RESPONSIVE */
@media (max-width: 900px) {
.icon-group {
display: none;
}
.hero-content h1 {
font-size: 40px;
}
}
</style>

<script>
document.addEventListener(“DOMContentLoaded”, function () {
const hero = document.querySelector(“.hero-section”);

const observer = new IntersectionObserver(
([entry]) => {
if (entry.isIntersecting) {
hero.classList.add(“animate”);
observer.unobserve(hero);
}
},
{ threshold: 0.3 }
);

observer.observe(hero);
});
</script>

<div class=”step-feature”>
<div class=”step-image”>
<img src=”https://masterwebdevelopment.com/wp-content/uploads/2025/12/8041941-removebg-preview.png”>
</div>

<div class=”step-text”>
<h2 class=”step active”><span>Lose</span> weight</h2>
<h2 class=”step”><span>Track</span> results</h2>
<h2 class=”step”><span>Stay</span> motivated</h2>
<h2 class=”step”><span>Build</span> habits</h2>
</div>
</div>

<style>
.step-feature {
position: relative;
height: 420px; /* fits inside column */
overflow: hidden;
background: #000;
font-family: Inter, sans-serif;
}

.step-image {
position: absolute;
top: 20px;
left: 0;
right: 0;
text-align: center;
z-index: 2;
}

.step-image img {
width: 110px;
opacity: 0;
transform: scale(0.6);
transition: 0.6s ease;
}

.step-text {
position: absolute;
bottom: 80px;
width: 100%;
text-align: center;
}

.step {
position: absolute;
width: 100%;
font-size: 42px;
font-weight: 600;
color: #aaa;
opacity: 0;
transform: translateY(20px);
transition: 0.6s ease;
}

.step span {
background: linear-gradient(90deg, #4fd1ff, #7cffb2);
-webkit-background-clip: text;
color: transparent;
}

/* ACTIVE STEP */
.step.active {
opacity: 1;
transform: translateY(0);
}

.step-feature.active img {
opacity: 1;
transform: scale(1);
}

</style>

<script>
let currentStep = 0;
const steps = document.querySelectorAll(“.step”);
const img = document.getElementById(“stepImg”);
const container = document.querySelector(“.step-feature”);

const images = [
“https://masterwebdevelopment.com/wp-content/uploads/2025/12/8041941-removebg-preview.png”,
“https://masterwebdevelopment.com/wp-content/uploads/2025/12/8041941-removebg-preview.png”,
“https://masterwebdevelopment.com/wp-content/uploads/2025/12/8041941-removebg-preview.png”,
“https://masterwebdevelopment.com/wp-content/uploads/2025/12/8041941-removebg-preview.png”
];

let isScrolling = false;

window.addEventListener(“wheel”, (e) => {
if (!container.matches(“:hover”)) return;
if (isScrolling) return;

isScrolling = true;

if (e.deltaY > 0 && currentStep < steps.length – 1) {
currentStep++;
} else if (e.deltaY < 0 && currentStep > 0) {
currentStep–;
}

steps.forEach((s) => s.classList.remove(“active”));
steps[currentStep].classList.add(“active”);

img.src = images[currentStep];
container.classList.add(“active”);

setTimeout(() => (isScrolling = false), 700);
});
</script>

Scroll to Top