* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}



header {
  position: fixed;
  top: 0;
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: linear-gradient(to right, #130c50, #1f1d2e, #252571); 

}

.logo {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, #d76eff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.navigation a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-left: 30px;
  position: relative;
  transition: color 0.3s ease;
}


.navigation a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: aqua;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s ease;
}

.navigation a:hover::after {
  width: 100%;
}

.navigation a.active {
  color: cyan;
  transform: scale(1.1);
}


.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: aqua;
  border-radius: 40px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 5px aqua, 0 0 25px aqua;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 1.1s;
}

.btn-box:hover {
  background: #000;
  color: aqua;
  box-shadow: 0 0 20px aqua;
}


.home {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  width: 100%;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  background-position: center;
  align-items: center;
  padding: 70px 10% 0;
  margin: 0;
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  opacity: 0;
    color: aqua;

  animation: slideRight 1s ease forwards;
  animation-delay: 0.5s;
}


.home-content p {
  font-size: 1.2rem;
  margin: 20px 0 40px;
  color: #ddd;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.9s;
}


.home-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}



.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 10px 30px 0;
  border: 2px solid aqua;
  border-radius: 50%;
  color: aqua;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.3s;
}

.home-sci a:hover {
  background: aqua;
  color: #000;
  box-shadow: 0 0 20px aqua;
}

#home,
#about,
#skills,
#services,
#project,
#contact {
  scroll-margin-top: 100px;
}



.about {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  padding: 50px 150px;
  color: white;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;

}

.about-text h2 span {
  color: aqua;
}

.about-text h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ddd;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
}



.about-img img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid aqua;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  justify-self: start;
  margin-bottom: 250px;
  /* se till att bilden hamnar till vänster i gridcellen */

}

.about {
 grid-template-columns: repeat(2, 1fr);
  background: linear-gradient(to right, #130c50, #1f1d2e, #252571); 
  padding: 100px 250px;
  color: white;
  display: flex;
  justify-content: center;

}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-text {
  justify-self: start;
  margin-left: -100px;
  /* eller margin-left: -20px; för att dra ännu mer */
}



.about-text h2 span {
  color: aqua;
}


.about-text h4 {
  font-size: 29px;
  font-weight: 600;
  color: white;
  line-height: 1.7;
  margin: 15px 0 30px;
}


.about-text p {
  color: white;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}


.sub-title {
  text-align: center;
  font-size: 60px;
  padding-bottom: 70px;
}

.sub-title span {
  color: aqua;
}

.container {
  padding: 20px;
}


.section-subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  margin-left: -60px;
  /* matcha med andra sektioner */
  margin-bottom: 20px;
}

.white-text {
  color: white;
}

.accent-text {
  color: aqua;
}


.centered-title {
  text-align: center;
}







.content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.languages {
  background-color: white;
  width: 21.25em;
  box-shadow: 0 5px 25px rgba(1 1 1/ 15);
  border-radius: 10px;
  padding: 25px;
  margin: 15px;
  transition: 0.7s ease;
}

.languages:hover {
  transform: scale(1.1);
}


#skills {
  background: linear-gradient(to right, #1e1e2f, #121228);
  color: white;
  padding: 10px 150px;
}

#skills .section-title {
  font-size: 3rem;
  margin-bottom: 30px;
  margin-left: 0;
}

#skills .white-text {
  color: white;
}

#skills .accent-text {
  color: aqua;
}

.skill {

  margin-bottom: 20px;
}

.skill-name {
  margin-bottom: 5px;
  font-weight: bold;
}

.skills-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
  /* Se till att de ligger bredvid varandra */
  align-items: flex-start;
}

.skills-container {
  flex: 0 0 50%;
  width: 60%;
  /* Tar 50% av bredden */
}



