/* LAST OSWALD FONT LOKALT */
@font-face {
  font-family: 'League Spartan Variable';
  src: url('LeagueSpartanVariable.ttf') format('ttf-variations');
  font-weight: 200 900;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', sans-serif;
}

body {
    background: #f2f2f2; /* mørk bakgrunn */
    color: #252525;
}

/* Gjør ALT tekst til store bokstaver */
h1, h2, h3 {
  text-transform: uppercase;
}

h1 {
    font-size: 120px;
    line-height: 0.8;
    font-family: "Germania One", system-ui;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-size: 70px;
    line-height: 0.9;
    font-family: "Germania One", system-ui;
    font-weight: 400;
    font-style: normal;
}

h3 {
    font-size: 40px;
}

h4 {
    font-size: 20px;
    color: #909090;
}

p {
    color: #909090;
    font-family: "Inconsolata", monospace;
}

/* Phones */
@media (max-width: 1023px) { 
    /* NAVBAR */
    .navbar {
        width: 100%;
        position: fixed;
        z-index: 1000;
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 1px;
        padding: 1em;
        margin-top: 0;
        display: block;
        justify-content: center; /* horisontalt */
        align-items: center;
        text-align: center;
        box-sizing: border-box;
        background: rgba(255,255,255,0.1); /* glass effect, mer transparent for mørk bakgrunn */
        backdrop-filter: blur(18px);
        background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 17, 18, 0.1) 100%
    );
    }

    .logo { 
        width: 30%;
        float: left;
        text-decoration: none;
        color: #252525;
        margin-right: 1em;
    }

    /* NAVBAR CONTENT */
    .nav-box {
        width: 100%;
        z-index: 1;
    }

    .nav-links {
        width: 100%;
        list-style: none;
    }

    .nav-links a {
        float: left;
        text-decoration: none;
        color: #252525;
        opacity: 0.8;
        transition: opacity 0.2s, transform 0.2s;
        padding: 1.5em;
    }

    .nav-links a:hover {
        opacity: 1;
        transform: scale(1.05);
    }

    /* Section 1 */
.section1 {
    width: 100%;
    height: 20em;
    float: left;
    margin-left: 10%;
    margin-top: 15em;
    z-index: 2;
    position: relative;
}

.section1 h1 {
    padding-right: 2em;
    font-size: 4em;
}

button {
    float: left;
    font-size: 100%;
    padding: 1em;
    padding-left: 2em;
    padding-right: 2em;
    border-radius: 999px; /* capsule form */
    background: linear-gradient(90deg,);
    color: #252525;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 2em;
}

button:hover {
    background-color: #252525;
    color: #f2f2f2;
    cursor: pointer;
}

.main_3D {
    width: 50%;
    margin-left: 50%;
    margin-top: 10em;
    display: block;
    position: absolute;
    z-index: 0;
}

/* Section 2 */
.section2 {
    width: 100%;
    float: left;
    position: relative;
    background-color: #252525;
    justify-content: center; /* horisontalt */
    align-items: center;     /* vertikalt */
    margin-top: 5em;
}

.helptext {
    width: 100%;
    float: left;
    color: #f2f2f2;
    padding: 5em;
}

.skills {
    width: 100%;
    float: left;
    color: #f2f2f2;
    background-color: #141414;
}

.skill {
    width: 100%;
    float: left;
    padding: 2em;
    text-align: left;
    transition: all 0.4s ease;
    cursor: default;
}

.skill:hover {
    background-color: #252525;
    padding-left: 2em;
}

.skill h4 {
    width: 10%;
    float: left;
}

/* Section 3 */
.section3 {
    width: 100%;
    float: left;
    position: relative;
    background-color: #f2f2f2;
}

.work {
    width: 100%;
    float: left;
    bottom: 0;
    position: relative;
}

.work video, img {
    width: 100%;
    float: left;
    cursor: pointer;
    transition: transform 0.2s;
}

.worktext {
    width: 100%;
    padding: 3em;
    padding-bottom: 2em;
    color: #f2f2f2;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 0em;

    /* gradient */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0)
    );
}

