*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

.container{
 
  min-height: 100vh;

  display: grid;
  grid-template-columns: 1fr;           
  grid-template-rows: auto 1fr auto;     
  grid-template-areas:
    "header"
    "main"
    "footer";
}


.header{
  grid-area: header;
  /* background-color: aqua; */
  padding: 1rem;
}

.main{
  grid-area: main;
  /* background-color: blueviolet; */
  padding: 1rem;
}

.footer{
  grid-area: footer;
  background-color: cadetblue;
  padding: 1rem;
}

.container {
  margin: 0;
  padding: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ece81a;
  border-radius: 12px;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 24px auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  background: #222;
  color: #ece81a;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  height: 44px;
}

.logo-icon {
  font-size: 1.3em;
  margin-right: 8px;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #888800;
}

.navbar-cta {
  background: #222;
  color: #ece81a;
  padding: 0 24px;
  border-radius: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid #222;
  transition: background 0.2s, color 0.2s;
}

.navbar-cta:hover {
  background: #ece81a;
  color: #222;
  border: 2px solid #222;
}

.hero {
  text-align: center;
  margin-top: 60px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #2d320c;
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero p {
  font-size: 1.3rem;
  color: #2d320c;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  background: #222;
  color: #ece81a;
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: #ece81a;
  color: #222;
}
.animatedbox{
    position: relative;
  width: 95vw;
  max-width: 1200px;
  height: 400px;
  background: #1763d6;
  border-radius: 24px;
  overflow: hidden;
  margin: 50px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;


}
.banner-row {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  margin-left: 0;
    margin-right: 0;
}
.banner-track {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1;
  animation: banner-move 12s linear infinite;
}

.banner-row {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  margin-left: 0;
}

.banner-item {
  background: #222;
  color: #ece81a;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 8px;
  margin: 8px 0;
  white-space: nowrap;
  border: 2px solid #ece81a;
}
@keyframes banner-move {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}

.plane-img {
  position: absolute;
  top: 50%;
  left: 10;
  width: 340px;
  height: auto;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  animation:  plane-wobble 2s ease-in-out infinite;
   /* animation: plane-fly   2s ease-in-out infinite; */
}
@keyframes plane-fly {
  0% {
    left: -340px;
    opacity: 0;
    transform: translateY(-50%) scale(0.9) rotate(-5deg);
  }
  10% {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
  }
  90% {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translateY(-50%) scale(0.9) rotate(5deg);
  }
}

@keyframes plane-wobble {
  0%   { transform: translate(-50%, -50%) rotate(-8deg); }
  25%  { transform: translate(-50%, -50%) rotate(6deg); }
  50%  { transform: translate(-50%, -50%) rotate(-6deg); }
  75%  { transform: translate(-50%, -50%) rotate(8deg); }
  100% { transform: translate(-50%, -50%) rotate(-8deg); }

}
@media (max-width: 900px) {
  .container {
    padding: 0;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    max-width: 98vw;
  }
  .navbar-logo {
    margin-bottom: 10px;
    font-size: 1rem;
    height: 36px;
    padding: 0 10px;
  }
  .navbar-links {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
  }
  .navbar-cta {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    height: 38px;
  }
  .hero {
    margin-top: 30px;
    padding: 0 10px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-cta {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .animatedbox {
    height: 180px;
    border-radius: 14px;
    max-width: 98vw;
  }
  .banner-item {
    font-size: 1.2rem;
    padding: 8px 16px;
    margin: 4px 0;
  }
  .plane-img {
    width: 120px;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    max-width: 100vw;
  }
  .navbar-logo {
    font-size: 0.9rem;
    height: 32px;
    padding: 0 6px;
    margin-bottom: 6px;
  }
  .navbar-links {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 6px;
  }
  .navbar-cta {
    font-size: 0.9rem;
    padding: 0 8px;
    height: 32px;
    margin-top: 6px;
  }
  .hero {
    margin-top: 18px;
    padding: 0 4px;
  }
  .hero h1 {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-cta {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  .animatedbox {
    height: 90px;
    border-radius: 8px;
    max-width: 100vw;
  }
  .banner-item {
    font-size: 0.7rem;
    padding: 4px 8px;
    margin: 2px 0;
  }
  .plane-img {
    width: 60px;
  }
  .footer {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

/* Make sure images and text don't overflow */
img, .banner-item, .navbar-logo, .navbar-cta {
  max-width: 100%;
  box-sizing: border-box;
}