body, html {
  margin: 0;
  padding: 0 15px;
  font-family: 'roboto';
  background-color: bisque;
}

header {
  display: flex;
  flex-direction: column;
  padding-top: 0px; /* samma höjd som baren */
  position: relative;
  z-index: 1;
}

#hamburgerBtn {
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 50px;
  left: 20px;
  z-index: 1001;
}

#fullscreenMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(51, 51, 51, 0.95); /* lite transparent för effekt, valfritt */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: auto; /* säkerställer att klick fungerar */
}

#fullscreenMenu.hidden {
  display: none;
}


.hidden {
  display: none;
}

#closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

#fullscreenMenu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

#fullscreenMenu ul li {
  margin: 20px 0;
}

#fullscreenMenu ul li a {
  color: white;
  font-size: 36px;
  text-decoration: none;
}

#fullscreenMenu ul li a:hover {
  text-decoration: underline;
}
.namn {
  margin-top: 50px;
  margin-left: 50px;
  color: black;
}
.om-mig {
  margin-top: 100px;
}
hr {
  width: 100%;
  height: 2px;
  background-color: black;
}
footer {
  position: fixed;
  bottom: 15px;
  right: 15px;
  padding: 20px;
  background-color: transparent;
}
footer .contact {
  display: flex;
  gap: 0px;
  align-items: center;
}
.footer-icon {
  width: 40px;
  height: 40px;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  color: black;
  font-size: 3rem;
}

.footer-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
.bild {
  max-width: 100%;
  height: 400px;
  border-radius: 20px;
}
.bild-container {
  text-align: center;
}
hr {
  border: black solid 2px;
}
.sign {
  margin-top: 50px;
  max-width: 100%;
  height: 450px;
  border-radius: 20px;
  cursor: pointer;
}

.sign-container {
  position: relative; 
  display: inline-block;
  padding: 20px;
  display: flex;
  gap: 200px;
}
.sign-container h1 {
  color: black;
}
.sign-container  a {
  color: darkblue;
}

.speech-bubble {
  position: absolute;
  bottom: 80%;                
  left: 40%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fdfeff, #a3a3a4); /* snygg gradient */
  color: black;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  max-width: 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
}

/* triangeln på pratbubblan */
.speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%;   /* sitter under bubblan */
  left: 20%;
  transform: translateX(-50%);
  border-width: 12px;
  border-style: solid;
  border-color: #f8f9fa transparent transparent transparent;
}

