canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -11;
  width: 100%;
}

* {
  margin: 0; padding: 0;
}

a, a:hover, a:active, a:visited {
  color: #ffffff;
  text-decoration: none;
}

.main {
  min-width: 300px;
  margin: 0 auto;
}

@media screen and (max-width: 500px) {
  .main {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
  }
}

h3, h1, p {
    width: 100%;
    max-width: 1500px;
    padding-left: 45px; /* 30px container padding + 15px column padding */
    padding-right: 30px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

h3 {
  font-family: "ivymode", sans-serif;
  /* font-style: italic;  */
  font-weight: 200;
  color: #213349;
  font-size: clamp(20px, 7vw, 50px);
  margin-bottom: 60px;
  padding-top: 150px;
  text-align: left;
}

p {
  font-family: poppins;
  font-size: 16px;
  color: rgb(0, 0, 0);
  margin-bottom: clamp(20px, 5vw, 30px);
  text-align: left;
}

h1 {
  font-family: "ivymode", sans-serif;
  /* font-style: italic;  */
  font-weight: 200;
  color: #182638;
  font-size: clamp(20px, 7vw, 40px);
  margin-bottom: 10px;
  padding-top: 60px;
}







/* Header */

header {
  padding: 1rem 0;
  width: 100%;
  top: 0;
  z-index: 10;
}

.namn {
  font-family: "zooja-pro", sans-serif;
  font-weight: 200;
  font-size: clamp(20px, 12vw, 120px);
  color: #ffffff;
  text-align: center;
  z-index: 10;
  display: block;
  margin: 10rem auto 0;
  left: 50%;
  right: 50%;
  width: fit-content;
  border-radius: 0.2em;
  -webkit-text-stroke: 8px #98badf; /* For webkit browsers */
  text-shadow: 0 0 1px #98badf; /* Fallback for older browsers */
  paint-order: stroke fill;
}

.undertext {
  color: #ffffff;
  font-family: 'kodchasan';
  text-align: center;
  font-size: clamp(5px, 2vw, 28px);
  z-index: 15;
  margin: -20px auto 0;
  left: 50%;
  right: 50%;
  padding-top: 1.5vw;
  width: fit-content;
  -webkit-text-stroke: 5px #98badf; /* For webkit browsers */
  text-shadow: 0 0 1px #98badf; /* Fallback for older browsers */
  paint-order: stroke fill;
}

/* icon bar */

.icon-bar {
  width: 100% ;
  height: 100px;
 /* overflow: auto; */
  align-items: center;
  margin-top: 20px;
  z-index: 9;
  /* background-color: #6c9ccf; /* 6c9ccf */
  border-radius: 2em;
  margin: 50px auto 0;
  left: 50%;
  right: 50%;
  width: fit-content;
  font-family: 'poppins';
  padding-bottom: 50px;
}

.icon-bar a {
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  /* box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.05); */
  border-radius: 50%;
  padding: 10px;
  display: inline-block;
  margin: 0 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
 /* overflow: hidden; */
  background-color: #ffffff;
  z-index: 10;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 5px solid #98badf; 
}

.icon-bar a .icon {
  position: relative;
  z-index: 11;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: #090712;
  border-width: 10px;
}

/* animtation popup*/
.icon-bar a::before {
  content: attr(data-icon);
  position: absolute;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.5em 1em;
  border-radius: 20px;
  z-index: 12;
  left: 50%;
  transform: translateX(-50%) translateY(35px) rotate(-25deg);
  white-space: nowrap;
  opacity: 0;
  transition: 200ms ease;
}

.icon-bar a:hover::before {
  transform:  translateX(-50%) translateY(65px) rotate(0deg);
  opacity: 1;
}

.icon-bar a:hover::after {
  transform: translateY(56px) rotate(0deg);
  opacity: 1;
}

.icon-bar a:hover {
  background-color: var(--accent-color);
  fill: #ffffff;
}

.icon-bar a:hover icon {
  fill: #ffffff;
}

/* triangle */
.icon-bar a::after {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid var(--accent-color);
  z-index: 13;
  left: 50%;
  margin-left: -8px; /* Half of the arrow width */
  transform: translateY(0px) rotate(0deg);
  opacity: 0;
  transition: 200ms ease;
}

/* icon color */
.icon {
  filter: 
  /* invert(61%) sepia(67%) saturate(372%) hue-rotate(177deg) brightness(87%) contrast(85%); */
  invert(40%) sepia(31%) saturate(1748%) hue-rotate(162deg) brightness(91%) contrast(84%);
}

/* icon color when hovering */
.icon-bar a:hover .icon {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}




/* Main content */

section {
  display: flex;
  flex-direction: column;
}







/* About */

.about-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 1600px;
  margin: 0px auto 0px;  /* Consolidated margins */
  padding: 0 40px;          /* Consolidated padding */
  gap: 2rem;
  box-sizing: border-box;

  background: #fff;
  margin: 80px auto 100px;
  padding: 40px 32px;
  border-radius: 1vw;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  box-sizing: border-box;
  display: flex; /* or flex-direction: column; if you want vertical stacking */
  gap: 2rem;     /* optional: space between text and image */
}

