/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  height: 100vh;
  background: linear-gradient(to right, #ff7e6d, #6fb3ff); /* Brighter peach and pigeon blue gradient */
  transition: background 0.3s ease; /* Smooth transition for background changes */
}

body:hover {
  cursor: pointer;
}



html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
  font-size: 1rem;
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
  text-decoration: none;
}
/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  position: relative;
  left: -100%;
  animation: slideInAnimation 1s forwards;
}

.nav-links {
  list-style: none;
  font-size: 1rem;
  display: flex;
  gap: 1rem;
}

a {
  color: black;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 1.5rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}



.hamburger-menu {
    cursor: pointer;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}



.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}


#skills {
  padding: 2rem 1rem; /* Mindre padding för små skärmar */
  text-align: center;
}

.title {
  font-size: 2rem; /* Justera titeln för mindre skärmar */
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.details-container {
  margin-bottom: 2rem;
}

.experience-sub-title {
  font-size: 1.5rem; /* Justera storleken för rubriker */
  color: #ffffff;
  margin-bottom: 1rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 0.8rem 1.5rem; /* Mindre padding för att få plats på små skärmar */
  font-size: 1rem; /* Mindre textstorlek för bättre anpassning */
  color: #ffffff;
  transition: all 0.3s ease-in-out;
  max-width: 100%; /* Begränsa bredden för att undvika problem på små skärmar */
}

.skill img {
  width: 20px; /* Mindre ikoner för att passa på små skärmar */
  height: 20px;
}

.skill:hover {
  background: rgb(53, 53, 53);
  color: #ffffff;
  transform: translateY(-3px); /* Mindre animation för mobil */
}

/* Media Queries för Mobilanpassning */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column; /* Gör att varje färdighet visas i en kolumn för små skärmar */
    gap: 0.8rem;
  }

  .details-container {
    margin-bottom: 1.5rem; /* Mindre marginaler för bättre passning */
  }

  .skill {
    padding: 1rem; /* Lättare att klicka på */
    font-size: 1rem; /* Anpassad textstorlek */
  }

  .experience-sub-title {
    font-size: 1.3rem; /* Mindre rubriker på mobil */
  }
}



/* #skills {
  padding: 4rem 2rem;
  text-align: center;
}

.skills-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333; /* Ändra färgen för titeln om du vill */
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill {
  border: 1px solid #333; /* Ändra färg om du vill */
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
} */


.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 1rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
  position: relative;
  left: -100%;
  animation: slideInAnimation 1s forwards;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  border-radius: 25%;
  gap: 5rem;
  height: 80vh;
  transition: margin-top 0.5s ease;
}

.menu-open #content-container {
  margin-top: 200px;
}

.menu-open #profile {
  margin-top: 50px; /* Adjust the value based on your design */
}

.main-picture {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  left: -100%;
  animation: slideInAnimation 1s forwards;
}

@keyframes slideInAnimation {
  to {
    left: 0; /* Slide in to the right */
  }
}

.section__pic-container {
  display: flex;
  /* height: 400px;
  width: 400px; */
/*   border-radius: 50%; */
  margin: auto 0;

}

.section__text {
  align-self: center;
  text-align: center;
  position: relative;
  left: 100%;
  animation: slideInAnimation 1s forwards;
}

.section__text p {
  font-weight: 600;
}

.section__text h1{
  color: rgb(12, 3, 20);
}

.section__text__p1 {
  text-align: center;
  position: relative;
  left: 100%;
  animation: slideInAnimation 1s forwards;
  color: white;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
}

.title {
  font-size: 3rem;
  text-align: center;
  position: relative;
  left: 100%;
  animation: slideInAnimation 1s forwards;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */



.icon {
  cursor: pointer;
  height: 2rem;
  width: 48px;
  height: 48px;
  padding-right: 2px;
}

.icon-big {
  cursor: pointer;
  height: 2rem;
  width: 150px;
  height: 150px;
  padding-right: 2px;
}

.icon-veralex {
  cursor: pointer;
  margin-top: 50px;
  width: 260px;
  height: 69px;
  padding-right: 2px;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.about-containers,
.about-details-container {
  display: flex;
  width: 70%;
  text-align: center;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  align-items: center;
  /*background: linear-gradient(to right, #f7b2b7, #a0c1e7); Ursprunglig gradient */
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(194 194 194);
  text-align: center;
  transition: background 0.3s ease; /* Mjuk övergång */
}



.section-container {
  height: 40%;
  justify-content: space-around;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
  text-align: center;
}

article {
/*   width: 10rem; */
/*   justify-content: space-around; */
  gap: 0.5rem;
  width: 15%
}


article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  /* background: rgb(250, 250, 250); */
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
/*   border: rgb(53, 53, 53) 0.1rem solid; */
  border-color: rgb(163, 163, 163);
/*   background: (250, 250, 250); */
  margin: 2rem auto;
  width: 80%;
  align-items: center;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

#content-container {
  transition: margin-top 0.5s ease; /* Add a smooth transition effect */
}




.cd-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10%;
  border-radius: 2px;
}
.cd-container::after {
  content: '';
  display: table;
  clear: both;
}

/* --------------------------------

Main components

-------------------------------- */


#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  margin-bottom: 2em;
}
#cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25px;
  height: 100%;
  width: 4px;
  background: #7E57C2;
}
@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}
.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-block:first-child {
  margin-top: 0;
}
.cd-timeline-block:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.cd-timeline-img {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #7E57C2, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img {
  background: #673AB7;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 30px;
    height: 30px;
    left: 50%;
    margin-left: -15px;
    margin-top: 15px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}

.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  margin-right: 30px;
  background: #000000;
  border-radius: 2px;
  padding: 1em;
  .timeline-content-info {
    background: #2B343A;
    padding: 5px 10px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    box-shadow:  inset 0 2px 0 rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    i {
      margin-right: 5px;
    }
    .timeline-content-info-title, .timeline-content-info-date {
      width: calc(50% - 2px);
      display: inline-block;
    }
    @media (max-width: 500px) {
      .timeline-content-info-title, .timeline-content-info-date {
        display: block;
        width:100%;
      }
    }
  }
  .content-skills {
    font-size: 12px;
    padding:0;
    margin-bottom: 0;
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    li {
      background: #40484D;
      border-radius: 2px;
      display: inline-block;
      padding: 2px 10px;
      color: rgba(255,255,255,0.7);
      margin: 3px 2px;
      text-align: center;
      flex-grow: 1;
    }
  }
}
.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-content h2 {
  color: rgba(255,255,255,.9);
  margin-top:0;
  margin-bottom: 5px;
}
.cd-timeline-content p, .cd-timeline-content .cd-date {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-size: 0.8125rem;
}
.cd-timeline-content .cd-date {
  display: inline-block;
}
.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}

.cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #333C42;
}

@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .cd-timeline-content p {
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    color: white;
    margin-left: 0;
    padding: 1.6em;
    width: 36%;
    margin: 0 5%
  }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #333C42;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 132%;
    top: 25px;
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #333C42;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 132%;
    text-align: right;
  }
}