.work:hover .worktext {
    display: none;
}

.worktext h3 {
    font-size: 1.5em;
    margin-bottom: 0.2em;
}
.worktext h4 {
    font-size: 1em;
    box-sizing: border-box;
    display: inline-block;
    background-color: #f2f2f2;
    color: #252525;
    padding: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 0.5em;
    border-radius: 999px;
    font-weight: 600;
    opacity: 75%;
    margin-right: 0.5em;
    text-transform: uppercase;
}

footer {
    width: 100%;
    float: left;
    padding: 1em;
}

/* -- Prosjekter -- */

.projects-page {
    margin: 2em;
}

/* Masonry wrapper */
.projects-masonry {
    width: 100%;
    float: left;
    position: relative;
    column-count: 2;
    column-gap: 10px;
    margin-top: 10em;
}

/* Hvert element */
.project-item {
  break-inside: avoid;
  margin-bottom: 10px;
}

/* Bilder og video */
.project-item img,
.project-item video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 0;
}

.project-item video {
  object-fit: cover;
}
}

/* artikler */
.artikkelframe {
    width: 100%;
    float: left;
    background-color: #f2f2f2;
}

.artikkel {
    width: 100%;
}

.artikkel video, img {
    width: 100%;
}

.artikkeltext {
    width: 100%;
    float: left;
    color: #252525;
    padding: 1em;
    margin-bottom: 4em;
}

.artikkeltext h4 {
    width: 100%;
    color: #909090;
    font-size: 1.1em;
    font-weight: 500;
    padding-bottom: 0.6em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artikkeltext h3 {
    font-size: 2em;
}

/* About Section */
.aboutpic {
    width: 100%;
    float: left;
    background-color: #252525;
    display: flex;
    justify-content: center; /* horisontalt */
    align-items: center;     /* vertikalt */
}

.aboutpic img {
    width: 75%;
    height: 100%;
    object-fit: contain;
    margin: 4em;
    margin-top: 0;
}

.textwidth {
    width: 100%;
    display: flex;
    justify-content: center; /* horisontalt */
    align-items: center;     /* vertikalt */
    text-align: center;
    padding: 3em;
    background-color: #141414;
}

.textwidth h2, p {
    width: 100%;
    color: #909090;
    padding: 0.5em;
}

.kunder {
    width: 100%;
    float: left;
    text-align: center;
    padding: 3em;
    background-color: #f2f2f2;
}

.kunder img {
    width: 20%;
    float: left;
    padding: 1em;
    box-sizing: border-box;
}

/* Desktop */
@media (min-width: 1024px) {

/* NAVBAR */
.navbar {
    width: 20%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 1em;
    margin-left: 80%;
    display: flex;
    justify-content: center; /* horisontalt */
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.1); /* glass effect, mer transparent for mørk bakgrunn */
    backdrop-filter: blur(18px);
    background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 17, 18, 0.1) 100%
);
}

/* NAVBAR CONTENT */
.nav-box {
    width: 100%;
    z-index: 1;
}

.logo { 
    width: 100%;
    margin-bottom: 100%;
    text-decoration: none;
    color: #252525;
    padding: 20%;
}

.nav-links {
    list-style: none;
    gap: 28px;
    line-height: 4em;
}