.skill-bar {
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.skill-level {
  height: 30px;
  line-height: 30px;
  color: white;
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
  background: linear-gradient(to right, #20489f, #070135);
}



.skills-side {
  display: flex;
  justify-content: center;

}




.soft-skills-section {
  background: linear-gradient(to right, #12122c, #0d0d1a);
  padding: 55px 70px;
  color: white;
  border-radius: 15px;
  text-align: center;
  margin: 30px auto;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.soft-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 40px;
}

.soft-title .white-text {
  color: white;
}

.soft-title .accent-text {
  color: aqua;
}

.soft-skills-section {
  min-height: 500px;
  /* eller matcha faktiska höjden du vill ha */
}

.circle-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Jämna kolumner */
  gap: 40px;
  justify-items: center;
}

.circle {
  text-align: center;
  color: white;
}

.circle svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke: cyan;
  stroke-width: 8;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s ease;
}

.circle:nth-child(1) circle {
  stroke-dashoffset: calc(283 - 283 * 90 / 100);
}

.circle:nth-child(2) circle {
  stroke-dashoffset: calc(283 - 283 * 85 / 100);
}

.circle:nth-child(3) circle {
  stroke-dashoffset: calc(283 - 283 * 95 / 100);
}

.circle:nth-child(4) circle {
  stroke-dashoffset: calc(283 - 283 * 100 / 100);
}

.circle .number {
  position: relative;
  top: -75px;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
}

.circle p {
  margin-top: -30px;
  font-size: 0.95em;
  font-weight: 500;
}


#services {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: white;
  font-size: 20px;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 🔼 Trycker upp innehållet */
  padding-top: 60px; /* 🔼 Flyttar rubriken ner lite från toppen */
  scroll-margin-top: 100px; /* Behåll om du har en fast header */


}

.services-list {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: space-between;
}

.service-card {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  border-radius: 20px;
  border-right: 6px solid aqua;
  box-shadow: 1px 1px 20px #919cc1f7, 1px 1px 40px #1e66bdf7;
  text-align: center;
  padding: 60px 30px 100px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto; /* 👈 Alla får samma höjd */
}

.service-card i {
  font-size: 50px;
  margin-bottom: 30px;
}

.service-card h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
  color: white;
}

.service-card p {
  font-size: 16px;
  color: white;
  line-height: 1.5;
}





.services-list div {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  padding: 80px 30px 100px;
  /* extra plats i botten för knappen */
  border-radius: 20px;
  font-weight: 500;
  border-right: 6px solid aqua;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, .5);
  transition: background 0.8s, transform 0.8s;
  box-shadow: 1px 1px 20px #919cc1f7,
    1px 1px 40px #1e66bdf7;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* innehåll börjar upptill */
  align-items: center;
  position: relative;
  /* för absolut positionerad knapp */
  min-height: 400px;
}


.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
}

.services-list div h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
}

.services-list div a {
  text-decoration: none;
  color: black;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
  padding: 10px 20px;
}

.services-list div:hover {
  transform: translateY(-10px);
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  box-shadow: 0 0 20px rgba(0, 0, 0, .5), 0 0 30px aqua;
}




.java {width: 100%;}
.sql {width: 100%;}
.Html {width: 90%;}
.architecture { width: 90%;}
.python { width: 60%;}
.c {width: 50%;}
.web {width: 50%;}






