﻿
:root {
  color-scheme: dark;
  --bg: #faf9f7;
  --panel: #31243d;
  --text: #f5f1e8;
  --muted: #868686;
  --line: rgba(245, 241, 232, 0.18);
  --accent: #ff8922;
  --accent-strong: #6f00ff;
  --max: 1160px;
}
@media only screen and (max-width: 768px) {
    body {
        background: var(--bg) !important; /* Removes the gradient image */
    }
}
@media (max-width: 600px) {

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

    .hero-text {
        max-width: 100%;
    }

    .hero-video-wrapper {
        width: 100%;
    }

}
* { box-sizing: border-box; }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background:
  linear-gradient(

    150deg,

    #6f00ff 0%,

    #6f00ff 20%,

    transparent 20%

  ),
  linear-gradient(
    -25deg,
    #6f00ff 0%,
    #6f00ff 12%,
    transparent 12%
  ),
  linear-gradient(90deg,rgb(255, 255, 255) 0%, rgba(255, 255, 255) 80%, rgb(255, 255, 255) 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.site-header {
  align-items: center;
  background: rgba(16, 17, 19, 0.56);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand { align-items: center; display: inline-flex; font-weight: 800; gap: 12px; letter-spacing: 0; }
.brand-mark {
  align-items: center;
  background: var(--text);
  border-radius: 8px;
  color: var(--bg);
  display: inline-flex;
  font-size: 0.82rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.main-nav { align-items: center; display: flex; gap: clamp(18px, 3vw, 36px); font-size: 0.95rem; font-weight: 600; }
.main-nav a { color: rgba(245, 241, 232, 0.82); }
.main-nav a:hover { color: var(--text); }
.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}
.nav-toggle span { background: currentColor; display: block; height: 2px; position: absolute; width: 18px; }
.nav-toggle span:first-child { transform: translateY(-5px); }
.nav-toggle span:last-child { transform: translateY(5px); }
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8%;
    background: linear-gradient(10, 10);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    max-width: 2200px;
    margin: auto;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-video-wrapper {
    flex: 1;
    position: relative;
}

.hero-video-wrapper video {
    width: 100%;
    border-radius: 20px;
    border: white solid 6px;
    display: block;
    object-fit: cover;
    box-shadow: 0 20px 90px rgba(0,0,0,.5);
}
.eyebrow { color: white; font-size: 1.2rem; letter-spacing: 0.2rem; margin: 0 0 14px; font-family: Arial, Helvetica, sans-serif}
h1, h2, h3, p { margin-top: 0;}
h1 { font-size: clamp(3.05rem, 8vw, 4rem); letter-spacing: 0; line-height: 0.94; margin-bottom: 24px; max-width: 980px; color: var(--accent);}
h2 { font-size: clamp(2rem, 4vw, 4.25rem); letter-spacing: 0; line-height: 1; margin-bottom: 0; color: black; line-height: 1.2; font-weight: 300;}
h3 { font-size: 1.18rem; line-height: 1.2; color: white;}
.hero-copy { color: rgba(245, 241, 232, 0.84); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px;}
.button { align-items: center; border-radius: 8px; display: inline-flex; font-weight: 800; justify-content: center; min-height: 48px; padding: 0 20px; }
.button.primary { background: white; color: var(--accent); font-size: 1rem; transition: 0.4s; border: 1px solid rgba(245, 241, 232, 0.46)}
.button.primary:hover {
  background: var(--accent-strong);
  color: white;
  transform: opacity 0.6s ease;
}
.button.secondary { border: 1px solid rgba(245, 241, 232, 0.46); transition: 0.4s; background: var(--accent);}
.button.secondary:hover {
  background: white;
  color: var(--accent-strong);
  transform: opacity 0.6s ease;

}
.hero-stats {
  align-self: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  max-width: 700px;
  padding-top: 22px;
  position: relative;
  width: min(100%, 700px);
  z-index: 2;
}
.hero-stats strong { display: block; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1; }
.hero-stats span { color: var(--muted); display: block; font-size: 0.94rem; margin-top: 8px; }
.section { margin: 0 auto; max-width: var(--max); padding: clamp(72px, 10vw, 130px) clamp(18px, 4vw, 34px); }
.section-heading { display: grid; gap: 16px; grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr); margin-bottom: 44px; }
#tjenester .section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.4fr);
}
#tjenester .section-heading h2 {
  grid-column: 1;
}
.services h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 750px;
}
.services .section-heading {
    display: block;
    max-width: 500px;
}
.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    margin-bottom: 0;
}

#tjenester .section-heading p {
  grid-column: 2;
}
#prosess .section-heading h2 {
  grid-column: 2;
}
.intro { align-items: end; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.6fr); }
.intro > p, .contact p { color: var(--muted); font-size: 1.12rem; }
.service-grid {
    display: grid;
    /* Setter 4 kolonner, med en max-bredde per kort */
    grid-template-columns: repeat(4, minmax(200px, 300px));
    gap: 24px;
    padding-top: 10rem;
    justify-content: center; /* Dette sentrerer gridet horisontalt */
    max-width: 1200px; /* Begrens totalbredden så kortene ikke blir for brede */
    margin: 0 auto;    /* Sentrerer selve containeren på siden */
    position: relative;
}
.service-grid article, .timeline div, .work-card, .contact-form .button { border: 1px solid #c0c0c0; border-radius: 8px; transition:

    transform 0.35s ease }