.nav-links a {
    text-decoration: none;
    color: #252525;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Section 1 */
.section1 {
    width: 75%;
    height: 35em;
    float: left;
    margin-left: 10%;
    margin-top: 15em;
    z-index: 2;
    position: relative;
}

.section1 h1 {
    width: 65%;
}

button {
    float: left;
    font-size: 100%;
    padding: 1em;
    padding-left: 2em;
    padding-right: 2em;
    border-radius: 999px; /* capsule form */
    background: linear-gradient(90deg,);
    color: #252525;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 2em;
}

button:hover {
    background-color: #252525;
    color: #f2f2f2;
    cursor: pointer;
}

.main_3D {
    width: 50%;
    margin-left: 40%;
    margin-top: 10em;
    display: block;
    position: absolute;
    z-index: 0;
}

/* Section 2 */
.section2 {
    width: 80%;
    float: left;
    position: relative;
    background-color: #252525;
    display: flex;
    justify-content: center; /* horisontalt */
    align-items: center;     /* vertikalt */
}

.helptext {
    width: 50%;
    float: left;
    color: #f2f2f2;
    padding: 7em;
}

.skills {
    width: 50%;
    float: left;
    color: #f2f2f2;
    background-color: #141414;
}

.skill {
    width: 100%;
    float: left;
    padding: 3em;
    text-align: left;
    transition: all 0.4s ease;
    cursor: default;
}

.skill:hover {
    background-color: #252525;
    padding-left: 2em;
}

.skill h4 {
    width: 10%;
    float: left;
}

/* Section 3 */
.section3 {
    width: 80%;
    float: left;
    position: relative;
    background-color: #f2f2f2;
}

.work {
    width: 50%;
    float: left;
    bottom: 0;
    position: relative;
}

.work video, img {
    width: 100%;
    float: left;
    cursor: pointer;
    transition: transform 0.2s;
}

.worktext {
    width: 100%;
    padding: 3em;
    padding-bottom: 2em;
    color: #f2f2f2;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 0em;

    /* gradient */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0)
    );
}

.work:hover .worktext {
    opacity: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.worktext h3 {
    font-size: 1.5em;
    margin-bottom: 0.2em;
}
.worktext h4 {
    font-size: 1em;
    box-sizing: border-box;
    display: inline-block;
    background-color: #f2f2f2;
    color: #252525;
    padding: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 0.5em;
    border-radius: 999px;
    font-weight: 600;
    opacity: 75%;
    margin-right: 0.5em;
    text-transform: uppercase;
}

/* artikler */
.artikkelframe {
    width: 80%;
    float: left;
    background-color: #f2f2f2;
    margin: 3em;
    box-sizing: border-box;
    display: block;
}

.artikkel {
    width: 50%;
    height: auto;
    padding: 1em;
}

.artikkel video, img {
    width: 100%;
    float: left;
}

.artikkel:nth-child(even) {
    margin-left: 30em;
}

.artikkeltext {
    width: 100%;
    float: left;
    color: #252525;
    padding: 1em;
    margin-bottom: 4em;
}

.artikkeltext h4 {
    color: #909090;
    font-size: 1.1em;
    font-weight: 500;
    padding-bottom: 0.6em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artikkeltext h3 {
    font-size: 2em;
}

/* About Section */
.aboutpic {
    width: 50%;
    float: left;
    background-color: #252525;
    display: flex;
    justify-content: center; /* horisontalt */
    align-items: center;     /* vertikalt */
}

.aboutpic img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.textwidth {
    width: 80%;
    display: flex;
    justify-content: center; /* horisontalt */
    align-items: center;     /* vertikalt */
    text-align: center;
    padding: 3em;
    background-color: #141414;
}

.textwidth h2, p {
    width: 100%;
    color: #909090;
}

.kunder {
    width: 80%;
    float: left;
    text-align: center;
    padding: 3em;
    background-color: #f2f2f2;
}

.kunder img {
    width: 20%;
    float: left;
    padding: 1em;
    box-sizing: border-box;
}

/* -- Prosjekter -- */

.projects-page {
  padding: 80px 24px;
}

/* Masonry wrapper */
.projects-masonry {
    width: 75%;
    float: left;
    position: relative;
    column-count: 4;
    column-gap: 30px;
}

/* Hvert element */
.project-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* Bilder og video */
.project-item img,
.project-item video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 0;
}

.project-item video {
  object-fit: cover;
}

@media (max-width: 1200px) {
  .projects-masonry {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .projects-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .projects-masonry {
    column-count: 1;
  }
}

/* footer */
footer {
    width: 80%;
    height: 5em;
    display: inline-block;
    padding: 2em;
    padding-left: 5em;
    background: #252525; /* mørk bakgrunn */
}
}