/* Reset basics */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #2f2f2f;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Make images responsive globally */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header with background fade */
header {
  transition: background-image 1.5s ease-in-out;
  background-image: url("../Pictures/Helmet_Background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Dark overlay */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

/* Content above overlay */
header img.logo,
header .tagline {
  position: relative;
  z-index: 1;
}

header .logo {
  height: 120px;
  margin: 0 auto;
}

header .tagline {
  font-style: italic;
  font-size: 1.5rem;
  color: #f97316;
  margin-top: 1rem;
}

/* Navigation bar */
nav {
  background-color: #2f2f2f;
  text-align: center;
  padding: 1.2rem 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 1.3rem;
}

nav > a,
.dropbtn {
  color: #f97316;
  text-decoration: none;
  margin: 0 30px;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s ease;
}

nav > a:hover,
.dropbtn:hover {
  color: #ffb347;
}

/* Dropdown */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  min-width: 200px;
  top: 100%;
  left: 0;
  margin-top: -1px;
  list-style: none;
  padding: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  z-index: 1000;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dropdown-content li {
  border-bottom: 1px solid #333;
}

.dropdown-content li:last-child {
  border-bottom: none;
}

.dropdown-content li a {
  color: #f97316;
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
  background-color: #333;
  color: #ffb347;
}

/* Content container */
.container {
  background: white;
  max-width: 900px;
  width: 90%;              /* ADDED: allows scaling */
  margin: 2rem auto 4rem auto;
  padding: 2rem 3rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  flex: 1;
}

h1, h2 {
  color: #1a1a1a;
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
  color: #444;
}

f {
  line-height: 1.6;
  color: #9c9b9b;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.7);
}

/* Award logos */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards;
}

.footer-logos img {
  height: 60px;
  filter: brightness(0.95);
  transition: transform 0.3s ease;
}

.footer-logos img:hover {
  transform: scale(1.15);
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =====================================
   MOBILE SCALING (Does NOT change desktop)
   ===================================== */
@media (max-width: 768px) {

  header {
    padding: 3rem 1rem;
  }

  header .logo {
    height: 80px;
  }

  header .tagline {
    font-size: 1.2rem;
  }

  nav {
    font-size: 1rem;
  }

  nav > a,
  .dropbtn {
    margin: 10px 15px;
  }

  .container {
    width: 95%;
    padding: 1.5rem;
    margin: 1.5rem auto 3rem auto;
  }

  .footer-logos {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-logos img {
    height: 50px;
  }
}