/* Ensure navbar and footer retain original styling */
body {
    margin: 0;
    text-align: left;
    font-family: Arial, sans-serif;
    background-color: #8b5d13;
    padding-left: 50px;
    padding-right: 50px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure the main section wraps only the resume, not the navbar/footer */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

h1 {
  margin-top: 80px;
  margin-bottom: -30px;
}

/* Header and Navigation */
/* Sticky Header */
header {
    background: #0a0a0a;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it stays above other content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
  }
  
  .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
  }
  
  .nav-links li {
    margin-left: 1.5rem;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #f39c12;
  }

  @media (min-width: 769px) { 
    .nav-links {
      margin-left: auto;  /* Push the nav links to the right */
    }
  }  

  /* Mobile Responsive Design */
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 60px;
      left: 0;
      width: 100vw;
      height: auto;
      background: #0a0a0a;
      display: none; /* Ensure it's hidden by default */
      flex-direction: row; 
      justify-content: space-evenly; 
      align-items: center;
      padding: 1rem 0;
      box-sizing: border-box;
      overflow-x: hidden;
      flex-wrap: wrap;
    }
  
    .nav-links.nav-active {
      display: flex; /* Show only when active */
    }
  
    .nav-links li {
      flex: 1 1 auto;
      text-align: center;
      padding: 1rem 0;
    }
  
    /* Prevent horizontal scrolling */
    html, body {
      overflow-x: hidden;
    }
  
    /* Hamburger Menu */
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 25px;
      cursor: pointer;
      transition: transform 0.3s ease-in-out;
    }
  
    .hamburger span {
      height: 3px;
      width: 100%;
      background: white;
      border-radius: 5px;
      transition: all 0.3s ease-in-out;
    }
  
    /* When active, transform into an X */
    .hamburger.active span:nth-child(1) {
      transform: translateY(5px) rotate(45deg);
    }
  
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
  
    .hamburger.active span:nth-child(3) {
      transform: translateY(-15px) rotate(-45deg);
    }
  }
  
/* Center the resume container properly */
.resume-wrapper {
    font-family: "Times New Roman", Times, serif;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    width: 8.5in;  /* Standard document width */
    max-width: 80%;
    margin: 2rem auto;
    cursor: pointer;
    background: linear-gradient(135deg, #0a0a0a 0%, #f39c12 50%, #0a0a0a 100%);
    background-size: 400% 400%; /* Increase size to reduce visible repeat line */
    animation: gradientAnimation 6s infinite linear;
    color: #202020;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
      
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Space between the note and resume */
.note {
    font-family: "Times New Roman", Times, serif;
    display: block;
    margin: 3rem 2rem auto;
    text-align: center;
    background: #f39c12;
    color: #fff;
    padding: 0.75rem 0.50rem;
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
}

.certs a {
  text-decoration: none;
  color: #fff;
}

.certs a:hover {
  text-decoration: underline;
}

/* Stick footer to the bottom */
footer {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    margin-top: auto; /* Pushes footer to the bottom */
  }
  
  footer a {
    color: gray;
  }
  
  footer a:hover {
    color: #f39c12;
  }