/* =========================
   BASE
========================= */
:root{
  --bg: #0f0f0f;
  --panel: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.10);
  --borderHover: rgba(255,255,255,0.18);
  --text: #ffffff;
  --muted: #cfcfcf;
  --muted2: #9a9a9a;
  --shadow: 0 18px 50px rgba(0,0,0,0.60);
  --shadowSoft: 0 18px 45px rgba(0,0,0,0.45);
  --radius: 18px;
}

*{ box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  margin:0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #1c1c1c 0%, #000000 60%) fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x:hidden;
}

a, a:visited{
  text-decoration:none;
  color: inherit;
}

/* =========================
   SCROLL FADE-IN
========================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================
   HEADER
========================= */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 20px 8%;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1f1f1f;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.logo-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  z-index: 1001;
}
.logo-wrap img{
  width:46px;
  height:46px;
  object-fit:contain;
  display:block;
}
.logo{
  font-size:20px;
  font-weight:700;
}

/* Desktop nav */
nav {
  display: flex;
  align-items: center;
}
nav a{
  color:#aaa;
  margin-left: 25px;
  font-size: 15px;
  transition: color .25s ease;
}
nav a:hover{ color:#fff; }

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: border-color .2s ease, background .2s ease;
  padding: 0;
}

.hamburger:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Hamburger → X animasjon */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  padding: 12px 0;
  transition: color .2s ease, transform .2s ease;
  text-align: center;
}

.mobile-nav a:hover {
  color: #aaa;
  transform: translateX(4px);
}

/* =========================
   HERO
========================= */
.hero{
  position: relative;
  padding: 160px 8%;
  min-height: 80vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  overflow:hidden;
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
}

.hero h1{
  position:relative;
  z-index:2;
  margin:0;
  font-size:56px;
  line-height:1.15;
  max-width: 820px;
  animation: heroFadeUp 0.9s ease both;
}

