*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  --color-border: #888;
  --color-text: #ddd;
  --color-text-dark: #bbb;
  --hue-first: 254;
  --hue-slid: 18;
  --hue-alph: 35;
  --hue-tomi: 300;
  --hue-rout: 212;
  --hue-open: 100;
  --hue-last: 0;
  --hue-lastapp: 170;
  --chevron-size: 8px;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

a {
  color: var(--color-text-dark);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  border: 1px solid var(--color-border);
  margin: 0 auto;
  padding: 0 1rem;
}

a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

a.inline {
  display: inline;
  padding: 0 0 0 2px;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.75rem;
  font-weight: bold;
  color: var(--color-text);
  letter-spacing: 4px;
  background: -webkit-linear-gradient(#eee, #ccc, #685c66);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.75rem;
  margin: 1rem 0;
  color: var(--color-text);
}

p {
  font-size: 1rem;
  margin: 2rem 0;
}

section {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100vh;
  letter-spacing: 2px;
  overflow: hidden;
  clip-path: inset(0px 0px);
}

section > div:first-child {
  position: fixed;
  padding: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vh;
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}

section#first > div:first-child {
  position: absolute;
  border: none;
  box-shadow: none;
}

footer {
  position: fixed;
  z-index: 9999;
  bottom: 0.25rem;
  width: 100%;
}

footer ul {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  list-style-type: none;
}

footer ul li {
  color: var(--color-text-dark);
}

footer ul li:nth-child(2) {
  padding: 0 0.5rem;
  opacity: 0.3;
}

footer a {
  padding: 0 5px;
  border: none;
}

a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.card-image {
  display: block;
  max-width: 100%;
  margin: 1rem auto 0;
}

.stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  padding: 0;
  list-style-type: none;
}

.stack-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  padding: 4px 0.5rem;
  margin: 4px;
}

.stack-item img {
  height: 1rem;
  width: auto;
  padding-right: 0.5rem;
}

.javascript {
  background-color: #d3b32c;
  color: #ffffff;
}

.html5 {
  background-color: #dd4b25;
  color: #ffffff;
}

.css3 {
  background-color: #016fba;
  color: #ffffff;
}

.react {
  background-color: #20232a;
  color: #61dafb;
}

.redux {
  background-color: #764abc;
  color: #ffffff;
}

.flutter {
  background-color: #ffffff;
  color: #3b3b3b;
}

.dart {
  background-color: #1c2834;
  color: #e5e5e5;
}

.firebase {
  background-color: #ffffff;
  color: #757575;
}

.python {
  background-color: #1e415e;
  color: #e5e5e5;
}

.jinja {
  background-color: #b41717;
  color: #ffffff;
}

.mysql {
  background-color: #ffffff;
  color: #000000;
}

.django {
  background-color: #0c4b33;
  color: #ffffff;
}

.chevron-container {
  position: absolute;
  bottom: 15%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.chevron {
  position: absolute;
  width: calc(var(--chevron-size) * 3.5);
  height: calc(var(--chevron-size) * 0.8);
  opacity: 0;
  transform: scale(0.3);
  animation: move-chevron 3s ease-out infinite;
}

.chevron:first-child {
  animation: move-chevron 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
  animation: move-chevron 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--color-text-dark);
}

.chevron:before {
  left: 0;
  transform: skewY(30deg);
}

.chevron:after {
  right: 0;
  width: 50%;
  transform: skewY(-30deg);
}

/* SEKCJE - START */

section#first {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-first), 50%, 5%) 0%,
    hsl(var(--hue-first), 50%, 15%) 51%,
    hsl(var(--hue-first), 50%, 25%) 75%
  );
}
section#first > div {
  background-color: transparent;
}

section#lastminuterapp {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-lastapp), 50%, 5%) 0%,
    hsl(var(--hue-lastapp), 50%, 15%) 51%,
    hsl(var(--hue-lastapp), 50%, 25%) 75%
  );
}
section#lastminuterapp > div {
  background-color: hsl(var(--hue-lastapp), 50%, 10%);
}

section#lastminuter {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-last), 50%, 5%) 0%,
    hsl(var(--hue-last), 50%, 15%) 51%,
    hsl(var(--hue-last), 50%, 25%) 75%
  );
}
section#lastminuter > div {
  background-color: hsl(var(--hue-last), 50%, 10%);
}

section#routeone {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-rout), 50%, 5%) 0%,
    hsl(var(--hue-rout), 50%, 15%) 51%,
    hsl(var(--hue-rout), 50%, 25%) 75%
  );
}
section#routeone > div {
  background-color: hsl(var(--hue-rout), 50%, 10%);
}

section#openmetering {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-open), 50%, 5%) 0%,
    hsl(var(--hue-open), 50%, 15%) 51%,
    hsl(var(--hue-open), 50%, 25%) 75%
  );
}
section#openmetering > div {
  background-color: hsl(var(--hue-open), 50%, 10%);
}

section#sliding-puzzle {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-slid), 50%, 5%) 0%,
    hsl(var(--hue-slid), 50%, 15%) 51%,
    hsl(var(--hue-slid), 50%, 25%) 75%
  );
}
section#sliding-puzzle > div {
  background-color: hsl(var(--hue-slid), 50%, 10%);
}

section#gabinet-tomis {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-tomi), 50%, 5%) 0%,
    hsl(var(--hue-tomi), 50%, 15%) 51%,
    hsl(var(--hue-tomi), 50%, 25%) 75%
  );
}
section#gabinet-tomis > div {
  background-color: hsl(var(--hue-tomi), 50%, 10%);
}

section#alphacam-blog {
  background: linear-gradient(
    141deg,
    hsl(var(--hue-alph), 50%, 5%) 0%,
    hsl(var(--hue-alph), 50%, 15%) 51%,
    hsl(var(--hue-alph), 50%, 25%) 75%
  );
}
section#alphacam-blog > div {
  background-color: hsl(var(--hue-alph), 50%, 10%);
}

section:nth-child(1) {
  top: 0;
}

section:nth-child(2) {
  top: calc(2 * 100vh - 100vh);
}

section:nth-child(3) {
  top: calc(3 * 100vh - 100vh);
}

section:nth-child(4) {
  top: calc(4 * 100vh - 100vh);
}

section:nth-child(5) {
  top: calc(5 * 100vh - 100vh);
}

section:nth-child(6) {
  top: calc(6 * 100vh - 100vh);
}

section:nth-child(7) {
  top: calc(7 * 100vh - 100vh);
}

section:nth-child(8) {
  top: calc(8 * 100vh - 100vh);
}

/* SEKCJE - KONIEC */

@media screen and (max-width: 600px) {
  section > div:first-child {
    width: 90vw;
  }

  p {
    font-size: 0.8rem;
    margin: 1rem 0;
  }
}

@keyframes move-chevron {
  25% {
    opacity: 1;
  }
  33.3% {
    opacity: 1;
    transform: translateY(calc(var(--chevron-size) * 3.8));
  }
  66.6% {
    opacity: 1;
    transform: translateY(calc(var(--chevron-size) * 5.2));
  }
  100% {
    opacity: 0;
    transform: translateY(calc(var(--chevron-size) * 8)) scale(0.5);
  }
}
