/* ===============================
   VARIABLER
=============================== */
:root {
  --bg: #FAEEEE;
  --heading: #E85D8F;
  --body: #3A3A3A;
}

/* ===============================
   RESET
=============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===============================
   BODY
=============================== */
body {
  font-family: 'Sibila', sans-serif;
  background-color: var(--bg);
  color: var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===============================
   BOX CONTAINER
=============================== */
.box {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* ===============================
   FÖRSTASIDAN CENTRERING
=============================== */
body.home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
}

body.home .sidhuvud {
  margin-bottom: 60px;
}

body.home .meny ul {
  margin-top: 0;
}

/* ===============================
   HEADER WRAPPER
=============================== */
.header-wrapper {
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 50px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

/* ===============================
   HEADER
=============================== */
.sidhuvud {
  font-size: 3rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.2;
  flex-shrink: 0;
}

.title {
  font-size: 1.2rem;
  margin-top: 12px;
  line-height: 1.2;
}

/* ===============================
   MENY
=============================== */
.meny ul {
  list-style: none;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
}

.meny a {
  text-decoration: none;
  color: var(--heading);
  border: 2px solid var(--heading);
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 600;
}

.header-wrapper .meny {
  margin-left: 0;
  flex-shrink: 0;
}

.header-wrapper .meny ul {
  margin-top: 0;
  gap: 18px;
}

/* ===============================
   FÖRSTASIDANS BUBBLOR
=============================== */
body.home .bubbles {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

body.home .bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(232,93,143,0.4), transparent 45%),
    linear-gradient(135deg, rgba(232,93,143,0.25), rgba(255,255,255,0.55));
  animation: float 8s ease-in-out infinite;
}

body.home .b1 { width:120px; height:120px; right:8%; top:12%; animation-duration:7s; }
body.home .b2 { width:180px; height:180px; right:14%; top:60%; animation-duration:9s; }
body.home .b3 { width:100px; height:100px; right:20%; bottom:14%; animation-duration:6s; }

/* ===============================
   MINA ARBETEN – BUBBLOR
=============================== */
body.mina-arbeten .box {
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

body.mina-arbeten .bubbles-container {
  position: relative;
  width: 100%;
  height: 85vh;
  z-index: 5;
}

body.mina-arbeten h1 {
  display: none;
}

body.mina-arbeten .bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(232,93,143,0.4), transparent 45%),
    linear-gradient(135deg, rgba(232,93,143,0.25), rgba(255,255,255,0.55));
  border: 2px solid rgba(232,93,143,0.3);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 2;
  color: var(--heading);
  font-weight: 600;
}

body.mina-arbeten .bubble a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-align: center;
  word-break: normal;
  line-height: 1.2;
  text-decoration: none;
  color: var(--heading);
}

body.mina-arbeten .bubble img {
  max-width: 70%;
  max-height: 70%;
  border-radius: 50%;
}

body.mina-arbeten .bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(232,93,143,0.4);
}

/* INDIVIDUELL POSITION – MINA ARBETEN */
body.mina-arbeten .bubble-1 { top:5%; left:5%; width:120px; height:120px; }
body.mina-arbeten .bubble-2 { top:15%; left:35%; width:130px; height:130px; }
body.mina-arbeten .bubble-3 { top:10%; left:65%; width:120px; height:120px; }
body.mina-arbeten .bubble-4 { top:35%; left:15%; width:100px; height:100px; }
body.mina-arbeten .bubble-5 { top:45%; left:45%; width:110px; height:110px; }
body.mina-arbeten .bubble-6 { top:35%; left:70%; width:125px; height:125px; }
body.mina-arbeten .bubble-7 { top:65%; left:70%; width:140px; height:140px; }
body.mina-arbeten .bubble-8 { top:70%; left:15%; width:120px; height:120px; }

/* ===============================
   KONTAKT-SIDA
=============================== */
body.kontakt .bubbles {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

body.kontakt .bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(232,93,143,0.4), transparent 45%),
    linear-gradient(135deg, rgba(232,93,143,0.25), rgba(255,255,255,0.55));
  animation: float 8s ease-in-out infinite;
}

