@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    padding: 0;
    margin: 0;
}

:root {
  /* lp7 variables */  
    --dark-color: #1a1423;
    --light-color: #fdfffc;
    --accent-color: #7161ef;
    --hover-color: #5947de;
    --gradient-hero: linear-gradient(90deg, #433798 20%, #1a1423 60%);
    --gradient-featured: linear-gradient(90deg, #4437a4 8%, #0f0916 60%);

    /* Final color Scheme */
    --brunswick-green: #364b41;
    --fern-green: #588157;
    --final-dark-color: #17121f;
    /*  --final-accent-color: #7ac779; */ 
    /* jade: #26196c, good: #0a9856 */
    --final-accent-color: #0A9856;
    --final-hover-color: #446243;
    --final-dark-color: #273a24;

    --test-color: #588570;
    --test-color-h: #354c41;
    --test-color-gradient: linear-gradient(90deg, #364b41 20%, #1a1423 60%);

    /* lp6 variables */
    --primary-color: #047aed;
    --bg-color: #fafafa;
    --navbar-1: rgba(240, 248, 255, .8);
    --navbar-2: rgb(132, 109, 144, 0.8);
    --color-heading: #030303;
    --color-text: #262626;
    --slate-400: #94a3b8;
    --slate-300:#cbd5e1;
    --text-gray: rgb(from var(--color-heading) r g b / 50%);
    --max-width: 1520px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark-color);
}

a {
  color: var(--dark-color);
  text-decoration: none;
}

.default-container {
  max-width: 1300px;
  margin-inline: auto;
  padding: 0 32px;
}

.btn {
  /* original
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  */
  background: var(--final-accent-color);
  border: 2px solid var(--final-accent-color);
  color: var(--light-color);
  padding: 8px 32px;
  display: inline-block;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms ease;
  border-radius: 5px;
}

.btn:hover {
  /* 
  background: #5947de;
  border: 2px solid #5947de;
  */
  background: var(--final-hover-color);
  border: 2px solid var(--final-hover-color);
}

.btn.outlined {
  /*
  color: var(--accent-color);
  background: var(--light-color);
  */
  color: var(--final-accent-color);
  background: var(--light-color);
  
}

.btn.outlined:hover {
  /* background: var(--accent-color); */
  background:var(--final-hover-color);
  color: #fff;
}

.btn.light {
  background: var(--light-color);
  color: var(--dark-color);
  border: 2px solid var(--light-color);
}

.btn.light:hover {
  /* background: var(--accent-color); */
  background: var(--final-accent-color);
  color: var(--light-color);
}

img {
  width: 100%;
  display: flex;
  object-fit: cover;
  border-radius: 8px;
  
 
}

h1 {
  font-size: 60px;
  line-height: 100%;
  font-weight: 800;
  letter-spacing: -1px;
  padding-bottom: 10px;
  margin: 16px 0;
   /* background: linear-gradient(90deg, #433798 20%, #1a1423 60%); */
   background: linear-gradient(90deg, #246844 30%, #273a24 70%);
   /*  test color background: var(--test-color-gradient); */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  font-size: 36px;
  line-height: 120%;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 8px 0;
  /* background: linear-gradient(90deg, #4437a4 8%, #0f0916 60%); */
  /* background: linear-gradient(90deg, #23673a 8%, #173725 60%); */
  background: linear-gradient(90deg, #1d5530 8%, #173725 60%);
  /* background: var(--color-heading);*/
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

h3 {
  font-size: 24px;
  line-height: 130%;
  letter-spacing: -1px;
  margin: 8px 0;
}

p {
  font-size: 16px;
  line-height: 160%;
}

section {
  padding: 80px 0;
}

/* Header and Navbar */



.header-container {
  max-width:  var(--max-width);
  margin-inline: auto;
  padding: 0 32px;
}


nav {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  left: 0;
  right: 0;
   /* max-width: 1200px; */
  margin-inline: auto;
  z-index: 5;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  --webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 42px rgba(0, 0, 0, 0.1);
  transition: 0.5s;
}

.navbar{
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    right: 0;
  
    margin-inline: auto;
    /* z-index: make sure the that this element is above all other elements with smaller z-index */
    z-index: 5;
    padding: 16px 32px;

    /* max-width: 1200px; */
    /* adding the glass effect */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    /* Used for other browsers*/
    --webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 42px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
}

nav.active{
  top: -80px
}

nav .menu-items {
  display: flex;
  align-items: center;
  gap: 40px;
  font-weight: 500;
}

.nav-menu-items{
    display: flex;
    align-items: center;
    gap: 40px;
    font-weight: 500;
    font-size: 18px;
}

/* Djalo Group text */
.nav-text{
  padding-left: 450px;
}

.nav-text p{
    font-size: 26px;
    font-weight: 700;
    /* color: var(--accent-color) */
    color: var(--final-dark-color)
}

nav .menu-items a:hover {
  /* color: var(--accent-color); */
  color: var(--final-accent-color)
}

nav .menu-items .btn:hover {
  color: var(--light-color);
}

.logo-logo {
  font-weight: 700;
  font-size: 18px;
}

.header-logo{
  height: 50px;
  width: 80px;
}

/* Hero Section */

header {
  display: flex;
  height: 100vh;
  align-items: center;
  padding-top: 70px;
  min-height: 600px;
  max-height: 800px;
  position: relative;
 
}

.buttons {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

header .left {
  max-width: 50%;
  
}

header .right {
  position: absolute;
  bottom: 0;
  right: 0;
}

header .right img {
  height: 600px;
  object-fit: cover;
}

/* Här ändras färg-blurren i headern */
header .bg-color {
  /* background: #ad95ff;*/
  background: #589678;
  position: absolute;
  width: 400px;
  height: 400px;
  right: 0;
  top: 120px;
  z-index: -1;
  border-radius: 50%;
  filter: blur(115px);
}

/* Inspo */

.inspo-container{
    height: 250px;
    width: 100%;
    position: relative;
    display: flex;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    background-color: #f5f5f5;
}

.inspo-container .text-container{
    color: rgb(from var(--color-heading) r g b / 70%);
    font-size: 28px;
    line-height: 1.26em;
    font-weight: 600;
    max-width: 816px;
    margin: 40px auto;
    position: relative;
    text-align: center;
}

.inspo-container .text-container p strong{
    color: var(--color-heading);
}

.inspo-text-p{
    font-size: 28px;
    text-align: center;

    line-height: 1.26em;
    font-weight: 600;
    max-width: 816px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

/* Featured Section */

.featured {
  z-index: 2;
  position: relative;
  
}

.featured img {
  width: auto;
  height: 60px;
}

.featured .logos {
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
  justify-content: center;
}


.featured-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 40px 32px;
  box-shadow: 0 0 42px -20px rgba(0, 0, 0, 0.2);
  /* border-radius: 30px; */
  background: #f5f5f5;
}

/* h2 i samarbete */ 
.samarbete-h2{
  color: var(--final-dark-color);
  font-weight: 400px;
}

/* About section */

#about {
  
 /*  background: #f5f5f5; */
  margin-top: -60px;
  padding-top: 180px;
}

#about .default-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

section .icon {
  width: 40px;
}

.features-container {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.feature {
  flex: 1;
}

section .btn {
  margin-top: 28px;
}

/* Services section */

section .heading-container {
  max-width: 500px;
  text-align: center;
  margin-bottom: 60px;
  margin-inline: auto;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.services-container .service {
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.1);
  transition: all 300ms ease;
}

.services-container .content {
  padding: 16px;
}

.services-container .service:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 80px rgba(0, 0, 0, 0.1);
}

/* Why Section */

#why .default-container {
  display: flex;
  gap: 60px;
  align-items: center;
}

#why {
  /* original - background: var(--accent-color); */
  background: var(--fern-green);
  color: var(--light-color);
}

#why h2 {
  background: var(--light-color);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#why .icon {
  
}

.why-left img{
  border-radius: 10px;
  width: 450px;
}

/* project section */

.labels a {
  color: var(--light-color);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.label {
  /* background: var(--accent-color); */
  background: var(--final-accent-color);
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.project-p{
  margin-top: 5px;
}


/* Contact Form */

#contact {
  background: #f5f5f5;
}

.form-container{
    max-width: 1100px;
    margin-inline: auto;
    padding: 0 32px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form .group {
  display: flex;
  gap: 16px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 24px;
  background: #fff;
  border: none;
  font-size: 16px;
}

form textarea {
  height: 100px;
  resize: none;
}

form .btn {
  font-size: 16px;
  width: fit-content;
  margin-top: 0;
}

/* Footer */

footer .social img {
  width: 30px;
  transition: all 300ms ease;
}

footer .social img:hover {
  transform: scale(1.2);
}

footer {
  /* background: var(--dark-color); */
  background: var(--final-dark-color);
  color: var(--light-color);
  padding: 60px 32px;
}

footer a {
  color: var(--light-color);
}

footer .social {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

footer .top {
  display: flex;
  justify-content: space-between;
}

footer .logo {
  font-size: 24px;
}

.logo-logo {
  font-weight: 700;
  font-size: 18px;
}

.footer-logo{
  height: 48px;
  width: 60px;
}

footer .copyright {
  color: rgba(255, 255, 255, 0.5);
}

/* Hidden elements */

.menu-icon,
.mobile-menu-items,
.mobile-icons-container, .logo-text{
  display: none;
}

@media (max-width: 1290px), (max-height: 640px) {
  h1 {
    font-size: 48px;
  }

  header {
    position: relative;
    align-items: center;
  }

  header .right{
    position: relative;
    display: flex;
    justify-content: center;
  }
  

  .nav-text{
    display: none;
}

img {
  width: 100%;
  display: flex;
  object-fit: cover;
  max-height: 500px;
 
}
  
}

@media (max-width: 800px) {
  .mobile-menu-items {
    display: flex;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    flex-direction: column;
    background: var(--final-dark-color);
    z-index: 800;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transform: translateX(100%);
    transition: all 300ms ease;
  }
  
  /* Display logo-text and hide logo-log */
  .logo-logo{
    display: none;
  }

 .logo-text {
  display: flex;
  
}

/* Logo Text - Djalo Group*/
.logo-text p{
  /*
  font-weight: 600;
  font-size: 22px;
  */
    font-size: 26px;
    font-weight: 700;
    /* color: var(--accent-color) */
    color: var(--final-dark-color)
}

  .mobile-menu-items.active {
    transform: translateX(0);
  }

  .mobile-menu-items a {
    color: var(--light-color);
    
  }

    .mobile-menu-items a:hover {
    /* color: var(--accent-color); */
    color: var(--final-accent-color);
  }
  

  .mobile-menu-items .close-icon {
    filter: brightness(0) invert(1);
    position: fixed;
    top: 18px;
    right: 32px;
    cursor: pointer;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
    padding: 2px;
    width: 30px;
    
  }

  .menu-icon-img{
    border-radius: 0;
  }

  h1 {
    font-size: 36px;
    line-height: 120%;
  }

  .default-container {
    max-width: 700px;
  }

  h2 {
    font-size: 28px;
    line-height: 130%;
  }

  h3 {
    font-size: 20px;
  }

  nav .menu-items {
    display: none;
  }

  .nav-text{
    display:none;
  }

  /* Header */

  header .right {
    position: relative;
    display: flex;
    justify-content: center;
  }

  header {
    flex-direction: column-reverse;
    height: auto;
    gap: 20px;
    max-height: fit-content;
    padding-bottom: 60px;
  }

  header .right img {
    width: 70%;
    height: auto;
    border-radius: 0 0 30% 30%;
    margin-top: 10px;
  }

  header .left {
    max-width: 100%;
  }

  /* Inspo */
 .inspo-text-p{
    font-size: 22px;
 }


  /* Featured */

  .featured .logos {
    gap: 36px;
  }

  .featured img {
    height: 28px;
  }

  /* About */

  #about .default-container {
    flex-direction: column;
  }

  .features-container {
    flex-direction: column;
  }

  /* Why Choose Us Section */

  #why .default-container {
    flex-direction: column;
  }

  /* Contact */

  form .group {
    flex-direction: column;
  }

  /* Footer */

  footer .top {
    flex-direction: column;
  }

  footer {
    padding: 40px 0;
  }

  .footer-left{
    padding: 10px 0;
  }

  footer .copyright {
    margin-top: 40px;
  }


}

/* Fade-in animation */

/* Animation  */
@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.fadeInUp-animation {
  animation: 1.8s fadeInUp;
}
