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

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a3d62;
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 45px;
  border-radius: 8px;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  display: inline;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #fbc531;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger div {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* HERO */
.hero {
  background: url('totrimage.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  background: rgba(0,0,0,0.6);
  padding: 30px;
  border-radius: 10px;
  color: white;
  max-width: 600px;
}

.hero .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #fbc531;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #e1a400;
}

/* FEATURES */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 15px;
}

.card {
  flex: 1 1 250px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* FOOTER */
footer {
  background: #0a3d62;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0a3d62;
    position: absolute;
    top: 65px;
    right: 15px;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex !important; /* force for firefox */
  }

  .hamburger {
    display: flex;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

/* HERO OVERLAY */
.hero .overlay {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* CARDS */
.card {
  opacity: 0;
  transform: translateY(20px);
  animation: cardBounce 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.3s; }
.card:nth-child(2) { animation-delay: 0.5s; }
.card:nth-child(3) { animation-delay: 0.7s; }

@keyframes cardBounce {
  0% { opacity: 0; transform: translateY(20px); }
  60% { opacity: 1; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); } /* keep final state visible */
}

/* BUTTON HOVER */
.hero .btn, .btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero .btn:hover, .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 195, 49, 0.8);
  background: #ffd35c;
}

/* NAV LINKS */
.nav-links li {
  opacity: 0;
  animation: navFadeIn 0.5s ease forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.2s; }
.nav-links li:nth-child(2) { animation-delay: 0.4s; }
.nav-links li:nth-child(3) { animation-delay: 0.6s; }
.nav-links li:nth-child(4) { animation-delay: 0.8s; }
.nav-links li:nth-child(5) { animation-delay: 1s; }
.nav-links li:nth-child(6) { animation-delay: 1.2s; }

@keyframes navFadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); } /* keep final state visible */
}

/* FOOTER */
footer {
  opacity: 0;
  animation: footerFade 1s ease forwards;
  animation-delay: 1s;
}

@keyframes footerFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
height: 55vh;
  }
}