* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

header {
  position: relative;
}

.navMeny {
  display: flex;
  position: absolute;
  z-index: 10;
  top: 2%;
  left: 3%;
  right: 3%;
  justify-content: space-evenly;
  list-style: none;
  padding: 1%;
  text-decoration: none;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.navMeny a {
  color: rgb(255, 254, 254);
  cursor: pointer;
  font-size: x-large;
  text-decoration: none;
  position: relative;
  transition: color 0.5s ease-out;
}

.navMeny a::after {
  content: '';
  position: absolute;
  left: 0%;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: rgb(42, 223, 22);
  transition: width 0.5s ease-out;
}

.navMeny a:hover::after {
  width: 100%;
}

video {
  display: block;
  pointer-events: none;
}

.welcomeText {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  z-index: 5;
  width: 50%;
  color: white;
  margin-top: 30%;
  margin-left: 10%;
  margin-right: 10%;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-size: large;
}

.welcomeText p {
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-80%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#slide-in-text {
  animation: slideInFromLeft 1.5s ease-out forwards;
}

.download-link {
  display: flex;
  position: absolute;
  font-family:Arial, Helvetica, sans-serif;
  justify-content: space-evenly;
  align-items: center;
  bottom: 15%;
  left: 20%;
  right: 20%;
  z-index: 5;
  padding: 0 3%;
}

.download-link button {  
  background: rgb(124, 168, 143);
  border-radius: 20px;
  border: none;
  width: 12.5rem;
height: 3.125rem;
}

.download-link button:hover {
  background-color: rgb(63, 161, 105)
}

.download-link a {
  font-size: larger;
  font-weight: bolder;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.download-link a:hover {
  transform: scale(1.2);
}

#moreAboutMe:hover {
  transition: transform 0.1s ease;
  transform: scale(1.2);
}

/* Göm hamburgermeny på större skärmar */
.menu-toggle {
  display: none;
  position: absolute;
  top: 2%;
  right: 5%;
  z-index: 11;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Mobilvy */
@media (max-width: 1400px) {
  .welcomeText {
    margin-top: 25%;
  }
}
@media (max-width: 1000px) {
  .navMeny {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 10%;
    right: 0;
    width: auto;
  }

  .navMeny.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .navMeny li {
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navMeny a {
    width: fit-content;
    margin: 0 auto;
  }

  .navMeny li:hover {
    background-color: rgba(27, 26, 26);
  }

  .navMeny a {
    justify-content: left;
    align-items: center;
    text-align: center;
  }

  .download-link {
    flex-direction: column;
    gap: 1rem;
  }

  .welcomeText {
    width: 80vw;
    margin-left: 5%;
    font-size: medium;
    background-color: rgba(65, 59, 59, 0.7);
    border-radius: 0 2rem;
    padding: 1rem;
  }

  .headerPicture {
    height: 600px;
  }
}

/* HEADER END */

/* Section 1 */

.about-me-section {
  padding: 2rem;
  background: linear-gradient(-45deg,
    rgb(162, 202, 179),
    rgb(226, 240, 231),
    rgb(124, 168, 143),
    rgb(162, 202, 179)
  );
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text {
  font-size: large;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 2rem;
  margin: 5%;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 50%;
}

.welcome-text p {
  margin: 0 1rem;
  letter-spacing: 1px;
}

.welcome-text h1 {
  padding: 1rem;
}

.profilePicture {
  border-radius: 40%;
  height: 50vw;
  max-height: 500px;
  margin: 2rem;
}

@media (max-width: 1000px) {
  .about-me-section{
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about-me-section{
    padding: 0;
    margin: 0;
  }

  .welcome-text {
    width: 90vw;
  }
}

@media (max-width: 500px) {
  .profilePicture {
    height: 60vw;
  }

  .welcome-text p {
    margin: 0;
    padding: 0;
  }
}

/* End of section 1 */

/* Section 2 */

.content-boxes {
  height: auto;
  padding: 5rem;
  background-size: cover;
  background-image: url("picture/hex_background.jpg");
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10vw;
}

.content-boxes a {
  position: relative;
  display: block;
  text-align: center;
}

.content-boxes figure h2 {
  position: absolute;
  color: rgb(23, 46, 193);
  z-index: 10;
  transform: translateX(-50%);
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: white;
  border-radius: 20px;
  padding: 0.5rem;
  top: 10%;
  left: 50%;
}

.figure_1 img, .figure_2 img {
  width: 40vw;
  max-width: 400px;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: 5px 5px 7px black, -5px -5px 7px #a2aab5;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.content-boxes img:hover {
  transform: scale(1.02)
}

@media (max-width: 768px) {
  .figure_1 img, .figure_2 img {
    width: 40vw;
  }
}

@media (max-width: 500px) {
  .content-boxes {
    justify-content: center;
    flex-wrap: wrap;
  }

  .figure_1 img, .figure_2 img {
    width: 90vw;
  }
}


/* End of section 2 */

/* Section 3 */

.programmes-section {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  height: auto;
  padding: 7rem;
  background: linear-gradient(-45deg,
    rgb(162, 202, 179),
    rgb(222, 242, 230),
    rgb(142, 182, 159),
    rgb(162, 202, 179)
  );
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
  
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.programmes-section h1 {
  text-align: center;
  margin-bottom: 4rem;
}

.logo-programmes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10%;
  align-items: center;
  margin-bottom: 7rem;
}

.logo-programmes figure {
  position: relative;
  text-align: center;
}

.logo-programmes figcaption {
  background-color: rgb(23, 46, 193);
  border: 1px solid white;
  border-radius: 2rem;
  color: white;
  font-weight: 600;
  justify-content: center;
  width: fit-content;
  padding: 0.5em;
  margin: 0.5em auto 0;
}

.arrow {
  display: inline-block;
  transition: transform 0.4s ease;
}

.rotate {
  transform: rotate(180deg);
}

.content {
  display: none;
  position: absolute;
  transition: all 0.4s ease;
  margin-top: 10px;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background-color: white;
  border-radius: 1rem;
  padding: 1rem;
  z-index: 5;
}

.content p {
  margin: 0;
}

.hidden {
  display: none;
}

.content.show {
  display: block;
}

.logo-programmes img{
  width: 180px;
  height: auto;
  border-radius: 50%;
  max-width: 100%;
}

@media (max-width: 768px){
  .programmes-section {
    padding: 4rem 2rem;
    animation: none;
    background-position: center;
    background-size: cover;
  }
  
  .logo-programmes {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .logo-programmes img {
    width: 140px;
  }
}

@media (max-width: 500px) {
  .programmes-section {
    padding: 3rem 1rem;
  }
  .logo-programmes {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* End of section 3 */

/* Section 4 */
.project-section {
  position: relative;
  background: url(/picture/background_grey.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.project-section h1 {
  text-align: center;
  padding: 3rem;
  box-shadow: 5px 5px 7px black, -5px -5px 7px #a2aab5;
  color: white;
}
.project-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-height: 100%;
  height: auto;
  align-items: center;
  border-radius: 2rem;
  border: 2px solid rgb(146, 138, 138);
  background-color: rgb(208, 207, 208);
  margin: 5%;
}

.project-container::-webkit-scrollbar {
  display: none;
}

.projects-link {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  border-radius: 1rem;
  padding: 1rem;
  margin-right: 1rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.projects-link:hover {
  transform: scale(1.1);
}

.projects-link img {
  width: 300px;
  height: 400px;
  border-radius: 2rem;
}

.projects-link a {
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: black;
}

.logo-used {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.logo-used img {
  width: 50px;
  height: auto;
}

.carusell-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.carusell-arrow:hover {
  background-color: rgba(0,0,0,0.5);
}

.carusell-arrow.left {
  left: 1rem;
}

.carusell-arrow.right {
  right: 1rem;
}

.bottom-space {
  padding: 5%;
  box-shadow: 5px 5px 7px #a2aab5;
}

/* End of section 4 */

/* FORM BEGIN */

.contactform-space {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: auto;
  background-image: url("picture/blue_waves.png");

}

.contact-form {
  display:flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 2rem;
  width: 50vw;
  margin: 10%;
  padding: 5% 0;
  background-color: white;
}

.contact-form h2, p {
  padding: 1rem;
  margin: 0 2rem;
  text-align: center;
}

.contact-form label {
  align-self: flex-start;
  margin-left: 20%;
  margin-top: 1rem;
}

.contact-form input, textarea{
  width: 60%;
  min-height: 1rem;
  font-family: 'Times New Roman', Times, serif;
  padding: 1rem;
  border: 1px solid;
  border-radius: 2rem;
  resize: none;
}

.contact-form button {
  margin: 5%;
  padding: 2%;
  width: 30%;
  border: 1px solid green;
  border-radius: 2rem;
  background-color: rgb(162, 202, 179);
}

.contact-form button:hover {
  background-color: rgb(106, 182, 139);
}

@media (max-width: 678px) {
  .contact-form {
    width: 80vw;
  }
}

@media (max-width: 400px) {
  .contact-form {
    width: 90vw;
    margin: 10% 0;
  }
}

/* FORM END */

/* FOOTER */

.footer {
  background-color: rgb(208, 207, 208);
  height: auto;
  margin: 0;
}

.footer-container {
  position: relative;
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  align-items: center;
  padding: 30px;
  
}

.footer-container .kontakt ul {
  list-style: none;
}

.kontakt i {
  margin: 0.3rem 1rem;
}

.kontakt a {
  text-decoration: none;
  color: black;
  transition: transform 0.5s ease;
  display: inline-block;
}

.kontakt a:hover {
  transform: translateX(5px);
}

.socialMedia ul {
  display: flex;
  list-style: none;
  margin-top: 40px;
}

.socialMedia li {
  margin-right: 20px;
}


.socialMedia i {
  font-size: 50px;
  transition: transform 0.3s ease;
  color: black;
}

.socialMedia i:hover {
  transform: scale(1.1);
}

.footer hr {
  width: 80%;
  margin: 20px auto;
}

.bottom-line {
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 2%;
}

#Tuc-logo {
  height: 25px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-container {
    flex-wrap: wrap;
  }
}

@media (max-width: 350px) {
  .footer-container {
    padding: 30px 0;
  }

  .footer {
    font-size: small;
  }

  .socialMedia i{
    font-size: 30px;
  }
}