:root{
  --bg:#081224;
  --text:#eaf1ff;
  --muted:#b7c6e6;
  --accent:#6ecbff;
  --card:#0f2144;
  --border: rgba(255,255,255,.12);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: var(--bg);
  color:var(--text);
}

/* topbar */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  background: rgba(8,18,36,.35);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.container{width:min(1100px,92%);margin:0 auto}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{color:var(--text);text-decoration:none;font-weight:700}
.nav a{
  color:var(--muted);
  text-decoration:none;
  margin-left:18px;
}
.nav a:hover{color:var(--text)}

/* hero */
.hero{
  position:relative;
  height: 72vh;
  min-height: 520px;
  overflow:hidden;
  padding-top:64px; /* space for fixed topbar */
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter: saturate(1.1) contrast(1.05);
}
.hero-overlay{
  position:absolute; inset:0;
  background: radial-gradient(900px 600px at 30% 25%, rgba(110,203,255,.28), transparent 60%),
              linear-gradient(to bottom, rgba(0,0,0,.15), rgba(8,18,36,.95));
}
.hero-content{
  position:relative;
  padding: 90px 0 0;
  max-width: 70ch;
}
.hero h1{font-size:clamp(32px,4vw,54px);margin:0 0 12px}
.hero p{margin:0 0 22px;color:var(--muted);font-size:1.05rem}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  background:var(--accent);
  color:#06101b;
  font-weight:800;
  text-decoration:none;
}
.btn-outline{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}

/* sections */
.section{padding: 46px 0 30px}
.section-title{
  margin:0 0 18px;
  font-size: clamp(22px, 2.4vw, 34px);
}

/* cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.card{
  display:block;
  position:relative;
  border-radius:26px;
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(15,33,68,.55);
  text-decoration:none;
  transform: translateY(0);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(110,203,255,.45);
}
.card img{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
  filter: brightness(.95);
  background: rgba(15,33,68,0.35);
}
.card-label{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  padding:12px 14px;
  border-radius:16px;
  background: rgba(8,18,36,.65);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  font-weight:800;
  text-align:center;
}

/* footer */
.footer{
  border-top:1px solid var(--border);
  padding:18px 0 28px;
  color:var(--muted);
}

@media (max-width: 900px){
  .cards{grid-template-columns:1fr}
  .card img{height:260px}
  .hero{min-height: 480px}
}

/* for nice back link */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: rgba(15,33,68,0.35);
}

.back-link:hover {
  color: var(--text);
  border-color: rgba(110,203,255,.5);
  transform: translateX(-2px);
}

/* for not cutting standing pictures */
.gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15,33,68,0.35);
  display: grid;
  place-items: center;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  background: rgba(15,33,68,0.35);
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 260px; }
}


.project-hero-image {
  width: 100%;
  max-height: 540px;
  object-fit: contain;   /* viktig */
  display: block;
  background: rgba(15,33,68,0.35);
}



/* NO/EN style */
.lang-switch{
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15,33,68,0.35);
  margin-left: 14px;
}

.lang-btn{
  border: 0;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
}

.lang-btn.active{
  background: rgba(110,203,255,.18);
  color: var(--text);
  border: 1px solid rgba(110,203,255,.35);
}

/* Click on pictures */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox.show {
  display: flex;
}

.clickable-img {
  cursor: zoom-in;
}
