:root {
  --white: #fff;
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-5: rgba(255, 255, 255, 0.05);
  /* --accent: #bf4700; */
  --accent: #0aaaf4;
  --gray: #0e0e0e;
}

html {
  font-size: 16px;
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  background-color: var(--gray);
  font-size: 1.125rem;
  overflow-x: hidden;
}

/* .overlay::before {
  position: absolute;
  content: "";
  padding: 1.5rem;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  inset: 25%;
  background: url(./blue-triagles.svg);
  background-image: radial-gradient(
    circle,
    rgba(111, 113, 123, 0.412),
    rgba(3, 23, 62, 0.865)
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(25px);
  z-index: 2;
} */

.overlay {
  /* margin-top: -4rem; */

  position: absolute;
  inset: 0%;
  /* padding: 1.5rem; */
  margin: auto;
  width: 100%;
  /* min-height: 100dvw; */
  /* border-radius: 50%; */
  background: url(./abstract-flow.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center left;
  background-color: hsla(197, 20%, 73%, 0.106);
  filter: brightness(0.5);
  filter: blur(5px);
  z-index: -5;
}

/* .hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  background-image: linear-gradient(
    to-right,
    rgba(0, 0, 0, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  z-index: -2;
} */

.hero__content {
  position: relative;
  /* margin: 0 auto; */
  width: 100%;
  height: 100%;
  margin: 0 auto;
  /* background: url(./blue-triagles.svg);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1; */
}

#hero .svg-btn-link {
  margin-left: 4rem;
}

/* .hero__content + div > a {
  position: absolute;
  margin-bottom: 1.5rem;

  margin-left: 45%;
  display: block;
  z-index: 10;
} */

p {
  color: var(--white);
}

h1,
h2,
h4 {
  font-family: "Poppins", sans-serif;
  color: var(--white);
  font-weight: 700;
}

h1 {
  font-size: 5.6875rem;
  line-height: 1.2;
  letter-spacing: -0.39813rem;
  margin: 0 0 4rem;
}

h1 > span {
  display: inline-block;
  margin-inline: 1rem;
}

h2 {
  font-size: 3.75rem;
  line-height: 1.4;
  letter-spacing: -0.1875rem;
  margin: 0 0 4rem;
}

h3 {
  color: var(--white-50);
  font-size: 1.6875rem;
  font-weight: 300;
  margin: 0 0 4rem;
}

h4 {
  font-size: 1.6875rem;
  letter-spacing: -0.08438rem;
  margin: 0;
}

h6 {
  color: var(--white-50);
  font-size: 1.125rem;
  font-weight: 300;
  margin: 0 0 1rem;
}

section,
footer {
  min-height: 100dvh;
}

#hero {
  position: relative;
}

#hero,
footer {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-block: 4rem;
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 4rem;
  z-index: 10;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

li a {
  text-decoration: none;
  color: var(--white-50);
  transition: color 0.2s ease-in-out;
  z-index: 15;
}

li a:hover {
  color: var(--accent);
}

.hero__content,
.footer__content {
  max-width: 98%;
  margin: 0 auto;
}

.eyebrow {
  /* display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap; */
  text-align: left;
  /* margin-top: 1em; */
  /* float: left; */
  /* max-height: 5rem; */
  img {
    /* float: left; */
    margin-top: 0.25rem;
  }
}

.hero-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  animation: scaler 1s forwards 1.5s;

  img {
    width: 6rem;
    align-self: self-start;
  }
}

.display-grid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 70vh;
  margin: 0 auto;
  padding: 1rem;
  background-color: hsla(222, 89%, 14%, 0.32);
  border-radius: 1rem;
  border: 1px solid rgba(215, 215, 222, 0.498);
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  transform: translateY(300px);
  scale: 0.5;
  animation: forwards 1s mover 0.5s;
}
.card-grid {
  /* width: max-content; */
  width: 100%;
  margin: 0.5rem auto;
  padding: 1rem;
  background-color: hsla(222, 89%, 14%, 0.82);
  background-color: #0aaaf430;
  border-radius: 1rem;
  border: 1px solid rgba(215, 215, 222, 0.298);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 0.33fr));
  grid-auto-flow: row;
  /* grid-template-columns: auto; */
  /* column-gap: 1rem; */
  gap: 1rem;
}

.view-section {
  width: 100%;
  margin: 0.5rem auto;
  padding: 1rem;
  background-color: hsla(222, 89%, 14%, 0.32);
  border-radius: 1rem;
  border: 1px solid rgba(215, 215, 222, 0.298);
}

/* .cards {
  grid: 1 / -1;
  width: 96%;
  margin: 0 auto;
  padding: 2rem;
  background-color: hsla(222, 89%, 14%, 0.32);
  border-radius: 1rem;
  border: 1px solid rgba(128, 129, 149, 0.298);

  display: grid;
  grid-template-columns: 100px 100px 100px 100px 100px 100px;
  grid-auto-rows: auto;

} */
.card2 {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(20%, 225px);
  min-height: 170px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 1000ms ease-in-out;

  &:hover {
    background-image: radial-gradient(
      circle,
      hsla(0, 0%, 100%, 0.1),
      hsla(0, 0%, 8%, 0.224),
      #1414140c
    );
    backdrop-filter: blur(10px);
  }
}

.grid-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 15px;
  border-radius: 8px;
  background-color: #21308090;
}

.card2 .card-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #f0f0f0;
  opacity: 0.9;
}

.img-box {
  width: 100%;
  height: 100px;
  background-color: mediumslateblue;
  opacity: 0.5;
  /* padding: 0; */
  /* margin-bottom: 1.5rem; */
}

.card2 a {
  text-decoration: none;
  color: #0aaaf4;
  font-size: 0.5rem;
  margin-block: 1rem;
}

