/* SSK 2021 */
@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,400&family=Inconsolata:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --color-white: ghostwhite;
  --color-black: #000000;
  --color-green: #00de91;
  --color-lime: #00d22a;
  --color-yellow: #e4e500;
  --color-fuschia: #f400e4;
  --color-fuschia-lite: #ec0094;
  --color-red-lite: #ff005e;
  --color-red: #ff0000;
  --color-orange: #ff7d01;
  --color-blue: #009aff;
  --color-btn: #006ab1;
  --color-aqua: #43eaff;
  --color-black-lite: #353537;
  --color-gray: #ebebef;

  /* All th first containers highlights */
  --color-accent: var(--color-green);

  --color-accent-shadow: 0px 0px 5px 2px rgba(0, 154, 255, 0.4);
  --color-accent-shadow: 0px 0px 5px 2px rgba(255, 255, 255, 0.4);
  --color-accent-shadow: 0px 0px 5px 2px rgba(0, 222, 145, 0.4);
  --link-color: var(--color-blue);

  /* H2 */
  --color-h2-1: var(--color-white);
  --color-h2-2: var(--color-white);

}

body {
  min-height: 100vh;
  font-size: 1.5em;
  background-color: var(--color-black-lite);
  color: var(--color-white);
  letter-spacing: 0em;
  cursor: default;
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: "Roboto Condensed", sans-serif;
  padding-bottom: 100px; 
}


#g_App {
  position: relative;
  isolation: isolate;

  &::before {
    position: fixed;
    content: '';
    top: -5vh;
    right: -5vw;
    width: 50vh;
    aspect-ratio: 1 / 1;
    pointer-events: none;
    border-radius: 100%;
    z-index: -1;

    background-size: 100% 100%;
    background-position: 0 0,0 0,0 0,0 0,0 0;
    background-image: radial-gradient(18% 28% at 24% 50%,var(--color-fuschia) 7%,#073AFF00 100%),
    radial-gradient(21% 37% at 72% 23%,var(--color-blue) 24%,#073AFF00 100%),
    radial-gradient(35% 56% at 91% 74%,var(--color-lime) 9%,#073AFF00 100%),
    radial-gradient(74% 86% at 67% 38%,var(--color-orange) 24%,#073AFF00 100%),
    linear-gradient(125deg,var(--color-blue) 1%,var(--color-black-lite) 100%);
    filter: blur(50px);
    animation-name: gradient-animation;
    animation-duration: 30s;
    animation-direction: normal;
    animation-iteration-count: infinite;
    
  }
}

@keyframes gradient-animation {
  0% {
    background-size: 100%;
  }
  50% {
    background-size: 20%;
  }
  100% {
    rotate: 360deg;
    background-size: 100%;
  }
}

::selection {
  background-color: transparent;
}

/***************/
/* Scroll Bars */
/***************/

html {
  min-height: 100vh;
  scrollbar-color: var(--color-blue) var(--color-black);
  scrollbar-width: thin;
  background-color: var(--color-black-lite);
}

html::-webkit-box-shadow,
html::-webkit-border-radius,
html::-webkit-scrollbar-thumb,
.modal.meditrac-scroll::-webkit-scrollbar-thumb {
  background-color: var(--color-black);
}

html::-webkit-scrollbar {
  height: 10px;
  width: 8px;
  background-color: var(--color-blue);
}

/**************/
/*   Layout   */
/**************/
.container {
  width: 100%;
  max-width: 1920px;
}

.col-content {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  transform-origin: center top;
  transition: opacity 500ms ease-in-out, transform 500ms 250ms linear;

  &[data-animate="true"]:not(.animate-me) {
    opacity: 0;
    transform: translateY(200px) scale(.6);
  }
}

#ssk_contact {
  position: fixed;
  right: 1em;
  bottom: 2.5em;
  display: block;

  a:hover,
  a:focus-visible {
    background-color: var(--color-white);
    border-color: var(--color-blue);
    color: var(--color-blue);
  }

}

a:not(.btn) {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: var(--color-white);
  transition: color 250ms linear;
  outline: 0;

  &::before,
  &::after {
    position: absolute;
    content: '';
    inset: 0;
    top: auto;
    bottom: -1px;
    height: 2px;
    border-radius: 1em;
    background-color: var(--color-white);
    transition: all 250ms linear;
  }

  &::after {
    width: 0%;
    left: 50%;
    background-color: var(--link-color);
  }

  &:hover,
  &:focus-visible {
    color: var(--link-color);

    &::after {
      left: 0%;
      width: 100%;
    }
  }
}

a.btn {
  font-size: 1em;
  padding: .15em .5em;
  border-radius: 99vw;
  color: var(--color-white);
  background-color: var(--color-btn);
  border: 2px solid var(--color-blue);
  cursor: pointer;

  &:hover,
  &:focus-visible {
    background-color: var(--color-blue);
    box-shadow: 0px 0px 2px 3px rgba(0, 0, 0, 0.25);
  }

  &:active,
  &:visited {
    color: var(--color-white);
  }
}

h2 {
  position: relative;
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-size: clamp(25px, 9vw, 50px);
  isolation: isolate;
  margin-top: 30px;
  color: var(--color-white);
  transition: color 1000ms linear;
  
  &::after,
  &::before {
    position: absolute;
    content: '';
    background-color: var(--color-white);
    inset: 0;
    top: auto;
    bottom: -5px;
    height: 1px;
    width: 100%;
    border-radius: 5px;
    z-index: -1;
    transition: all 2000ms 1000ms linear;
    opacity: .5;
  }

  &::after {
    width: 0%;
    width: 100%;
    bottom: -6px;
    background-color: var(--color-blue);
    opacity: 1;
    height: 3px;
  }
  
}

[data-animate="true"]:not(.animate-me) > h2 {
  color: var(--color-blue);

  &::after {
    width: 0%;
  }
}


.intro-text {
  font-style: italic;
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--color-blue);
}

.portfolio-container {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-areas: 'stack';
  margin-bottom: 2em;
  border-radius: .5em;
  /* aspect-ratio: 16 / 9;*/
  box-shadow: 0px 0px 2px 8px rgba(0, 154, 255, .25);
  transition: box-shadow 1000ms linear;

  * {
    grid-area: stack;

  }

  &::before {
    position: absolute;
    content: '';
    inset: 0;
    opacity: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 500ms linear;
    border-radius: .5em;
  }

  .btn {
    display: inline-flex;
    align-self: flex-end;
    justify-self: flex-end;
    margin-right: 1em;
    margin-bottom: 1em;
    z-index: 10;
    gap: .25em;
    
    span {
      width: 0;
      opacity: 0;
      display: none;
      pointer-events: none;
    }
  }
}

.portfolio-image {
  max-width: 100%;
  border-radius: .5em;
}

.portfolio-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
}

