/* Code: Paulo Toledo */

@charset "UTF-8";

:root {
    /* Color Palette */
    --clr-txt-dark: rgb(45, 45, 45);
    --clr-txt-light: rgb(230, 230, 230);
    --clr-txt-lb: rgba(255, 255, 255, 0.7);
    --clr-dark: rgb(0, 0, 0);
    --clr-darkOverlay: rgba(0, 0, 0, 0.8);
    --clr-light: rgb(230, 230, 230);
    --clr-green: rgb(123, 244, 0);
    --clr-greenOverlay: rgba(17, 34, 0, 0.7);
    --clr-purple: rgb(112, 9, 218);
    --clr-purpleOverlay: rgba(15, 0, 31, 0.7);
    --clr-blue: rgb(8, 121, 215);
    --clr-glow: rgb(195, 255, 85);
    /* Text */
    --txt-body: normal normal 400 1rem/1.4 "Intel One Mono", monospace;
    --txt-bodyHeavy: normal normal 600 1.2rem/1.6 "Intel One Mono", monospace;
    --txt-nav: normal normal 300 1.2rem/1.7 "Intel One Mono", monospace;
    --txt-masthead: italic normal 600 4rem/1 "Inter", sans-serif;
    --txt-h1: italic normal 100 3.6rem/1.5 "Inter", sans-serif;
    --txt-h2: normal normal 300 1.8rem/1 "Intel One Mono", monospace;
    --txt-h3: normal normal 300 1.4rem/1 "Intel One Mono", monospace;
    --txt-small: normal normal 400 0.8rem/1.7 "Intel One Mono", monospace;
    --txt-footer: normal normal 400 0.8rem/2 "Inter", sans-serif;
}

/* :::::::::::::::::::::::::::::::::::::::::::::: MAIN */

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

* {
    box-sizing: border-box;
}

section[id] {
    scroll-margin-top: 64px;
}

header {
    display: flex;
    position: sticky;
    top: 0;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 64px;
    background-color: black;
    z-index: 100;
}

body {
    width: 100%;
    font-family: "Inter", sans-serif;
    color: var(--clr-txt-light);
    margin: 0;
    background-color: var(--clr-dark);
}

footer {
    width: 100%;
}

h1 {
    font: var(--txt-h1);
}

h2 {
    font: var(--txt-h2);
}

h3 {
    font: var(--txt-h3);
}

p, ul, li {
    font: var(--txt-body);
}

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

a:hover {
    font-weight: 600;
    color: var(--clr-glow);
}

/* :::::::::::::::::::::::::::::::::::::::::::::: MAIN DIVS */

.maincontnr {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.static64 {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-green);
}

.static64 img {
    width: 36px;
    height: auto;
    animation: flickerA .4s forwards;
    animation-delay: .08s;
}

.static64title {
    display: flex;
    flex: 0 0 64px;
    height: 96vh;
    align-items: stretch;
    /* justify-content: center; */
    background-color: var(--clr-purple);
}

.static64dump {
    display: flex;
    flex: 0 0 64px;
    /* height: 96vh; */
    align-items: stretch;
    /* justify-content: center; */
    background-color: var(--clr-purple);
}

.flexcontent {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    flex: 1;
    animation: flickerB .4s forwards;
    animation-delay: .12s;
}

.static256 {
    display: flex;
    flex: 0 0 256px;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-green);
    animation: flickerA .4s forwards;
    animation-delay: .04s;
}

.static256title {
    display: flex;
    flex: 0 1 256px;
    height: 96vh;
    align-items: flex-start;
    /* justify-content: flex-start; */
    background-color: var(--clr-blue);
}

/* :::::::::::::::::::::::::::::::::::::::::::::: MASTHEAD */

.flexcontentmasthead {
    display: flex;
    flex-flow: column;
    flex-wrap: nowrap;
    flex: 1;
    /* justify-content: space-between; */
    animation: flickerB .6s forwards;
    animation-delay: .2s;
}

.static256masthead {
    display: flex;
    flex-flow: column;
    flex: 0 0 256px;
    height: 96vh;
    justify-content: space-between;
    background-color: var(--clr-green);
    animation: flickerA .4s forwards;
    animation-delay: .1s;
}

.mastheadimg {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin: 0;
    animation: flickerB .6s forwards;
    animation-delay: .06s;
}

.mastheadimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mastheadlogo {
    /* transform: rotate(90deg); */
    width: 100%;
    height: auto;
    padding: 2rem;
    margin: 0;
    animation: flickerA .4s forwards;
    animation-delay: .02s;
}

.mastheadtitle {
    font: var(--txt-masthead);
    color: white;
    padding: 1rem 0 0.4rem 1rem;
    animation: flickerB .6s forwards;
    animation-delay: .2s;
}

.mastheadtxt {
    font: var(--txt-body);
    color: white;
    padding: 0 0 0 1rem;
    animation: flickerA .6s forwards;
    animation-delay: .4s;
}

