* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #05010f;
  overflow-x: hidden;
}

.hero,
.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero {
  background-image: url("../images/Hero.jpg");
}

.img2 {
  background-image: url("../images/Idea.jpg");
}

.img3 {
  background-image: url("../images/Coding.jpg");
}

.img4 {
  background-image: url("../images/Error.jpg");
}

.img5 {
  background-image: url("../images/Learn.jpg");
}

.img6 {
  background-image: url("../images/Skills.jpg");
}

.img7{
    background-image: url("../images/Line Code.jpg");
}
.img8{
  background-image:url("../images/Project.jpg") ;
}
.img9{
  background-image: url("../images/Limits.jpg");
}
.img10{
  background-image: url("../images/Possibilty.jpg");
}
.img11{
  background-image: url("../images/Story End.jpg");
}
.img12{
  background-image: url("../images/Start.jpg");
}
.img13 {
  background-image: url("../images/Trust.jpg");
}

.hero::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.overlay,
.panel h1 {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Baloo Bhai 2", cursive;
  font-size: clamp(3rem, 8vw, 7rem);
  color: white;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hero p {
  margin-top: 20px;
  color: white;
  font-family: "Baloo Bhai 2", cursive;
  font-size: 1.2rem;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.panel {
  view-timeline-name: --story;
  view-timeline-axis: block;
}

.panel h1 {
  width: min(1000px, 90%);
  font-family: "Caveat", cursive;
  font-size: clamp(3rem, 6vw, 6rem);
  color: white;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.9);

  animation: textGrow linear;
  animation-timeline: --story;
  animation-range: entry 0% cover 100%;
}

.panel::before {
  animation: darken linear;
  animation-timeline: --story;
  animation-range: entry 0% cover 100%;
}

@keyframes textGrow {
  0% {
    transform: scale(0.7);
    opacity: 0.2;
    letter-spacing: 0;
  }

  50% {
    transform: scale(1);
    opacity: 1;
    letter-spacing: 2px;
  }

  100% {
    transform: scale(1.25);
    opacity: 1;
    letter-spacing: 4px;
  }
}

@keyframes darken {
  0% {
    background: rgba(0, 0, 0, 0.2);
  }

  50% {
    background: rgba(0, 0, 0, 0.45);
  }

  100% {
    background: rgba(0, 0, 0, 0.75);
  }
}

footer {
  background: #030008;
  color: white;
  text-align: center;
  padding: 25px;
  font-family: "Baloo Bhai 2", cursive;
}

@media (max-width: 768px) {
  .hero,
  .panel {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .panel h1 {
    font-size: 2.3rem;
  }
}
