:root {
    --bg-color: rgb(16, 16, 16);
    --border-color: rgba(254, 254, 254, 0.25);
    --highlight-color: #e8b40a;
}

html {
    font-size: 12px !important;
    font-family: "Space Mono", monospace;
}

body {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0px;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, a, p, span {
    font-weight: 800;
    color: white;
    margin-block-start: 0;
    margin-block-end: 0;
}

a {
    text-decoration: none;
    transition: transform .3s;
    white-space: nowrap;
    text-transform: uppercase;
}

a:hover {
    color: var(--highlight-color)
}

/*
 *  NAV SECTION
 */

nav {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

nav > .nav-sec {
    display: flex;
    gap: 1rem;
    border-left: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
}

#nav-logo-sec, #nav-link-sec {
    flex-basis: calc(100% / 3);
}

#nav-social-sec, #nav-contact-sec {
    flex-basis: calc(100% / 6);
}

#nav-logo-sec {
    justify-content: flex-start;
    padding: 1rem 1rem;
    font-size: 3rem;
}

#nav-link-sec {
    gap: 2rem;
}

#nav-social-sec {
    gap: 3rem;
}

#nav-logo-sec > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#nav-logo-sec > a > .nav-logo-title {
    display: flex;
}

#nav-logo-sec > a > .nav-logo-title > .nav-logo-title-short {
    padding: 0rem 0.1rem;
}

#nav-logo-sec > a > .nav-logo-title > .nav-logo-title-long {
    display: none;
}

#nav-logo-sec > a > .nav-logo-title:hover .nav-logo-title-short {
    display: none;
}

#nav-logo-sec > a > .nav-logo-title:hover .nav-logo-title-long {
    display: inline;
    color: var(--highlight-color);
    padding: 0rem 0.1rem;
}

.nav-sec > a > h3 {
    padding: 0.5rem 1.5rem;
    font-size: 1.5rem;
    border-radius: 0.25rem;
}

.nav-sec > a > h3:hover {
    background-color: var(--highlight-color);
}

.nav-sec > a > div > h1, .nav-sec > a > div > h3 {
    font-size: 2.5rem;
}

#nav-social-sec > a {
    padding: 0.5rem
}

#nav-social-sec > a > img {
    width: 2rem;
    transition: transform 0.25s;
}

#nav-social-sec > a > img:hover {
    transform: scale(1.25); 
}    

#nav-contact-sec {
    align-items: stretch;
}

#nav-contact-sec > a {
    flex: 1;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nav-contact-sec > a:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

a > img {
    max-width: 6rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/*
 *  MAIN SECTION
 */

main {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

main > article {
    display: grid;
    height: 100%;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 2fr 1fr;
    position: absolute;
    left: 0px;
    top: 0px;
    transition: transform 500ms ease;
}

main > article[data-status="inactive"] {
    transform: translateX(-100%);
    transition: none;
}
  
main > article[data-status="active"] {
    transform: translateX(0%);
}
  
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-sec {
    display: flex;
    height: 100%;
    border-left: 1px solid var(--border-color);
}

main > article > .article-image-sec,
main > article > .article-description-sec,
main > article > .article-nav-sec {
    border-left: 1px solid var(--border-color);
}

main > article > .article-title-sec,
main > article > .article-nav-sec {
    border-top: 1px solid var(--border-color);
}

main > article > .article-image-sec {
    background-size: cover;
    background-position: center; 
}

main > article >  .article-description-sec {
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem; 
}

main > article:first-child > .article-image-sec {
    background-image: url("articles/article-01.png");
}

main > article:nth-child(2) > .article-image-sec {
    background-image: url("articles/article-02.png");
}

main > article:nth-child(3) > .article-image-sec {
    background-image: url("articles/article-03.png");
}

main > article:nth-child(4) > .article-image-sec {
    background-image: url("articles/article-04.png");
}

main > article > .article-description-sec > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25em;
}

main > article > .article-sec > a {
    width: 100%;
    height: 100%;
    padding: 4rem 8rem;
}
main > article > .article-sec > a > div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

main > article > .article-sec > a > div > h2 {
    text-transform: uppercase;
    font-size: 5rem;
    line-height: 5.5rem;
    white-space: wrap;
    margin: 0px;
    width: 75%;
    transition: transform 0.4s ease-in;
}

main > article > .article-sec > a > div > .article-h2-learnmore {
    position: absolute;
    transform: translateY(200%);
    width: 75%;
    transition: transform 0.5s ease-out;
}

main > article > .article-sec > a > div > img {
    margin-right: unset;
    max-width: 10rem;
    max-height: 10rem;
    transition: transform 0.5s ease-in-out;
}

main > article > .article-sec > a:hover img {
    transform: rotate(90deg);
}

main > article > .article-sec > a:hover h2 {
    transform: translateY(-150%);
}

main > article > .article-sec > a:hover .article-h2-learnmore {
    transform: translateY(0%);
}

main > article > .article-nav-sec > .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-sec > .article-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

main > article > .article-nav-sec > .article-nav-button > img {
    max-height: 50%;
    transition: transform 0.25s ease-in-out;
}

main > article > .article-nav-sec > .article-nav-button-right {
    border-left: 1px solid var(--border-color);
}

main > article > .article-nav-sec > .article-nav-button-left:hover img{
    transform: translateX(-50%);
}

main > article > .article-nav-sec > .article-nav-button-right:hover img{
    transform: translateX(50%);
}
/*
 *  FOOTER SECTION
 */

footer {
    display: flex;
    width: 100%;
}

footer > .footer-sec {
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1rem;
    border-left: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
}

footer > .footer-sec > a, p {
    font-size: 1rem;
    font-weight: 400;
    margin-block-start: 0;
    margin-block-end: 0;
    text-transform: uppercase;
}

#footer-quote-sec {
    flex-basis: calc(100% / 3 * 2);
}

#footer-author-sec {
    flex-basis: calc(100% / 3);
}