/* :::::::::::::::::::::::::::::::::::::::::::::: BUTTONS */

.btnblktogrn {
    background-color: var(--clr-dark);
    border: none;
    color: white;
    padding: 1rem;
    height: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font: var(--txt-nav);
}

.btnblktogrn:hover {
    background-color: var(--clr-green);
    color: black;
    animation: flickerC 0.1s;
}

.btnblktogrn:active {
    background-color: var(--clr-glow);
}

.btngrntoblk {
    background-color: var(--clr-green);
    border: none;
    color: black;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font: var(--txt-nav);
    width: 100%;
}

.btngrntoblk:hover {
    background-color: black;
    color: white;
    outline: 1px solid var(--clr-green);
    outline-offset: -1px;
    animation: flickerC 0.1s;
}

.btngrntoblk:active {
    background-color: var(--clr-glow);
}

/* :::::::::::::::::::::::::::::::::::::::::::::: TITLES */

.titleverh1 {
    width: 100%;
    writing-mode: vertical-lr;
    font: var(--txt-h1);
    color: rgb(255, 255, 255);
    padding: 1rem 0.4rem 4rem 0.4rem;
    /* background-color: brown; */
}

.titleverh2 {
    width: 100%;
    writing-mode: vertical-rl;
    font: var(--txt-h2);
    color: rgb(255, 255, 255);
    padding: 1rem 0.4rem 4rem 0.4rem;
    /* background-color: brown; */
}

/* :::::::::::::::::::::::::::::::::::::::::::::: LOGOS */

.logos {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    align-content: center;
    padding: 1rem;
    gap: 2rem;
    /* background-color: blue; */
}

.logos img {
    height: 48px;
    width: auto;
    /* background-color: blue; */
}

/* :::::::::::::::::::::::::::::::::::::::::::::: CASE STUDIES */

.modalgallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    max-width: 1280px;
    align-content: center;
    padding: 0 1rem 1rem 0;
    gap: 1rem;
    /* background-color: aqua; */
}

button {
    aspect-ratio: 1;
    overflow: hidden;
    border: none;
    outline: none;
    cursor: pointer;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

button:hover {
    animation: flickerC 0.1s;
}

button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* :::::::::::::::::::::::::::::::::::::::::::::: MODALS */

.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 500;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-greenOverlay);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, var(--clr-purple) 20%, var(--clr-dark) 20%);
    font: var(--txt-body);
    color: var(--clr-txt-light);
    padding: 2rem;
    max-height: 80vh;
    width: 80%;
    max-width: 1024px;
    position: relative;
    animation: flickerB .15s;
}

.modal-body {
    display: flex;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
}

.modal-image {
    align-self: flex-start;
}

.modal-image img {
    width: 420px;
    max-width: 100%;
    display: block;
}

.modal-text {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding-right: 1rem;
    padding-bottom: 4rem;
    max-height: 70vh;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgb(128, 128, 128) transparent;

    &::-webkit-scrollbar {
        width: 6px;
    }
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    &::-webkit-scrollbar-thumb {
        background-color: rgb(128, 128, 128);
        border: 0 solid transparent;
    }
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .modal-body {
        flex-direction: column;
    }
}

/* :::::::::::::::::::::::::::::::::::::::::::::: GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    padding: 0 0 0 1rem;
    gap: 1rem;
    /* background-color: aqua; */
}

.image-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    /* opacity: 0; */
    /* animation: flickerA .4s forwards; */
}

