/* GLOBAL */

:root {
  --black: hsla(0, 0%, 7.5%, 1);
  --grey-80: hsla(0, 0%, 10%, 1);
  --grey-70: hsla(0, 0%, 17.5%, 1);
  --grey-60: hsla(0, 0%, 30%, 1);
  --grey-50: hsla(0, 0%, 55%, 1); 
  --grey-40: hsla(0, 0%, 55%, 1); 
  --grey-30: hsla(0, 0%, 85%, 1);
  --grey-20: hsla(0, 0%, 90%, 1);
  --grey-10: hsla(0, 0%, 95%, 1);
  --grey-5: hsla(0, 0%, 97.5%, 1);
  --white: hsla(0, 0%, 100%, 1);
}

::selection {
  background-color: var(--grey-80); 
  color: var(--white); 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;

  font-family: "Inter", sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
  text-underline-offset: 4px;
  font-feature-settings: "zero" 1;

}

body {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  /* overflow: hidden; */
  }  

/* TYPOGRAPHY */

h1 {
  font-size: 160px;
  text-transform: uppercase;
  line-height: 0.85;
  text-align: start;
  color: var(--grey-5);
  font-weight: 550;
}

p, span, a {
  color: var(--grey-60);
  font-size: 13px;
  line-height: 180%;
  font-weight: 350;
}

a {
  text-decoration: underline solid ;
}

  p.body, span.body, a.body {
    color: var(--grey-40);
    line-height: 180%;
    letter-spacing: 0%;
    font-weight: 350;
  }

  p.small, span.small, a.small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0%;
    font-weight: 350;
  }

  p.glyph, a.glyph {
    font-size: 21px;
    font-weight: 200;
    line-height: 1;
    text-decoration: none;
  }

  span.slash {
    color:var(--grey-20);
    font-weight: 350;
  }  

    p.disabled {
      color: var(--grey-30);
    }

    p.tnum, span.tnum, a.tnum, div.tnum {
      font-variant-numeric: tabular-nums;
    }

    p.subs, span.subs, a.subs, div.subs {
      font-feature-settings: "subs" 1;
      vertical-align: sub;
    }

    p.dnom, span.dnom, a.dnom {
      font-feature-settings: "dnom" 1;
    }





/* ADDONS */



/* Projects hover */

/* #pomoziba {
  background-image: url(assets/faruk-suljovic-x-pomozi.ba/Pomozi.ba\ x\ Faruk\ Suljovic\ -\ Screen\ mockup-min.png);
  background-size: cover;
  background-position: center;
} */

/* #pomoziba:hover, #pomoziba.hover-effect {
  background-image: url(assets/faruk-suljovic-x-pomozi.ba/f-suljovic-x-pomozi.ba.gif);
} */


/* Blink */

.blink {
  animation: blink-animation 1.5s infinite;
}

@keyframes blink-animation {
  50% {
    opacity: 0.5;
  } 
  100% {
    opacity: 1; /* Back to visible */
  }
}



/* Animiated gradient */

.animate {
  animation: move-gradient 4s linear infinite;
  background: linear-gradient(to right, var(--white), var(--grey-5), var(--white));
  background-size: 200% 100%; /* Duži prostor za pomeranje */
  background-position: 0% 0%;
  background-repeat: no-repeat;
  height: 100px; 
  width: 100%;
}

@keyframes move-gradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}


/* Animated text */

.animated-text {
  display: flex; /* Postavlja elemente horizontalno */
  width: max-content; /* Dovoljno široko da sadrži sav tekst */
  animation: slide-left 80s linear infinite; /* Beskonačna animacija */
  align-items: center;
  overflow: hidden;
  position: relative;
}

.animated-text h1 {
  margin: 0; /* Bez dodatnih margina */
  white-space: nowrap; /* Sprečava prelamanje teksta */
  padding: 0 20px; /* Razmak između duplikata */
  overflow: hidden;
}

