:root{
    --basic-btn: rgb(255, 255, 255);
    --front-text: rgb(255, 255, 255);

    /*Hamburger*/
    --hamburger-main: rgb(255, 255, 255);
    --hamburger-mainHover: #222222;
    --hamburger-text: rgb(255, 255, 255);
    --hamburger-textHover: rgb(46, 51, 128);
    --hamburger-icon-bg: rgb(46, 51, 128);

    /*Cursor*/
    --cursor-dot: rgb(255, 255, 255);
    --cursor-outline: hsla(0, 0%, 100%, 0.5);

    /*To top button*/
    --up-btn: rgba(71, 74, 255, 0.486);
    --up-btn-text: rgb(255, 255, 255);
    --up-btnHover: rgba(85, 85, 85, 0.842);

    /*Loader*/
    --loader-bg: #1a1a1a;

    /*drk button*/
    --dark-bg-btn: rgba(77, 77, 77, 0.24);
    --dark-icon-btn: rgba(255, 255, 255, 0.664);
    --dark-bg-btnHover: rgba(77, 77, 77, 0.479);
    --dark-icon-btnHover: rgba(255, 255, 255, 0.925);

    /*Background*/
    --color-bg1: rgb(108, 0, 162);
    --color-bg2: rgb(0, 17, 82);
    --firefox-bg1: rgb(77, 220, 158);
    --firefox-bg2: rgb(91, 55, 235);
    --firefox-bg3: rgb(241, 48, 126);

    /*WORK*/
    --color-work-bg: #070c3b;
}
.dark-mode {
    --up-btn: rgba(151, 100, 100, 0.486);
    --basic-btn: rgb(255, 255, 255);
    --front-text: rgb(255, 255, 255);

    /*Hamburger*/
    --hamburger-text: rgb(255, 255, 255);
    --hamburger-textHover: rgb(128, 46, 46);
    --hamburger-icon-bg: rgb(128, 46, 46);

    /*Background*/
    --color-bg1: rgb(30, 10, 10);
    --color-bg2: rgb(10, 10, 10);
    --firefox-bg1: rgb(180, 30, 30);
    --firefox-bg2: rgb(80, 20, 20);
    --firefox-bg3: rgb(50, 15, 15);

    /*WORK*/
    --color-work-bg: #3b0a07;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
    cursor: none;
}
.show-cursor * {
    cursor: auto;
}
/*Cursor*/
.cursor-dot{
    width: 5px;
    height: 5px;
    background-color: var(--cursor-dot);
}
.cursor-outline{
    width: 30px;
    height: 30px;
    border: 2px solid var(--cursor-outline);
}
.cursor-dot, .cursor-outline{
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 200;
    pointer-events: none;
}

/*Home side*/
.hero header .logo{
    float: left;
    height: 45px;
    margin-right: 3px;
}
.hero header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0 30px;
}
.main-width{
    width: 1400px;
    max-width: 95%;
    margin: 0 auto;
}
.menu-functions {
    display: flex;
    align-items: center;
    justify-content: center;
}
/*Hamburger menu*/
.bx-menu{
    z-index: 105;
    display: flex;
    position: relative;
    border: none;
    outline: none;
    padding: 7px;
    border-radius: 50px;
    top: 0px;
    float: right;
    font-size: 35px;
    color: var(--hamburger-main);
    transition: .2s;
}
.bx-menu:hover{
    color: var(--hamburger-mainHover);
    transition: .2s;
}
#close{
    z-index: 101;
    margin: 20px;
    float: right;
    color: var(--hamburger-main);
    font-size: 35px;
    transition: .2s;
}
#close:hover{
    color: var(--hamburger-mainHover);
    transition: .2s;
}
#menu{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    list-style: none;
    text-align: center;
    opacity: 0;
    transition: all 1s ease;
}
#menu li a{
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    font-size: clamp(40px, 5vw, 50px);
    font-weight: bold;
    color: var(--hamburger-text);
    margin: 5px 0px;
    transition: all 0.3s ease;
}
#menu li a:hover{
    color: var(--hamburger-textHover);
    transform: translate(-2%,-2%);
    transition: .4s;
}
/*Hamburger menu GLASS*/
#container-hamburger{
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    z-index: 105;
    position: fixed;
    top: 0;
    right: 200%;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: all 0.6s ease;
}
/*Settings menu*/
#settings-close{
    z-index: 105;
    margin: 20px;
    float: right;
    color: var(--hamburger-main);
    font-size: 35px;
    transition: .2s;
}
#settings-close:hover{
    color: var(--hamburger-mainHover);
    transition: .2s;
}
#cursor-change .material-symbols-outlined {
  font-size: clamp(36px, 6vw, 40px);
  color: var(--hamburger-text);
  background-color: var(--hamburger-icon-bg);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  text-align: center;
  transition: 0.3s ease; 
}
#color-change .material-symbols-outlined {
  font-size: clamp(36px, 6vw, 40px);
  color: var(--hamburger-text);
  background-color: var(--hamburger-icon-bg);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  text-align: center;
  transition: 0.3s ease; 
}
#settings-menu{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    list-style: none;
    text-align: center;
    opacity: 0;
    transition: all 1s ease;
}
#settings-menu li a{
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    font-size: 50px;
    font-weight: bold;
    color: var(--hamburger-text);
    margin: 5px 0px;
    transition: all 0.3s ease;
}
#settings-menu li a:hover{
    color: var(--hamburger-textHover);
    transform: translate(-2%,-2%);
    transition: .4s;
}
/*Settings menu GLASS*/
#container-settings{
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    z-index: 105;
    position: fixed;
    right: 200%;
    /* Adjust these properties to center the menu */
    top: 50%;
    left: -50%;
    transform: translate(-50%, -50%);
    /* End of adjustment */
    width: 50%;
    height: 50%;
    text-align: center;
    transition: all 0.6s ease;
}


