* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
}

  /* Genneral styling */
  /* Here is the genneral styling for body and other genneral elements */
  body {
    width: 100vw;
    font-family: Arial, sans-serif;
  }
  
  .fade-brightness {
    filter: brightness(0); /* Start with 0% brightness */
    transition: filter 0.5s ease; /* Smooth transition for brightness */
  }

  h2{
    font-size: 36px;
    font-family: "Texturina", serif;
  }

  p{
    font-size: 20px;
  }

  /* genneral button styling */
  button{
    background-color: white;
    border-style: none;
    font-weight: bold;
    font-family:  "Texturina", serif;
    font-size: 28px;
    padding: 4px 32px 8px 32px;
    border-radius: 12px;
  }

  button:hover{
    background-color: yellow;
    transition: 0.3s;
    cursor: pointer;
  }
  
/* Colorstreek */
/* here is the styling of the rainbow streek that it at the left side of the website */

#colorstreek {
    z-index: 1;
    width: 25px;
    height: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
  }
  
  .color {
    width: 5px;
    height: 100%;
  }
  
  .color:nth-child(1) {
    background-color: #200359;
  }
  
  .color:nth-child(2) {
    background-color: #071B8C;
  }
  
  .color:nth-child(3) {
    background-color: #025909;
  }
  
  .color:nth-child(4) {
    background-color: #BF6C05;
  }
  
  .color:nth-child(5) {
    background-color: #BF1406;
  }



  /* overlay  */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1000;
}

.overlaycontent{
  height: 100vh;
}

.img-container {
  width: 50%;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.img-container .logo {
  width: 70%;
}

.img-container .main-image {
  width: 100%;
}

.content-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #fff;
}

.close-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.close-container i {
  font-size: 50px;
  cursor: pointer;
  color: #000;
}

.text-container {
  text-align: center;
  color: #000;
  padding-top: 16em;
}

.text-container h2 {
  font-size: 4rem;
}

.text-container h3 {
  font-size: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 5em;
}

.contact-item {
  display: flex;
  align-items: center;
  padding-left: 4em;
  gap: 30px;
}

.contact-item i {
  font-size: 20px;
  color: #000;
  cursor: pointer;
  padding-left: 20px;
}

.contact-item a {
  text-decoration: none;
  font-size: 18px;
  color: black;
  cursor: pointer;
}




  /* hero */
  /* styling of the hero section on the index site */
  .hero {
    position: relative;
    height: calc(100vh - 60px);
    width: 100vw;
    overflow: hidden;
  }
  
  .hero img {
    width: 100vw;
    height: calc(100vh - 60px);
    object-fit: cover;
    object-position: top;
  }

  #hero img {
    transform: scaleX(-1);
  }
  
  #hero .wrapuphero {
    position: absolute;
    bottom: 10%; /* Adjust the bottom position as needed */
    right: 80px;
    height: 400px;
    width: 55vw; /* Ensures the aspect ratio is preserved */
    object-fit: contain; /* Ensures the entire image is visible */
    transform: scalex(1); /* Flips the image vertically */
    z-index: 10; /* Keeps the image in front */
    margin-bottom: 80px;
}
/* end of hero styling section */


/* Main header */
/* Header Styling */
header {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 20px;
  background-color: black;
  height: 60px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.center-logo {
  position: absolute;
  left: 50%;
  padding-top: 12px;
  transform: translateX(-50%);
}

header a img {
  display: block;
  max-height: 50px;
  margin-top: 52px;
}

ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
  display: flex;
  gap: 20px;
}

ul li button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 16px; /* Adjust button font size */
}

ul li button:hover {
  background-color: rgb(21, 21, 21);
}

.burger-menu{
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: #ffffff;
  right: 20px;
  top: 20px;
}

/* end of the header styling section */

/* about me */
.about {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  gap: 0; /* No gap between image and text */
  position: relative; /* Required to apply z-index */
  z-index: 2; /* Higher value than the color streaks */
}

.aboutimg {
  position: relative; /* Positioning context for the color columns */
  flex-basis: 50%; /* Make the image section 50% of the width */
}

.aboutimg img {
  display: block;
  width: 100%; /* Ensure the image fills the container */
  height: auto; /* Maintain the image's aspect ratio */
  padding: 80px;
}

/* Color Columns */
.colorstreekimg {
  position: absolute; /* Position it in front of the image */
  height: 100%; /* Full height of the image */
  left: 35px;
  display: flex; /* Use flexbox to stack color divs horizontally */
  padding: 80px;
}

.abouttext {
  flex-basis: 50%; /* Strictly make the text section 50% of the width */
  padding: 20px;
  max-width: 600px; /* Limit the content inside to 600px */
  width: 100%; /* Ensure the box stretches to 50% width */
  box-sizing: border-box; /* Include padding in the total width */
  margin: 0 auto;
}

.abouttext h2{
  padding-bottom: 20px;
}

.abouttext p{
  padding-bottom: 20px;
}

.abouttext a{
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #171717;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: all .4s;
}