.portfolio-link {
  display: grid;
  place-content: flex-end;
}

.portfolio-content {
  place-self: center;
  max-width: 90%;
  z-index: 10;
  opacity: 0;
  display: none;
  transition: opacity 500ms 500ms linear;
}

.portfolio-container.active {

  box-shadow: 0px 0px 2px 8px rgba(0, 154, 255, 1);

  &::before, 
  .portfolio-content {
    opacity: 1;
  }

  .btn span {
    width: fit-content;
    opacity: 1;
  }

}

/****************/
/* Testimonials */
/****************/

.testimonials-container {
  opacity: 1;
  transition: all 500ms linear;
}

.testimonials-container:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 1em;
  margin-bottom: 1em;
}

.testimonials-author {
  color: var(--color-orange);
  font-weight: 800;
}

.testimonials-container:not(.animate-me) {
  opacity: 0;
  transform: translateY(200px) scale(.6);
}

/*****************/
/* Animated Logo */
/*****************/
#ssk_title.animate-title span {
  opacity: 0;
  font-size: clamp(35px, 9vw, 200px);
}

.animate-title span {
  display: inline-block;
  font-weight: 900;
  opacity: 0;
  transform: translate(-100px, 0) scale(0.3);
  animation: leftToRight 1s forwards;
  font-family: "Inconsolata", monospace;
  /* text-shadow: 0px 0px 5px var(--color-lime); */
}

h2.console-text span,
.animate-title span:nth-child(2),
.animate-title span:nth-child(3),
.animate-title span:nth-child(4) {
  color: var(--color-blue);
}

@keyframes leftToRight {
  25% {
    color: var(--color-fuschia-lite);
  }
  40% {
    transform: translate(50px, 0) scale(0.25);
    opacity: 0.5;
  }
  60% {
    color: var(--color-orange);
  }
  80% {
    transform: translate(0) scale(2.5);
    color: var(--color-lime);
    text-shadow: 0px 0px 25px var(--color-red-lite);
    opacity: 0.1;
  }
  100% {
    transform: translate(0) scale(1);
    opacity: 1;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  }
}

/***********/
/* Marquee */
/***********/

#software_component {
  position: fixed;
  /*top: calc(100vh - 60px);*/
  bottom: 0px;
  min-width: 100%;

    &::before {
      position: absolute;
      top: -1.5em;
      content: 'Technical Skills';
      font-family: "Montserrat", serif;
      font-optical-sizing: auto;
      font-weight: 800;
      font-style: normal;
      font-size: clamp(20px, 5vw, 30px);
      /* border-bottom: 1px solid var(--color-white); */
    }
}

#marquee_logos {
  position: relative;
  overflow: clip;
  padding-bottom: 5px;

  &::before {
    --size: 25px;
    position: absolute;
    content: '';
    inset: 0;
    z-index: 5;
    background: linear-gradient(
    to right, 
    var(--color-black-lite) var(--size), 
    transparent, transparent, 
    var(--color-black-lite) calc(100% - var(--size)));
  }
  
}

#marquee_logos p {
  border: 0px solid #ffffff;
  border-radius: 15px;
  padding: 5px;
  margin-bottom: 0;

  img {
    height: 40px;
  }
}

#marquee_track {
  display: flex;
  gap: 1em;
  padding-left: 1em;
  width: max-content;
  animation: marquee-animate 240s linear infinite;
}

@keyframes marquee-animate {
  to {
    transform: translateX(-50%);
  }
}

/****************/
/* Modal Dialog */
/****************/
.modal * {
  color: var(--color-white);
  background: var(--color-black-lite);
}

.modal-about {
  width: 100%;
  max-width: 768px;
  margin: auto;
  padding-right: 1em;
}

/*****************/
/* Media Queries */
/*****************/

@media (min-width: 525px) {
  .portfolio-title {
    width: fit-content;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {

  .portfolio-content {
    max-height: 100%;
    display: block;
 }

 .portfolio-container::before {
  display: block;
}

  .btn.btn-portfolio {
    span {
      display: block;
    }
  }

  .modal {
    display: none !important;
  }

  h2 { 
    margin-top: 75px;
  }
}

@media (min-width: 1280px) {
  #g_App::before {
    top: -35vh;
    right: -10vw;
    width: 50vw;
    filter: blur(100px);
  }

}