/*To top*/
#myBtn {
    display: none; 
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 105;
    border: none;
    outline: none;
    background-color: var(--up-btn);
    color: var(--up-btn-text);
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    transition: .2s;
  }
  
#myBtn:hover {
    background-color: var(--up-btnHover);
    transition: .2s;
}
/*Texture Overlay*/
.texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,\ <svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'>\ <filter id='n'><feTurbulence baseFrequency='0.6' numOctaves='1' seed='4'/></filter>\ <rect width='100%' height='100%' filter='url(%23n)'/>\ </svg>");
  mix-blend-mode: overlay; 
  opacity: 0.4;
}
/*loader*/
.loader-wrapper{
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--loader-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.gradient-loader {
    width: 1000px;
    height: 1000px;
    position: fixed;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    top: 30%;
    left: 20%;
    filter: blur(50px);
    background-image: linear-gradient(var(--firefox-bg1), var(--firefox-bg2), var(--firefox-bg3));
    animation: rotate 10s cubic-bezier(0.8, 0.2, 0.2, 0.8) alternate infinite;
    border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    transition: transform 0.1s ease-out;
  }
 
/*darkmode*/
#darkmode {
    display: flex;
    position: relative;
    background-color: var(--dark-bg-btn);
    color: var(--dark-icon-btn);
    border: none;
    outline: none;
    padding: 7px;
    border-radius: 50px;
    font-size: 25px;
    top: 0px;
    right: auto;
    z-index: 98;
    transition: .2s;
}
#darkmode:hover{
    background-color: var(--dark-bg-btnHover);
    color: var(--dark-icon-btnHover);
    transition: .2s;
}
#darkmode2{
    display: none;
    position: relative;
    background-color: var(--dark-bg-btn);
    color: var(--dark-icon-btn);
    border: none;
    outline: none;
    padding: 7px;
    border-radius: 50px;
    font-size: 25px;
    top: 0px;
    right: auto;
    z-index: 98;
    transition: .2s;    
}
#darkmode2:hover{
    display: flex;
    position: relative;
    background-color: var(--dark-bg-btnHover);
    color: var(--dark-icon-btnHover);
    border: none;
    outline: none;
    padding: 7px;
    border-radius: 50px;
    font-size: 25px;
    top: 0px;
    right: auto;
    z-index: 98;
    transition: .2s;    
}
/*settings*/
#settings {
    display: flex;
    position: relative;
    background-color: rgba(77, 77, 77, 0.24);
    color: rgba(255, 255, 255, 0.664);
    border: none;
    outline: none;
    padding: 7px;
    border-radius: 50px;
    margin-left: 8px;
    font-size: 25px;
    top: 0px;
    right: auto;
    z-index: 98;
    transition: .2s;
}
#settings:hover{
    background-color: rgba(77, 77, 77, 0.479);
    color: rgba(255, 255, 255, 0.925);
    transition: .2s;
}

/*CONENT*/
.content{
    display: block;
    padding-top: 200px;
    padding-bottom: 100px;
    opacity: 1;
    transition: opacity 0.6s ease;
}
.content .main-text{
    position: relative;
    z-index: 2;
}
.content .main-text h1{
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1;
    color: var(--front-text);
    margin: 2px 0 10px;
    font-weight: 900;
}
.content .main-text h2{
    font-size: clamp(12px, 2vw, 16px);
    color: var(--front-text);
    margin: 0 0 0 10px;
}
.content .main-text p{
    max-width: 100%;
    width: 570px;
    color: var(--front-text);
    line-height: 1.5;
    font-size: clamp(16px, 2.5vw, 20px);
}
.work-button{
    display: inline-block;
    text-decoration: none;
    color: black;
    background: var(--basic-btn);
    border: 1px solid var(--basic-btn);
    padding: 13px 20px;
    margin-top: 20px;
    border-radius: 30px;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 600;
    transition: .6s ease;
}
.work-button i{
    vertical-align: middle;
    font-size: clamp(20px, 2vw, 25px);
}
.work-button:hover{
    transform: scale(1.05);
    border: 2px solid var(--basic-btn);
    background: transparent;
    color: var(--basic-btn);
    transition: .6s ease;
}



/* -------------------- */
  /* BACKGROUND ANIMATION */
