@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
/* * = alle elementer  */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: palevioletred;
  overflow-x: hidden;
  
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* ----------------- TRANSITION ----------------- */

a,
.btn {
  transition: all 300ms ease;
}

/* ----------------- DESKTOP NAV ----------------- */

nav, .nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 12vh;
  /* sticky menu */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100; /* så menuen ligger øverst ovenpå fx billeder og tekst */
  background-color: palevioletred;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: white;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: pink;
  text-decoration: underline;
  text-underline-offset: 1rem;
}

.logoName {
  color: white;
  font-size: 3rem;
}

.logoName:hover {
  cursor: default;
}

/* ----------------- HAMBURGER MENU ----------------- */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
  list-style: none;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: white;
}

.menu-links {
  position: fixed;
  top: 12vh;
  right: 0;
  background-color: palevioletred;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;

  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 0 10px;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}

.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 :first-child {
  transform: none;
}

/* ----------------- INTRO SECTION ----------------- */

#introProfile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#introProfile * {
  color: white;
}

.profilePic {
  margin-top: 110px;
  width: 350px;
  aspect-ratio: 1 / 1;
  object-fit: cover; /* Prevents the image from looking squashed */
  border-radius: 50%;
}

.introProfile_text {
  text-align: center;
}

#about, #techSkills, #experience, #projects, #contact {
  max-width: 1200px;
  margin-left: 60px;
  margin-right: auto;
  padding-left: 0px;
  padding-right: 30px;
  box-sizing: border-box;
}

/* ----------------- ABOUT SECTION ----------------- */
#about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 200px;
  text-align: left;
}

#about * {
  color: white;
}

#techSkills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 100px;
}

#techSkills * {
  color: white;
}

.techSkills_pic-container {
  display: grid;
  grid-template-columns: repeat(5, 100px);
  gap: 20px;
  max-width: 100%;
}

.techSkills_pic-container img {
  height: 100px;
  width: 100px;
  flex: 0 0 90px;
  object-fit: contain;
  border-radius: 15px;
  background-color: white;
  padding: 10px;
  box-sizing: border-box;
}

/* ----------------- EXPERIENCE SECTION ----------------- */
#experience {
    margin-top: 150px;
}

#experience h1 {
    color: white;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

/* Den lodrette streg */
.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 12px;
}

.content1, .content2, .content3 {
    position: relative;
    margin-bottom: 50px;
    text-align: left;
}

/* Cirklerne på stregen */
.content1::before, .content2::before, .content3::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: pink;
    border-radius: 50%;
    left: -35.5px; /* Skubber cirklen hen ovenpå stregen */
    top: 5px;
    z-index: 2;
}

.containerRight h2 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-weight: lighter;
}

.containerRight h1 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: white;
}

.containerRight p {
    color: white;
    font-weight: lighter;
}


.btnDownloadCV {
    padding: 8px 20px;      
    border-radius: 15px;     
    background-color: #fff;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    color: palevioletred;
    font-weight: bold;
}


.btnDownloadCV:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* ----------------- PROJECT SECTION ----------------- */
#projects {
  margin-top: 150px;
}

#projects, #projects p {
  color: white;
}

#projects h1 {
  margin-bottom: 20px;
}

.project-img-box {
  width: 100%;
  max-width: 600px;
  flex-shrink: 0;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.github-overlay-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  z-index: 10;
}

/* hover-effekt på github ikonet*/
.project-img-box:hover .github-overlay-btn,
.github-overlay-btn:hover {
  opacity: 1;
  background-color: white;
  color: palevioletred;
  transform: scale(1.1);
}

#projects img {
  width: 100%;
  height: auto;
  display: block;
}

#projects li {
    color: white;
    list-style-type: disc;
    margin-left: 20px;
}

#projects h3 {
    margin-top: 20px;
}

.SallWhiskyProjekt, 
.NetvaerksspilProjekt, 
.ChatroomProjekt {
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-align: left;
    margin-bottom: 80px;
    align-items: flex-start;
}

.SallBeskrivelse {
    margin-top: 40px;
}

.NetvaerkBeskrivelse {
    margin-top: 15px;
}

.ChatroomBeskrivelse {
    margin-top: 25px;
}

/* BADGES */
.tech-badge-container {
    display: flex;
    flex-wrap: wrap; /* Sørger for at de hopper ned på næste linje, hvis der er mange */
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* badge boksen */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Luft mellem ikon og tekst */
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease-in-out;
}

/* Sørger for at ikonet inden i badget skalerer pænt */
.tech-badge i {
    font-size: 1.1rem;
}

/* ----------------- CONTACT SECTION ----------------- */
#contact {
    margin-top: 150px;
    color: white;
}

#contact {
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: lighter;
}

.email-icon, .linkedin-icon {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    text-align: center;
}    

/* Material Symbols ikon (email) */
.material-symbols-outlined.email-icon {
    font-size: 30px !important;
    font-variation-settings: 'OPSZ' 30;
    margin: 0;
    padding: 0;
}

/* Devicon ikon (linkedin) */
.linkedin-icon {
    font-size: 30px;
    margin: 0;
    padding: 0;
}

.contact-item a:hover {
    color: pink;
    text-decoration: underline;
    text-underline-offset: 1rem;
}

/* Så overskriften IKKE gemmer sig bag min sticky menu */
#about, #techSkills, #experience, #projects, #contact {
  scroll-margin-top: 20vh; 
}

footer {
  margin-top: 150px;
  text-align: center;
  color: white;
  padding: 5px;
}
