@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400;600;800&family=Teko:wght@500;600&display=swap');

:root {
    --df-margin: 4rem;
    --df-padding: 4rem;

    --sb-width: 300px;

    --fs-200: .775rem;
    --fs-300: .975rem;
    --fs-400: 1.125rem;
    --fs-500: 1.25rem;
    --fs-600: 1.5rem;
    --fs-700: 1.75rem;
    --fs-800: 2rem;
    --fs-1200: 3rem;
    --fs-2300: 5.75rem;

    --bg-main: white;
    --bg-dark: rgb(23, 21, 21);
    --dark-01: rgba(0, 0, 0, 0.05);
    --dark-02: rgba(0, 0, 0, 0.025);
    --dark-03: rgba(0, 0, 0, 0.1);
    --dark-04: rgba(0, 0, 0, 0.2);
    --primary: #77D071;
    --secondary: #565656;
    --warning: #ffa034;
}

/* Box sizing rules */
* , *:before, *:after { 
  box-sizing:border-box; 
  -moz-box-sizing:border-box; 
  -webkit-box-sizing:border-box; 
  -ms-box-sizing:border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
html {
    scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  max-width: 100vw;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: Poppins;
  font-size: var(--fs-400);
  color: rgba(0, 0, 0, 0.7);
  background-color: rgba(7, 7, 7, 0.95);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* utils */
.selectDisable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.selector {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.flex {
  display: flex;
  gap: var(--gap, 1rem);
}
.grid {
  display: grid;
  gap: var(--gap, 1rem);
}
.column {
  flex-direction: column;
}
.fw-xthin {
    font-weight: 100;
}
.fw-thin {
    font-weight: 200;
}
.fw-normal {
    font-weight: 400;
}
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 300,
  'GRAD' 0,
  'opsz' 48
}

main {
    height: 100vh;
    width: 100vw;
    margin: 0;
    background-image: linear-gradient(to right, rgba(11, 11, 11, 0.95) 0 100%), url("../img/martin-forster-9_-iUACvPko-unsplash.jpg");
    background-position: center 0%;
    background-size: cover;
    position: relative;
    z-index: ; /*2*/
    transition: transform .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    background-color: white;
}
/*nav*/
.nav-button {
    position: fixed;
    width: 5rem;
    height: 5rem;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background-color: var(--bg-main);
    outline: none;
    border: none;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    transition: bottom .5s cubic-bezier(0.8, 0.17, 0.17, 1.59), transform .4s ease-in-out;
    z-index: 3;
}
.nav-button:hover {
    bottom: 4rem;
    transform: translateX(-50%) scale(1.06);
}
.nav-button:active {
    transform: translateX(-50%) scale(0.94);
}
.nav-text {
    opacity: .8;
    font-size: var(--fs-1200);
    user-select: none;
    cursor: crosshair;
    transition: transform .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
}
nav {
    height: 50vh;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    user-select: none;
}
.nav-header {
    font-size: var(--fs-600);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    margin-left: 1rem;
    transform: translateY(-135%) scale(.9);
    transition: all .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    align-items: center;
    gap: .5rem;
    opacity: 0;
}
.contact {
    cursor: pointer;
    transform: scale(1);
    transition: transform .6s cubic-bezier(0.31, 0.25, 0.19, 1.07);
}
.contact:hover {
    opacity: .9;
    transform: scale(1.09);
}
.contact:active {
    transform: scale(.96);
}
.nav-links {
    margin-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 35vh;
    transform: translateY(100%) scale(.9); /*70*/
    transition: transform .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    overflow-y: hidden;
    align-items: center;
    scroll-behavior: smooth;
}
.nav-links::-webkit-scrollbar-track {
    position: absolute;
    height: 3px;
    width: 1px;
    padding: 2px 0;
    background-color: var(--dark-05);
}
.nav-links::-webkit-scrollbar {
    height: 0px;
    width: 1px;
    padding: 2px 0;
    background-color: var(--dark-05);
    transition: height .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
}
.nav-links:hover::-webkit-scrollbar {
    height: 10px;
}
.nav-links::-webkit-scrollbar-thumb {
    border-radius: 10px;
    height: 1px;
    width: 1px;
    padding: 1rem;
    box-shadow: inset 0 0 6px rgba(0,0,0,.1);
    background-color: rgba(29, 29, 29, 0.9);
}
.nav-links a {
    text-decoration: none;
}
.nav-link {
    transform: scale(1);
    opacity: .7;
    cursor: pointer;
    transition: all .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    z-index: 2;
    scroll-snap-align: center;
}
.nav-link:hover {
    opacity: 1;
    transform: scale(1.09);
}
.nav-link:active {
    opacity: 1;
    transform: scale(.96);
}
.nav-link:hover > .link-img {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.link-label {
    font-size: var(--fs-600);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
}
.link-img {
    border-radius: 10px;
    max-width: 350px;
    min-width: 325px;
    max-height: 175px;
    aspect-ratio: 1.8/1;
    object-fit: cover;
    user-select: none;
}

.intro {
    gap: .5rem;
    align-items: center;
    justify-content: center;
    height: 100vh;
    transform: translateY(0);
    transition: transform .6s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    user-select: none;
}
.intro-text {
    margin-top: -1rem;
    font-size: var(--fs-400);
    font-weight: 600;
    color: white;
}
.gradient {
    background: linear-gradient(242deg, #ffffff, #ffffff, #ffffff, #fbfbfb, #ffffff, #ffffff, #c37ae4, #55e499, #558be4);
    background-size: 1800% 1800%;
    -webkit-animation: gradient 5s ease infinite;
    -moz-animation: gradient 5s ease infinite;
    animation: gradient 5s ease infinite;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    font-size: var(--fs-2300);
}
@-webkit-keyframes gradient {
    0%{background-position:88% 0%}
    50%{background-position:13% 100%}
    100%{background-position:88% 0%}
}
@-moz-keyframes gradient {
    0%{background-position:88% 0%}
    50%{background-position:13% 100%}
    100%{background-position:88% 0%}
}
@keyframes gradient {
    0%{background-position:88% 0%}
    50%{background-position:13% 100%}
    100%{background-position:88% 0%}
}
.pill {
    background-color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark-05);
    opacity: .8;
}
.warning {
    background-color: var(--warning);
}



body[data-toggle="true"] > main {
    transform: translateY(-50%);
}
body[data-toggle="true"] > .nav-button > .nav-text {
    transform: rotate(45deg);
}
body[data-toggle="true"] > nav > .nav-header {
    transform: translateY(25%) scale(1);
    opacity: 1;
}
body[data-toggle="true"] > nav > .nav-links {
    transform: translateY(-10%) scale(1);
}
body[data-toggle="true"] > main > .intro {
    position: relative;
    transform: translateY(25%) scale(.9);
    z-index: 1;
}
.backdrop {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.867);
    display: none;
    z-index: 4;
}
.modal {
    position: fixed;
    background-color: red;
    transform: translate(-100%, 100%) scale(0);
    width: max(50%, 300px);
    max-height: 90vh;
    border-radius: 15px;
    z-index: 5;
    opacity: 0;
    transition: all .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    background-color: rgb(14, 14, 14);
    overflow: hidden;
}
.modal-header {
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 5px 5px 0 0;
    color: white;
    font-size: var(--fs-600);
    font-weight: 600;
}
.modal-close {
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    border-radius: 50%;
    height: 35px;
    width: 35px;
    aspect-ratio: 1/1;
    transition: transform .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
    cursor: pointer;
}
.modal-close:hover {
    transform: rotate(-45deg) scale(1.09);
    background-color: rgba(25, 25, 54, 0.25);
}
.modal-close:active {
    transform: rotate(45deg) scale(.96);
    background-color: rgba(25, 25, 54, 0.25);
}
.modal > .modal-body > .image {
    margin: auto;
    width: 90%;
}
.modal > .modal-body > .image > .modal-img {
    border-radius: 10px;
    width: 100%;
    height: 30%;
    object-fit: cover;
    user-select: none;
}
.modal > .modal-body > .body-text {
    color: white;
    opacity: .7;
    padding: 0 1rem 1rem;
    font-weight: 400;
    overflow-y: scroll;
}
.modal > .modal-body > .body-text::-webkit-scrollbar-track {
    height: 3px;
    width: 1px;
    padding: 2px 0;
    background-color: var(--dark-05);
}
.modal > .modal-body > .body-text::-webkit-scrollbar {
    height: 0px;
    width: 1px;
    padding: 2px 0;
    background-color: var(--dark-05);
    transition: height .5s cubic-bezier(0.31, 0.25, 0.19, 1.07);
}
.modal > .modal-body > .body-text:hover::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}
.modal > .modal-body > .body-text::-webkit-scrollbar-thumb {
    border-radius: 10px;
    height: 1px;
    width: 1px;
    padding: 1rem;
    box-shadow: inset 0 0 6px rgba(0,0,0,.1);
    background-color: rgba(29, 29, 29, 0.9);
}
.modal > .modal-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    padding: .75rem;
    background-color: rgba(29, 29, 29, 0.9);
    color: white;
}
.show {
    display: block;
}
.display {
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width:480px)  {
    main {
        background-image: linear-gradient(to right, rgba(11, 11, 11, 0.95) 0 100%), url("../img/martin-forster-9_-iUACvPko-unsplash-rotate.jpg");
    }
    .modal {
        width: 95%;
    }
}