:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Grey */
  --text-light: #F7FAFC;
  --text-dark: #2D3748;
  --header-top-bg: #1A202C; /* Dark background for top section */
  --main-nav-bg: #2D3748; /* Slightly lighter dark for nav section */
  --footer-bg: #1A202C;
  --button-hover-bg: #FFEB3B;
  --button-active-bg: #FBC02D;
  --header-height-desktop: 60px;
  --nav-height-desktop: 50px;
  --mobile-header-height: 60px;
  --mobile-buttons-height: 60px;
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: #0F172A;
  padding-top: calc(var(--header-height-desktop) + var(--nav-height-desktop)); /* Desktop padding */
}

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

/* Container for content */
.header-container,
.nav-container,
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none; /* Remove underline for buttons */
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  background-color: var(--button-hover-bg);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(26, 32, 44, 0.4);
}

.btn-secondary:hover {
  background-color: #2C3545;
  color: var(--button-hover-bg);
  box-shadow: 0 6px 20px rgba(26, 32, 44, 0.6);
  transform: translateY(-2px);
}

.btn-tertiary {
  background: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
}

.btn-tertiary:hover {
  background: linear-gradient(90deg, #2575FC 0%, #6A11CB 100%);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
  transform: translateY(-2px);
}

/* Header - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-height: calc(var(--header-height-desktop) + var(--nav-height-desktop));
}

.header-top {
  background-color: var(--header-top-bg);
  min-height: var(--header-height-desktop);
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.2em;
  font-weight: 900;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 10px; /* Ensure padding inside container */
  display: block;
  line-height: 1;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  padding: 0 10px; /* Ensure padding inside container */
}

.main-nav {
  background-color: var(--main-nav-bg);
  min-height: var(--nav-height-desktop);
  display: flex; /* Desktop default: visible */
  align-items: center;
  padding: 10px 0;
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: var(--text-light);
  font-weight: 600;
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  text-transform: capitalize; /* For double-word terms */
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

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

.hamburger-menu,
.mobile-buttons,
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

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

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2em;
  text-transform: uppercase;
}

.footer-section p,
.footer-section ul {
  margin-bottom: 10px;
}

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

.footer-section ul li a {
  display: block;
  padding: 5px 0;
  color: var(--text-light);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: calc(var(--mobile-header-height) + var(--mobile-buttons-height)); /* Mobile padding */
  }

  .header-container,
  .nav-container,
  .footer-container {
    width: 100%;
    max-width: none; /* CRITICAL: Mobile containers take full width */
    padding: 0 15px;
  }

  .site-header {
    min-height: auto;
  }

  .header-top {
    min-height: var(--mobile-header-height);
    padding: 10px 0;
  }

  .header-container {
    justify-content: space-between;
    position: relative; /* For logo centering */
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8em;
    padding: 0;
  }

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

  .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    position: relative;
    left: 0;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-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);
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--secondary-color);
    padding-top: calc(var(--mobile-header-height) + var(--mobile-buttons-height) + 20px);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 15px;
  }

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

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none; /* Hide underline effect on mobile */
  }

  .mobile-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: var(--header-top-bg);
    min-height: var(--mobile-buttons-height);
    padding: 10px 15px;
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100%;
    z-index: 998; /* Below hamburger, above main content */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .mobile-buttons .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.9em;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

  .footer-container {
    flex-direction: column;
  }

  .footer-section {
    min-width: unset;
    flex: none;
    width: 100%;
  }

  body.no-scroll {
    overflow: hidden;
  }
}