@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* icons */
@font-face {
    font-family: "icons";
    src: url("fonts/icons.woff2") format("woff2"),
        url("fonts/icons.ttf") format("truetype"),
        url("fonts/icons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
@font-palette-values --palette0 {
    font-family: "icons";
    base-palette: 0
}

.icon {
    /* Use !important to prevent extensions from overriding this font. */
    font-family: "icons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Enable Ligatures ================ */
    letter-spacing: 0;
    -webkit-font-feature-settings: "liga";
    -moz-font-feature-settings: "liga=1";
    -moz-font-feature-settings: "liga";
    -ms-font-feature-settings: "liga" 1;
    font-feature-settings: "liga";
    -webkit-font-variant-ligatures: discretionary-ligatures;
    font-variant-ligatures: discretionary-ligatures;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variables */
:root {
    --main-bg-color: #142c29;
    --section-bg-color1: #657f7b;
    --section-bg-color2: #FFFFFF;
    --text-color1: #2dff5f;
    --text-color2: #ffffff;
    --overlay-color: rgba(0,0,0, 0.9);
    --overlay-color-alt: rgba(0,0,0);
    --shadow-color-1: #CCC;
    --shadow-color-2: #888;
    --shadow-color-3: #444;
    --shadow-color-4: #000;
}  

html {
    scroll-behavior: smooth;
}

body{
    background-color: var(--main-bg-color);
    color: var(--text-color1);
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    padding: 0;
    margin: 0;
}

*, :before, :after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box; 
}

/* Generic styles */
.hidden {
    opacity: 0;
    filter: blur(0.5rem);
    transition: all 1s;
}

.hide-caret {
    display: none;
    /* opacity: 0; */
}

.show {
    opacity: 1;
    filter: blur();
}

a {
    color: var(--text-color1);
    text-decoration: none;
    background:
    linear-gradient(
        to right,
        var(--text-color1),
        var(--text-color1)
    ),
    linear-gradient(
        to right,
        var(--text-color2),
        var(--text-color2)
    );

    background-size: 100% 0.2rem, 0 0.2rem;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    will-change: color;
    transition: color, background-size 400ms;
}

a:hover {
    color: var(--text-color2);
    background-size: 0 0.2rem, 100% 0.2rem;
}

/* HEADER SECTION */
header {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
}

h1 {
    font-family: "Courier Prime", monospace;
    font-size: clamp(2.5rem, -0.875rem + 8.333333vw, 6rem);
    color: var(--text-color1);
    text-align: center;
    position: relative;
    transition: 0.5s; /* Add a transition effect (when scrolling - and font size is decreased) */
}

#logo{
    font-family: "Courier Prime", monospace;
    font-size: 1.5em;
    top: 1rem;
    left: 1rem;
    position: fixed;
    cursor: pointer;    display: inline-flex;
}

#logo:before {
    content: "{";
    position: relative;
    left: -0.2rem;
    top: 0;
}

#logo:after {
    content: "}";
    position: relative;
    right: -0.2rem;
    top: 0;
}

#logo a {
    color: var(--text-color1);
    text-decoration: none;
    background: none;

    /* background-size: 100% 0.2rem, 0 0.2rem;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    will-change: color;
    transition: color, background-size 400ms; */
}

h1:before {
    content: "{";
    position: relative;
    left: -0.2rem;
    top: 0;
}

h1:after {
    content: "}";
    position: relative;
    right: -0.2rem;
    top: 0;
}

h1 span {
    /* border-right: clamp(0.25rem, -0.875rem + 5.333333vw, 1rem) solid; */
    animation: caret 1s steps(1) infinite;
}

/*  */
h2 {
    font-size: clamp(2.5rem, -0.875rem + 8.333333vw, 3rem);
    color: var(--text-color2);
    margin: 1rem 0;
    line-height: 150%;
}

h3 {
    font-size: clamp(2rem, -0.875rem + 8.333333vw, 2.5rem);
    color: var(--text-color2);
    margin: 1rem 0;
    line-height: 150%;
}

h2::after,
h3::after {
    content: "";
    display: block;
    width: 50%;
    height: 0.2rem;
    background-color: var(--text-color2);
    transition: width 3s;
    /* margin-top: -0.5rem; */
}

h2.show::after,
h3.show::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.2rem;
    background-color: var(--text-color2);
}

h4 {
    font-size: clamp(1.5rem, -0.875rem + 8.333333vw, 2rem);
    color: var(--text-color2);
    margin: 1rem 0;
    line-height: 150%;
}

p {
    font-size: clamp(1rem, -0.875rem + 8.333333vw, 1.5rem);
    color: var(--text-color2);
    margin: 1rem 0;
    line-height: 150%;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    margin: 1rem 0;
    }

.memoji {
    position: relative;
}

.memoji img {
    position: relative;
    width: clamp(10rem, -0.5rem + 15.333333vw, 25rem);
}

#intro_anim {
    position: relative;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 3.75rem;
    z-index: 100;    
    background-color: var(--main-bg-color);
}

#nav_trigger {
    position: absolute;
    position: fixed;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    cursor:pointer;
}

.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 101;
    top: 0;
    left: 0;
    background-color: var(--overlay-color-alt);
    background-color: var(--overlay-color);
    overflow-y: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.overlay a {
    padding: 2rem;
    text-decoration: none;
    font-size: 2rem;
    color: var(--text-color1);
    display: block;
    cursor: pointer;
    will-change: color;
    transition: color, background-size 400ms;
}
  

.overlay a:hover {
    color: var(--text-color2);
    background-size: 0 0.2rem, 100% 0.2rem;
}
  