@keyframes slide-left {
  0% {
    transform: translateX(0%); /* Početak animacije */
  }
  100% {
    transform: translateX(-50%); /* Završetak pomeranja */
  }
}



/* Tooltip */

.tooltip, .tooltip-bottom, .tooltip-right, .tooltip-top {
  position: relative;
  display: inline-block;
  }

.tooltiptext {
  visibility: hidden; 
  background-color: var(--grey-5);
  color: var(--black);
  text-align: center;
  padding: 10px 16px;
  border-radius: 2px;
  position: absolute;
  z-index: 1;
  text-wrap: nowrap;
}

.tooltip-bottom .tooltiptext {
  bottom: -48px;
  left: 0;
}

.tooltip-right .tooltiptext {
  bottom: -12px;
  left: 24px;
}

.tooltip-top .tooltiptext {
  bottom: 24px;
  left: 0;
}

.tooltip-bottom:hover .tooltiptext, .tooltip-right:hover .tooltiptext, .tooltip-top:hover .tooltiptext  {
  visibility: visible;  }




/* Dummy */

.dummy {
  width: 96px;
  height: 14px;
  border-radius: 2px;
}

.link-wrapper {
  display: block; /* Omogućava da anchor zauzme ceo prostor */
  text-decoration: none; /* Uklanja podvlačenje teksta */
}







/* CONTENT */

nav {
  transform: rotate(90deg);
  position: fixed; 
  top: 50%; 
  right: -23px; 
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: var(--white);
  opacity: 0; 
  pointer-events: none; /* Sprečava klikove dok nije vidljiv */
  transition: opacity 0.25s ease, pointer-events 0s 0.25s;
}

#col-1, #col-3 {
  padding: 16px 20px;
  border-left: solid 1px var(--grey-10);
  border-right: solid 1px var(--grey-10);
  min-height: 100vh;
  flex: 0; /* Do not grow or shrink */
  white-space: nowrap; /* Prevent content from wrapping */

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: sticky;
  top: 0;
  height: 100vh;

}

  #header-left, #footer-left {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 7px;
  }

  .image-container {
    width: 28px;
    height: 28px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 32px;
}


  #header-right, #footer-right {
    display: flex;
    justify-content: end;
  }

    #title, #place-time-date, #say-hi, #rights {
      display: flex;
      gap: 8px;
      align-items: center;
    }

      #temp-container {
        display: flex;
        width: 43px;
      }

