/* NAVBAR */

/* Header styling */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  transition: transform 0.3s ease;
  z-index: 999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

/* Hide on scroll */
.header-hidden {
  transform: translateY(-100%);
}

.hide-hamburger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger styling */
.hamburger {
  position: relative;
  display: block;
  width: 24px;
  cursor: pointer;
  appearance: none;
  background: none;
  outline: none;
  border: none;
  z-index: 100;
}

.hamburger .bar,
.hamburger:after,
.hamburger:before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-feat);
  margin: 6px 0px;
  transition: 0.4s;
  z-index: 101;
}

.hamburger {
  position: relative;
  right: -85%;
}

.hamburger.is-active:before {
  transform: rotate(-45deg) translate(-6px, 6px);
  background-color: black;
}

.hamburger.is-active:after {
  transform: rotate(45deg) translate(-5px, -5px);
  background-color: black;
}

.hamburger.is-active .bar {
  opacity: 0;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-feat-nav);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 99;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 100;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: var(--fs-700);
  font-weight: 600;
  margin: 1rem 0;
  font-family: 'lato', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  color: black;
  opacity: 100;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}


.mobile-nav a span {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.mobile-nav a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background-color: black;
  transform: scaleX(0);
  transform-origin: right; /* starter med at være klar til at trække sig mod højre */
  transition: transform 0.5s ease, transform-origin 0s;
}

.mobile-nav a:hover span::after {
  transform: scaleX(1);
  transform-origin: left; /* udvider fra venstre */
}


/* Dark mode toggle button */
#theme-toggle {
  display: block;
  margin: 40px auto 0; /* Giver luft under de sidste links */
  padding: 12px 16px; /* Matcher links */
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: black;
  transition: color 0.3s;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle .material-symbols-outlined {
  font-size: 1.6rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

#theme-toggle:hover .material-symbols-outlined,
#theme-toggle:focus .material-symbols-outlined {
  transform: scale(1.15);
  opacity: 1;
}


.progress-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 50px 0 50px 0;
}

.skill-block {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  font-family: 'lato', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-fg);
}

.progress-container {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--color-feat);
  border-radius: 20px;
  transition: width 1.5s ease-in-out;
}


#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border: 5px solid white;
  border-radius: 10px;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