.overlay .closebtn {
    padding: 0;
    position: absolute;
    top: 0;
    right: 1rem;
    font-size: 3.5rem;
    background: none;
    line-height: 3.5rem;
}

/* sub nav items */

ul.sub-navigation {
    display: flex;
    flex-direction: column;
    place-items: center;
    gap: 2rem;
    margin: 2rem auto;
}

ul.sub-navigation li a {
    font-size: 1.25rem;
}



ul.sub-navigation li:before {
    content: "#";
    position: relative;
    left: -0.5rem;
    top: 0;
    font-size: 1.25rem;
}
ul.sub-navigation li:hover:before {
    color:#FFFFFF;
}

/* ul.sub-navigation li:after {
    content: "]";
    position: relative;
    right: -0.2rem;
    top: 0;
    font-size: 1.75rem;
} */

/* MAIN */
main {
}

/* Section styling */
section {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
    background-color: var(--section-bg-color1);
    padding: 2rem;
}

section > div {
    max-width: 75rem;
    margin: 0 auto;
}

section:nth-child(even) {
    background-color: var(--section-bg-color2);
}

/* grid/blocks set up */

.full-width-section {    
    width: 100%;
    display: grid;
    align-content: start;
    gap: 1rem;
    grid-auto-flow: row;
}

.bordered-content {  
    display: grid;
    /* place-items: center; */
    /* align-content: start; */
    height: 100%;
    background:rgba(0,0,0, 0.6);
    border: .2rem solid white;
    border-radius: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 0 0 1px var(--shadow-color-1),
        0 0 0 2px var(--shadow-color-2),
        0 0 0 3px var(--shadow-color-3),
        0 0 0 4px var(--shadow-color-4);
}

/* clients */

.clients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    padding: 2rem 0;
    border-top: 2px solid var(--text-color2);
}

.clients-list--item {
    width: 100%;
    max-width: 200px;
}

.clients-list--item img {
    width: 6rem;
    height: auto;
    transition: filter 0.5s, transform 0.5s;
}

.clients-list--item.grayscale img {
    filter: grayscale(1) contrast(1.5);
}

.clients-list--item.invert img {
    filter: invert(1);
}

.clients-list--item.whiteout img {
    filter: contrast(0) brightness(100);
}

.clients-list--item img:hover {
    filter: drop-shadow(5px 5px 30px #FFFFFF);
    transform: scale(1.1);
}

.clients-list--item.grayscale img:hover {
    filter: grayscale(0) contrast(1) drop-shadow(5px 5px 30px #FFFFFF);
    transform: scale(1.1);
}

.clients-list--item.invert img:hover {
    filter: invert(0) drop-shadow(5px 5px 30px #FFFFFF);
    transform: scale(1.1);
}

.clients-list--item.whiteout img:hover {
    filter: contrast(1) brightness(1) drop-shadow(5px 5px 30px #FFFFFF);
    transform: scale(1.1);
}



/* About me */

.about-me-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    padding: 2rem 0;
}

.about-me-list.personal{
    display: grid;
    grid-template-columns: none;
    gap: 2rem;
    align-items: center;
    justify-items: flex-start;
    width: 100%;
    padding: 2rem 0;
}

.about-me-list--item {
    width: 100%;
    font-size: clamp(1.5rem, -0.875rem + 8.333333vw, 2rem);
    color: var(--text-color2);
}
.about-me-list--item img {
    width: clamp(1.5rem, -0.875rem + 8.333333vw, 2rem);
}

.about-me-list--item .grayscale {
    filter: brightness(1) contrast(1.5) grayscale(1);
}

.about-me-list--item .whiteout {
    filter: contrast(0) brightness(100);
}

.about-me-list--item .whiteout-invert {
    filter: brightness(2) contrast(100) grayscale(1) invert(2);
}

.about-me-list--item .personal-icon .icon-info {
    display: contents;
    font-size: 1rem;
    color: var(--text-color2); 
    font-size: 0.75rem;
}

/* Footer */
footer {
    display: grid;
    place-items: normal;
    align-content: normal;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    background-color: var(--main-bg-color);
    padding: 2rem;
}

.memoji2 {
    position: relative;
}

.memoji2 img {
    position: relative;
    width: clamp(10rem, -0.5rem + 15.333333vw, 25rem);
}

/* contact me */
section.contact-me-section {    
    display: grid;
    place-items: flex-start;
    align-content: center;
    min-height: 3rem;
    background-color: var(--main-bg-color);
    padding: 0;
    max-width: 100%;
    /* margin: 0 auto; */
}

.contact-me-section .contact-me--content {  
    grid-auto-flow: row;
}

/* media queries */

@media screen and (min-width: 480px) {      
    
    ul.sub-navigation {
        flex-direction: row;
    }

    .about-me-list.personal {       
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); 
        justify-items: center;
    }

    .about-me-list--item .personal-icon .icon-info {
        display: none;
    }

    .contact-me-section .contact-me--content {  
        grid-auto-flow: column;
    }
    

    .clients-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media screen and (max-width: 768px) {

    
    footer {
        padding: 2rem 2rem 0 2rem;
    }

 } 

@media screen and (min-width: 1200px) {

    
    footer {
        padding: 2rem 0 0 0;
    }

 } 
    
    

/* animations */

  
@keyframes caret {
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* nav */

  @media screen and (max-height: 450px) {
    .overlay {overflow-y: auto;}
    .overlay a {font-size: 1.5rem}
    .overlay .closebtn {
        font-size: 2rem;
        top: 0x;
        right: 1rem;
    }
  }

  /* reduced motion */
  @media (prefers-reduced-motion) {
    /* styles to apply if a user's device settings are set to reduced motion */
  }