#col-2 {
  padding: 16px 20px;
  min-height: 100vh;
  overflow-y: auto; 
  overflow-x: hidden;
  
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  
  gap: 80px;
  align-items: center;

  scrollbar-width: none; /* For Firefox */

}
  
  #col-2::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
  }

  ::-webkit-scrollbar {
    display: none;
}

  #navbar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--grey-10);
    padding-bottom: 14px;
  }

    .language-selector {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .navbar-group {
      display: flex;
      gap: 3px;
    }

  #footer-center {
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
    }

  .hero {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
  }

    .hero-container-group {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      width: 100%;
      gap: 40px;
    }

    .hero-container {
      display: flex;
      flex-direction: column;
      /* gap: 8px; */
      justify-content: space-between;
      width: 100%;
      flex-wrap: wrap;
      justify-content: start;
      align-items: start;
    }

      #hero-container-description {
        flex-direction: column;
        width: 100%;
        justify-content: space-between;
      }

      #trusted-by {
        text-transform: uppercase;
        color: var(--grey-50);
      }

    .hero-container-row {
      display: flex;
      gap: 8px;
      justify-content: space-between;
      align-items: center;
    }

    .hero-container-row .pill {
      line-height: normal;
      height: 24px;
    }

  .home-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .home-section-title, .home-section-title-left, .home-section-title-right {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  #snaps .home-section-title, #case-study .home-section-title, #thoughts .home-section-title {
    justify-content: space-between;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    /* padding: 20px; */
    /* background-color: var(--grey-5); */
    border-radius: 2px;
    width: 100%;
  }

    .thumbnail, .hero-thumbnail, video {
      background-color: var(--grey-5);
      width: 100%;
      display: flex;
      aspect-ratio: 1 / 1;
      border-radius: 2px 2px 0px 0px;
      display: flex;
      justify-content: end;
      align-items: start;
      filter: grayscale(1);
      background-size: cover;
      background-position: center;
    }

    /* .image-container {
      filter: grayscale(1);
    }

    .image-container:hover {
      transition: 0ms;
    } */

    .project-card:hover .thumbnail, 
    .snap-card:hover .thumbnail,
    .hero-thumbnail:hover,
    video:hover {
      filter: grayscale(0);
      transition: ease-out 250ms;
    }

      .icon-box {
        visibility: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 40px;
        background-color: var(--grey-5);
        color: var(--black);
        border-radius: 1px;
      }

        .icon-box p {
          font-size: 20px;
          font-weight: 200;
          
        }

      .project-card:hover .icon-box, .snap-card:hover .icon-box {
        visibility: visible;
        transition: ease-out;
        transition-duration: 250ms;
      }

    .project-details {
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      background-color: var(--grey-5);
      width: 100%;
      border-radius: 0px 0px 2px 2px;
      align-items: center;
    }

    .project-metadata {
      display: flex;
      gap: 8px;
      align-items: end;
    }

  .snap-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .home-section-row {
    display: flex;
    gap: 20px;
  }

  .article-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .home-section-list-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    border-bottom: var(--grey-10) 1px solid;
    padding: 8px 0px;
  }

    .home-section-list-row div:nth-child(2) {
      display: flex;
      text-align: end;
      justify-content: end;
    }



/* CV */

.hero-2 {
  display: flex;
  gap: 29px;
  background-color: var(--grey-5);
  border-radius: 4px;
  padding: 20px 20px 20px 20px;
}

  .hero-thumbnail, .hero-details {
    width: 50%;
  }

  #cv-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-thumbnail {
    border-radius: 2px;
  }

  .hero-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
  }

    .hero-details .cv-section-list-row:first-child {
      border-top: var(--grey-10) 1px solid;
      padding-top: 5px;
    }

    .hero-details .cv-section-list-row {
      grid-template-columns: 1fr 2fr;
    }

    #about-links {
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }
  

.cv-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.cv-section-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

  .cv-section-title, .cv-section-legend {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .cv-section-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0px;
    width: 100%;
  }

    .cv-section-list-row {
      display: grid;
      grid-template-columns: 50% calc(50% - 72px) 22px;
      gap: 20px;
      justify-content: space-between;
      align-items: start;
      width: 100%;
      border-bottom: var(--grey-10) 1px solid;
      padding: 6px 0px;
      
    }

    .cv-section-list div:first-child {
      padding-top: 0px;
    }

      #experience {
        width: 100%;
        grid-template-columns: 130px calc(50% - 160px) 50%;
      }

        #experience-e-mail {
          display: flex;
          flex-direction: row;
        }

        #experience-years {
          display: flex;
          gap: 10px;
        }

      #skills {
        display: grid;
        grid-template-columns: 1fr;
        padding-top: 5px;
      }
      
        #skills div:first-child {
          justify-self: start;
        }

        .pill {
          border-radius: 64px;
          border-color: black;
          border: solid 0.5px;
          padding: 4px 8px;
          font-size: 11px;
          line-height: 32px;
          white-space: nowrap;
          text-transform: uppercase;
          letter-spacing: -1%;
        }

        .pill-availability {
          display: flex;
          gap: 8px;
          align-items: center;
          height: 28px;
          background-color: var(--grey-5);
          color: var(--grey-60);
          padding: 0px 12px;
          border-radius: 32px;
        }

      #education div:last-child, #recommendations div:last-child {
        justify-self: center; /* Adjust horizontally as needed */
        align-self: start; /* Adjust vertically as needed */
      }

      #recommendations {
        align-items: start;
      }

      .text-chunk {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
      }

      .cv-section .tooltiptext {
        bottom: -10px;
      }






