/* Importera professionell font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* Global CSS-variabler för enklare header/spacing-anpassning */
:root {
  --header-height: 64px;
  --text-color: #F5F7FA; /* ljus, neutral textfärg för bra kontrast mot mörk bakgrund */
  --accent: #4776E6;
  /* Palett från wave animation */
  --c1: 46, 49, 146;   /* #2E3192 (djup blå) */
  --c2: 27, 255, 255;  /* #1BFFFF (turkos) */
  --c3: 212, 20, 90;   /* #D4145A (magenta) */
  --c4: 255, 94, 98;   /* #FF5E62 (korall) */
  --c5: 71, 118, 230;  /* #4776E6 (elektrisk blå) */
}

/* GENERELLA BODY STYLES */
body {
  background: #000;
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
  /* reservera utrymme för den fasta headern så innehåll inte hamnar under den */
  padding-top: var(--header-height);
}

/* Enhetlig typografi: all text använder samma font och färg som standard. */
html, body, h1, h2, h3, h4, h5, p, li, a, span {
  color: var(--text-color);
  font-family: "Inter", sans-serif;
}

/* WAVY BACKGROUND */
.wave-background {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.wave-background .wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  animation: animated 15s ease-in-out infinite;
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.15);
  z-index: 0;
  pointer-events: none;
}
/* animera ändrade färg */
@keyframes animated {
  0% { background-color: #2E3192; }  /* Djup blå */
  20% { background-color: #1bffffaf; } /* Turkos */
  40% { background-color: #D4145A; } /* Magenta */
  60% { background-color: #FF5E62; } /* Korall */
  80% { background-color: #4776E6; } /* Elektrisk blå */
  100% { background-color: #2E3192; } /* Tillbaka till djup blå */
}
.wave-background .wave span {
  position: absolute;
  width: 300vh;
  height: 300vh;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
  background: #000;
}



.wave-background .wave span:nth-child(1) {
  border-radius: 45%;
  background: rgba(0, 0, 0, 0.596);
  animation: animate 6s linear infinite;
}

.wave-background .wave span:nth-child(2) {
  border-radius: 40%;
  background: rgba(0, 0, 0, 0.555);
  animation: animate 10s linear infinite;
}

.wave-background .wave span:nth-child(3) {
  border-radius: 42.5%;
  background: rgba(0, 0, 0, 0.74);
  animation: animate 14s linear infinite;
}

@keyframes animate {
  0% { transform: translate(-50%, -75%) rotate(0deg); }
  100% { transform: translate(-50%, -75%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  top: 50%;
  transform: translateY(-50%);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: 100rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* för mer kontrast mot wave */
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-text {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-content .cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-content .cta:hover {
  background: #ccc;
  transform: scale(1.05);
}

/* Responsivt */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .hero-text {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .hero-content .cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Extra små skärmar */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .hero-text {
    font-size: 1rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-content {
    padding: 0 1rem;
  }
  .section-preview.fullscreen h2 {
    font-size: 1.8rem;
  }
  .section-preview.fullscreen p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}


/* HEADER ABOVE BACKGROUND */
/* HEADER ABOVE BACKGROUND */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  height: 64px; /* tydlig header-höjd så vi kan reservera utrymme */
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

/* Se till att header använder CSS-variabeln så vi kan ändra den i media queries */
header {
  height: var(--header-height);
}

/* CONTENT CENTER ABOVE BACKGROUND */
.content-center {
  position: relative;
  z-index: 0;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.content-center h1 {
  font-size: 6rem;
  margin-bottom: 3rem;
}

.content-center p {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.content-center .cta {
  display: inline-block;
  padding: 1rem 2rem;
  color: #000;
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.content-center .cta:hover {
  background: #ccc;
  transform: scale(1.05);
}

/* FULLSCREEN SEKTIONER MED CIRKLAR */
.section-preview.fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh; /* låt innehållet ta plats men minst viewport-höjd */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 6rem 2rem 2rem 2rem; /* justerad padding-top för bättre desktop-layout */
  z-index: 0;
}

.section-preview.fullscreen h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  /* Använd enhetlig färg istället för gradient-text så rubriker inte bryter designen */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--text-color);
  text-shadow: 0 6px 20px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
}

/* Gör rubriker stabila: högre z-index och scroll-margin så de inte hamnar under headern */
.section-preview.fullscreen h2,
.section-about h2 {
  z-index: 3;
  
  position: relative;
  /* säkerställ att när man scrollar till en sektion så syns rubriken under headern */
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.section-preview.fullscreen p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.section-preview.fullscreen .cta {
  display: inline-block;
  padding: 1rem 2rem;
  color: #000;
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
}

.section-preview.fullscreen .cta:hover {
  background: #ccc;
  transform: scale(1.05);
}

.circles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}


.circles-container .circle {
  position: absolute;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: -1;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}


@keyframes floatCircle {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30vw, -25vh) scale(1.5); }
  100% { transform: translate(0, 0) scale(1); }
}


/* FORMULÄR */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4776E6;
  box-shadow: 0 0 0 2px rgba(71, 118, 230, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  background: #4776E6;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form button:hover {
  background: #2E3192;
  transform: scale(1.05);
}

/* KONTAKTINFO - tydlig, skarp kartong */
.contact-info {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0; /* vassa kanter enligt önskemål */
  /* använd brandfärgen från paletten så boxen syns bra mot wave-bakgrunden */
  background: linear-gradient(180deg, rgba(var(--c5),1), rgba(var(--c5),0.92));
  color: #ffffff; /* all text i boxen ska vara vit */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.151);
  border: 2px solid rgba(255,255,255,0.06);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-info p {
  color: #ffffff;
  margin: 0.4rem 0;
  font-size: 1.1rem;
}

.contact-info p strong {
  color: #ffffff; /* håll kontaktpersonens namn vitt */
}

/* Länkar inuti contact-info ska också vara vita och tydliga */
.contact-info a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

/* På små skärmar tar kontaktboxen full bredd (med liten padding) */
@media (max-width: 480px) {
  .contact-info {
    width: calc(100% - 1rem);
    max-width: none;
    padding: 1rem;
    margin: 1rem auto 0 auto;
  }
}

/* Mobil anpassning för kontaktformulär */
@media (max-width: 480px) {
  .contact-form {
    padding: 0 0.5rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Förhindrar zoom på iOS */
    padding: 0.8rem;
  }
  
  .contact-form button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-info {
    margin: 1.5rem 0.5rem;
  }
  
  .contact-info p {
    font-size: 1rem;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .content-center h1 {
    font-size: 2.2rem;
  }
  .content-center p {
    font-size: 1.1rem;
  }
  .section-preview.fullscreen h2 {
    font-size: 2rem;
  }
  .section-preview.fullscreen p {
    font-size: 1rem;
  }
}

/* Container för cirklar bara i vissa sektioner */
.section-circles {
  position: relative;
  overflow: hidden;
}

.section-circles .circles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1; /* bakom allt annat innehåll */
}

.section-circles .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
}

/* ============================= */
/* OM OSS SEKTION MED CIRKLAR    */
/* ============================= */
.section-about {
  text-align: center;
  padding: 4rem 2rem;
  z-index: 0;
}

.section-about h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.section-about p {
  font-size: 1.4rem;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-cards {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto;
  /* låt korten fylla mer av skärmen på breda vyer */
  max-width: 1400px;
  width: calc(100% - 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0; /* inga mellanrum - korten sitter ihop */
  grid-auto-rows: 1fr; /* gör rader lika höga så kort fyller jämnt */
}

.about-cards .card {
  /* solid color tiles, no rounded corners so they sit flush */
  border-radius: 0;
  padding: 1.5rem 2rem; /* större inre yta på desktop */
  box-shadow: none;
  border: none;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
  color: var(--text-color);
  position: relative;
  min-height: 220px; /* gör boxarna större */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-cards .card:hover {
  /* don't separate tiles on hover when they must sit together; only intensify color */
  filter: saturate(1.06) brightness(1.02);
}

.about-cards .card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Variant-stilar: använd wave-paletten för konkreta färger */
/* Solid/tonal backgrounds per card, with a subtle dark overlay for readable white text */
.card--1 { background: linear-gradient(180deg, rgba(var(--c1),0.92), rgba(var(--c1),0.98)); }
.card--2 { background: linear-gradient(180deg, rgba(var(--c2),0.92), rgba(var(--c2),0.78)); }
.card--3 { background: linear-gradient(180deg, rgba(var(--c3),0.92), rgba(var(--c3),0.88)); }
.card--4 { background: linear-gradient(180deg, rgba(var(--c4),0.92), rgba(var(--c4),0.88)); }
.card--5 { background: linear-gradient(180deg, rgba(var(--c5),0.92), rgba(var(--c5),0.88)); }

/* dark overlay to ensure text contrast */
.about-cards .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18));
  pointer-events: none;
  z-index: 0;
}

/* put text above the overlay */
.about-cards .card h3,
.about-cards .card p {
  position: relative;
  z-index: 1;
}

/* Slight hover color intensify */
.about-cards .card:hover { filter: saturate(1.05); }

.about-cards .card p {
  margin: 0;
  color: rgba(245,247,250,0.95);
  line-height: 1.6;
}

/* flera kolumner på bredare skärmar, men utan mellanrum så korten sitter ihop */
@media (min-width: 769px) {
  /* två kolumner på vanliga desktop-skärmar för större boxar */
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .about-cards .card {
    min-height: 260px;
    padding: 2rem 2.5rem;
  }
}

/* större desktops: tre kolumner, men varje box större än mobilt */
@media (min-width: 1200px) {
  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-cards .card {
    min-height: 300px;
    padding: 2.25rem 2.5rem;
  }
}

/* extra-wide: fyra kolumner ifall skärm är väldigt bred */
@media (min-width: 1600px) {
  .about-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section-about .cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.section-about .cta:hover {
  background: #ccc;
  transform: scale(1.05);
}

/* RESPONSIVT */
@media (max-width: 768px) {
  .section-about {
    padding: 4rem 1rem 2rem 1rem;
  }

  .section-about h2,
  .section-preview.fullscreen h2 {
    font-size: 2rem;
    /* ta bort felaktigt stort värde (40rem) som trycker ned innehåll
       och orsakar att rubriker hamnar långt ner på skärmen */
    margin-top: 4rem;
    margin-bottom: 1.5rem;
  }

  .section-about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .section-about ul {
    gap: 1rem;
    margin: 1.5rem auto;
  }

  .section-about ul li {
    font-size: 1rem;
    padding: 1rem;
  }

  .section-about ul li strong {
    font-size: 1.1rem;
  }

  .section-about .cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Finjustering för vanliga mobiler (ex. bredare småtelefoner: 375-425px) */
@media (max-width: 425px) {
  body {
    /* justera variabeln så body paddingen uppdateras automatiskt */
    --header-height: 56px; /* något mindre header-höjd på små skärmar */
  }

  header {
    height: var(--header-height);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-preview.fullscreen {
    padding: 4.5rem 1rem 1.5rem 1rem;
  }

  .section-preview.fullscreen h2 {
    font-size: 1.9rem;
  }
}

/* Små mobiler som Galaxy S8 */
@media (max-width: 380px) {
  .section-preview.fullscreen {
    padding: 5rem 1rem 1rem 1rem;
    height: auto;
    min-height: 100vh;
  }

  .section-about h2,
  .section-preview.fullscreen h2 {
    font-size: 1.6rem;
    margin: 1rem 0;
    padding-top: 3rem;
  }

  .section-about p,
  .section-preview.fullscreen p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .section-about ul {
    margin: 0.5rem;
    gap: 0.8rem;
  }

  .section-about ul li {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .section-about ul li strong {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .content-center .cta,
  .section-about .cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}
.section-about .circles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* klick går igenom */
  z-index: 0; /* bakom text */
}

.section-about h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Cirklar i sektioner */
.section-circles .circles-container,
.section-about .circles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ============================= */
/* SITE FOOTER */
/* ============================= */
.site-footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  border-top: 4px solid rgba(var(--c5),0.12);
  color: #fff;
  padding: 2.25rem 1rem;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.footer-brand h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.footer-brand p { margin: 0; color: rgba(255,255,255,0.85); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0.45rem 0; }
.footer-links a { color: rgba(255,255,255,0.94); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { color: rgba(255,255,255,0.95); }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-cta { margin-top: 0.6rem; }
.footer-bottom { margin-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 0.9rem; color: rgba(255,255,255,0.6); font-size: 0.95rem; }

@media (max-width: 768px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
}



