body {
    background-color: #111;
    color: #ddd;
    font-family: sans-serif;
    line-height: 1.6;
    margin: 2rem;    
  }
  
h1 {
  color: #fff;
  font-size: 2rem;
  padding-top: 2rem;
}

a {
  color: #9ecbff;
  text-decoration: underline;
  margin-left: 1rem;
}

.resume-section {
  h1 {
    padding-top: 2rem;
  }
  p {  
    margin: 0;
  }
  h2 {
    margin-bottom: 0;
    font-size: 16px;
  }  
  hr {
    border: none;
    border-top: 1px solid #333;
    margin: 0;
  }
  ul {
    margin-top: 0;
    padding-left: 20px;
    list-style: square;
    font-size: 16px;
    color: #888888;
  }
  ul li {
    margin-bottom: 0;
  }
  ul ul {
    list-style-type: circle; 
  }
}

.aligned-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    font-size: 16px;
}

.aligned-section .left {
  flex-grow: 1;
}

.aligned-section .right {
  text-align: right;
}

#nav-top {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  padding-right: 0%;
} 

#nav-side {
  display: none;
  position: fixed;
  top: 0;
  right: -250px; /* initially hidden on the right */
  width: auto;
  height: 100%;
  background: inherit;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1); /* shadow on the left edge */
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
  transition: right 0.3s ease; /* animate from right */
  z-index: 1000;
}

#hamburger {
  display: none;
  position: fixed;  
  top: 2rem;
  right: 2rem;
  z-index: 1100;
  font-size: 20px;
  cursor: pointer;
}

#notification {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #9E9E9E; 
  color: black; 
  padding: 10px 20px; 
  border-radius: 5px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);   
}

#email-button {
  background-color: inherit;
  color: white;
  border: inherit;
  padding-left: 10px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  display: inline-flex;
  gap: 8px;
}

@media (min-width: 1000px) {
  body {    
    padding-left: 20%;
    padding-right: 20%;
  }
  #nav-top {    
    padding-right: 20%;
  }
}

@media (max-width: 750px) {
  body{
    padding-left: 0%;
    padding-right: 0%;
  }
  #hamburger {
    display: flex;
  }
  #nav-top {
    display: none; /* Hide top nav */
  }
  #nav-side {
    display: flex;
  }
  #nav-side.active {
    right: 0;    
  }
  #nav-side ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding-left: none;
  }
}
  
hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

ul {
  list-style: circle;
  padding-left: 10px;
}

li {
  margin-bottom: 0.5rem;
  align-items: baseline; 
}

#quote-container {
  background: inherit;
  color: #ddd;
  padding: 1rem;
  text-align: center;
}

.quote {
text-align: center;
margin: 0.5rem 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 100% viewport height */
}

.content {
  flex: 1; /* fill remaining space */
  padding-top: 2rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  z-index: 900; /* below the side-menu and hamburger */
  opacity: 0; /* invisible by default */
  pointer-events: none; /* prevent interactions */
  transition: opacity 0.3s ease;
}

/* Show the overlay when active */
.overlay.active {
  opacity: 1;
  pointer-events: auto; /* enable clicking */
}

  .container {
    margin: auto;
  }
  .header {
    margin-bottom: 10px;
  }
  .header h1 {
    margin: 0;
    font-size: 28px;
    color: #fff;
  }
  .header span {
    color: #888;
    font-size: 16px;
  }
  .tags {
    margin: 10px 0;
  }
  .tag {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    background: #333;
    color: #ddd;
  }
  .tag.yellow { background: gold; color: #000; }
  .tag.blue { background: #3b82f6; }
  .tag.red { background: #f87171; }
  .desc, .note {
    color: #aaa;
    margin-bottom: 15px;
  }
  .link {
    color: #3b82f6;
    text-decoration: none;
  }
  .flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .info, .chart {
    background: #222;
    padding: 10px;
    border-radius: 5px;
    flex: 1;
    min-width: 250px;
  }
  .info ul {
    padding-left: 20px;
  }
  .info li {
    margin-bottom: 5px;
  }
  .chart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
  }
  .chart-title button {
    background: #444;
    border: none;
    color: #ddd;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
  }
  .chart-title button:hover {
    background: #555;
  }
  .chart img {
    width: 100%;
    border-radius: 5px;
    display: block;
  }
  .event-count {
    text-align: right;
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
  }

    .certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .cert-card {
    background-color: #222;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.2s;

    display: flex;
    flex-direction: column;
    }

  .cert-card:hover {
    transform: translateY(-5px);
  }

  .cert-card img {
    width: 100%;
    max-width: 35rem; /* limits image width */
    height: 12.5rem; /* fixed height for rectangular shape */
    object-fit: contain; /* ensures the whole image fits without distortion */
    display: block;
    margin: 0 auto 0.5rem auto;
    border-radius: 0.25px; /* optional: slight rounding for aesthetics */
  }

  .cert-card h3 {
    min-height: 4rem; /*adjust if needed for longer titles */
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
  }

  .cert-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #bbb;
  }

  .cert-card a {
    margin-top: auto;
    margin-left: 0;
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
    }

  .cert-card a:hover {
    text-decoration: underline;
  }

.hover-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  margin-left: 0%;
  color: #4fc3f7;
}

.hover-image {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
}

.hover-link:hover .hover-image {
  display: block;
}

