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

body {
  font-family: 'Righteous', sans-serif;
  background-color: #f7f1a6;
  color: #d82027;
  text-transform: uppercase;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0312f;
  padding: 10px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.4s ease-in-out;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  transform: rotate(10deg);
}

.logo-text {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.navbar nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.navbar nav ul li a {
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
  color: #ffcb47;
  background-color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ORDER SECTION */
.order-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 120px;
  gap: 80px;
  min-height: 100vh;
  position: relative;
  margin-top: -140px;
}

.order-left {
  flex: 1;
  z-index: 2;
}

.typing-text {
  font-size: 5rem;
  color: #d82027;
  margin-bottom: 40px;
  line-height: 1.1;
  min-height: 150px;
  margin-left: 90px;
}

.order-buttons {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: 90px;
}

.order-buttons .btn img {
  width: 260px;
  transition: transform 0.3s ease;
}

.order-buttons .btn img:hover {
  transform: scale(1.1);
}

/* RIGHT SECTION */
.order-right {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.burst-bg {
  position: absolute;
  background-image: url('images/burst.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 580px;
  height: 580px;
  transform: rotate(-5deg);
  z-index: 0;
}

.star-bg {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 1000px;
  transform: translate(-50%, -50%) rotate(15deg);
  z-index: -1;
}

/* BURGER GRID */
.burger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 2;
  margin-top: 150px;
  margin-left: -130px;
}

.burger-grid img {
  width: 250px;
  transform-origin: center center;
  animation-duration: 2.4s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(8);
}

/* Odd and Even Rotation */
.burger-grid img:nth-child(odd) {
  animation-name: rotate-step-cw;
}
.burger-grid img:nth-child(even) {
  animation-name: rotate-step-ccw;
}

/* Delay Per Burger */
.burger-grid img:nth-child(1) { animation-delay: 0s; }
.burger-grid img:nth-child(2) { animation-delay: 0.3s; }
.burger-grid img:nth-child(3) { animation-delay: 0.6s; }
.burger-grid img:nth-child(4) { animation-delay: 0.9s; }
.burger-grid img:nth-child(5) { animation-delay: 1.2s; }
.burger-grid img:nth-child(6) { animation-delay: 1.5s; }
.burger-grid img:nth-child(7) { animation-delay: 1.8s; }
.burger-grid img:nth-child(8) { animation-delay: 2.1s; }
.burger-grid img:nth-child(9) { animation-delay: 2.4s; }

/* ANIMATIONS */
@keyframes rotate-step-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rotate-step-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* FOOTER */
.footer {
  background-color: #fcbf2d;
  text-align: left;
  padding: 30px;
  font-size: 0.9rem;
  color: #222;
  margin-top: 60px;
  height: 200px;
  font-weight: 100;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .order-section {
    flex-direction: column;
    padding: 60px 40px;
    text-align: center;
    margin-left: 0;
  }

  .typing-text {
    font-size: 3rem;
  }

  .order-buttons .btn img {
    width: 180px;
  }

  .burst-bg {
    width: 400px;
    height: 400px;
  }

  .burger-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 0;
  }

  .burger-grid img {
    width: 140px;
  }

  .star-bg {
    width: 700px;
  }
}