section#about2 {
  background: transparent;
}



.about-container > div {
  max-width: fit-content;
  flex:  1;
}

.image-container img {
  width: 100%;
  height: 100%;
  max-height: 1000px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 0vw 1vw 1vw 0vw;
  display: block;
  float: right;
}

#signature {
  width: 50%;
  height: 50%;
  max-height: 600px;
  min-height: 100px;
  object-fit: scale-down;
  display: block;
  position: relative;
  right: -55%;
  margin-top: 5%;
  margin-bottom: 5%;
  filter: 
  invert(60%) sepia(31%) saturate(1748%) hue-rotate(162deg) brightness(91%) contrast(84%);
}


@media screen and (max-width: 800px) {
  .about-container {
    flex-direction: column;
    overflow: hidden;
  }
  .about-container > div {
    width: 100%;
    box-sizing: border-box;
  }
  .image-container img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 400px;
    border-bottom-left-radius: 1vw;
    border-top-right-radius: 0vw;
    object-fit: cover;
  }
  .about-container p {
    margin-bottom: 50px;
  }
  #signature img {
    width: 50%;
    height: 50%;
    max-height: 400px;
    min-height: 100px;
    display: block;
    right: -40%;
    margin-bottom: -25%;
  }
  .job-title {
    padding-top: 3.5vw;
  }
  .portfolio-container h2 {
    padding-top: 10px;
  }
  #portfolio p {
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }
  
}

#about {
  text-align: left;
  /* background-color: #6c9ccf; */
  background-color: #ffffff;
  /* border-radius: 1vw;
   margin-bottom: 100px; */
  /* box-shadow: 10px 10px 10px #544f6b; */
}








/* Projekt */

#portfolio {
  color: #1b2c3b;
  text-align: left;
  background-color: #ffffff;
  /* border-radius: 0.5vw; */
  /* margin-bottom: 200px; */
  /* box-shadow: 10px 10px 10px #544f6b; */
}

#projects {
  background-color: #ffffff;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 2000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
  box-sizing: border-box;
  padding-bottom: 150px;
  padding-top: 150px;
}

.portfolio-container p,
.portfolio-container h2 {
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 20px;
  text-align: center;
}

.portfolio-container h2 {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: italic;
  color: #3a364d;
  font-size: 1.5rem;
  padding-bottom: 10px;
  padding-top: 10px;
}

.portfolio-container p {
  font-family: poppins;
  font-size: 16px;
  color: rgb(0, 0, 0);
  margin-bottom: clamp(20px, 5vw, 30px);
  text-align: left;
}

#portfolio p {
  margin-bottom: 20px !important;
  max-width: 50%;
}

.portfolio-container h1 {
  /* font-family: "zooja-pro", sans-serif; */
  /* font-family: "Lora", serif; */
  font-family: "ivymode", sans-serif;
  font-style: italic; 
  font-weight: 200;
  color: #26364b;
  text-align: left;
  font-size: 25px;
  margin-bottom: 20px;
  padding-top: 60px;
  padding-left: 90px;
  /* background-color: rgb(255, 255, 255); */
}

