* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #071013;
  color: #fff;
}

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 40px;
  background: #071013;
  border-bottom: 0.2px solid #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

#nav-links a {
  margin-left: 24px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
}

#nav-links a:hover {
  color: #d70913;
}

#nav-button {
  margin-left: 30px;
  padding: 10px 18px;
  background: #d70913;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
}
#nav-button:hover {
  background: #fff;
  transform: translateY(-3px);
  opacity: 1;
}

/* SECTIONS */
section {
  padding: 80px 40px;
  min-height: 60vh;
}

/* HOME */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.petal {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #d70913; /* rose-red */
  border-radius: 50%;
  top: -20px;
  z-index: 1;
  animation: fall linear infinite;
}

.petal1 { left: 10%; animation-duration: 5s; animation-delay: 0s; }
.petal2 { left: 50%; animation-duration: 7s; animation-delay: 1s; }
.petal3 { left: 80%; animation-duration: 6s; animation-delay: 0.5s; }
.petal4 { left: 30%; animation-duration: 8s; animation-delay: 2s; }
.petal5 { left: 60%; animation-duration: 5.5s; animation-delay: 1.5s; }
.petal6 { left: 20%; animation-duration: 7.5s; animation-delay: 1.2s; }
.petal7 { left: 70%; animation-duration: 6.5s; animation-delay: 0.8s; }
.petal8 { left: 40%; animation-duration: 9s; animation-delay: 2.5s; }
.petal9 { left: 90%; animation-duration: 5.2s; animation-delay: 1.8s; }
.petal10 { left: 15%; animation-duration: 7.8s; animation-delay: 0.3s; }

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0.6; }
}

/* Hero content above petals */
#home h1,
#home p,
#hero-button {
  position: relative;
  z-index: 2;
}
#home h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

#home p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 600px;
  margin-bottom: 32px;
}

#hero-button {
  padding: 14px 28px;
  background: #d70913;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  transition:
    transform 0.3s,
    opacity 0.3s;
    font-weight: bold;
}

#hero-button:hover {
  background: #fff;
  color: #d70913;
  transform: translateY(-3px);
  opacity: 1;
}
#hero-button {
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

/* HEADERS */
#how-it-works h2,
#about-us h2 {
  font-size: 36px;
  margin-bottom: 28px;
  text-align: center;
}

#shop h2 {
  font-size: 36px;
  margin-bottom: 18px;
  text-align: center;
}

/* HOW IT WORKS */
#steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

#steps div {
  background: #071013;
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s;
}

#steps div:hover {
  transform: translateY(-6px);
}

/* SHOP */
.templates {
  display: flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.template-card {
  background: 071013;
  box-shadow: 0 5px 5px rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 500px;
}

.template-box {
  width: 100%;
  height: 200px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.template-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button */
.buy-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #d70913;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.buy-button:hover {
  background: white;
  color: #d70913;
}

/* VERY IMPORTANT */
.template-box {
  pointer-events: none;
}

/* ABOUT */
#about-us p {
  max-width: 700px;
  margin: auto;
  margin-bottom: 0px;
  text-align: center;
  font-size: 18px;
  opacity: 0.85;
  line-height: 1.6;
}

/* FOOTER */
#footer {
  padding-bottom: 20px;
  text-align: center;
  background: #071013;
  border-top: 0.2px solid #111;
}

#footer p {
  font-size: 14px;
  opacity: 0.6;
}

#how-it-works,
#shop,
#about-us {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* MENU TOGGLE */
#menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  #navbar {
    padding: 16px 20px;
  }

  #menu-toggle {
    display: block;
  }

  #nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #000;
    display: none;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid #111;
  }

  #nav-links a {
    margin: 12px 0;
    font-size: 16px;
  }

  #nav-button {
    margin: 16px 0 0 0;
    text-align: center;
  }

  /* Mobile menu links hover */
  @media (max-width: 768px) {
    #nav-links a {
      transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
      padding: 10px 0;
    }

    #nav-links a:hover {
      background: #fff;
      color: #000;
      transform: translateX(0); /* slight lift is optional */
    }

    #nav-button:hover {
      background: #fff;
      color: #000;
      transform: translateY(-3px);
    }

    #buy-button:hover {
      background: #fff;
      color: #000;
      transform: translateY(-3px);
    }
  }
}
