/* Base Styles */
:root {
  --primary-color: #0A192F;
  --accent-color: #FFD700;
  --text-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-gray: #f4f4f4;
  --dark-gray: #222222;
  --header-height: 77px; /* Estimated height of the fixed header */
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--dark-gray);
  padding-top: var(--header-height); /* Add padding to body to prevent content from being hidden under fixed header */
}

/* Header Styles */
.site-header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  border-bottom: 2px solid var(--accent-color);
  position: fixed; /* Make the header stick to the top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensure it stays above other content */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  color: var(--accent-color);
  font-size: 2.2rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Georgia', serif; /* Creative font choice for brand identity */
  transition: color 0.3s ease;
}

.logo:hover {
  color: #FFF;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 1.5rem;
}

.main-nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--accent-color);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.auth-buttons {
  display: flex;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

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

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

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

.btn-register:hover {
  background-color: #FFF;
  border-color: #FFF;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1000;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 3rem 0 1rem;
  border-top: 2px solid var(--accent-color);
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  flex: 1;
  min-width: 280px;
  margin-bottom: 2rem;
  padding-right: 1.5rem;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-logo {
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
  display: block;
  margin-bottom: 1rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.footer-col p {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col p a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col p a:hover {
  color: var(--accent-color);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 0.7rem;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-nav ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-nav ul li {
    margin-left: 1rem;
  }
  .main-nav ul li a {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .logo {
    width: auto;
    margin-bottom: 0;
    font-size: 2rem;
  }

  .menu-toggle {
    display: flex;
    position: static; /* Adjust position for better flow */
    order: 2; /* Place after logo, before nav */
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    flex-basis: 100%;
    order: 3; /* Place below logo and toggle */
  }

  .main-nav.active {
    max-height: 500px; /* Adjust as needed */
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(10, 25, 47, 0.95); /* Slightly transparent background for mobile menu */
    border-top: 1px solid var(--accent-color);
  }

  .main-nav ul li {
    margin: 0.7rem 0;
  }

  .main-nav ul li a {
    font-size: 1.1rem;
    padding: 0.7rem 0;
    display: block;
  }

  .auth-buttons {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    order: 4; /* Place below the collapsed/expanded nav */
  }

  .footer-container {
    flex-direction: column;
    padding: 0 1rem 2rem;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .footer-col h3 {
    text-align: center;
  }

  .footer-nav ul {
    text-align: center;
  }

  .footer-logo {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth-buttons {
    /* Removed flex-direction: column; to allow buttons to be side-by-side */
    gap: 0.5rem;
  }
  .btn {
    /* Removed width: 80%; to allow buttons to size based on content and fit side-by-side */
    max-width: 200px;
    text-align: center;
  }
  .logo {
    font-size: 1.8rem;
  }
}