.image-thumb:hover {
    outline: 1px solid var(--clr-purple);
    outline-offset: -1px;
    animation: flickerC 0.1s;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ::::Animation delays for image thumbs:::: */

/* .image-thumb:nth-child(1){animation-delay: .02s;}
.image-thumb:nth-child(2){animation-delay: .04s;}
.image-thumb:nth-child(3){animation-delay: .06s;}
.image-thumb:nth-child(4){animation-delay: .08s;}
.image-thumb:nth-child(5){animation-delay: .1s;}
.image-thumb:nth-child(6){animation-delay: .12s;}
.image-thumb:nth-child(7){animation-delay: .14s;}
.image-thumb:nth-child(8){animation-delay: .16s;}
.image-thumb:nth-child(9){animation-delay: .18s;}
.image-thumb:nth-child(10){animation-delay: .2s;}
.image-thumb:nth-child(11){animation-delay: .22s;}
.image-thumb:nth-child(12){animation-delay: .24s;}
.image-thumb:nth-child(13){animation-delay: .26s;}
.image-thumb:nth-child(14){animation-delay: .28s;}
.image-thumb:nth-child(15){animation-delay: .3s;}
.image-thumb:nth-child(16){animation-delay: .32s;}
.image-thumb:nth-child(17){animation-delay: .34s;}
.image-thumb:nth-child(18){animation-delay: .36s;}
.image-thumb:nth-child(19){animation-delay: .38s;}
.image-thumb:nth-child(20){animation-delay: .4s;}
.image-thumb:nth-child(21){animation-delay: .42s;}
.image-thumb:nth-child(22){animation-delay: .44s;}
.image-thumb:nth-child(23){animation-delay: .46s;}
.image-thumb:nth-child(24){animation-delay: .48s;}
.image-thumb:nth-child(25){animation-delay: .5s;}
.image-thumb:nth-child(26){animation-delay: .52s;}
.image-thumb:nth-child(27){animation-delay: .54s;}
.image-thumb:nth-child(28){animation-delay: .56s;} */

/* :::::::::::::::::::::::::::::::::::::::::::::: CONTACT */

.contactcntnr {
    display: flex;
    flex: 100%;
    align-items: center;
    justify-content: center;
    height: 96vh;
    padding: 6rem 0;
    background-color: var(--clr-green);
}

.contactcntnr img {
    height: 24px;
    width: auto;
}

.text-block {
    width: 100%;
    max-width: 680px;
    /* justify-self: center; */
    padding: 0 2rem 0rem 2rem;
}

.txt-notice {
    font: var(--txt-small);
}

/* :::::::::::::::::::::::::::::::::::::::::::::: FOOTER */

.footercntnr {
    display: block;
    width: 100%;
}

.icons {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    gap: 1.6rem;
    background-color: rgb(40, 40, 40);
}

.icons img {
    height: 24px;
    width: auto;
}

.footertxt {
    display: flex;
    justify-self: center;
    height: 50vh;
    align-items: center;
    max-width: 680px;
    font: var(--txt-footer);
    color: var(--clr-txt-light);
    padding: 0.4rem 0 2rem 0;
    /* background-color: chocolate; */
}

/* :::::::::::::::::::::::::::::::::::::::::::::: LIGHTBOX */

#lightbox{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--clr-purpleOverlay);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#lightbox.open{
    opacity:1;
    visibility: visible;
    animation: flickerB 0.15s;
}

#lightbox img{
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    user-select: none;
    animation: flickerA 0.2s;
    animation-delay: 0.1s;
}

#lightbox button{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    border: none;
    color: var(--clr-txt-lb);
    cursor: pointer;
    font-size: 3rem;
    transition: .2s;
}

#lightbox button:hover{
    color: var(--clr-glow);
}

#lb-prev{
    left: 2rem;
}

#lb-next{
    right: 2rem;
}

body.lightbox-open{
    overflow: hidden;
}

/* :::::::::::::::::::::::::::::::::::::::::::::: AGE GATE */

.gatecontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--clr-dark);
}

#gate-wrapper {
    max-width: 860px;
    background-color: var(--clr-blue);
    padding: 2rem 4rem;
    font: var(--txt-body);
    color: var(--clr-txt-light);
    text-align: left;
}

.gatebtn {
    justify-self: center;
    aspect-ratio: initial;
    border: none;
    cursor: pointer;
    display: block;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: var(--clr-green);
    font: var(--txt-bodyHeavy);
    color: var(--clr-txt-dark);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4)
}

.gatebtn:hover {
    background-color: var(--clr-glow);
}

.gatebtn:active {
    transform: 5px 5px;
    box-shadow: none;
}

.small {
    font: var(--txt-small);
    margin-top: 1rem;
}

.warning-title {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
}

.warning-header {
    font-size: 1.2rem;
    font-weight: 400;
    padding-top: 1rem;
}

.button-wrapper {
    text-align: center;
}

/* :::::::::::::::::::::::::::::::::::::::::::::: ANIMATIONS */

@keyframes flickerA {
    0%   { opacity: 0; }
    20%  { opacity: .2; scale: 1.04;}
    30%  { opacity: 0;}
    40%  { opacity: .8; scale: 0.95; filter: invert(1)}
    50%  { opacity: 0; }
    60%  { opacity: .3; scale: 1.02;}
    70%  { opacity: 0; }
    80%  { opacity: .8; scale: 0.9; filter: grayscale(1);}
    90%  { opacity: 0; }
    100% { opacity: 1; scale: 1; filter: none;}
}

@keyframes flickerB {
    0%   { opacity: 0; }
    10%  { opacity: .6; scale: 0.9; filter: hue-rotate(180);}
    20%  { opacity: 0;}
    35%  { opacity: .8; scale: 1.02;}
    50%  { opacity: 0; }
    60%  { opacity: .4; scale: 0.85; filter: invert(1)}
    75%  { opacity: 0; }
    80%  { opacity: .8; scale: 1.1;}
    90%  { opacity: 0; }
    100% { opacity: 1; scale: 1; filter: none;}
}

@keyframes flickerC {
    0%   { opacity: 0.6; scale: 1.01 0.9; filter: hue-rotate(180);}
    35%  { opacity: 1; scale: 0.9;}
    75%  { opacity: 0.8; scale: 0.9 1.01; filter: invert(1);}
    100% { opacity: 1; scale: 1; filter: none;}
}