.h3-text h3 {
  text-align: left !important;
  padding-left: 0;
  color: #203041;
  width: 100%;
  max-width: 1900px;
  padding-left: 50px;
  padding-top: 50px;
  margin-bottom: 10px;
  font-size: 40px;
}

.column1,
.column2,
.column3,
.column4 {
 display: flex;
  min-width: 350px;
  height: auto;
  padding-left: 5px;
  padding-right: 5px;
  box-sizing: border-box;
}

.column1,
.column2 {
  order: 1;
}

.column3,
.column4 {
  order: 2;
  flex-basis: 100%;
  width: 100%;
  display: flex;
}


.column1,
.column2,
.column3{
  padding: 10px;
}







.image {
  overflow: hidden;
  position: relative;
  aspect-ratio: 12/9;
  margin-bottom: 10px;
  margin-left: 10px;
  margin-right: 10px;
  grid-column: auto;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image:hover img {
  transform: scale(1.05);
}


@media screen and (max-width: 800px) {
  .column1, 
  .column2 {
    width: 100%;
  }
  
}






/* Content */

.content-container p,
.content-container h1
{
  padding-top: 50px !important;
}

.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1600px;
  grid-auto-flow: column;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.content-container p, 
.content-container h3, 
.content-container h1 {
  width: calc(100% - 100px);
  max-width: 800px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding-left: 0;
  padding-right: 0;
}

.image-full img {
  width: calc(100% - 60px);
  max-width: 1600px;
  height: auto;
  margin: 0 auto;
  align-items: center;
  display: block;
  padding-bottom: 10px;
  padding-top: 10px;
}

.image-half img {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  align-items: center;
}

video {
  width: calc(100% - 40px);
  max-width: 1450px;
  height: auto;
  margin: 0 auto;
  align-items: center;
  display: block;
  padding-bottom: 40px;
}

.column1-content,
.column2-content {
  flex: 1;
  min-width: 350px;
  max-width: 2000px;
  height: auto;
  padding: 10px;
  box-sizing: border-box;
}

.column1-content {
  padding-left: 30px;
}

.column2-content {
  padding-right: 30px;
}



@media screen and (max-width: 900px) {
  .column1-content, 
  .column2-content {
    width: 100%;
    padding: 0;
  }
  .column1-content {
    padding-right: 10px;
    padding-left: 0px;
  }
  .column2-content {
    padding-left: 0px;
    padding-right: 0px;
  }

  .column1-content img,
  .column2-content img {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 10px;
  }

  video {
    width: 100%;
    max-width: 1000px;
  }

  .image-full img {
    width: 100%;
    max-width: 1000px;
  }
  
}



.button-container {
  display: flex;
  justify-content: space-between;
  padding-bottom: 150px;
  padding-top: 100px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.btn {
  background-color: #ffffff;
  font-family: poppins;
  font-size: 16px;
  color:#769cc5;
  border: none;
  cursor: pointer;
  padding: 15px 30px;
  width: 300px;
  margin: 5px;
  border-radius: 4px;
  text-align: center;
}

.btn:active,
.btn:hover  {
  transform: scale(1.03);
  transition: 0.4s ease;
  color: #213762;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;  
    height: 50px;
    padding: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(58%) sepia(17%) saturate(805%) hue-rotate(170deg) brightness(101%) contrast(89%);
}

.icon-btn:hover .btn-icon {
    transform: scale(1.03);
    transition: transform 0.2s ease;
    filter: 
    invert(30%) sepia(31%) saturate(1348%) hue-rotate(162deg) brightness(91%) contrast(84%);
}

@media screen and (max-width: 800px) {
  .btn {
    font-size: 13px;
  }
  .btn-icon {
    width: 25px;
    height: 25px;
  }
}
  






/* Footer */

footer {
  /* background-color: #ffffff; */
  padding: 2rem 0;
  padding-top: 100px;
  width: 100%;
}

footer p {
  font-family: 'kodchasan';
  color: rgb(255, 255, 255);
  /* background-color:#ffffff; */
  text-align: center;
  padding: 0;
  margin: 0;
  max-width:none !important;
}
