/* Global Styles & Desktop-First Approach */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #F0F2F5;
  --text-dark: #333;
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #1E3A5F; /* Distinct from header-top-bg */
  --button-bg: var(--secondary-color);
  --button-text: var(--primary-color);
  --shadow-color: rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: #0F203D;
  padding-top: 110px; /* Account for fixed header + mobile button area height (60px + 50px) */
}

body.no-scroll {
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px var(--shadow-color);
  background-color: var(--header-top-bg); /* Default background for entire header */
}

.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
  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: 10px 30px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block; /* Ensure logo is always visible */
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: var(--button-bg);
  color: var(--button-text);
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none; /* Remove underline */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-register {
  background-image: linear-gradient(45deg, #FFD700, #FFA500);
  color: var(--primary-color);
}

.btn-login {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-login:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-download {
  background-image: linear-gradient(45deg, #FFD700, #FFC107);
  color: var(--primary-color);
}

.mobile-nav-buttons-area {
  display: none; /* Hidden on desktop */
  background-color: var(--header-top-bg);
  width: 100%;
  padding: 10px 0;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.mobile-nav-buttons-area .nav-buttons-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
}

.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  min-height: 50px;
  display: flex; /* Default to flex for desktop */
  align-items: center;
  padding: 5px 0;
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row; /* Desktop horizontal */
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 5px 20px;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.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.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
  border-top: 1px solid #1A2B47;
  font-size: 15px;
}

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

.site-footer .footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

.site-footer h3 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer p {
  margin-bottom: 10px;
  line-height: 1.8;
}

.site-footer .footer-nav a {
  display: block;
  color: var(--text-light);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: var(--secondary-color);
}

.site-footer .contact-link {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.site-footer .contact-link:hover {
  color: var(--text-light);
}

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

.footer-bottom .copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 110px; /* Adjust for fixed header + mobile buttons */
  }

  .header-container {
    padding: 10px 15px;
    justify-content: space-between;
  }

  .logo {
    order: 2; /* Logo in center */
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
  }

  .hamburger-menu {
    display: flex;
    order: 1; /* Hamburger on left */
  }

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

  .mobile-nav-buttons-area {
    display: block; /* Show mobile button area */
  }

  .mobile-nav-buttons-area .nav-buttons-container {
    justify-content: space-around;
    gap: 8px;
  }

  .mobile-nav-buttons-area .btn {
    padding: 8px 15px;
    font-size: 14px;
    flex-grow: 1; /* Allow buttons to grow and fill space */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: var(--main-nav-bg);
    padding-top: 110px; /* Space for fixed header + mobile buttons */
    box-shadow: 4px 0 8px var(--shadow-color);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* MUST be set to flex/block to show */
    transform: translateX(0); /* Slide in */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    max-width: none; /* Mobile container must be 100% width */
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none;
  }

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

  .site-footer .footer-column {
    flex: 1 1 100%;
    min-width: auto;
    text-align: center;
  }

  .site-footer .footer-nav a {
    display: inline-block;
    margin: 0 8px 8px;
  }

  .site-footer h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-bottom {
    margin-top: 20px;
  }
}