.service-grid article { min-height: 260px; padding: 24px;}
/* Grunninnstillinger for kortene */
.service-grid article {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Myk animasjon */
    position: relative;
    z-index: 1;
}

/* Hover-effekt: Kortet løfter seg og får en kraftigere skygge */
.service-grid article:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10; /* Sørger for at kortet legger seg "oppå" andre elementer */
}

/* Valgfritt: Gjør teksten litt tydeligere ved hover */
/* Fjern hover-effekten fra .timeline span */
/* Legg den heller på div-elementene inne i .timeline */
.service-grid img {

  position: absolute;

  left: -20rem;

  top: 0;

  width: 300px; /* juster etter behov */

  height: auto;

}

.timeline div {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

/* Hover-effekt på selve boksen */
.timeline div:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Hover-effekt på teksten når man holder over boksen */
.timeline div:hover h3 {
    color: var(--accent);
}

/* Valgfritt: Gjør teksten litt tydeligere ved hover */
.service-grid article:hover h3 {
    color: var(--accent);
}
.service-grid span, .timeline span { color: black; display: inline-block; font-weight: 800; margin-bottom: 42px; }
.service-grid p, .timeline p { color: black; }
.service-grid h3 {color: var(--accent-strong);}
.timeline { display: grid;
    /* Setter 4 kolonner, med en max-bredde per kort */
    grid-template-columns: repeat(4, minmax(200px, 300px));
    gap: 24px;
    justify-content: center; /* Dette sentrerer gridet horisontalt */
    max-width: 1200px; /* Begrens totalbredden så kortene ikke blir for brede */
    margin: 0 auto;    /* Sentrerer selve containeren på siden */
    position: relative;}
.timeline div { padding: 28px;} 
.timeline h3 {color: var(--accent-strong)}
.contact { align-items: start; display: grid; gap: 48px; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr); }
.contact-form { display: grid; gap: 18px; padding: 24px;}
label { color: black; display: grid; font-size: 0.92rem; font-weight: 300; gap: 8px;}
input, textarea { background: #ffffff; border: 1px solid var(--muted); border-radius: 8px; color: var(--text); font: inherit; min-height: 48px; padding: 12px 14px; resize: vertical; font-size: small; color: black}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.contact-form .button { border: 1px solid var(--muted); cursor: pointer; margin-top: 6px; background-color: rgb(255, 255, 255); color: var(--accent-strong);}
.contact-form .button:hover { transform: scale(1.02); }
.footer { border-top: 1px solid white; color: var(--muted); display: flex; gap: 20px; justify-content: space-between; padding: 28px clamp(18px, 5vw, 72px); }
.footer p { margin: 0; color: white;}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { background: rgba(16, 17, 19, 0.96); border-bottom: 1px solid var(--line); display: none; flex-direction: column; left: 0; padding: 18px; position: absolute; right: 0; top: 75px; }
  .main-nav.is-open { display: flex; }
  .section-heading, .intro, .contact { grid-template-columns: 1fr; }
  .service-grid, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-text p, .eyebrow{
    color: var(--muted);
  }
}
@media (max-width: 680px) {
  .site-header { padding: 14px 16px; }
  .brand span:last-child { max-width: 130px; }
  .hero { min-height: 92svh; padding: 120px 18px 26px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .hero-stats, .work-grid, .service-grid, .timeline { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
  .work-card, .work-card.feature { min-height: 420px; }
  .section { padding-block: 74px; }
  .footer { flex-direction: column; }
  .timeline img {
    display: none;
  }

  
}

.section {
  min-height: 60vh;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
  
}

.section.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#soundBtn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.5);
  color: white;

  font-size: 18px;

  cursor: pointer;
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;
}

#soundBtn:hover {
  background: rgba(0, 0, 0, 0.7);
}

img {
    display: block;
    max-width: 100%;
}

.frame {
    padding: 12px;
    background-color: #ffffff; /* Eller bruk en hvit/lys farge */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.5s ease;
}

/* Containeren for innholdet */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Bruker grid for kontrollert asymmetri */
.about-row {
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Tekst får litt mer vekt enn bildet */
    gap: 80px; 
    align-items: center;
}

/* Bildets ramme (moderne stil) */
.frame {
    padding: 4px;
    background-color: #000000; /* Kontrast til bakgrunn */
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    /* Fjerner de gamle "pinnen" elementene for et renere uttrykk */
}

.about-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Typografi */
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 30px;
}

/* Responsivitet for mobil/nettbrett */
@media (max-width: 900px) {
    .about-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .about-image {
        height: 350px;
    }
}


@media(max-width:768px){
    .about-row{
        display: none;
    }

    .about-image{
        display: none;
    }
}