.rotating-text{
  display:inline-block;
  padding-left:10px;
  min-width:200px;
  opacity:0;
  transition:opacity .6s ease;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   BUTTONS
========================= */
.btn{
  position:relative;
  z-index:2;
  display:inline-block;
  margin-top: 34px;
  padding: 14px 28px;
  background:#fff;
  color:#000;
  font-weight: 800;
  border-radius: 10px;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
  animation: heroFadeUp 0.9s ease 0.2s both;
}
.btn:hover{
  transform: translateY(-3px);
  opacity:.92;
  box-shadow: 0 10px 28px rgba(255,255,255,0.15);
}
a.btn, a.btn:visited, a.btn:hover{ color:#000 !important; }

/* =========================
   SERVICES CARDS
========================= */
.services{
  padding: 100px 8%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:30px;
}

.card{
  flex: 1 1 280px;
  max-width: 320px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 40px 28px;
  text-align:left;
  cursor:pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover{
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.18);
  background: #141414;
  box-shadow: var(--shadowSoft);
}
.card h2{ margin:0 0 10px 0; font-size: 22px; }
.card p{ margin:0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* =========================
   METHOD
========================= */
.method{ padding: 120px 8%; }

.method__grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items:start;
}

.method__media{
  height: 620px;
  border-radius: var(--radius);
  overflow:hidden;
  background:#111;
  box-shadow: 0 25px 60px rgba(0,0,0,0.60);
  transition: transform .4s ease, box-shadow .4s ease;
}
.method__media:hover{ transform: scale(1.01); box-shadow: 0 35px 80px rgba(0,0,0,0.70); }
.method__media img{ width:100%; height:100%; object-fit:cover; display:block; }

.method__kicker{ font-size: 12px; letter-spacing: .14em; color: var(--muted2); text-transform: uppercase; margin-bottom: 12px; }
.method__title{ margin:0 0 18px 0; font-size: 52px; line-height: 1.05; font-weight: 800; }
.method__lead{ margin: 0 0 26px 0; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 58ch; }

.method__steps{ display:flex; flex-direction:column; gap: 16px; margin-top: 18px; }

.step{
  display:flex;
  gap: 18px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.step:hover{
  transform: translateY(-4px) scale(1.02);
  border-color: var(--borderHover);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}
.step__no{ width: 46px; flex: 0 0 46px; color: rgba(255,255,255,0.30); font-weight: 800; font-size: 14px; padding-top: 4px; }
.step__title{ margin: 0 0 6px 0; font-size: 18px; font-weight: 800; }
.step__text{ margin:0; color:#bdbdbd; font-size: 14px; line-height: 1.6; }

.method__cta{
  display:inline-block;
  margin-top: 22px;
  padding: 13px 18px;
  border-radius: 10px;
  background:#fff;
  color:#000 !important;
  font-weight: 800;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.method__cta:hover{ transform: translateY(-3px); opacity:.92; box-shadow: 0 10px 28px rgba(255,255,255,0.15); }

/* =========================
   BTS / VIDEO
========================= */
.bts{ padding: 110px 8%; }
.bts__head{ text-align:center; max-width: 980px; margin: 0 auto 36px auto; }
.bts__kicker{ font-size: 12px; letter-spacing: .14em; color: var(--muted2); text-transform: uppercase; margin-bottom: 12px; }
.bts__title{ margin:0; font-size: 56px; line-height: 1.05; font-weight: 800; }
.bts__lead{ margin: 14px auto 0 auto; color: var(--muted); max-width: 70ch; line-height: 1.7; }

.bts__row{
  margin-top: 34px;
  display:flex;
  justify-content: center;
  gap: 22px;
  overflow-x:auto;
  padding: 6px 2px 18px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.bts__row::-webkit-scrollbar{ height: 10px; }
.bts__row::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.10); border-radius: 999px; }

.bts__card{
  flex: 0 0 340px;
  width: 340px;
  height: 604px;
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  background:#111;
  scroll-snap-align: start;
  box-shadow: var(--shadowSoft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bts__card:hover{ transform: translateY(-8px) scale(1.02); border-color: var(--borderHover); box-shadow: 0 26px 70px rgba(0,0,0,0.60); }
.bts__card video{ width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important; object-fit:cover !important; display:block !important; position:static !important; }

.bts__arrows{ display:flex; justify-content:center; gap:12px; margin-top:16px; }
.bts__btn{
  width:44px; height:44px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color:#fff; font-size:22px; cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.bts__btn:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }

/* =========================
   TESTIMONIALS
========================= */
.testimonials{ padding: 110px 8%; }
.testimonials__inner{ max-width: 1200px; margin: 0 auto; }
.testimonials__kicker{ font-size: 12px; letter-spacing: .14em; color: var(--muted2); text-transform: uppercase; margin-bottom: 12px; text-align: center; }
.testimonials__title{ margin: 0 0 48px 0; font-size: 52px; line-height: 1.05; font-weight: 800; text-align: center; }
.testimonials__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial__card{
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.testimonial__card:hover{ transform: translateY(-6px); border-color: rgba(255,255,255,0.16); box-shadow: var(--shadowSoft); }
.testimonial__stars{ font-size: 18px; letter-spacing: 2px; color: #f5c518; margin-bottom: -4px; }
.testimonial__quote{ font-size: 56px; line-height: 1; color: rgba(255,255,255,0.15); font-family: Georgia, serif; font-weight: 700; }
.testimonial__text{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; flex: 1; }
.testimonial__author{ margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.testimonial__name{ font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.testimonial__role{ font-size: 13px; color: var(--muted2); }

/* =========================
   CTA
========================= */
.cta{ padding: 110px 8%; }
.cta__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 26px 80px rgba(0,0,0,0.60);
  position: relative;
  overflow: hidden;
  text-align:left;
  transition: box-shadow .4s ease;
}
.cta__inner:hover{ box-shadow: 0 36px 100px rgba(0,0,0,0.70); }
.cta__inner::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,229,255,0.14), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events:none;
}
.cta__kicker{ position:relative; font-size: 12px; letter-spacing: .14em; color: var(--muted2); text-transform: uppercase; margin-bottom: 14px; }
.cta__title{ position:relative; margin:0; font-size: 52px; line-height: 1.05; font-weight: 800; max-width: 22ch; }
.cta__text{ position:relative; margin: 14px 0 0 0; color: var(--muted); max-width: 64ch; line-height: 1.7; }
.cta__actions{ position:relative; margin-top: 22px; display:flex; gap: 16px; align-items:center; flex-wrap:wrap; }
.cta__btn{
  display:inline-block; padding: 14px 22px; border-radius: 10px;
  background:#fff; color:#000 !important; font-weight: 800;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.cta__btn:hover{ transform: translateY(-3px); opacity:.92; box-shadow: 0 10px 28px rgba(255,255,255,0.15); }
.cta__link{ font-weight: 800; color: var(--muted) !important; opacity: .9; transition: transform .2s ease, opacity .2s ease; }
.cta__link:hover{ transform: translateY(-2px); opacity:1; }

/* =========================
   TRUST
========================= */
.trust{ padding: 120px 8%; }
.trust__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; max-width: 1200px; margin: 0 auto; }
.trust__kicker{ font-size:12px; letter-spacing:.14em; color: var(--muted2); text-transform:uppercase; margin-bottom:12px; }
.trust__title{ margin:0 0 14px 0; font-size: 52px; line-height: 1.05; font-weight: 800; }
.trust__lead{ margin:0 0 22px 0; color: var(--muted); line-height:1.7; max-width: 62ch; }
.trust__cta{ margin-top: 22px; display:flex; gap: 16px; align-items:center; flex-wrap: wrap; }
.trust__btn{
  display:inline-block; padding: 14px 22px; border-radius: 10px;
  background:#fff; color:#000 !important; font-weight: 800;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.trust__btn:hover{ transform: translateY(-3px); opacity:.92; box-shadow: 0 10px 28px rgba(255,255,255,0.15); }
.trust__link{ color: var(--muted) !important; font-weight: 800; opacity: .9; transition: transform .2s ease, opacity .2s ease; }
.trust__link:hover{ transform: translateY(-2px); opacity: 1; }
.trust__media{
  height: 560px; border-radius: 18px; overflow:hidden; background:#111;
  box-shadow: 0 25px 60px rgba(0,0,0,0.60);
  transition: transform .4s ease, box-shadow .4s ease;
}
.trust__media:hover{ transform: scale(1.01); box-shadow: 0 35px 80px rgba(0,0,0,0.70); }
.trust__media img{ width:100%; height:100%; object-fit: cover; display:block; }

/* =========================
   FOOTER
========================= */
.footer{ margin-top:120px; border-top:1px solid rgba(255,255,255,0.08); background:#0f0f0f; }
.footer__inner{
  max-width:1200px; margin:0 auto; padding:40px 8%;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;
}
.footer__logo{ font-weight:800; margin-bottom:4px; }
.footer__mail{ color:#888; font-size:14px; }
.footer__label{ font-size:14px; color:#888; margin-bottom:6px; }
.footer__icons{ display:flex; gap:14px; }
.footer__icons a{ color:#fff; opacity:.7; transition: opacity .2s ease, transform .2s ease; }
.footer__icons a:hover{ opacity:1; transform:translateY(-3px); }

/* =========================
   SERVICES PAGE
========================= */
.services-page .section{
  display:flex; flex-wrap:wrap; align-items:center; gap:40px; padding: 100px 8%;
}
.services-page .section:nth-of-type(even){ flex-direction: row-reverse; }
.services-page .section img{
  width:100%; max-width:520px; border-radius:12px; object-fit:cover; display:block;
  transition: transform .4s ease, box-shadow .4s ease;
}
.services-page .section img:hover{ transform: scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,0.6); }
.services-page .section-content{ flex:1; min-width:320px; }
.services-page .section-content h3{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color: var(--muted2); margin:0 0 10px 0; }
.services-page .section-content h2{ font-size:42px; line-height:1.1; margin:0 0 18px 0; font-weight:800; }
.services-page .section-content p{ color: var(--muted); line-height:1.7; margin:0 0 16px 0; }

/* =========================
   RESPONSIVE — TABLET
========================= */
@media (max-width: 980px){
  .hero h1{ font-size: 40px; }

  .method__grid{ grid-template-columns: 1fr; gap: 28px; }
  .method__media{ height: 360px; }

  .bts__title{ font-size: 40px; }
  .bts__card{ flex: 0 0 240px; width: 240px; height: 427px; }

  .cta__inner{ padding: 46px 22px; }
  .cta__title{ font-size: 38px; max-width: 100%; }

  .trust__grid{ grid-template-columns: 1fr; gap: 28px; }
  .trust__title{ font-size: 38px; }
  .trust__media{ height: 360px; }

  .testimonials__grid{ grid-template-columns: 1fr; }
  .testimonials__title{ font-size: 38px; }
}

/* =========================
   RESPONSIVE — MOBIL
========================= */
@media (max-width: 700px){

  /* Vis hamburger, skjul desktop nav */
  .hamburger { display: flex; }
  nav { display: none; }

  header { padding: 16px 6%; }

  /* Hero tekst skaleres ned */
  .hero {
    padding: 100px 6% 80px;
    min-height: 70vh;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
    max-width: 100%;
  }
  .rotating-text {
    display: block;
    padding-left: 0;
    min-width: unset;
    margin-top: 4px;
  }
  .btn { margin-top: 24px; padding: 13px 22px; font-size: 14px; }

  /* Generell padding på mobil */
  .services { padding: 60px 6%; gap: 16px; }
  .method { padding: 60px 6%; }
  .bts { padding: 60px 6%; }
  .testimonials { padding: 60px 6%; }
  .trust { padding: 60px 6%; }
  .cta { padding: 60px 6%; }
  .cta__inner { padding: 36px 20px; }
  .cta__title { font-size: 28px; }

  .footer__inner { flex-direction:column; align-items:flex-start; }

  .bts__card { flex: 0 0 160px; width: 160px; height: 284px; }

  .method__title { font-size: 34px; }
  .trust__title { font-size: 30px; }
  .testimonials__title { font-size: 30px; }
}
