:root {
  --green-light: #7fa97f;
  --green-medium: rgb(22, 178, 63);
  --green-dark: #4a704a;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #e0e6f1;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  background: rgba(20, 30, 40, 0.92);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 16px #0008;
  padding: 0;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* Hamburgermeny-knapp */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
  position: absolute;
  left: 16px;
  top: 12px;
}
.nav-toggle-btn span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 5px 0;
  background: #e0e6f1;
  border-radius: 2px;
  transition: 0.3s;
}

/* Meny */
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  color: #e0e6f1;
  text-decoration: none;
  font-size: 1.15em;
  padding: 12px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.03em;
  font-weight: 500;
  display: block;
}
.nav-menu li a:hover,
.nav-menu li a:focus {
  background: var(--green-light);
  color: #203a43;
  box-shadow: 0 2px 12px #7fa97f55;
}

/* Header */
header {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #a0d8ef;
  text-shadow: 0.5px 0.5px 8px #c9e9c3, 0 0 12px #00f0ff;
  background: rgba(0,0,0,0.6);
}
.note {
  display: block;
  margin: 32px auto 24px auto;
  max-width: 600px;
  background: rgba(127, 169, 127, 0.18);
  color: #bed0d6;
  border-left: 6px solid var(--green-medium);
  border-radius: 10px;
  padding: 18px 28px;
  font-size: 2em;
  font-style: italic;
  box-shadow: 0 2px 12px #7fa97f33;
  text-align: left;
}

.image-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 0;
  filter: grayscale(80%) brightness(60%);
  transition: filter 0.3s ease;
}
.image-grid:hover {
  filter: grayscale(0%) brightness(100%);
}
.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.image-grid img:hover {
  opacity: 1;
}

/* Header text */
header h1 {
  position: relative;
  z-index: 1;
  font-size: 3em;
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}
header p {
  position: relative;
  z-index: 1;
  font-size: 1.3em;
  margin-top: 10px;
  max-width: 600px;
  text-align: center;
  color: #8cd0f0;
}

a {
  color: #c7d8c4;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Tjänster */
.services {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}
.services h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--green-medium);
  text-shadow: 0 0 6px var(--green-dark);
  letter-spacing: 0.05em;
}
.services ul {
  list-style: none;
  padding: 0;
}
.services li {
  background: rgba(127, 169, 127, 0.15);
  margin: 12px 0;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.2em;
  color: #c1ffc1;
  box-shadow: 0 0 8px #7fa97faa;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.services li:hover {
  background: rgba(107, 142, 35, 0.3);
  box-shadow: 0 0 14px #6b8e238c;
}

/* Knapp */
.button {
  display: block;
  padding: 18px 36px;
  font-size: 1.4em;
  color: #0f2027;
  background: linear-gradient(45deg, #85a77f, #00f0ff);
  text-decoration: none;
  border-radius: 50px;
  margin: 40px auto;
  width: fit-content;
  box-shadow: 0 0 12px #397f85a7, 0 0 24px #00f0ff;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.button:hover {
  background: linear-gradient(45deg, #00f0ff, #6b8e23);
  color: #e0e6f1;
  box-shadow: 0 0 24px #00f0ff, 0 0 48px #6b8e23;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 10px;
  background-color: #111a22;
  font-size: 0.9em;
  color: rgb(22, 178, 63);
  text-shadow: 0 0 5px var(--green-light);
}

/* Om mig/teknik */
.about {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(127, 169, 127, 0.5);
  text-align: center;
}
.about h2 {
  font-size: 1.8em;
  color: var(--green-light);
  margin-bottom: 15px;
}
.about p {
  font-size: 1.1em;
  line-height: 1.6;
  flex: 1;
}
.about-tech {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0f7fa;
  border: 1px solid rgba(127, 169, 127, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  text-align: left;
}
.about-tech h2 {
  font-size: 1.8em;
  color: #00f0ff;
  margin-bottom: 15px;
}
.about-tech p {
  font-size: 1.1em;
  line-height: 1.6;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* Bildslider */
.slider {
  width: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slides img {
  width: 300px;
  height: auto;
}
.responsive-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 24px auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px #7fa97f33;
}
.responsive-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px #7fa97f33;
  object-fit: cover;
}
.tidigare {
  background: rgba(30, 40, 50, 0.85);
  border: 2px solid var(--green-light);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0006;
  padding: 32px 18px;
  margin: 40px auto 32px auto;
  max-width: 750px;
}

/* RESPONSIVT: Hamburgermeny och layout */
@media (max-width: 600px) {
  .responsive-image {
    max-width: 98vw;
    border-radius: 8px;
    margin: 12px auto;
  }
  .responsive-video {
    max-width: 100vw;
    border-radius: 8px;
  }
  header h1 {
    font-size: 2em;
  }
  header p {
    font-size: 1em;
    padding: 0 15px;
  }
  .services h2 {
    font-size: 1.5em;
  }
  .services li {
    font-size: 1em;
    padding: 12px 16px;
  }
  .button {
    font-size: 1.2em;
    padding: 14px 28px;
  }
  body {
    font-size: 16px;
    padding: 0 8px;
  }
  h1 {
    font-size: 1.5em;
  }
  .image-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
  }
  .image-grid {
    display: block;
  }
  .about-content {
    flex-direction: column;
    overflow-x: visible;
  }

  
  /* Hamburgermeny */
  .nav-toggle-btn {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(20, 30, 40, 0.98);
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px #0008;
    z-index: 2000;
  }
  .nav-menu.open {
    display: block;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  .nav-menu li a {
    font-size: 1.1em;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid #2c5364;
    text-align: center;
  }
  .nav-menu li:last-child a {
    border-bottom: none;
  }
  .slider {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    overflow: hidden;
    margin: 0 auto;
  }
  .slides {
    width: auto;
  }
  .slides img {
    width: 100%;
    min-width: 0;
    height: auto;
    object-fit: cover;
  }
}