/* CASE STUDY */

#case-study .hero-2 {
  flex-direction: column;
  padding: 20px 20px 29px 20px;
}

  .hero-details .list-row:first-child {
    border-top: var(--grey-10) 1px solid;
    padding-top: 5px;
  }

  .hero-details .list-row {
    grid-template-columns: 1fr 2fr;
  }

.section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.container-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.container-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0px;
  width: 100%;
}

.list-row {
  display: grid;
  grid-template-columns: 50% calc(50% - 72px) 22px;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  width: 100%;
  border-bottom: var(-10) 1px solid;
  padding: 5px 0px;
}

  #about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  #recommendations {
    grid-template-columns: 50% calc(50% - 72px) 22px;
  }




/* INSTEAD OF HOVER - TOUCH DEVICES */

@media (hover: none) {

  .thumbnail, .hero-thumbnail {
    filter: grayscale(0);
  }

  .icon-box {
    visibility: visible !important;
  }

  .tooltip-right, .tooltip-slash {
    visibility: hidden;
  }



}




/* SMALL DESKTOP */

@media only screen and (max-width: 1250px) and (min-width: 1026px) {
  
  .hero-2 {
    flex-direction: column;
    aspect-ratio: unset;
  }

  .hero-thumbnail, .hero-details {
    width: 100%;
  }

  .thumbnail {
    aspect-ratio: 1 / 1 !important;
  }

  .hero-container-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    width: 100%;
    gap: 12px;
  }

  .home-section-row {
    flex-direction: column;
  }

  #article-card-2 {
    display: none;
  }

  /* CASE STUDY */

    .container-image {
      aspect-ratio: 1 / 1;
    }

}





/* MOBILE */

@media only screen and (max-width: 1024px) {


  .navigation, nav {
    right: -47px; 
    padding: 12px 20px;
    border-radius: 1px;
  }

  #col-1, #col-3 {
    margin: 0px;
    padding: 0px;
    flex: 0 0 24px;
    overflow-x: visible;
    overflow-y: auto;
    border-left: none;
    border-right: none;
    display: none;
  }

    #title {
      transform: rotate(90deg);
      transform-origin: top left;
      position: fixed;
      top: 20px;
      left: 28px;
      opacity: 40%;
    }

    #place-time-date {
      transform: rotate(90deg);
      transform-origin: top left;
      position: fixed;
      bottom: 188px;
      left: 28px;
      opacity: 40%;
    }

    #say-hi {
      transform: rotate(90deg);
      transform-origin: top left;
      position: fixed;
      top: 20px;
      right: -162px;
      /* opacity: 40%; */
    }

    #rights {
      transform: rotate(90deg);
      transform-origin: top left;
      position: fixed;
      bottom: 202px;
      right: -196px;
      opacity: 40%;
    }

    .res-sys {
      display: none !important;
    }

  #col-2 {
    padding: 14px 10px;
    gap: 64px;
  }

  #navbar {
    gap: 0px;
    align-items: center;
  }

    .name {
      display: flex !important;
      gap: 7px;
      align-items: center;
    }

    .language-selector {
      gap: 8px;
      display: none;
    }

    .navbar-group {
      gap: 4px;
    }

    .modes {
      gap: 8px !important;
    }
  
  .hero {
    gap: 32px;
  }

  .pill-availability {
    margin-top: 16px;
  }

  .hero-container-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

    #hero-container-description {
      grid-column: 1 / 3;
      gap: 0px;
      justify-content: start;
      text-align: center;
      align-items: center; 
      margin-top: -24px;
    }

      #scroll {
        display: none;
      }

    #about-label {
      visibility: hidden;
    }

    #hero-container-skills {
      display: none;
    }

    #trusted-by {
      text-transform: none;
    }

    #hero-container-clients {
      display: flex;
      flex-direction: row;
      gap: 8px;
      justify-content: center;
      margin-top: -8px;
    }

    #case-study {
      margin-top: 24px;
    }

  .home-section {
    gap: 10px;
  }

  .home-section-row {
    flex-direction: column;
  }

  .thumbnail {
    aspect-ratio: 1 / 1 !important;
  }

  .tooltip-right .tooltiptext {
    bottom: 24px;
    left: 0px;
  }

  .icon-box {
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 36px;
    background-color: var(--grey-5);
    color: var(--black);
    border-radius: 1px;
  }

    .icon-box p {
      font-size: 19px;
      font-weight: 100;
      
    }

  .home-section-row {
    gap: 16px;
  }

  #thoughts .home-section-row {
    flex-direction: column;
  }

  .project-card {
    padding: 0px;
  }

  .project-details {
    /* flex-direction: column; */
    gap: 0px;
    align-items: center;
    padding: 10px 10px;
  }

  .project-metadata {
    flex-direction: row;
    align-items: start;
    gap: 4px;
    flex-wrap: wrap;
    row-gap: 0px;
  }



  /* CV */

  .hero-2 {
    flex-direction: column;
    aspect-ratio: unset;
    padding: 12px 12px 29px 12px;
  }

  .hero-thumbnail, .hero-details {
    width: 100%;
  }

  .hero-thumbnail {
    aspect-ratio: 1 / 1 !important;
  }

  .cv-section-row {
    flex-direction: column;
  }

  #experience {
    grid-template-columns: 64px 1fr 1fr;
  }

  #about {
    align-items: center;
  }

  #about-links {
    align-items: start;
  }

  #experience-years {
    flex-direction: column;
    gap: 0px;
  }

  #experience-e-mail {
    flex-direction: column;
  }

  #article-card-2 {
    display: none;
  }



