:root {
    --background-color: rgb(7,12,26);
    --border-color: rgba(255, 255, 255, 0.15);
    --color-contrast: rgb(255, 191, 248);
}

* {
    box-sizing: border-box;
    margin: 0;
}

body {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

header, h1, h2, h3, a, p, span, li {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: white;
}

h1 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem; 
    line-height: 2.6rem;
}

h2 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2.5rem; 
    line-height: 2.6rem;
}

h3 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem; 
}


/* Scoll Bar */

::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgb(0, 0, 0); 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); 
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: white; 
}





/* Navigation */

nav {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

nav > .nav-section {
    padding: 3rem 2rem;
    display: flex;
    gap: 1rem;
    border-left: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
}

nav > .nav-section a {
    text-decoration: none;
}

nav a.icon-link {
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 400ms ease;
    cursor: pointer;
}

#nav-link-section a.icon-link:hover, #nav-link-section a.icon-link.active {
    border-bottom: 1px solid white;
}

#nav-header-section {
    justify-content: flex-start;
}

#nav-link-section {
    gap: 6rem;
    display: flex;
}

a.icon-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.icon-link > span {
    white-space: nowrap;
}

a.icon-link i {
    color: var(--color-contrast);
}

#nav-link-section a:nth-child(1) i {
    color: rgb(255, 255, 255);
}

#nav-link-section a:nth-child(2) i {
    color: rgb(255, 175, 175);
}
#nav-link-section a:nth-child(3) i {
    color: rgb(255, 255, 175);
}
#nav-link-section a:nth-child(4) i {
    color: rgb(175, 255, 175);
}
#nav-link-section a:nth-child(5) i {
    color: rgb(215, 215, 255);
}

#nav-header-section {
    flex-basis: calc(100% / 3 * 2);
    display: flex;
    flex-direction: column;
}

#nav-social-section {
    gap: 3rem;
}

#nav-social-section, #nav-contact-section {
    flex-grow: 1;
}



/* Content */

main {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

main > article {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: minmax(0, 1fr) 120px;
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 400ms ease;  
}

.scroller {
    height: 100%;
    overflow-y: auto;
}

main > article > .article-section {
    height: 100%;
    display: flex;
}

main > article > .article-image-section {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


main > article > .article-section img {
    width: 100%;
    object-fit: contain;
    object-position: center;
}

main > article > .article-description-section,
main > article > .article-nav-section {
    border-left: 1px solid var(--border-color);
}

main > article > .article-title-section,
main > article > .article-nav-section {
    border-top: 1px solid var(--border-color);
}

main > article > .article-description-section {
    font-size: 1.5rem;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
  }

main > article > .article-title-section {
    align-items: center; 
    justify-content: space-between;
    padding: 2rem 4rem;
  }
  
main > article > .article-title-section * {
    color: white;
}



main > article[data-status="inactive"] {
    transform: translateX(-100%);
    transition: none;
}

main > article[data-status="active"] {
    transform: translateX(0%);
}

main > article[data-status="before"] {
    transform: translateX(-100%);
}

main > article[data-status="after"] {
    transform: translateX(100%);
}
  
main > article[data-status="becoming-active-from-before"] {
    transform: translateX(-100%);
    transition: none;
}

main > article[data-status="becoming-active-from-after"] {
    transform: translateX(100%);
    transition: none;
}


main > article > .article-nav-section > .article-nav-button {
    background-color: transparent;
    flex-grow: 1;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 3rem;
    cursor: pointer;
  }
  
  main > article > .article-nav-section > .article-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.02);
  }
  
  main > article > .article-nav-section > .article-nav-button:nth-child(2) {
    border-left: 1px solid var(--border-color);
  }



  /* Mobile View */

  @media(max-width: 1200px) {    
    #nav-mobile-section {
      flex-basis: calc(100% * 0.75);
    }
  
    #nav-logo-section {
      flex-basis: calc(100% * 0.25);
    }
    
    #nav-link-section {
      flex-basis: calc(100% / 3);
      gap: 3rem;
    }
  
    main {
      overflow-y: auto;
    }
    
    main > article {
      grid-template-columns: none;
      grid-template-rows: 1.5fr repeat(3, 0.75fr) 0.25fr;
      height: max(900px, 100%);
    }
     
    main > article > .article-title-section > h2 {
      font-size: 3rem; 
      line-height: 2.6rem;
    }
    
    main > article > .article-title-section > i {
      font-size: 3rem; 
    }
    
    main > article > .article-description-section,
    main > article > .article-nav-section {
      border-left: none;
    }
  
    main > article > .article-image-section {
      order: 1;
    }
    
    main > article > .article-title-section {
      border-bottom: 1px solid var(--border-color);
      order: 2;
    }
    
    main > article > .article-description-section {
      justify-content: center;
      order: 3;
    }
    
    main > article > .article-nav-section {
      border-bottom: 1px solid var(--border-color);
      order: 4;
    }
  }
  
  @media(max-width: 800px) {  
    nav {
      justify-content: space-between;  
    }
    
    nav[data-toggled="true"] > #nav-mobile-section {  
      transform: translateY(0%);
    }
  
    nav[data-toggled="true"] > #nav-toggle-button {
      border-left: none;
    }
  
    nav[data-transitionable="true"] > #nav-mobile-section {
      transition: transform 400ms ease;
    }
    
    nav .nav-section {
      border-left: none;
      padding: 1.5rem 1rem;
    }
    
    #nav-logo-section > a > i {
      font-size: 1.5rem;
      margin-left: 1rem;
    }
    
    #nav-mobile-section {
      background-color: var(--background-color);
      flex-direction: column;
      height: 100vh;
      width: 100vw;
      position: fixed;
      transform: translateY(-100%);
    } 
    
    #nav-toggle-button {
      display: flex;
    }  
    
    #nav-link-section {
      flex-basis: 60%;
      flex-direction: column;
      gap: 4rem;
    }
    
    #nav-link-section > a {
      font-size: 3rem; 
    }
    
    #nav-social-section > a {
      font-size: 2rem; 
    }  
    
    #nav-contact-section {
      padding-bottom: 4rem;
    }
    
    main > article {
      grid-template-rows: 1fr repeat(4, 0.5fr);
      height: max(700px, 100%);
    }
    
    main > article > .article-title-section {
      padding: 2rem;
    }
    
    main > article > .article-title-section > h2 {
      flex-basis: 70%;
      font-size: 1.75em; 
      line-height: 1.5rem;
    }
    
    main > article > .article-title-section > i {
      font-size: 2rem; 
    }
    
    main > article > .article-description-section {
      padding: 2rem;
    }
    
    main > article > .article-description-section > p {
      font-size: 1rem;
    }
  }