html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: system-ui, 'Segoe UI','Open Sans', 'Helvetica Neue', sans-serif;
  color: white;
  height: 200vh;
  overscroll-behavior-x: none; 
  touch-action: pan-y;
}
body {
  background-color: rgba(121, 60, 20, 0.82);
  overflow-x: hidden;
  overflow-y: auto;
}
.image-grid-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}
#first_image, #second_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.grid {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 25% 10% 65%;
  align-items: center;
  background-color: rgba(105, 59, 28, 0.35);
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.grid p {
  margin: 0;
}
.name_top {
  font-size: 1.9rem;
  grid-column: 3;
  color: rgba(255, 108, 3, 0.8);
}
.flags_top {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.flags_top img {
  width: 40px;
  height: auto;
  border-radius: 4px;
}
#wrapper {
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 16px;
  place-self: center; 
  width: min(1200px, 96vw);
}
.button-navbar {
  background-color: rgba(105, 59, 28, 0.7);
  border: 1px solid rgba(72, 60, 35, 0.25);
  width: 220px;
  height: 85px;
  border-radius: 20px;
  box-shadow: 0px 9px 20px #0a0a0a;
  font-size: 18px;
  color: rgb(255, 108, 3);
  font-weight: 600;
  transition: 0.2s;
}
.button-navbar:hover {
  cursor: pointer;
  background-color: rgba(105, 59, 28, 0.9);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
#knapp {
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(105, 59, 28, 0.85);
  border: 1px solid rgba(72, 60, 35, 0.25);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(72, 45, 22, 0.9), 0 12px 20px rgba(0,0,0,0.4);
  font-size: 22px;
  font-weight: 600;
  color: rgb(255, 108, 3);
  transition: all 0.15s ease;
}
#separera {
  width: 100%;
  height: 20px;
  background-color: rgba(105, 59, 28, 0.6);
}
.image-grid-container--second {
  grid-template-rows: auto auto auto auto;
  grid-template-columns: 16px 1fr 16px;
  align-items: start;
  row-gap: 16px;
}
#projects {
  grid-column: 2;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: white;
  z-index: 2;
  padding-top: 50px;
  margin: 0;
}
.grid_projects {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  width: 100%;
  z-index: 2;
  padding: 8px 0;
}
#Link-3{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
}
.proj_button {
  position: relative;
  display: inline-block;
  width: 350px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 9px 20px rgba(0,0,0,0.45);
  transition: 0.3s;
  margin-top: 122px;
}
.proj_button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj_button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0.9;
}
.about_text {
  grid-column: 2;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  color: white;
  z-index: 2;
}
#texten {
  grid-column: 2;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: white;
}
#about-me {
  grid-column: 1 / -1;
  background-color: rgb(105, 59, 28, 0.82);
  display: flex;
  justify-content: center;
  align-items:flex-end;
  gap: 24px;
  min-height: 180px;
  width: 100%;
  border-radius: 20px;
  padding: 24px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0px 9px 20px #0a0a0a;
}
.contact {
  text-align: center;
  color: white;
  font-size: 16px;
}
#my_mail, #my_phone {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  display: block;
  margin: 0 auto 8px auto;
}
#knapparna {
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  position: relative;
  box-shadow: 0 3px 0 rgba(72, 45, 22, 0.9), 0 12px 20px rgba(0,0,0,0.4);
  transition: all 0.15s ease;
}
#flaggorna {
  background-color: rgba(105, 59, 28, 0.7);
  border: 1px solid rgba(72, 60, 35, 0.25);
  border-radius: 16px;
  box-shadow: 0px 9px 20px #0a0a0a;
  cursor: pointer;
  padding: 0;
  margin: 0 8px;
}
