  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
  }

  /* Navbar */
  nav {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(15,15,15,0.8);
    color: #AACB73;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }

  nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
  }

  nav ul li a:hover {
    color: var(--accent);
  }

  /* Hero section */
  header {
    height: 100vh;
    /*background: linear-gradient(to right, #1e3a8a, #4f46e5);*/
    background-image: url(Bilder/sten.jpg);
  background-size: 125%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* eller fixed om du vill ha parallaxeffekt */
  overflow-x: hidden; /* viktig för att undvika horisontell scroll */
  position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }

  header h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
  }

  header p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #e0e7ff;
  }

  /* Sections */
 /* section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
  }*/

  h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
  }

  #projects {
    /*background-color: #524e4e;*/
    background-color: #383838;
background-image: url("https://www.transparenttextures.com/patterns/rocky-wall.png");

    text-align: center;
     padding-bottom: 50px;
  }

 .Ph1 {
    color: rgba(255, 255, 255, 0.878);
    padding: 50px;
    font-size: 70px;
   }

   #projects h2 {
    color: rgba(255, 255, 255, 0.726);
    margin: 20px 0 0 0;
    font-size: 20px;
   }

  .Projekt{
    background: #97AA97/*linear-gradient(180deg, #000000 0%, #666666 100%)*/;
    text-align: center;
    font-family: "Poetsen One", sans-serif;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

  .slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width:auto;
    height: 80vh;

    margin: 0px 10vw;
}

.slideshow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.slideshow::-webkit-scrollbar {
    display: none;
    
}

.slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 500px;
    margin-right: 30px;
    margin-bottom: 10px;
    position: relative;
}

.slide img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content{
    width: 100%;
    height: 500px;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: 0.6s;
}

.content:hover {
    opacity: 1;
}
.content h1 {
    color: #AACB73 ;
    font-size: 40px;
    font-family: "Poetsen One", sans-serif;
    font-weight: bold;
}

.content p {
    color: white;
    margin: 0px 30px;
    font-size: 20px;
    font-weight: bold;
}

#språk {
    margin-top: 20px;
}

.content > *{
    transform: translateY(25px);
    transition: transform 0.6s;
}

.content:hover> *{
    transform: translateY(0px);
}

.carousel-buttons {
  text-align: center;
  margin-top: 20px;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  margin: 5px;
  border-radius: 50%;
  border: none;
  background-color: #a5bfa7; /* ljusgrön som passar svensk natur */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.carousel-dot:hover {
  background-color: #7a8f6b;
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: #587CA3;
}

#aboutMe {
  background-color: #383838;
background-image: url("https://www.transparenttextures.com/patterns/rocky-wall.png");

  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 100px;
}

.about-image {
  flex: 1 1 300px;
  max-width: 400px;
}

.about-image img {
  margin-top: 2rem;
  width: 90%;
  height: auto;
  
  display: block;
}

.about-text {
  flex: 2 1 400px;
  padding: 2rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #7A8F6B; /* naturgrön nyans */
}

.about-text h2:hover {
  color: #587CA3; /* blåtonad grön för hover */
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

  footer {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    padding: 1rem;
    background-color: rgba(15,15,15,0.8);
    font-size: 15px;
  }

footer h2 {
    color: #AACB73;
    margin-left: 50px;
    padding-top: 20px;
}

  .kontakt {
    display: flex;margin-left: 2vw;
}

.kontakt a {
  color: white;
  text-decoration:none;
}

.mail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mail img {
    width: 100px;
    height: auto;
}

.snap {
  margin-left: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.snap img {
    width:50px;
    margin-right: 20px;
}

.other {
    margin-right: 5vw;
}

.army {
    display: flex;
    align-items: center;
}

.army img {
    margin-right: 20px;
    width: 50px;
}

.army a {
  color: white;
  text-decoration: none;
}

@media (max-width: 1285px){
  header {
    height: 90vh;
  }
}

@media (max-width: 1160px){
  header {
    height: 80vh;
  }
}

@media (max-width: 1028px) {
  header {height: 70vh;}
  
  .slideshow-container {
    height: auto;
    margin: 0 5vw;
  }

  .slide {
    width: 400px;
    margin-right: 20px;
  }

  .content {
    height: 400px;
    padding: 2rem 1rem;
  }
}

@media only screen and (max-width:925px){
  header {
    height: 60vh;
  }

  .slideshow-container{
    height: auto;
  }

 

  .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .info img{
    width: 400px;
    height: auto;
  }

  .footer {
    display: flex;
    flex-direction: column;
    height: auto;
  }
}

@media (max-width: 774px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  nav ul li {
    width: 100%;
  }

  header {
    height: 50vh;
  }

  /*.slideshow-container {
    flex-direction: column;
    margin: 0 2vw;
    height: auto;
  }*/

 .slideshow-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.content{
  height: 400px;
}

.slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.5s;
  min-width: 300px; /* Gör varje slide lite smalare på små skärmar */
}
  .carousel-buttons {
    flex-wrap: wrap;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image, .about-text {
    width: 100%;
    max-width: 90%;
  }

  .about-image img {
    margin: 0 auto;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .kontakt {
    flex-direction: column;
    align-items: center;
  }

  .mail img, .snap img, .army img {
    width: 40px;
  }

  .snap, .army {
    margin-left: 0;
    margin-top: 1rem;
  }

  .mail a, .snap a, .army a {
    font-size: 0.9rem;
  }

  .other {
    margin: 2rem 0;
  }

  .kontakt{
    display: flex;
    flex-wrap: wrap;
  }

  .ProjektRubrik {
    font-size: 70px;
  }

  .slideshow-container{
    margin:0 5vw;
  }

  .slideshow{
    height: 100vw;
  }

  

  

  .content h1{
    margin-top: 0px;
    padding-top: 0%;
  }
}

@media (max-width: 650px){
  header {
    height: 40vh;
  }
}

@media (max-width: 525px){
  header {
    height: 30vh;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2.5rem;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 1rem;
  }


  #språk{
    font-size: 15px;
  }
}

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .about-text p {
    font-size: 1rem;
  }

  footer h2 {
    margin-left: 0;
    padding-top: 1rem;
  }