.abouttext a:hover{
  background-color: #071B8C;
  border-radius: 5px;
  transform: translateY(-10px);
  box-shadow: 0 7px 0 -2px #025909,
   0 15px 0 -4px #BF6C05,
   0 16px 10px -3px #BF6C05;
}

.abouttext a:active{
  transition: all 0.2s;
  transform: translateY(-5px);
  box-shadow: 0 2px 0 -2px #025909,
   0 8px 0 -4px #BF6C05,
   0 12px 10px -3px #BF6C05;
}

/* end of the about me styling section */



#cases{
    background-color: #001312;
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

#casesheading{
    width: 100vw;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cases div h2{
    color: aliceblue;
    font-display: text;
    font-family: "Texturina", serif;
    font-size: 66px;
}



/* Cases grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 110vh;
    gap: 10px;
    max-width: 70em;
    transition: grid-template-columns 0.4s ease;
    margin-bottom: 180px;
  }
  
  .image-container {
    position: relative; /* Ensure overlay can be positioned relative to this */
    overflow: hidden;
    transition: width 0.4s ease;
  }
  
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
    filter: brightness(0.6); /* Darken the image by default */
    position: relative;
    z-index: 1; /* Ensure the image stays behind the overlay */
    background-color: #000c0c;
  }
  
  .image-container:hover img {
    filter: brightness(1); /* Brighten image on hover */
  }
  
  /* Overlay styles */
  .overlaycase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    color: white;
    z-index: 2; /* Ensure the overlay is above the image */
  }
  
  /* Make the link clickable across the entire container */
  a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
  }
   
  .overlaycase h3 {
    padding-top: 20px;
    font-size: 24px;
  }

    /* Cases grid */
  
#moreinfo{
    background-color: #001312;
    display: flex;
    flex-direction: column;
    height: 40em;
    align-items: center;
}

#moreinfo h2{
  font-size: 82px;
  color: white;
  text-align: center;
}

#moreinfo div:nth-of-type(1){
  padding-top: 10px;
}
#moreinfo div:nth-of-type(2){
  height: 240px;
  display: flex;
  align-items: center;
  margin-top: -20px;
}

#moreinfo img{
  width: 120px; /* Control the width directly */
  height: 120px; /* Maintain aspect ratio */
  rotate: -20deg;
}




/* site Asp tryk */
.casetitle{
  background-color: #001312;
  height: 12em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  gap: 16px;
}


/* image grid */
.image-grid, .image-gridtype2, .image-gridtype3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.image-grid img, .image-gridtype2 img, .image-gridtype3 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill their grid space without distortion */
}

.image-grid img:nth-child(1) {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.image-grid img:nth-child(2) {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.image-grid img:nth-child(3) {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}

/* type 2 img grid */

.image-gridtype2 img:nth-child(1) {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.image-gridtype2 img:nth-child(2) {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.image-gridtype2 img:nth-child(3) {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
}

/* type 3 img grid */

.image-gridtype3 img:nth-child(1) {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.image-gridtype3 img:nth-child(2) {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.image-gridtype3 img:nth-child(3) {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.image-gridtype3 img:nth-child(4) {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}



@media only screen and (max-width: 851px) {

  /* overlay */
  .img-container {
    display: none;
  }

  .content-container {
    width: 100%;
    padding: 0;
    top: 0;
  }

  .text-container {
    padding-top: 8em;
    text-align: start;
  }

  .text-container h2{
    font-size: 3rem;
    padding-left: 35px;
    padding-bottom: 20px;
  }
  .text-container h3{
    font-size: 2rem;
    padding-left: 40px;
  }

  .overlaycontent{
    display: flex;
    flex-direction: column-reverse;
  }

  .text-container {
    padding-top: 2em;
  }

  .contact-item{
    padding: 25px;
    gap: 15px;
  }

  /* Header */
  .center-logo {
    position: absolute;
    left: 30px;
    padding-top: 0px;
    transform: translateX(0);
  }

  ul li {
    gap: 0px;
  }

  header ul li button{
    padding: 4px 16px 8px 16px;
  }

  .nav-links{
    display: none;
  }

.burger-menu{
  display: block;
}


/* hero section */  
  #hero img{
    position: absolute; /* Positioning the image absolutely */
    top: 0; /* Aligns to the top */
    left: 0; /* Aligns to the left */
  }

  #hero .wrapuphero{
    top: 70%;
    left: 25%;
  }

  /* about me section */
  .about {
    display: flex;
    flex-direction: column-reverse;
  }

  .abouttext{
    padding-top: 60px;
  }

/* cases grid menu */
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .image-container img {
    filter: brightness(1); /* Darken the image by default */
  }

  .overlaycase h3 {
    padding-top: 20px;
    font-size: 1.2rem;
  }

/* Vil du vide mere/ more info */
  #moreinfo h2{
    font-size: 62px;
  }

}

@media (max-width: 346px) {
  header ul li button{
    padding: 4px 10px 8px 10px;
  }
}