.backgroundFirefox{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
}
.swiper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    display: block;
  }

  
  .gradient {
    width: 1000px;
    height: 1000px;
    position: fixed;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    top: 30%;
    left: 20%;
    filter: blur(50px);
    background-image: linear-gradient(var(--firefox-bg1), var(--firefox-bg2), var(--firefox-bg3));
    animation: rotate 10s cubic-bezier(0.8, 0.2, 0.2, 0.8) alternate infinite;
    border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    transition: transform 0.1s ease-out;
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  /* ---------------- */
  /* SLIDE ANIMATION */
  
  .swiper-slide-active [data-animate] {
    opacity: 1;
    transform: none;
  }
  
  .swiper-slide-active .title {
    transition-delay: 0.6s;
  }
  
  .swiper-slide-active .songs {
    transition-delay: 1s;
  }
  
  .swiper-slide-active .overview {
    transition-delay: 1.4s;
  }
  
  [data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
  }
  
  [data-animate="bottom"] {
    transform: translate3d(0, 15px, 0);
  }


/*-------------ABOUT-------------*/
#content-about{
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    margin-top: 50px;
    padding: 50px 20px 100px 40px;
    max-width: 900px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    position: relative;
}
#content-about .main-text-about{
    text-align: left;
    max-width: 800px;
    margin: 0 auto; 
}
#content-about .main-text-about h1{
    font-size: clamp(28px, 5vw, 60px); 
    line-height: 1;
    color: var(--front-text);
    margin-bottom: 10px;
    font-weight: 900;
    text-align: left; 
}
#content-about .main-text-about h2{
    font-size: clamp(12px, 2vw, 16px);
    color: var(--front-text);
    margin-bottom: 20px;
}
#content-about .main-text-about p{
    max-width: 100%;
    width: 800px;
    color: var(--front-text);
    line-height: 1.5;
    font-size: clamp(14px, 2.5vw, 20px);
}
#content-about .main-text-about a i{
    font-size: 25px;
    margin-right: 10px;
}

#tech-stack {
  margin-top: 5vh
}


/*-------------WORK-------------*/
#content-work {
  display: none;
  z-index: auto;
  grid-auto-rows: auto;
  gap: 20px;
  padding: 20px;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px; 
  opacity: 0;
  transition: opacity 2s; 
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  padding: 20px;
}
.grid-item {
  background-color: var(--color-work-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 15px;
}
.grid-item img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}
.grid-item a {
  color: #e9e9e9;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin: 10px 0;
}
.grid-item p {
  color: #e0e0e0;
  font-size: 0.9em;
  margin: 10px 0;
  word-wrap: break-word;
  max-height: 500px;
  min-height: 120px;
  line-height: 1.4em;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.5;
}
.grid-item h3 {
  color: #e0e0e0;
  font-size: 1.3em;
}
.repo-card {
  display: block;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.repo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/*-------------Min font test-------------*/
/*Legger til min egen font*/
@font-face {
    font-family: 'AdrianFont';
    src: url('../fonts/AdrianFontV2-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.about-text{
  font-family: 'AdrianFont', sans-serif;
  letter-spacing: 0.02em;
  font-size: clamp(15px, 5vw, 30px) !important;
  line-height: 0.9 !important;
}
/*--------------------------*/




/*-------------diffrent screen sizes TEMP-------------*/
/* Default styles for desktop screens */
body {
    background-color: #f2f2f2;
    font-size: 16px;
    line-height: 1.5;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  nav li {
    margin-right: 20px;
  }
  
  nav a {
    color: #333;
    text-decoration: none;
  }
  /* Styles for tablet screens (max-width: 768px) */
  @media only screen and (max-width: 768px) {
    body {
      font-size: 14px;
      line-height: 1.3;
    }
  
    nav {
      flex-direction: column;
      padding: 10px;
    }
  
    nav ul {
      flex-direction: column;
    }
  
    nav li {
      margin-right: 0;
      margin-bottom: 10px;
    }
  
    nav a {
      font-size: 16px;
    }
  }
  
  /* Styles for mobile screens (max-width: 480px) */
  @media only screen and (max-width: 480px) {
    body {
      font-size: 12px;
      line-height: 1.2;
    }
    nav {
      padding: 5px;
    }
  
    nav ul {
      padding: 0;
    }
  
    nav li {
      margin-bottom: 5px;
    }
  
    nav a {
      font-size: 14px;
    }
  
    /* Hide the navigation menu on mobile screens */
    nav {
      display: none;
    }
  
    /* Add a toggle button to show/hide the navigation menu on mobile screens */
    .nav-toggle {
      display: block;
      padding: 10px;
      background-color: #333;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
  
    .nav-toggle:hover {
      background-color: #444;
    }
  
    /* Show the navigation menu when the toggle button is clicked */
    .nav-toggle:checked + nav {
      display: block;
    }
  }
  
  /* Styles for large desktop screens (min-width: 1200px) */
  @media only screen and (min-width: 1200px) {
    body {
      font-size: 18px;
      line-height: 1.6;
    }
  
    nav {
      padding: 30px;
    }
  
    nav ul {
      justify-content: space-around;
    }
  
    nav li {
      margin-right: 30px;
    }
  
    nav a {
      font-size: 20px;
    }
  }