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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text on dark background */
  background-color: #0d0d1a; /* Slightly darker than primary for body background */
}

a {
  text-decoration: none;
  color: #E94560; /* Secondary color for links */
}

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  background-color: #1A1A2E; /* Primary color */
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 2.5rem; /* Larger for brand impact */
  font-weight: bold;
  color: #E94560; /* Secondary color for logo */
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #f0f0f0; /* Lighter on hover */
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #f0f0f0;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #E94560;
  transition: width 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
  color: #E94560;
}

/* Auth Buttons Styles */
.auth-buttons {
  display: flex; /* Default to flex for desktop */
  gap: 1rem;
  align-items: center;
  margin-left: 2rem; /* Add some space from navigation */
}

.auth-buttons .btn {
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping */
  display: inline-block; /* Ensure padding and dimensions apply */
}

.auth-buttons .btn-register {
  background-color: #E94560; /* Secondary color */
  color: #f0f0f0;
  border: 2px solid #E94560;
}

.auth-buttons .btn-register:hover {
  background-color: #c93d55; /* Darker on hover */
  border-color: #c93d55;
}

.auth-buttons .btn-login {
  background-color: transparent;
  color: #E94560;
  border: 2px solid #E94560;
}

.auth-buttons .btn-login:hover {
  background-color: #E94560;
  color: #1A1A2E; /* Dark background color */
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Ensure it's above other content */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #f0f0f0;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Footer Styles */
.site-footer {
  background-color: #1A1A2E; /* Primary color */
  padding: 3rem 2rem 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(240, 240, 240, 0.1);
}

.footer-col h3 {
  color: #E94560; /* Secondary color for headings */
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-col a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #E94560;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #E94560;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.company-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-nav ul {
  line-height: 2;
}

.footer-nav a {
  display: block;
  font-size: 0.95rem;
}

.contact-details p {
  word-break: break-word; /* For long emails/addresses */
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    display: grid; /* Change to grid for mobile layout */
    grid-template-columns: 1fr auto 1fr; /* Hamburger (left), Logo (center), Empty (right) */
    grid-template-rows: auto auto; /* Top row, then buttons row */
    grid-template-areas:
      "hamburger logo ."
      ". auth-buttons ."; /* Buttons below logo, centered */
    gap: 0.5rem; /* Space between grid rows/columns */
    padding: 0 1rem; /* Adjust padding for container */
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: #1A1A2E;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%); /* Start off-screen */
    overflow: hidden; /* Hide content when collapsed */
    max-height: 0; /* Collapse height */
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateY(0); /* Slide in */
    max-height: 500px; /* Adjusted to accommodate more links */
    padding-bottom: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }

  .main-nav li {
    text-align: center;
    width: 100%;
  }

  .main-nav a {
    padding: 0.8rem 1rem;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(240, 240, 240, 0.1);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
    grid-area: hamburger; /* Place in grid */
    align-self: center; /* Vertically center */
    justify-self: start; /* Align to the left */
  }

  /* Hamburger menu animation for active state */
  .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);
  }

  .logo {
    grid-area: logo; /* Place in grid */
    justify-self: center; /* Horizontally center */
    align-self: center; /* Vertically center */
  }

  .auth-buttons {
    display: flex; /* Ensure buttons are visible and flexed */
    grid-area: auth-buttons; /* Place in grid, second row */
    justify-content: center; /* Center buttons horizontally */
    align-self: center; /* Vertically center */
    gap: 1rem;
    margin-top: 1rem; /* Space below the logo row */
    width: 100%; /* Take full width of its grid area */
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3 {
    margin-top: 1.5rem;
  }

  .footer-logo {
    margin: 0 auto 1rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 2rem;
  }

  .auth-buttons .btn {
    padding: 0.6rem 1rem; /* Slightly smaller buttons on very small screens */
    font-size: 0.9rem;
  }
}