
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #D6D0C8;
  color: #2B2B2B;
  position: relative;
  overflow-x: hidden;
}


h1, h2, h3, h4, .navigation a {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
  color: #2B2B2B;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.6rem;
  color: #2B2B2B;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #C3A36A;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}


body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url("webp/skull-kopi.webp");
  background-size: contain;
  background-repeat: no-repeat;
  filter: sepia(40%) contrast(90%) brightness(85%);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}


header {
  position: sticky;
  top: 0;
  background-color: #4A3F36;
  border-bottom: 2px solid #C3A36A;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.nav-logo {
  width: 24px;
  height: auto;
  filter: invert(100%);
  margin-bottom: 0.5rem;
}

.navigation a {
  display: block;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover underline effect */
.navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #C3A36A;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navigation a:hover::after {
  width: 100%;
}

.navigation a:hover {
  color: #C3A36A;
}

/* Desktop navigation - horizontal */
@media (min-width: 750px) {
  .navigation {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 1.2rem 0;
  }

  .nav-logo {
    margin-right: 2rem;
    margin-bottom: 0;
  }
}


main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  max-width: 1400px;
  margin: 0 auto 5rem auto;
  padding: 0;
}

section:first-of-type {
  margin-top: 5rem;
}

section:nth-of-type(2) {
  margin-top: -2rem;
}


#about {
  padding: 2rem 1rem;
  background-color: rgba(74, 63, 54, 0.15);
  border-radius: 8px;
}

.about-row {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

.about-image {
  padding: 16px;
  border: 4px double #C3A36A;
  border-radius: 4px;
  position: relative;
  background-color: rgba(255,255,255,0.3);
  max-width: 280px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Decorative corners */
.about-image::before,
.about-image::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid #C3A36A;
}

.about-image::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.about-image::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.about-text {
  flex: 1;
  width: 100%;
  max-width: 600px;
  padding: 2rem 2.5rem;
  background-color: #4A3F36;
  border: 4px double #C3A36A;
  position: relative;
  color: #ffffff;
  line-height: 1.8;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
}

.about-text p {
  max-width: 100%;
  font-size: 1.05rem;
}

.about-text::before,
.about-text::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid #C3A36A;
}

.about-text::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.about-text::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

/* Desktop: side by side - 25% image, 75% text */
@media (min-width: 750px) {
  .about-row {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }

  .about-image {
    flex: 0 0 32%;
    max-width: 32%;
  }

  .about-text {
    flex: 0 0 calc(68% - 3rem);
    max-width: calc(68% - 3rem);
  }
}



.skills-section {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: rgba(74, 63, 54, 0.15);
  border-radius: 8px;
}

.skill-box {
  background: rgba(74, 63, 54, 0.85);
  border: 3px solid #C3A36A;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: white;
}

.skill-box h3 {
  color: #C3A36A;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  border-bottom: 2px solid #C3A36A;
  padding-bottom: 0.75rem;
}

.skill-box h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  padding-left: 0.5rem;
  border-left: 4px solid #C3A36A;
}

.skill-box h4:first-of-type {
  margin-top: 0;
}

.skill-box p {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  border-left: 4px solid #C3A36A;
  border-radius: 4px;
  max-width: 100%;
  line-height: 1.7;
  font-size: 1rem;
}

/* Skill row layout */
.skill-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.skill-text {
  border: 2px solid #C3A36A;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(195, 163, 106, 0.15);
  line-height: 1.7;
}

.skill-text p {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.95rem;
}

.skill-text p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Desktop: text and gallery side by side */
@media (min-width: 750px) {
  .skill-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .skill-text {
    flex: 0 0 320px;
    max-width: 320px;
  }

  .skill-row .skill-gallery {
    flex: 1;
  }
}


.skill-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* mobil: 2 pr række */
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
  justify-items: center;

}

.skill-row .skill-gallery {
  margin-top: 0;
  align-self: flex-start;
}

.skill-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f5f1ec;
  padding: 0.75rem;
  border: 3px solid #C3A36A;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


.skill-gallery img:hover {
  transform: scale(1.65);
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}


#contact {
  padding: 2rem 1rem;
  text-align: center;
  background-color: rgba(74, 63, 54, 0.15);
  border-radius: 8px;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-section h2 {
  width: 100%;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: stretch;
}

.contact-box {
  flex: 1;
  margin: 0;
  padding: 2.5rem 2rem;
  background-color: #4A3F36;
  border: 4px double #C3A36A;
  border-radius: 8px;
  position: relative;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-align: left;
  overflow-wrap: anywhere;

}

.contact-info {
  flex: 1;
  padding: 2.5rem 2rem;
  background-color: #4A3F36;
  border: 4px double #C3A36A;
  border-radius: 8px;
  position: relative;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  overflow-wrap: anywhere;
}

.contact-info h3 {
  color: #C3A36A;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-info a {
  color: #C3A36A;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word;
}

.contact-info a:hover {
  color: #d4b076;
}

.contact-info::before,
.contact-info::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid #C3A36A;
}

.contact-info::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.contact-info::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.contact-box::before,
.contact-box::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid #C3A36A;
}

.contact-box::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.contact-box::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.contact-form label {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C3A36A;
  font-weight: 600;
  margin-bottom: -0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 2px solid #C3A36A;
  background-color: #f5f1ec;
  color: #2B2B2B;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d4b076;
  box-shadow: 0 0 0 3px rgba(195, 163, 106, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 0.75rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 2px solid #C3A36A;
  background-color: #C3A36A;
  color: #2B2B2B;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 0.95rem;
  align-self: center;
  min-width: 200px;
}

.contact-form button:hover {
  background-color: #d4b076;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.contact-form button:active {
  transform: translateY(0);
}


.site-footer {
  background-color: #4A3F36;
  color: #C3A36A;
  text-align: center;
  padding: 1.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-top: 2px solid #C3A36A;
}

/* --- MOBILE FIX (kun under 750px) --- */
@media (max-width: 749px) {

  /* Mindre “desktop-luft” på mobil, uden at ændre desktop */
  .skill-box {
    padding: 1.5rem 1rem;
  }

  .skill-text {
    padding: 1rem;
  }

  /* Tving 2 kolonner på mobil */
  .skill-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  /* Fjern begrænsninger der kan tvinge 1 kolonne */
  .skill-gallery img {
    max-width: 100%;
    max-height: none;
    padding: 0.5rem;
  }
}
/* Ingen hover-zoom på touch (mobil/tablet) */
@media (hover: none) {
  .skill-gallery img:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
  }
}

@media (min-width: 750px) {
  section:first-of-type {
    margin-top: 6rem;
  }

  section {
    margin-bottom: 6rem;
  }

  section:nth-of-type(2) {
    margin-top: -3rem;
  }

  .skill-box {
    padding: 3rem 2.5rem;
  }

  .contact-box {
    padding: 3rem 2.5rem;
  }

  .contact-info {
    padding: 3rem 2.5rem;
  }

  .contact-content {
    flex-direction: row;
    gap: 3rem;
  }
  

}