body.kontakt .b1 { width:120px; height:120px; right:8%; top:12%; animation-duration:7s; }
body.kontakt .b2 { width:180px; height:180px; right:14%; top:60%; animation-duration:9s; }
body.kontakt .b3 { width:100px; height:100px; right:20%; bottom:14%; animation-duration:6s; }

body.kontakt {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.kontakt .box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

body.kontakt .innehåll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.kontakt .kontakt-text {
  text-align: center;
}

body.kontakt .kontakt-text h2 {
  font-size: 2.5rem;
  color: var(--heading);
  margin-bottom: 20px;
  font-weight: 600;
}

body.kontakt .kontakt-text p {
  font-size: 1.3rem;
  color: var(--body);
  margin-bottom: 0;
}

body.kontakt .email-link {
  color: var(--heading);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.3s;
}

body.kontakt .email-link:hover {
  opacity: 0.8;
}

/* ===============================
   ANIMATIONER
=============================== */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0); }
}

@keyframes float2 {
  0% { transform: translate(0,0); }
  25% { transform: translate(15px,-10px); }
  50% { transform: translate(-10px,10px); }
  75% { transform: translate(10px,-15px); }
  100% { transform: translate(0,0); }
}

/* ===============================
   RESPONSIVT
=============================== */
@media (max-width: 560px) {
  /* Förstasidan */
  body.home {
    height: auto;
    padding: 40px 20px;
  }

  body.home .sidhuvud {
    margin-bottom: 30px;
  }

  body.home .bubbles {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 30px;
    pointer-events: all;
  }

  body.home .bubble {
    position: absolute;
    width: 90px !important;
    height: 90px !important;
  }

  body.home .b1 {
    right: auto;
    left: 5%;
    top: auto;
    animation-duration: 0;
  }

  body.home .b2 {
    right: auto;
    left: 40%;
    top: 110px;
    animation-duration: 0;
  }

  body.home .b3 {
    right: auto;
    left: 70%;
    top: auto;
    animation-duration: 0;
  }

  .sidhuvud { 
    font-size: 2rem; 
  }

  .title {
    font-size: 1rem;
  }

  .meny ul { 
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
    /* Fix för menyknappar på mobil – endast startsida + kontakt */
body.home .meny ul,
body.kontakt .meny ul {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.home .meny a,
body.kontakt .meny a {
  width: 180px;
  text-align: center;
}

  .meny a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  /* Header wrapper mobil */
  .header-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
  }

  .header-wrapper .sidhuvud {
    text-align: center;
  }

  .header-wrapper .meny {
    margin-left: 0;
  }

  .header-wrapper .meny ul {
    margin-top: 0;
  }

  /* Mina arbeten - för mobil */
  body.mina-arbeten .box {
    padding: 0 20px;
  }

  body.mina-arbeten .bubbles-container {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
  }

  body.mina-arbeten .bubble {
    position: static !important;
    width: 100px !important;
    height: 100px !important;
  }

  body.mina-arbeten .bubble-1,
  body.mina-arbeten .bubble-2,
  body.mina-arbeten .bubble-3,
  body.mina-arbeten .bubble-4,
  body.mina-arbeten .bubble-5,
  body.mina-arbeten .bubble-6,
  body.mina-arbeten .bubble-7,
  body.mina-arbeten .bubble-8 {
    top: auto !important;
    left: auto !important;
  }

  /* Kontakt - för mobil */
  body.kontakt .box {
    padding: 0 20px;
  }

  body.kontakt .bubbles {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 30px;
    pointer-events: all;
  }

  body.kontakt .bubble {
    position: absolute;
    width: 90px !important;
    height: 90px !important;
  }

  body.kontakt .b1 {
    right: auto;
    left: 5%;
    top: auto;
    animation-duration: 0;
  }

  body.kontakt .b2 {
    right: auto;
    left: 40%;
    top: 110px;
    animation-duration: 0;
  }

  body.kontakt .b3 {
    right: auto;
    left: 70%;
    top: auto;
    animation-duration: 0;
  }

  body.kontakt .kontakt-text h2 {
    font-size: 2rem;
  }

  body.kontakt .kontakt-text p {
    font-size: 1.1rem;
  }
}