*, *:before, *:after {
  box-sizing: inherit;
}

:root{
  --button-padding: 1rem;
  --section-mobile-padding-inline: 0;
  --p-mobile-padding-inline: 2rem;
  --prominent-text-size-desktop: 32px;
  --prominent-text-size-mobile: 18px;
  --hero-elements-gap-dektop: 3rem;
  --square-important-info-wh: 19rem;
  --border-radius-general: 1rem;
  --background-color-box: #dfdfdf;
  --background-color-box-hover: #eeeeee;
  --border-general-box: solid 2px #000;
  --shadow-color-box: #6c6c6c;
  --portrait-height: 14rem;
  --background-color-0: #0a0a0a;
  --background-color-1: #343434;
  --background-color-2: #202941;
  --cta-color: #91dd73;
  --cta-color-hover: #c3f8ae;
  --textfield-border: solid 1px #393939;
  --textfield-bg: #171717;
  --text-color-dark: var(--background-color-box);
  --text-color-h2: #6c6c6c;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color-dark);
  background-color: var(--background-color-0);
  background-repeat: no-repeat;
  overflow-x: hidden;
  display: flex;
  flex-direction: column; 
  scroll-behavior: smooth;
}

.main-container {
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  min-width: 700px;
  max-width: 100vw;
  margin: auto;
  padding-inline: var(--p-mobile-padding-inline);
}

h1, h2, h3{
  font-family: "Russo One", sans-serif;
  margin: 0;
}

h1, h2 {
  font-size: 64px;
  text-align: center;
}

h3{
  font-size: 18px;
  text-align: center;
}

#subheader {
  color: var(--text-color-h2);
}

#upper-part{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  padding-top: 5rem;
}

section {
  width: 100%;
}

  figure#portrait-container{
  display: flex;
  align-items: center;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
  box-sizing: border-box;
} 

img#portrait{
  height: 241.7px;
  width: auto;
  object-fit: initial;
  border-radius: var(--border-radius-general);
}

section#some-info{
  display: flex;
  min-height: var(--portrait-height);
  justify-content: start;
  flex-wrap: wrap;
  gap: 3rem;
  box-sizing: border-box;
}

.text-field{
  width: auto;
  border-radius: var(--border-radius-general);
  box-sizing:border-box;
  padding-inline: 2rem;
  flex: 1;
  border: var(--textfield-border);
  background-color: var(--textfield-bg);
}

.case-studies{
  color: #000;
  width: var(--square-important-info-wh);
  max-height: 276px;
  border-radius: var(--border-radius-general);
  background-color: var(--background-color-box);
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 1rem;
  border: var(--border-general-box);
  box-shadow: -8px 8px var(--shadow-color-box);
  box-sizing: border-box;
  padding-block: 2rem;
}

#collapsibles{
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 1rem;
}

div#figma-box p{
  font-weight: bold;
  width: fit-content;
}

#figma-logo, #linkedin-logo{
  height: 24px;
  width: auto;
}

div#figma-box{
  display: -moz-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#portfolio-links {
  text-align: center;
  display: -moz-flex;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1rem;
}

.case-studies h3 {
  margin: 0;
}

.prominent{
  font-size: var(--prominent-text-size-desktop);
}


a {
  color: var(--text-color-dark);
  font-family: "Helvetica";
}

a.portfolio{
  color: #000000;
  font-weight: bold;
}

a.portfolio:last-of-type {
  margin-right: 0;
}

.hid {
  visibility: hidden;
}

ul {
  font-size: 18px;
  line-height: 32px;
  list-style-image: url('./media/icons/check-solid.svg');
}

.vis {
  visibility: visible;
  animation: fadeIn linear 100ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

p, .info, figcaption {
  font-size: 18px;
  line-height: 1.667;
  margin-top: 25px;
}

figure{
  margin: 0;
}

#important-stuff{
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  box-sizing: border-box;
  border-radius: var(--border-radius-general);
}

.button, .anchor-scroll-button-big {
  position: static;
  text-decoration: none;
  font-family: "Russo One", sans-serif;
  max-width: max-content;
  padding: 20px;
  border-radius: 25px;
}

.primary {
  color: #272829;
  background-color: var(--cta-color);
  transition: background-color 0.3s ease;
}

.primary:hover{
  background-color: var(--cta-color-hover);
}

.primary:active{
  background-color: #00E483;
}

.secondary{
  color: var(--cta-color);
  border: 1px solid var(--cta-color);
}

.secondary:hover{
  background-color: #0b1507;
  color: var(--cta-color-hover);
  border: 1px solid var(--cta-color-hover);
}

.secondary:active{
  background-color: #213f15;
  color: var(--cta-color-hover);
  border: 1px solid var(--cta-color-hover);
}

