/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header .logo {
  font-weight: bold;
  color: #f9fbfb;
  font-size: 1.3rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #00c6ff;
}

/* Hero Section */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#tsparticles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
}

.highlight {
  color: #cfcdc3;
}

.hero-content p {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.hero-buttons {
  margin: 1.5rem 0;
}

.btn, .btn-outline {
  padding: 0.7rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn {
  background: #00c6ff;
  color: #000;
}

.btn:hover {
  background: #0099cc;
}

.btn-outline {
  border: 2px solid #00c6ff;
  color: #00c6ff;
}

.btn-outline:hover {
  background: #00c6ff;
  color: #000;
}

.scroll-down {
  margin-top: 1rem;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* About Section */
#about {
  background: #1c1c1c;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
}

#about h2 {
  color: #00c6ff;
  margin-bottom: 1rem;
}

#about p {
  margin-bottom: 0.5rem;
}

/* Skills Section */
#skills {
  background: #222;
  padding: 3rem 2rem;
  text-align: center;
}

#skills h2 {
  margin-bottom: 1.5rem;
}

.skills-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.skills-list span {
  background: #333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover effect for skills */
.skills-list span:hover {
  background: #00c6ff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

/* Projects Section */
#projects {
  background: #1c1c1c;
  padding: 3rem 2rem;
  text-align: center;
}

.projects-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: #2c2c2c;
  padding: 1.5rem;
  border-radius: 10px;
  width: 250px;
  transition: all 0.3s ease;
}

/* Hover effect for project cards */
.project-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.3);
}

/* Fix button spacing */
#projects .project-text {
  display: block;
  margin-bottom: 1.5rem; /* avstånd under texten */
}

#projects .btn {
  display: inline-block;
  margin-bottom: 3rem; /* större avstånd under knappen */
}

#projects .github-text {
  display: block;
  margin-top: 2rem; /* extra spacing ovanför GitHub-länken */
}

/* Contact Section */
#contact {
  background: #111;
  padding: 3rem 2rem;
  text-align: center;
}

#contact h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.map iframe {
  border-radius: 8px;
}

/* Contact Section */
#contact-page {
  background: #111;
  padding: 5rem 2rem;
  color: #fff;
  text-align: center;
  min-height: 100vh;
}

#contact-page h2 {
  color: #00c6ff;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #ccc;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.3rem;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.contact-form .btn {
  margin-top: 1rem;
  background: #00c6ff;
  color: #000;
  font-weight: bold;
  padding: 0.8rem;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #0099cc;
}

.other-contacts {
  margin-top: 3rem;
  font-size: 1rem;
  color: #ddd;
}

.other-contacts h3 {
  margin-bottom: 1rem;
  color: #fff;
}

/* Contact-knapp under social links */
.contact-btn {
  margin-top: 1.5rem;
  text-align: center;
}

.contact-btn a {
  display: inline-block;
  background: #00c6ff;
  color: #000;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  transition: transform .2s ease, background .2s ease;
}

.contact-btn a:hover {
  background: #009acd;
  transform: translateY(-2px);
}


/* Project Section */

#projects-page {
  background: #111;
  padding: 4rem 2rem;
  text-align: center;
}

#projects-page h2 {
  margin-bottom: 2rem;
  color: #00c6ff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-item {
  background: #1c1c1c;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.project-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-item video {
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-item:hover {
  transform: translateY(-5px);
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

/* Modal video */
.modal video {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
.close:hover {
  color: #00c6ff;
}

/* Thumbnail hover */
.video-thumb {
  cursor: pointer;
  transition: transform 0.3s;
}
.video-thumb:hover {
  transform: scale(1.05);
}

.github-link {
  text-align: center;
  margin-top: 40px;
}

.github-link p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.github-icon {
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.github-icon:hover {
  color: #00acee; /* blå highlight */
  transform: scale(1.2);
}

/* About Section */
#about-page {
  max-width: 1000px;     /* gör sektionen bredare */
  margin: 50px auto;
  padding: 20px;
  text-align: left;      /* vänsterjustera för bättre läsbarhet */
  color: #f1f1f1;        /* ljus text för mörk bakgrund */
  line-height: 1.8;      /* mer luft mellan raderna */
}

#about-page h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

#about-page h3 {
  margin-top: 40px;
  font-size: 1.5rem;
  color: #00acee;
}

#about-page p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

#about-page ul {
  list-style: disc;
  margin-left: 40px;   /* ger plats för bullets */
  margin-bottom: 30px;
}

#about-page li {
  font-size: 1.1rem;
  margin: 10px 0;
}

.skills-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
}

.skills-icons i {
  color: white;
  font-size: 2rem;
  transition: transform 0.3s, color 0.3s;
}

.skills-icons i:hover {
  color: #00acee;
  transform: scale(1.2);
}

.about-links {
  text-align: center;
  margin-top: 40px;
}

.about-links a {
  margin: 0 20px;
  color: white;
  font-size: 2rem;
  transition: transform 0.3s, color 0.3s;
}

.about-links a:hover {
  color: #00acee;
  transform: scale(1.2);
}


.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.skills-list span {
  background: #2c2c2c;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
}






/* Partikelbakgrund på About */
#tsparticles-about {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Wrapper + kort för About-innehåll */
.about-wrap {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 4rem; /* luft under fixed header */
  display: flex;
  justify-content: center;
}

.about-card {
  width: 100%;
  max-width: 1000px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.about-card h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.about-card p {
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Två kolumner på desktop, en kolumn på mobil */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-bottom: 2rem;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Skills-pills (samma stilkänsla som startsidan) */
.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.skills-pills span {
  background: #2c2c2c;
  color: #eee;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform .2s ease, background .2s ease;
}
.skills-pills span:hover { transform: translateY(-2px); background: #333; }

/* Social CTA */
.social-cta { text-align: center; margin-top: 1rem; }
.social-links {
  display: flex; gap: 1rem; justify-content: center; margin-top: .5rem;
}
.social-links a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; background: #111; border: 1px solid rgba(255,255,255,0.1);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.social-links a:hover {
  transform: translateY(-2px);
  background: #0c0c0c;
  border-color: rgba(0,198,255,.5);
}
.social-links i { font-size: 20px; color: #fff; }
