:root {
  --bg: #0b0e0c;          /* nesten svart */
  --bg-alt: #121612;
  --text: #d1d5d8;        /* sølv */
  --muted: #9aa0a6;
  --accent: #3a5f3a;      /* militærgrønn */
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav a {
  color: var(--text);
  margin-left: 1.5rem;
  text-decoration: none;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: #e5e7eb;
}

.hero p {
  color: var(--muted);
}

/* SEKSJONER */
section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  scroll-margin-top: 90px; /* høyden på navbaren */
}

.team-section {
  background: none;
  padding-top: 3rem;
}

section.alt {
  background: var(--bg-alt);
  padding: 5rem 1.5rem;
}

h2 {
  color: #e5e7eb;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.team {
  max-width: 1000px;
  margin: 1.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 2.2rem;
  padding: 0 1.5rem;
}

.member {
  background: #0f1310;
  border-radius: 14px;
  padding: 2.6rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
}

.member h3 {
  text-transform: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.member .meta {
  margin-bottom: 0.6rem;
}

.area {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* FREMføringer */
.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 3rem;
}

.card {
  background: #0f1310;
  padding: 2rem;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
}

.card .date {
  font-size: 0.9rem;
  color: var(--muted);
}

/* FOOTER */
footer {
  background: #000;
  text-align: center;
  padding: 3rem 1rem;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-logos img {
  height: 50px;
}
h1, h2, h3, .nav-left {
  font-family: 'Rajdhani', system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  height: 50px;      /* liten og presis */
  width: 50px;
}

.nav-title {
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  opacity: 1;
}

.hero-logo {
  width: 320px; 
  max-width: 60vw;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.small-hero {
  height: 20vh;   /* evt 35vh */
  min-height: 50px;
}

@media (max-width: 1000px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team {
    grid-template-columns: 1fr;
  }
}

.small-hero h1 {
  font-size: 2rem;
  letter-spacing: 0.3em;
}
.member:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease;
}

.team-section {
  max-width: none;
  margin: 5rem 0;
  padding: 0;
}

/* SPRINTS */
.sprint-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.sprint-card {
  background: #0f1310;
  border-radius: 16px;
  padding: 2.5rem;
  border-left: 5px solid var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.sprint-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.sprint-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.sprint-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.sprint-desc {
  margin: 1rem 0;
}

.sprint-tasks {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.sprint-tasks li {
  margin-bottom: 0.4rem;
}

.sprint-image {
  width: 100%;
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.nav a.active {
  color: var(--accent);
}

/* SPRINT PAGE */
.sprint-page {
  position: relative;
}

.sprint-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sprint-cards {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* BREDE KORT – ÉN PER LINJE */
.sprint-card {
  background: #0f1310;
  border-left: 6px solid var(--accent);
  padding: 3rem 4rem;
  border-radius: 16px;
  min-height: 200px;
  scroll-margin-top: 120px;
  transition: transform 0.2s ease;
}

.sprint-card h3 {
  margin-top: 0;
}

/* HØYRE FAST SPRINTLISTE */
.sprint-scroll {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  pointer-events: auto;
}

.sprint-scroll ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sprint-scroll li {
  margin: 0.7rem 0;
}

.sprint-scroll a {
  display: inline-block;
  width: 80px;                 /* 🔒 fast bredde = ingen layout shift */
  color: #6b7280;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    transform 0.35s cubic-bezier(.22,1,.36,1),
    color 0.35s ease;
}

/* ENESTE BEVEGELSE */
.sprint-scroll a.active {
  color: var(--accent);
  font-weight: 600;
  transform: translateX(-14px);
}



html {
  scroll-behavior: smooth;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

/* Hover + aktiv side */
.nav a:hover,
.nav a.active {
  color: var(--accent);
}

/* Understrek-animasjon */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-left {
  text-decoration: none;
  color: var(--text);
}

/* Selve teksten */
.nav-title {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

/* Hover-farge */
.nav-left:hover .nav-title {
  color: var(--accent);
}

/* Understrek – kun under teksten */
.nav-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* Aktiver strek ved hover */
.nav-left:hover .nav-title::after {
  width: 100%;
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo {
  height: 36px;
  width: auto;
  visibility: visible;
}

.home .nav-logo {
  visibility: hidden;
}

.nav-left {
  text-decoration: none;
  color: var(--text);
}

.nav-title {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
h1, h2, h3, .nav-title {
  font-family: 'Rajdhani', system-ui, sans-serif;
}
.nav-left:hover .nav-title {
  color: var(--accent);
}

.nav-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-left:hover .nav-title::after {
  width: 100%;
}

.nav-right a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-right a:hover {
  color: var(--accent);
}

.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-right a:hover::after,
.nav-right a.active::after {
  width: 100%;
}

.nav-title {
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

:root {
  --nav-height: 60px;
}

body {
  padding-top: var(--nav-height);
}

section,
.sprint-card {
  scroll-margin-top: var(--nav-height);
}