:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-color: #333;
  --light-text-color: #f8f8f8;
  --dark-bg: #1a1a1a;
  --light-bg: #ffffff;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f4f4f4;
  padding-top: 120px; /* Adjusted dynamically by JS for header height */
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px; /* Base min-height */
  background-color: var(--dark-bg); /* Solid dark background */
  color: var(--light-text-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 10px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; /* For absolute positioning of mobile nav */
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px; /* Ensure main content has height */
}

.logo {
  font-family: 'Georgia', serif; /* Creative font for logo */
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color); /* Bright color */
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  margin-right: 30px; /* Space from logo to nav on desktop */
}

/* Navigation */
.main-nav {
  flex-grow: 1; /* Allow nav to take available space */
  text-align: center; /* Center the ul within the nav */
}

.main-nav ul {
  display: flex;
  justify-content: center; /* Center nav items */
  gap: 25px;
}

.main-nav a {
  color: var(--light-text-color);
  font-weight: 600;
  padding: 5px 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: var(--secondary-color);
  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: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px; /* Rounded corners */
  font-weight: bold;
  text-align: center;
  text-decoration: none; /* No underline */
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow */
  position: relative;
  overflow: hidden;
  margin-left: 10px;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.6s ease;
  transform: translate(-50%, -50%) scale(0);
  z-index: 0;
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.btn-primary {
  background-color: var(--secondary-color); /* Bright, eye-catching */
  color: var(--dark-bg);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--secondary-color); /* Glow effect */
}

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

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--secondary-color); /* Glow effect */
}

.header-actions.desktop-buttons {
  margin-left: 30px; /* Space from nav to buttons */
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

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

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

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

.header-main-spacer {
  display: none; /* Hidden on desktop */
}

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

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 40px 20px 20px;
  font-size: 0.9em;
}

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

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

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-col ul {
  padding: 0;
}

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

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

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

.footer-contact p,
.footer-info p {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    /* Header-main min-height (60px) + mobile-buttons height (approx 50px) = 110px */
    padding-top: 110px;
  }

  .site-header {
    min-height: unset;
    padding: 0;
  }

  .header-main {
    justify-content: flex-start; /* Align items to start */
    padding: 0 10px;
    min-height: 60px;
    position: relative; /* For logo absolute positioning */
  }

  .hamburger-menu {
    display: block;
    margin-right: 0; /* No extra margin */
  }

  .logo {
    flex-grow: 0; /* Don't let logo grow */
    position: absolute; /* Position absolutely to center */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allow content width */
    margin-right: 0; /* Reset desktop margin */
  }

  .header-main-spacer {
    display: block; /* Show spacer */
    width: 45px; /* Match hamburger width for visual balance */
    height: 1px; /* Minimal height */
    margin-left: auto; /* Push to right */
  }
  
  .header-actions.desktop-buttons {
    display: none; /* Hide desktop buttons */
    margin-left: 0; /* Reset desktop margin */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-bg);
    position: absolute;
    top: 60px; /* Position below header-main (60px height) */
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-align: center; /* Center nav items for mobile */
  }

  .main-nav.active {
    display: flex; /* Override display: none */
    opacity: 1;
    visibility: visible;
  }

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

  .main-nav a {
    padding: 10px 20px;
    width: 100%;
    text-align: center;
  }
  
  .main-nav a::after {
    left: 50%;
    transform: translateX(-50%);
    width: 0; /* Reset width for mobile */
  }
  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 80%; /* Adjust line width for mobile hover */
  }

  .header-buttons.mobile-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    background-color: var(--dark-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Below main nav when active */
    width: 100%; /* Ensure it spans full width */
  }
  
  .header-buttons.mobile-buttons .btn {
      flex: 1;
      max-width: 150px;
      margin: 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

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