/* Global Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

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

/* Placeholder for main content padding to prevent fixed header overlap */
main {
  padding-top: 110px; /* Default desktop header height */
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-top {
  background-color: #8B0000; /* Dark Red, contrasting with gold */
  min-height: 60px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for logo and buttons */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none; /* Remove underline for buttons */
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-register {
  background: linear-gradient(45deg, #FFD700, #FFA500); /* Gold to Orange */
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
}

.btn-login {
  background-color: #8B0000; /* Dark Red */
  border: 2px solid #FFD700;
}
.btn-login:hover {
  background-color: #A52A2A; /* Slightly lighter red */
  border-color: #FFA500;
}

.btn-download {
  background: linear-gradient(45deg, #00BFFF, #1E90FF); /* Sky Blue to Dodger Blue */
  box-shadow: 0 4px 8px rgba(0, 191, 255, 0.4);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 191, 255, 0.6);
}

.main-nav {
  background-color: #FFD700; /* Gold, contrasting with dark red top bar */
  min-height: 50px;
  display: flex; /* Desktop: visible by default */
  flex-direction: row; /* Desktop: horizontal */
  align-items: center;
  justify-content: center;
  position: static; /* Desktop: normal flow */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.nav-link {
  color: #333;
  padding: 8px 15px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #8B0000; /* Dark Red on hover */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFD700; /* Gold for hamburger */
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: #333;
  color: #f4f4f4;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: #FFD700; /* Gold for footer headings */
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-nav a {
  display: block;
  color: #f4f4f4;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FFD700; /* Gold on hover */
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #555;
}

/* Mobile Styles */
@media (max-width: 768px) {
  main {
    padding-top: 170px; /* Adjusted for mobile header + mobile buttons */
  }

  .header-container,
  .nav-container,
  .footer-container {
    width: 100%;
    max-width: none; /* Mobile containers take full width */
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .header-top {
    justify-content: space-between;
    padding: 10px 0;
  }

  .logo {
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center;
    padding: 0;
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: -1; /* Move to the left */
    margin-left: -15px; /* Adjust for padding */
  }

  .hamburger-menu.active .hamburger-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .hamburger-icon:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .hamburger-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: 0; /* Will be adjusted by JS, or just below header-top if desired */
    left: 0;
    width: 70%; /* Menu width */
    height: 100%;
    background-color: #8B0000; /* Dark Red for mobile menu */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding-top: 80px; /* Space for logo/hamburger in header-top */
    z-index: 999; /* Below hamburger, above overlay */
    overflow-y: auto;
  }
  
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
  }

  .nav-link {
    color: #FFD700; /* Gold for mobile menu links */
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: #fff;
  }

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    background-color: #6A0000; /* Darker red for mobile button bar */
    padding: 10px 15px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
  }

  .mobile-nav-buttons .btn {
    flex-grow: 1;
    min-width: 100px; /* Ensure buttons don't get too small */
    font-size: 14px;
    padding: 8px 10px;
  }

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Below menu, above page content */
    transition: opacity 0.3s ease-out;
    opacity: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    min-width: unset;
  }
}