/* Base Styles */
body {
  margin-top: 80px; /* Offset for fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px; /* Adaptive height */
  background-color: #1a1a1a; /* Solid background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Floating effect */
  z-index: 1000;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  justify-content: center;
  align-items: center;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 0;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFC107; /* Secondary color for logo */
  text-decoration: none;
  flex-grow: 1;
  text-align: center;
  order: 2; /* Logo centered on mobile */
}

.header-placeholder {
  width: 40px; /* Balance space for hamburger on mobile */
  order: 3;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent menu items from wrapping */
}

.main-nav a:hover {
  color: #FFC107; /* Hover effect */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  order: 1; /* Hamburger left on mobile */
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.header-buttons-desktop {
  display: none; /* Hidden on mobile */
  gap: 10px;
  order: 3; /* Buttons right on desktop */
}

.header-buttons-mobile {
  display: none; /* Hidden on desktop */
  gap: 10px;
  padding: 10px 0;
  justify-content: center;
  width: 100%;
  z-index: 1000; /* Below hamburger menu */
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none; /* No underline */
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(45deg, #007BFF, #0056b3); /* Primary color gradient */
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #007BFF);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(45deg, #FFC107, #e0a800); /* Secondary color gradient */
  color: #333;
  border: none;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #e0a800, #FFC107);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 20px;
  font-size: 14px;
  margin-top: 40px;
}

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

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-column h3 {
  color: #FFC107;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
  color: #ccc;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
  }

  .header-top {
    width: auto;
  }

  .logo {
    text-align: left;
    flex-grow: 0;
    margin-right: 30px;
    order: unset;
  }

  .header-placeholder {
    display: none;
  }

  .main-nav {
    display: block !important; /* Ensure desktop nav is always visible */
    position: static;
    width: auto;
    background: none;
    padding: 0;
    flex-grow: 1;
  }

  .main-nav ul {
    justify-content: center;
  }

  .hamburger-menu {
    display: none;
  }

  .header-buttons-desktop {
    display: flex;
  }

  .header-buttons-mobile {
    display: none;
  }

  body {
    margin-top: 80px; /* Adjust for fixed header height */
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .header-top {
    padding: 10px 0;
  }

  .logo {
    font-size: 24px;
  }

  .hamburger-menu {
    display: block;
    color: #fff;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    background-color: #1a1a1a; /* Same as header */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    z-index: 999; /* Below header, above page content */
    min-height: calc(100vh - 100%); /* Ensure it covers remaining viewport height */
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .main-nav a {
    padding: 10px 20px;
    width: 100%;
    text-align: center;
  }

  .header-buttons-mobile {
    display: flex;
  }

  .site-header.expanded {
    min-height: auto; /* Allow header to expand if buttons are present */
  }

  body {
    margin-top: 130px; /* Adjust for fixed header + mobile buttons */
  }
}