/* CASE STUDY */

  #case-study .hero-2 {
    padding: 12px 12px 29px 12px;
  }

  .section-images {
    gap: 12px;
  }

  .container-image {
    aspect-ratio: 1 / 1;
  }



}





/* DARK MODE */

body.dark-mode p, body.dark-mode span, body.dark-mode a {
  color: var(--grey-20);
}

body.dark-mode .navigation, body.dark-mode nav  {
  background-color: var(--black);
}

body.dark-mode h1 {
  color: var(--grey-10);
}

body.dark-mode .body {
  color: var(--grey-50);
}

body.dark-mode .slash {
  color: var(--grey-60)
}

body.dark-mode {
  background-color: var(--black);
}

body.dark-mode .hero-2, body.dark-mode .project-thumbnail-rectangle, body.dark-mode .project-thumbnail-square, body.dark-mode .icon-box, body.dark-mode .project-details, body.dark-mode .pill-availability {
  background-color: var(--grey-80);
}

body.dark-mode .tooltiptext {
  background-color: var(--grey-80);
  color: var(--grey-30);
}

body.dark-mode .cv-section-list-row, body.dark-mode .home-section-list-row, body.dark-mode .list-row, body.dark-mode #navbar {
  border-bottom: var(--grey-70) 1px solid;
}

body.dark-mode .hero-details .cv-section-list-row:first-child, body.dark-mode .hero-details .list-row:first-child {
  border-top: var(--grey-70) 1px solid;
}

body.dark-mode #col-1, body.dark-mode #col-3 {
  border-left: solid 1px var(--grey-70);
  border-right: solid 1px var(--grey-70);
}

body.dark-mode .dummy {
  background-color: var(--grey-80);
}

body.dark-mode .thumbnail {
  background-color: var(--grey-80);
}

body.dark-mode .animate {
    background: linear-gradient(to right, var(--black), var(--grey-80), var(--black));
  }

body.dark-mode p.disabled {
    color: var(--grey-60);
  }