* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
  color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7%;
}

.logo {
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #b5b5b5;
  font-size: 15px;
}

.nav a:hover {
  color: #20e58d;
}

.menu-btn {
  display: none;
  background: #151515;
  color: white;
  border: 1px solid #333;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.section {
  padding: 90px 7%;
  max-width: 1300px;
  margin: 0 auto;
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 70px;
  align-items: center;
}

.profile-card {
  background: #111;
  border: 1px solid #262626;
  border-radius: 28px;
  padding: 28px;
}

.profile-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  margin-bottom: 24px;
  display: block;
}

.status {
  border: 1px solid #2a2a2a;
  padding: 12px 14px;
  border-radius: 12px;
  color: #eaeaea;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.status span {
  width: 10px;
  height: 10px;
  background: #38d86a;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  animation: dotBlink 1.2s infinite ease-in-out;
}

.status span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #38d86a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: dotPulse 1.6s infinite ease-out;
  opacity: 0.6;
}

@keyframes dotBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes dotPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

.profile-card h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.social-links a,
.btn {
  background: #171717;
  border: 1px solid #2a2a2a;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  display: inline-block;
}

.btn.secondary {
  width: 100%;
  text-align: center;
}

.hello {
  color: #cfcfcf;
  font-size: 24px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero h1 span {
  color: #20e58d;
}

.animated-role {
  color: #20e58d;
  display: inline-block;
  position: relative;
  animation: fadeSlide 0.8s ease-in-out;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animated-role::after {
  content: "|";
  color: #20e58d;
  margin-left: 6px;
  animation: blink 0.8s infinite;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.intro {
  color: #d0d0d0;
  max-width: 850px;
  font-size: 18px;
  margin-bottom: 36px;
}

.stats {
  display: flex;
  gap: 70px;
}

.stats h3 {
  font-size: 42px;
}

.stats p {
  color: #b5b5b5;
}

.section-title {
  font-size: 42px;
  margin-bottom: 30px;
}

.section-text {
  color: #d0d0d0;
  font-size: 18px;
  max-width: 900px;
}

.grid,
.tools-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.grid {
  grid-template-columns: repeat(3, 1fr);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.tool-card,
.contact-card,
.timeline-item,
.large-card {
  background: #111;
  border: 1px solid #262626;
  border-radius: 18px;
  padding: 22px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tool-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.tool-card h3 {
  margin-bottom: 4px;
}

.tool-card p {
  color: #b5b5b5;
}

.tool-card h3,
.timeline-item h3,
.large-card h3 {
  margin-bottom: 6px;
}

.tool-card p,
.muted,
.large-card p,
.contact-card span {
  color: #b5b5b5;
}

.timeline {
  display: grid;
  gap: 20px;
}

/* Experience / Arbetslivserfarenhet */
.experience-list {
  display: grid;
  gap: 22px;
}

.experience-card {
  background: #111;
  border: 1px solid #262626;
  border-radius: 22px;
  padding: 28px;
}

.experience-top {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #2a2a2a;
}

.company-logo {
  width: 190px;
  height: 90px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 0;
  padding: 10px;
}

.experience-info h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.experience-info p {
  color: #b5b5b5;
  font-size: 18px;
}

.experience-date {
  background: #1b1b1b;
  border: 1px solid #333;
  color: #eaeaea;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.experience-description {
  color: #bdbdbd;
  font-size: 18px;
  line-height: 1.7;
  margin-top: 22px;
}

.section-title-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 22px;
  overflow: hidden;
  padding: 20px;
}

.project-card {
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #20e58d;
  background: #151515;
}

.project-arrow {
  float: right;
  font-size: 26px;
  color: #b5b5b5;
  transition: color 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-arrow {
  color: #20e58d;
  transform: translate(3px, -3px);
}

.project-card img,
.project-placeholder {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #1a1a1a;
  border-radius: 16px;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}

.project-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.project-card p {
  color: #d0d0d0;
  margin-bottom: 10px;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card:hover {
  border-color: #20e58d;
}

footer {
  border-top: 1px solid #222;
  padding: 28px 7%;
  color: #999;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 7%;
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    width: 230px;
  }

  .nav.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-card {
    max-width: 420px;
  }

  .grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 6%;
  }

}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;

  .experience-top {
  grid-template-columns: 1fr;
  }

  .company-logo {
    width: 100%;
    max-width: 260px;
    height: 110px;
  }

  .experience-date {
    width: fit-content;
  }

  .experience-info h3 {
    font-size: 24px;
  }
  }
}