.projects {
  background: linear-gradient(to right, #1e1e2f, #121228);
  color: white;
  padding: 50px 370px;

}

.projects .content {
 display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  padding: 20px;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid white;
  min-height: 14em;
  width: 23em;
  overflow: hidden;
  border-radius: 30px;
  margin: 20px;
  transition: 0.7s ease;
}

.project-description{
  margin-bottom: 25px;
}

.project-title-text {
  transition: color 0.3s ease;
  cursor: default;
}


.project-title-text:hover {
  color: #00ffff; /* ändra till valfri färg vid hover */
}

.project-card:hover {
  transform: scale(1.1);
}

.project-card:hover .project-image {
  opacity: 0.9;
}

.project-image img {
  width: 100%;
  height: 200px;
  /* Fast höjd */
  object-fit: cover;
  /* Beskär bilden snyggt */
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.project-info {
  padding: 1em;
}

.project-category {
  font-size: 0.8 em;
  color: r;
}

.project-title {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  text-transform: 800;
  margin-top: 10px;
}

.View-Project {
  text-decoration: none;
  color: white;
}

.View-Project:hover {
  color: blueviolet;
}




.github-link {
  font-size: 20px;
  color: aqua;
  transition: transform 0.3s ease, color 0.3s ease;
}

.github-link:hover {
  color: white;
  transform: scale(1.2);
}


.contact-form {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: white;
  padding:  25px 150px 100px 150px; /* Top, Right, Bottom, Left */
  text-align: center;
}

.contact-form .sub-title {
  font-size: 3rem;
  margin-bottom: 10px;
}

.contact-form span {
  color: aqua;
}

.form-box {
  max-width: 800px;
  margin: auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-row input,
textarea {
  flex: 1;
  padding: 15px;
  background-color: #1e1e2f;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1em;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

textarea {
  width: 100%;
  resize: none;
  margin-bottom: 20px; /* Lägg till denna rad */

}

.form-btn {
  margin-top: 55px;
  padding: 12px 28px;
  background: aqua;
  color: #0f0c29;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 5px aqua, 0 0 25px aqua;
  transition: 0.3s;
}

.form-btn:hover {
  background: #000;
  color: aqua;
  box-shadow: 0 0 20px aqua;
}


.footer {
  background: #0f0c29;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid aqua;
  box-shadow: 0 -2px 10px rgba(0, 255, 255, 0.2);
}

.footer h3 {
  color: aqua;
  margin-bottom: 10px;
  font-size: 24px;
}

.footer p {
  margin: 5px 0;
  color: #ccc;
}



.footer-copy {
  font-size: 0.9rem;
  color: #888;
  margin-top: 20px;
}





@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


@media (max-width: 768px) {
  .skills-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .skills-container,
  .skills-side {
    width: 100%;
  }
}



@media (max-width:6a41px) {
body {
    font-size: 12px;
  }

  .main-content h2 {
    font-size: 0.8em;
  }

  .main-content h3 {
    font-size: 1.4em;
  }
}

@media (max-width:300px) {
  body {
    font-size: 10px;
  }
}



@media (max-width:1023px) {
  header {
    padding: 12px 20px;

  }

  .navigation a {
    padding-left: 10px;
  }

  .title {
    font-size: 1.8em;
  }

  section {
    padding: 80px 20px;
  }

  .main-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .main-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .main-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
  }

  .main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .content {
    flex-direction: column;
    align-items: center;
  }

}



/* Mellanstora skärmar (t.ex. surfplattor) */
@media (max-width: 1023px) {
  .projects .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}


/* Små skärmar (mobil) */
@media (max-width: 768px) {
  .projects .content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    width: 90%;
    margin: auto;
  }
}





@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .navigation {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .navigation a {
    margin: 10px 0;
  }
}




@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

    .about-content {
    grid-template-columns: 1fr;
    margin-top: -75px; /* FLYTTAR UPP innehållet */
  }

  .about-text {
    margin-left: 0;
    text-align: center;
  }

  .about-img img {
    margin: auto;
    
  }

  .skills-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .services-list {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .about-img {
    margin-top: 30px; /* justera värdet vid behov */
  }
}



@media (max-width: 480px) {
  section,
  .about,
  .projects,
  #skills,
  .contact-form {
    padding: 60px 20px;
  }

  .sub-title {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

  .about-text h4 {
    font-size: 1.2rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}


/* === Desktop & Mobil gemensamt === */
.mobile-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: linear-gradient(to right, #0f0c29, #403b75, #1e1e3a);
  box-shadow: 0 0 10px rgba(24, 164, 164, 0.3);
}

/* Navigationsmenyn för desktop */
.navigation {
  display: flex;
  gap: 20px;
}

.navigation a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Hamburgermenyn */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: aqua;
  border-radius: 5px;
}

/* När hamburgermenyn är aktiv – behåll samma färg */
.hamburger.active span {
  background: aqua;
}

/* === Mobilanpassning === */
@media (max-width: 768px) {
  .mobile-header {
    flex-direction: column;
    align-items: flex-start; /* vänsterjustera innehåll */
    gap: 8px;
    padding: 25px 15px;
  }

  .hamburger {
    display: flex;
  }

  .navigation {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: rgba(15, 12, 41, 0.95);
    padding: 20px;
    z-index: 998;
  }

  .navigation.active {
    display: flex;
  }

  .navigation a {
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  #services {
    padding-top: 5px;
  }
}

@media (max-width: 768px) {
  #skills {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .projects {
    padding-top: 20px;
  }
}


@media (max-width: 768px) {
  .about {
    padding: 60px 20px;
    flex-direction: column;
  }
}


@media (max-width: 768px) {
  .projects {
    padding: 50px 20px;
  }
}

@media (max-width: 768px) {
  #skills {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .projects .content {
    grid-template-columns: 1fr;
  }
}




@media screen and (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img {
    justify-self: center;
    margin-bottom: 20px;
  }

  .about-img img {
    margin: 0 auto;
  }

  .about-text {
    margin: 0;
    justify-self: center;
  }

  .about-text h2,
  .about-text h4,
  .about-text p {
    text-align: center;
  }
}
