body {
  padding-top: 90px;
}

/* Button Section */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

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

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  transform: translate(-2px);
  transition: all 0.3s ease;
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  transition: all 0.3s ease;
}

.btn-outline-card {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  transition: all 0.3s ease;
  border: 2px solid var(--primary-navy);
}

.btn-outline-card:hover {
  background-color: var(--primary-navy);
  color: var(--white);
  transition: all 0.3s ease;
}

/* Navigation Section */

header {
  background-color: var(--primary-navy);
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

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

.link-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.dropdown-menu {
  position: absolute;
  list-style: none;
  background-color: var(--primary-navy-light);
  color: var(--accent-gold);
  width: 130px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 10px;
  margin: 0;

  visibility: hidden;
  opacity: 0;
}

.has-dropdown-menu:hover .dropdown-menu,
.has-dropdown-menu:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transition: all ease-in-out 0.5s;
  transform: translateY(1px);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-link svg {
  width: 20px;
}

.mega-menu-container {
  position: absolute;
  background-color: var(--primary-navy-light);
  color: var(--accent-gold);
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 10px;
  margin: 0 auto;
  z-index: 1000;

  visibility: hidden;
  opacity: 0;
}

.has-mega-menu {
  position: relative;
}

.has-mega-menu:hover .mega-menu-container,
.has-mega-menu:focus-within .mega-menu-container {
  visibility: visible;
  opacity: 1;
  transform: translateY(1px);
  transition: all ease-in-out 0.5s;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.menu-column {
  margin-left: 20px;
  margin-bottom: 20px;
}

.menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-column ul li a:hover {
  text-decoration: underline;
  transition: all ease-in-out 0.5s;
}

.split-menu {
  display: flex;
  width: 1200px; 
  padding: 0; 
  left: 50%;
  margin-left: -600px; /* Pulls it back to the left by exactly half its width */
}

.menu-zone {
  flex: 1;
  padding: 30px;
}

.legacy-zone {
  background-color: var(--primary-navy-light);
}

.skills-zone {
  background-color: var(--primary-navy-light); /* Visually separates the skills side */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.zone-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 10px;
  display: inline-block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 60px;
}

.logo a {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links .btn {
  color: var(--text-dark);
}

.nav-links .btn:hover {
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.hamburger-menu-icon {
  width: 50px;
  height: auto;
  fill: var(--white);
}

.open-menu {
  background-color: transparent;
  border: none;
  display: none;
}

/* FOOTER */

footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

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

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

.footer-col ul li a:hover {
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

.footer-col .icons {
  display: flex;
  align-items: center;
  width: 35%;
  gap: 10px;
}

.footer-col svg {
  width: 20px;
  height: auto;
  fill: var(--accent-gold-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Component Media Queries */
@media (max-width: 768px) {
  /* HAMBURGER BUTTON BASE STYLES */
  .hamburger-menu-icon {
    width: 40px; /* Slightly scaled down for mobile screens */
    height: 40px;
    fill: var(--white); /* Ensures the icon is white */
  }

  .open-menu {
    background-color: transparent;
    border: none;
    display: block; /* Changed to display block to show on mobile */
    cursor: pointer;
  }

  /* MOBILE LAYOUT & MENU TOGGLE */
  /* 2. Hide the nav by default, and format it as a mobile dropdown */
  .nav-links {
    display: none !important; /* Hidden by default */
    position: absolute;
    top: 100%; /* Drops it right below the header */
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  }

  /* 3. This class will be added by JavaScript when the button is clicked */
  .nav-links.active {
    display: flex !important;
  }

  /* 4. Stack the links vertically for mobile */
  .link-list {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  /* 5. Fix Dropdowns & Mega Menu so they don't break the mobile screen */
  .dropdown-menu,
  .mega-menu-container {
    position: static; /* Stops them from floating off-screen */
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    padding: 10px 0 10px 15px;
    background-color: transparent;
    display: none; /* Hide using display on mobile */
    visibility: visible;
    opacity: 1;
  }

  /* Show dropdowns when interacting on mobile */
  .has-dropdown-menu:hover .dropdown-menu,
  .has-dropdown-menu:focus-within .dropdown-menu,
  .has-mega-menu:hover .mega-menu-container,
  .has-mega-menu:focus-within .mega-menu-container {
    display: block;
    transform: none;
  }

  /* Stack mega menu columns into a single column on mobile */
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-column {
    margin-left: 0;
    margin-bottom: 10px;
  }
}