/* synlig */
.speech-bubble.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* liten animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.lia {
  text-align: center;
  margin-top: 40px;
  font-size: 3rem;
}
.lia-information p{
  font-size: 2rem;
  padding: 0 40px;
}
.kontakt-knapp-container {
  text-align: center;
  margin-bottom: 40px;
}
.kontakt-knapp {
  font-size: 2rem;
  border-radius: 10px;
   background: linear-gradient(135deg, #fdfeff, #a3a3a4);
   cursor: pointer;
}
.contact-form {
  max-width: 500px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: 'Roboto', sans-serif;
  border: solid black 2px;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.contact-form button {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #007aff;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-form button:hover {
  background: #005bb5;
  transform: scale(1.03);
}
.kontakta-mig {
  text-align: center;
  margin-top: 40px;
  font-size: 2rem;
}
.plugga-container, .glass-container{
  display: flex;
  gap: 50px;
  margin-top: 40px;
}
.plugga, .glass {
  max-width: 30%;
}
.plugga-text, .glass-text {
  font-size: 1.5rem;
}
.truck-container, .aristo-container {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}
.truck, .aristo{
  order: 2;
  max-width: 30%;
}
.truck-text, .aristo-text{
  font-size: 1.5rem;
  order: 1;
}
.veta-mer-container {
  margin-top: 50px;
  text-align: center;
  padding: 5px 5px;
  border: dashed black 3px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fdfeff, #a3a3a4);
  margin-bottom: 40px;
}
.veta-mer {
  font-size: 2rem;
}
.veta-mer1 {
  font-size: 1.5rem;
}
.om-mig-text {
  padding: 0 100px;
  text-align: center;
}
.om-mig-text p {
  font-size: 1.5rem;
}
.atviggo {
  text-align: center;
  font-size: 1.5rem;
}
.projekt-title {
  font-size: 2rem;
  margin-bottom: 5px;
}

.projekt-divider {
  border: solid black 2px;
  width: 100%;
  margin-bottom: 20px;
}

.projekt-container {
  display: flex;
  gap: 20px;
  padding: 0 20px 20px 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.projekt {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
  aspect-ratio: 1 / 1; 
}

.projekt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Media query för små skärmar */
@media (max-width: 640px) {
  .projekt {
    flex: 1 1 100%; 
    max-width: 100%;
    padding: 0 80px;
  }
}

/* ===========================
   📱 MOBILER (max 640px)
   =========================== */
@media (max-width: 640px) {
  body, html {
    padding: 0 10px;
  }

  .namn {
    font-size: 1.8rem;
    margin-left: 10px;
  }

  .sign-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .speech-bubble {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 15px;
  }

  .plugga-container, .glass-container,
  .truck-container, .aristo-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .plugga, .glass, .truck, .aristo {
    max-width: 80%;
  }

  .plugga-text, .glass-text,
  .truck-text, .aristo-text {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .om-mig-text {
    padding: 0 20px;
  }

  .projekt {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0;
  }
  h2.erfarenheter {
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
  }

  .plugga-container, .glass-container,
  .truck-container, .aristo-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    margin-top: 30px;
  }

  .plugga, .glass, .truck, .aristo {
    width: 80%;           
    height: auto;         
    max-height: 250px;    
    object-fit: cover;    
    border-radius: 15px;
  }

  .plugga-text, .glass-text,
  .truck-text, .aristo-text {
    font-size: 1.2rem;
    padding: 0 15px;
  }
}

/* ===========================
   📲 SURFPLATTOR (641px–1024px)
   =========================== */
@media (min-width: 641px) and (max-width: 1024px) {
  .namn {
    font-size: 2.2rem;
    margin-left: 20px;
  }

  .plugga-text, .glass-text,
  .truck-text, .aristo-text,
  .om-mig-text p {
    font-size: 1.3rem;
  }

  .sign-container {
    flex-direction: row;
    gap: 50px;
  }

  .projekt {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* ===========================
   💻 LAPTOP (1025px–1440px)
   =========================== */
@media (min-width: 1025px) and (max-width: 1440px) {
  .namn {
    font-size: 2.5rem;
  }

  .projekt {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }

  .om-mig-text p {
    font-size: 1.4rem;
  }
}

/* ===========================
   🖥️ STORA SKÄRMAR (1441px+)
   =========================== */
@media (min-width: 1441px) {
  body {
    max-width: 1400px;
    margin: 0 auto;
  }

  .namn {
    font-size: 3rem;
  }

  .om-mig-text p {
    font-size: 1.6rem;
  }

  .projekt-container {
    gap: 30px;
  }

  .projekt img {
    border-radius: 20px;
  }
}
/* ===================== DARK MODE (SNYGG & ENHETLIG) ===================== */

html.dark,
body.dark {
  background-color: #0f172a;
color: #f1f5f9;    
          }          /* nästan vit text */

/* all text */
body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark span,
body.dark li,
body.dark label {
  color: #f1f5f9;
}

/* länkar */
body.dark a {
  color: #93c5fd;
}

/* header + footer */
body.dark header,
body.dark footer {
  background-color: #020617;
}

/* alla större containers */
body.dark .sign-container,
body.dark .veta-mer-container,
body.dark .contact-form,
body.dark .projekt,
body.dark .bild-container,
body.dark .plugga-container,
body.dark .glass-container,
body.dark .truck-container,
body.dark .aristo-container {
  background-color: #020617;
  border-color: #334155;
}

/* speech bubble */
body.dark .speech-bubble {
  background: linear-gradient(135deg, #1e293b, #020617);
  color: #f8fafc;
}

/* knappar */
body.dark button {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: #475569;
}

/* darkmode-knappen */
body.dark #darkModeBtn {
  background: linear-gradient(135deg, #1e293b, #020617);
  color: #f8fafc;
  border-color: #475569;
}

/* input & textarea */
body.dark input,
body.dark textarea {
  background-color: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
}

/* hr linjer */
body.dark hr {
  background-color: #334155;
  border-color: #334155;
}

/* icons */
body.dark .footer-icon {
  color: #f8fafc;
}

/* fullscreen menu */
body.dark #fullscreenMenu {
  background-color: rgba(2, 6, 23, 0.97);
}

#darkModeBtn {
  position: fixed;   /* gör den sticky */
  top: 50px;         /* uppe */
  right: 20px;       /* höger */
  z-index: 1002;     /* över meny */
  font-size: 22px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
}

body.dark #darkModeBtn {
  background: linear-gradient(135deg, #333, #111);
  border-color: #666;
  color: white;
}

#progress-container {
  position: sticky;
  top: 0;
  height: 40px;
  background: rgba(0,0,0,0.08);
  z-index: 10;
  width: 100%;
  border-radius: 8px;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  display: flex;
  align-items: center;
  padding-left: 12px;
  transition: width 0.3s ease;
}

#progress-text {
  color: white;
  font-weight: 600;
  font-size: 14px;
}