.anchor-scroll-button-big{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #2ade91;
  border: solid 1px;
  transition: background-color 0.3s ease;
}

.icon-scroll-button{
  height: 1em;
}

.anchor-scroll-button-big:hover {
  background-color: #274337;
}

.anchor-scroll-button-big:active {
  background-color: #152820;
}

/* #bottom-part{
  width: 100%;
  height: 100vw;
} */

.coll-container{
  background-color: var(--background-color-box);
  color: #000;
  max-width: 700px;
  border-radius: 1rem;
  cursor: pointer;
  outline: none;
  padding-block: 2rem;
  border: solid 2px #000;
  box-shadow: -8px 8px var(--cta-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.coll-container h3{
  margin: 0;
}

.coll-container:hover{
  background-color: var(--background-color-box-hover);
  box-shadow: -8px 8px var(--cta-color-hover);
}

img.coll-header-chevron{
  margin-left: 1rem;
  height: 16px;
  transform: 'rotate(0deg)';
  transition: transform 0.3s ease;
}

.coll-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-sizing: border-box;
  padding-inline: 2rem;
}

#g-upa-badge{
  width: 10rem;
  height: auto;
}

img#hcd-process-img{
  width: 100%;
  height: auto;
}

#contact{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}

.buttons-container{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

#status-info {
  display: none;
  color: #ffffff;
  text-shadow: none;
  margin: auto;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 50px;
}

footer {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  margin-top: 4rem;
  bottom: 0;
}

#footer-content{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/************************************************ responsive design **************************/
@media only screen and (max-width: 700px) {
  html, body {
    height: 100%;
    background-image: none;
    padding: 0;
  }

  p, figure{
    padding-inline: var(--p-mobile-padding-inline);
  }

  .main-container {
      width: auto;
      justify-content: flex-start;
      padding: 0;
      margin:0;
      gap: 2rem;
      min-width: 0;
    }

  #upper-part{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    background-color: var(--textfield-bg);
    border-radius: 0 0 5rem 5rem;
    padding: 4rem 0 2rem 0;
    border-bottom: var(--textfield-border);
    /* box-shadow: #6700cf 0 8px 24px; */
    margin-bottom: 2rem;
  }

  section {
    margin-top: 0;
    width: 100vw;
  }

  img#portrait{
    width: 100vw;
    max-width: 300px;
    height: auto;
  }
  
  .prominent{
    font-size: var(--prominent-text-size-mobile);
    text-align: center;
  }

    h1 {
    width: 100%;
    font-size: 40px;
    text-align: center;
  }

    h2 {
    width: 100%;
    font-size: 32px;
    text-align: left;
    white-space: pre-line;
  }

  #contact h2{
    text-align: center;
  }

  #subheader {
    margin-bottom: 0;
    text-align: center;
  }

  h3 {
    margin: 2rem 0 1rem 0;
    text-align: center;
  }

  a{
    font-size: var(--prominent-text-size-mobile);
  }

  section#headers{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    padding-inline: 2rem;
  }

  section#some-info{
    justify-content: center;
    gap: 1rem;
  }

    #important-stuff{
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    padding-inline: 1rem;
    align-content: center;
  }

  .case-studies, .coll-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    color: #1C1C1C;
  }

.case-studies{
  gap: 1rem;
  background-color: var(--background-color-box);
  border-radius: 4px;
  border: none;
}

#collapsibles{
  width: auto;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0;
}

.coll-container, .coll-container:hover{
  border: var(--textfield-border);
  border-radius: var(--border-radius-general);
  gap:0;
  background-color: var(--background-color-box);
  box-shadow: none;
}

.coll-container:active{
  border: var(--textfield-border);
  box-shadow: none;
}

div.coll-content, div.text-field{
  padding-inline: 0;
}

div.text-field{
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border: none;
  padding-block: 2rem;
  gap: 1rem;
  background: none;
}  

div.text-field p{
  margin: 0;
}

 .info {
    width: 100%;
    font-size: var(--prominent-text-size-mobile);
    line-height: 1.667;
  }

  #portfolio-links {
    gap: 2rem;
  }

  ul {
    font-size: var(--prominent-text-size-mobile);
    line-height: 32px;
  }

  a.portfolio{
    color:#212121; 
    margin-right: 0;
  }

  .buttons-container {
    position: relative;
    flex-direction: column;
    align-items: center; 
    gap: 2rem; 
  }

  #contact{
  padding-inline: 1rem;
}

  .button {
    position: relative;
    border-radius: var(--border-radius-general);
    left: 0;
    bottom: 0;
    min-width: 100%;
    text-align: center;
  }

  footer {
    position: relative; 
    margin-top: 2rem; 
  }

  #footer-content, #footer-content a{
    font-size: 16px;
  }
}

