/* ====================
   FARVEPALETTE (Definer farver her)
   ==================== */
:root {
  --dark-bg: #071226;        /* Mørk baggrund */
  --dark-blue: #0a2940;      /* Mørkere blå */
  --card-bg: rgba(12, 36, 58, 0.86);  /* Kort baggrund */
  --accent-1: #66b3ff;       /* Perlemorsblå */
  --accent-2: #4da3f7;       /* Intensiv blå */
  --text-white: #ffffff;     /* Hvid tekst */
  --text-muted: #ffffff;     /* Sekundær tekst (også hvid) */
}

/* ====================
   GENEREL STYLING
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-blue) 45%, var(--dark-bg) 100%);
  color: var(--text-white);
  margin: 0;
  padding: 28px 20px;
  -webkit-font-smoothing: antialiased;
}

/* ====================
   CONTAINER (Hovedsektion)
   ==================== */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
}

/* ====================
   HEADER (Titel)
   ==================== */
header {
  margin-bottom: 30px;
}

h1 {
  color: var(--accent-1);
  margin-bottom: 4px;
  font-size: 32px;
}

h2 {
  color: var(--accent-2);
  margin-top: 0;
  font-size: 1.1rem;
}

h3 {
  color: var(--accent-2);
  margin: 0 0 8px 0;
  font-size: 1rem;
}

p {
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tagline {
  color: var(--text-muted);
  margin-top: 6px;
}

/* ====================
   NAVIGATIONSBAR
   ==================== */
.nav {
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--accent-1);
  text-decoration: none;
  background: rgba(77, 163, 247, 0.04);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.nav a:hover {
  background-color: rgba(77, 163, 247, 0.09);
}

/* ====================
   KORT/BOKSE (CARD)
   ==================== */
.card {
  background-color: var(--card-bg);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(2, 8, 18, 0.6);
  margin-top: 18px;
  border-left: 6px solid rgba(102, 179, 255, 0.06);
}

/* ====================
   LISTE
   ==================== */
ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 8px 0;
  color: var(--text-white);
}

.info-list {
  color: var(--text-white);
}

.info-list li {
  margin: 8px 0;
}

.work-list {
  margin-left: 20px;
  list-style: disc;
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  margin: 8px 0;
  color: var(--text-white);
}

/* ====================
   BILLEDER
   ==================== */
.profile-img {
  display: block;
  max-width: 260px;
  width: 45%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
  box-shadow: 0 8px 30px rgba(3, 15, 30, 0.6) inset;
}

.work-logo {
  display: block;
  width: 320px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(2, 8, 18, 0.6);
}

.family-logo {
  display: block;
  width: 260px;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(2, 8, 18, 0.6);
}

/* ====================
   GALLERI
   ==================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.gallery-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0 auto 8px;
}

.gallery-item figcaption {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ====================
   KNAPPER
   ==================== */
.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(102, 179, 255, 0.16), rgba(77, 163, 247, 0.08));
  color: var(--text-white);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(102, 179, 255, 0.22);
  box-shadow: 0 6px 18px rgba(6, 20, 36, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(6, 20, 36, 0.55);
  background: linear-gradient(180deg, rgba(102, 179, 255, 0.22), rgba(77, 163, 247, 0.12));
}

/* ====================
   PROFIL INFO SEKTION
   ==================== */
.profile-info-section h2 {
  margin-bottom: 12px;
}

.profile-info-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.profile-info-wrapper .info-list {
  flex: 1;
  min-width: 200px;
  color: #fff;
}

.profile-info-section p {
  color: #fff;
}

.profile-work-image {
  flex-shrink: 0;
  min-width: 320px;
}

/* ====================
   OM MIG SEKTION
   ==================== */
.about-section h2 {
  margin-bottom: 12px;
}

.about-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  min-width: 200px;
  color: #fff;
}

.about-text p {
  color: #fff;
}

.about-image {
  flex-shrink: 0;
  min-width: 320px;
}

/* ====================
   FAMILIE SEKTION
   ==================== */
.profile-family-section h2 {
  margin-bottom: 12px;
}

.profile-family-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.family-text {
  flex: 1;
  min-width: 200px;
  color: #fff;
}

.family-text p {
  color: #fff !important;
}

.profile-family-image {
  flex-shrink: 0;
  min-width: 260px;
}

/* ====================
   CV LAYOUT (To-spalter)
   ==================== */
.cv-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.cv-left .card {
  padding: 14px;
}

.cv-right .section {
  margin-bottom: 14px;
}

.cv-right .job {
  margin-bottom: 10px;
}

.cv-right .job p {
  color: var(--text-muted);
  margin: 4px 0;
}

/* ====================
   LIGHTBOX / OVERLAY
   ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 12, 0.75);
  z-index: 1200;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 800px;
  width: 100%;
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(2, 8, 18, 0.8);
}

.lightbox-close {
  position: absolute;
  right: -10px;
  top: -10px;
  background: var(--card-bg);
  color: var(--text-white);
  border-radius: 50%;
  border: none;
  width: 36px;
  height: 36px;
  box-shadow: 0 6px 18px rgba(2, 8, 18, 0.6);
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

.lightbox-close:hover {
  background: var(--accent-1);
  color: var(--dark-bg);
}

.lightbox-caption {
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ====================
   FOOTER
   ==================== */
.footer {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ====================
   RESPONSIVE (Mobil)
   ==================== */
@media (max-width: 768px) {
  .profile-info-wrapper {
    flex-direction: column;
  }

  .work-logo {
    width: 220px;
  }

  .profile-family-wrapper {
    flex-direction: column;
  }

  .family-logo {
    width: 100%;
    height: 240px;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 8px;
  }

  .profile-img {
    width: 80%;
  }

  h1 {
    font-size: 24px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