a > .card2-link {
  display: block;
  width: 100%;
  padding: 0.05rem 0.15rem;
  background-color: #0482bc;
  color: #202020;
  border-radius: 0.15rem;
  margin-top: 2rem;
}

.card2 {
  --width: 100%;
  /* grid-column: 1;
  grid-row: 1; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(4, 14, 53, 0.8);
  border: 1px solid hsla(225, 2%, 66%, 0.541);
  border-radius: 0.7rem;
  width: var(--width);
  cursor: pointer;
  text-align: center;

  .card-img {
    /* padding: 0.5rem; */
    margin-bottom: 0.5rem;
    /* background-color: #141415; */
  }
  /* border: hsla(240, 5%, 92%, 0.741) solid 1px; */
  .card-img svg,
  .card-img img {
    width: 100%;
    /* margin: 0.25rem auto; */
    padding-bottom: 1rem;
  }
  .card-img #trianglesIcon {
    margin-right: 1rem;
    margin-bottom: 1rem;
  }
  .card-body {
    /* background-color: hsl(220, 90%, 46%); */
    /* padding-block: 0.4rem; */
    width: auto;
  }
  .card-title {
    font-size: 0.5rem;
  }
}

.social-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.social-links a {
  color: var(--white);
  font-weight: 700;
  transition: 0.2s ease-in-out;
  display: inline-block;
  padding: 0 1rem;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links li {
  display: flex;
  align-items: center;
}

.social-links li:not(:last-child)::after {
  content: "";
  height: 1px;
  width: 1.5rem;
  display: inline-block;
  background-color: var(--white-20);
}
/* 
#trianglesIcon #startTriangle {
  transform: translateX(6rem);
  opacity: 1;
  transition: all 1700ms 2000ms ease-in-out;
} */

.card2 #trianglesIcon #endTriangle {
  transform: translateX(0);
  opacity: 1;
  transition: all 1400ms ease-in-out;
}

/* .card:hover > * > #endTriangle {
  transform: translateX(6rem);
  opacity: 0;
  
} */

/* #trianglesIcon:hover #startTriangle {
  transform: translateX(6rem);
  opacity: 1;
} */

#exy #trianglesIcon #startTriangle {
  opacity: 0;
  transition: all 0.8s ease-in-out;
}

#exy #trianglesIcon #endTriangle {
  opacity: 1;
  transition: all 0.8s ease-in-out;
}

#exy:hover #trianglesIcon #startTriangle {
  transform: translateX(7rem);
  opacity: 1;
  transition: transform 700ms ease-in-out, opacity 300ms ease;
}

#exy:hover #trianglesIcon #endTriangle {
  transform: translateX(7rem);
  opacity: 0;
  transition: all 700ms 300ms ease-in-out;
}

#scroll-icon rect,
#scroll-icon path#icon {
  stroke: var(--accent);
  transform: translateY(0);
  transition: all 700ms ease-in-out;
}

#scroll-icon:hover path#icon {
  transform: translateY(7rem);
}

#scroll-icon path#line {
  transform: translateY(-7rem);
  transition: all 700ms ease-in-out;
}

#scroll-icon:hover path#line {
  transform: translateY(0);
}

/* a.svg-btn-link {
  display: block;
  width: 120px;
  height: 120px;
  padding: 1rem;
  border: 2px solid hsla(199, 92%, 50%, 0.421);
  border-radius: 50%;
  background-color: hsla(199, 74%, 66%, 0.218);
  transition: all 400ms ease;
}

a.svg-btn-link:hover {
  display: block;
  width: 120px;
  height: 120px;
  padding: 1rem; 
  overflow: visible;
  border: 2px solid hsla(199, 92%, 50%, 1);
} */

a.svg-btn-link {
  position: absolute;
  left: 2%;
  bottom: 2%;
}

.btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: gap 0.2s ease-in-out;
  cursor: pointer;
  padding: 1rem 2rem;
}

.btn svg path {
  stroke: var(--accent);
}

.btn:hover {
  gap: 2rem;
}

.btn + .social-links {
  margin-top: 8rem;
}

h6 span {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  vertical-align: middle;
  background-color: var(--white-20);
  margin-inline: 0.5rem;
}

#portfolio {
  padding-block: 4rem;
}

.entry {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: center;
  gap: 4rem;
  margin-inline: 4rem;
  margin-block: auto;
  min-height: 100vh;
  min-height: auto;
  position: relative;
}

img {
  max-width: 100%;
  max-height: 80%;
  /* aspect-ratio: 16 / 9; */
  object-fit: contain;
  /* display: block; */
}

.entry figure {
  margin: 0;
  padding-block: 1rem;
  padding-inline: 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(245, 245, 245, 0.217);
  background-color: var(--white-5);
  background-color: hsla(199, 92%, 50%, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

#entry figure:first-of-type {
  width: 90%;
  /* height: auto; */
}

#entry figure .media-first {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
  min-height: 90vh;
}

footer {
  position: relative;
  min-height: 100vh;
}

/* .section-footer {
  display: flex;
  justify-content: space-between;
  position: relative;

  padding-left: 2%;
  padding-bottom: 2%;
  bottom: 0;
} */

.up-btn-div {
  transform: rotateX(180deg);
  /* text-align: left; */
  position: absolute;
  right: 5%;
  bottom: 10%;
}

/*
======================================================
    ********* LENIS CSS *********
======================================================
*/

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@keyframes scaler {
  from {
    scale: 1;
  }
  to {
    scale: 0.5;
    transform: translateY(-300px);
  }
}

@keyframes mover {
  from {
    scale: 0.5;
    transform: translateY(300px);
  }
  to {
    scale: 1;
    transform: translateY(0);
  }
}
