/* Theme */

[data-bs-theme="dark"] {
  --bs-body-bg: #020617;
  --bs-body-color: #e5e7eb;
}

/* Lightbulb */
#theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #374151;
  background: radial-gradient(circle at top, #1f2937, #020617);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 0 25px rgba(59,130,246,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 35px rgba(59,130,246,0.45);
}

#theme-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #93c5fd,
    0 0 30px rgba(59,130,246,0.6);
}

/* Navbar buttons */
.nav-pill-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
  color: #e5e7eb;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),   
    0 4px 10px rgba(0, 0, 0, 0.429),          
    0 1px 3px rgba(0, 0, 0, 0.5),           
    inset 0 1px 0 rgba(255, 255, 255, 0.10); 
  transition: background 0.15s ease, border-color 0.15s ease,
              transform 0.1s ease, box-shadow 0.1s ease;
}

.navbar-dark-custom {
  background-color: #020617 !important;
  border-bottom-color: #1f2937 !important;
}

.nav-pill-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #1f2937;
  color: #e5e7eb;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.nav-pill-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-pill-btn:active {
  transform: translateY(1px);
}

.nav-pill-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Download CV-knapp */
.nav-pill-btn.primary {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow:
    0 4px 8px rgba(37, 99, 235, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-pill-btn.primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-color: #1d4ed8;
  box-shadow:
    0 6px 14px rgba(37, 99, 235, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-pill-btn.primary:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 3px rgba(37, 99, 235, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Download CV-button (blå primærknapp) */
.nav-pill-btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.nav-pill-btn.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* Profilbilde */
.about-image {
  border: 5px solid #222222;
  border-radius: 12px;
}

/* Fotogalleri */
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* Cards CV */
.card {
  border: 1px solid rgba(148, 163, 184, 0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

[data-bs-theme="dark"] .card {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

[data-bs-theme="dark"] .card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}