/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}
/*Global */
:root {
  --h1-size: clamp(1.5rem, 3vw, 2.5rem);
  --h2-size: clamp(1.2rem, 2.5vw, 2rem);
  --h3-size: clamp(1.3rem, 2.5vw, 1.8rem);
  --p-size: clamp(1rem, 2vw, 1.3rem);
  --footer-size: clamp(0.5rem, 1.5vw, 0.8rem);
}

p,
pre,
h1,
h2,
h3,
h4,
h5,
h6,
details {
  color: #fff;
  -webkit-transform: translateY(20px);
  -ms-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: -webkit-transform 0.8s ease-out;
  transition: -webkit-transform 0.8s ease-out;
  -o-transition: transform 0.8s ease-out;
  transition: transform 0.8s ease-out;
  transition:
    transform 0.8s ease-out,
    -webkit-transform 0.8s ease-out;
  transition:
    transform 0.8s ease-out,
    -webkit-transform 0.8s ease-out;
  transition:
    transform 0.8s ease-out,
    -webkit-transform 0.8s ease-out;
  word-break: keep-all; /* Don't break words */
  overflow-wrap: normal;
}

.visible-text {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

body {
  overflow-x: hidden;
  padding-bottom: 20px;

  background: -o-linear-gradient(left, #1f1f1f, #1f1f1f 85%, #313131);

  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#1f1f1f),
    color-stop(85%, #1f1f1f),
    to(#313131)
  );

  background: linear-gradient(left, #1f1f1f, #1f1f1f 85%, #313131);
}

/* Stars */
.star {
  position: fixed;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: flicker 0.8s ease-out forwards;
}

@keyframes flicker {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

/* Main */

main {
  margin-top: 150px;
  z-index: 1;
}

.main-header {
  font-family: "Smythe", sans-serif;
  font-size: var(--h2-size);
  text-align: center;
  color: #fff;
  letter-spacing: 2px;
  display: inline-block;
}

.main-sub-header {
  font-size: var(--h2-size);
  font-family: "Roboto", sans-serif;
  color: #fff;
  text-align: center;
}

.flip {
  display: inline-block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0); /* Force 3D context */
  -webkit-animation-name: flip;
  animation-name: flip;
  -webkit-animation-duration: 700ms;
  animation-duration: 700ms;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

@-webkit-keyframes flip {
  0% {
    color: wheat;
    font-size: var(--h1-size);
    -webkit-transform: scaleX(1) translateZ(0);
    transform: scaleX(1) translateZ(0);
  }
  100% {
    color: red;
    font-size: calc(var(--h1-size) + 5%);
    -webkit-transform: scaleX(-1) translateZ(0);
    transform: scaleX(-1) translateZ(0);
  }
}

@keyframes flip {
  0% {
    color: wheat;
    font-size: var(--h1-size);
    -webkit-transform: scaleX(1) translateZ(0);
    transform: scaleX(1) translateZ(0);
  }
  100% {
    color: red;
    font-size: calc(var(--h1-size) + 5%);
    -webkit-transform: scaleX(-1) translateZ(0);
    transform: scaleX(-1) translateZ(0);
  }
}

.main-header-wrapper {
  position: relative;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 12rem auto 0 auto;
}

.main-header-wrapper::before {
  position: absolute;
  content: "";
  width: 150%;
  height: 1.5px;
  background: #ff0000;
  top: -5px;
  left: -15px;
  border-radius: 50%;
  -webkit-animation: before-header-in 3s;
  animation: before-header-in 3s;
}

.main-header-wrapper::after {
  position: absolute;
  content: "";
  width: 150%;
  height: 1.5px;
  background: #ff0000;
  bottom: -5px;
  right: -15px;
  border-radius: 50%;
  -webkit-animation: after-header-in 3s;
  animation: after-header-in 3s;
}

@-webkit-keyframes after-header-in {
  from {
    -webkit-transform: translate(150%);
    transform: translate(150%);
  }
  to {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

@keyframes after-header-in {
  from {
    -webkit-transform: translate(150%);
    transform: translate(150%);
  }
  to {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

@-webkit-keyframes before-header-in {
  from {
    -webkit-transform: translate(-150%);
    transform: translate(-150%);
  }
  to {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

@keyframes before-header-in {
  from {
    -webkit-transform: translate(-150%);
    transform: translate(-150%);
  }
  to {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

/* Hero */

.red-line {
  width: 70%;
  position: relative;
  margin-top: 6rem;
}

.intro-text {
  width: 80%;
  margin: 0 auto;
  font-family: "Roboto", sans-serif;
  letter-spacing: 1px;
  font-size: var(--p-size);

  position: relative;
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
  -webkit-animation: text-reveal 2s forwards 500ms;
  animation: text-reveal 2s forwards 500ms;
}

.red-line::before {
  position: absolute;
  content: "";
  background: #ff0000;
  height: 2px;
  width: 110%;
  border-radius: 50%;
  left: 0;
  top: -5px;

  -webkit-animation: red-line-in ease-in-out 3s forwards;

  animation: red-line-in ease-in-out 3s forwards;
  z-index: 2;
}

@-webkit-keyframes red-line-in {
  0% {
    -webkit-transform: translate(100vw);
    transform: translate(100vw);
  }
  75% {
    -webkit-transform: translate(0);
    transform: translate(0);
    width: 10%;
  }
  85% {
    background: white;
    width: 10%;
    height: 5px;
  }
  100% {
    background: transparent;
  }
}

@keyframes red-line-in {
  0% {
    -webkit-transform: translate(100vw);
    transform: translate(100vw);
  }
  75% {
    -webkit-transform: translate(0);
    transform: translate(0);
    width: 10%;
  }
  85% {
    background: white;
    width: 10%;
    height: 5px;
  }
  100% {
    background: transparent;
  }
}

@-webkit-keyframes text-reveal {
  from {
    -webkit-clip-path: inset(0 0 0 100%);
    clip-path: inset(0 0 0 100%);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes text-reveal {
  from {
    -webkit-clip-path: inset(0 0 0 100%);
    clip-path: inset(0 0 0 100%);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

/* About page */
.about-main {
  margin-bottom: 50px;
}

.aboutTextHeader {
  text-align: center;
  font-size: var(--h2-size);
  font-family: "Smythe", sans-serif;
  margin: 1rem auto;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
}

.aboutTextHeader::after {
  position: absolute;
  content: "";
  width: 150%;
  height: 2px;
  border-radius: 50%;
  background: #ff0000;
  bottom: -10px;
  left: -10px;
  -webkit-animation: red-line-in ease-in-out 3s forwards;
  animation: red-line-in ease-in-out 3s forwards;
}

.about-intro {
  width: 80%;
  margin: 0 auto;
  font-size: var(--p-size);
}

/* Portfolio page */

.portfolio-card {
  width: 60%;
  margin: 1rem auto 2rem auto;
  border: 1px solid;
  padding: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 5px 5px 8px grey;
  box-shadow: 5px 5px 8px grey;
  -webkit-transition: 300ms;
  -o-transition: 300ms;
  transition: 300ms;
}

.portfolio-card-header {
  font-size: var(--h3-size);
  text-decoration: underline;
}

.portfolio-desc {
  font-size: var(--p-size);
  margin: 1rem;
}

.link a {
  color: #fff;
}

.card-img-container {
  width: 50%;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
}

.card-img-container img {
  border-radius: 10px;
  -webkit-transition: 300ms;
  -o-transition: 300ms;
  transition: 300ms;
}

.card-img-container img:hover {
  scale: 1.5;
}

.portfolio-header {
  font-size: var(--h1-size);
}

.portfolio-intro {
  margin: 5rem auto 2rem auto;
  width: 80%;
  font-family: "Roboto", sans-serif;
  font-size: var(--p-size);
}

/* Contact page */

/* Social media links */

.social-links {
  margin-top: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.social-links::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  border-radius: 50%;
  background: #ffff;

  bottom: -8px;

  -webkit-animation: white-line-btm 2s forwards 2s;

  animation: white-line-btm 2s forwards 2s;
}

@-webkit-keyframes white-line-btm {
  0% {
    width: 0;
    bottom: -8px;
  }
  50% {
    width: 80%;
    bottom: 30px;
  }
  100% {
    width: 0;
    bottom: 30px;
  }
}

@keyframes white-line-btm {
  0% {
    width: 0;
    bottom: -8px;
  }
  50% {
    width: 80%;
    bottom: 30px;
  }
  100% {
    width: 0;
    bottom: 30px;
  }
}

.social-links::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  border-radius: 50%;
  background: #ffff;

  top: -8px;

  -webkit-animation: white-line-top 2s forwards 2s;

  animation: white-line-top 2s forwards 2s;
}

@-webkit-keyframes white-line-top {
  0% {
    width: 0;
    top: -8px;
  }
  50% {
    width: 80%;
    top: 30px;
  }
  100% {
    width: 0;
    top: 30px;
  }
}

@keyframes white-line-top {
  0% {
    width: 0;
    top: -8px;
  }
  50% {
    width: 80%;
    top: 30px;
  }
  100% {
    width: 0;
    top: 30px;
  }
}

.social-links i {
  color: white;
  font-size: var(--h3-size);
  -webkit-transition: 300ms;
  -o-transition: 300ms;
  transition: 300ms;
}

.social-links i:hover {
  color: rgb(69, 110, 241);
}

/* Contact form */

.form-wrapper {
  border: 1px solid;
  border-radius: 10px;
  color: #ffffff;
  width: 80%;
  margin: 5rem auto 1rem auto;
  padding: 15px;

  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.form-input-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.user-data-input,
.msg {
  border: none;
  border-radius: 5px;
  outline: none;
  text-align: center;
  width: 12rem;
  height: 1.5rem;
  font-family: "Roboto", sans-serif;
  -webkit-transition: 300ms;
  -o-transition: 300ms;
  transition: 300ms;
  padding: 5px;
}

.user-data-input:focus,
.msg:focus {
  background-color: #142042;
  color: #ffffff;
}

.msg {
  width: 15rem;
  height: 5rem;
  text-align: left;
}

.send-btn {
  width: 5rem;
  padding: 3px 4px;
  font-family: "Roboto", sans-serif;
  font-size: var(--p-size);
  cursor: pointer;
  background-color: #d3d3d3;
  border: 1px solid #08086b;
  border-radius: 5px;
  margin: 0 auto;
  display: block;
  -webkit-box-shadow: 8px 8px 10px #808080;
  box-shadow: 8px 8px 10px #808080;
  -webkit-transition: all 300ms;
  -o-transition: all 300ms;
  transition: all 300ms;
}

.send-btn:hover {
  -webkit-box-shadow: 3px 3px 5px #808080;
  box-shadow: 3px 3px 5px #808080;
  background-color: #343232ea;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* Privacy Policy */

.privacy-body {
  color: #ffff;
}

.privacy-body a {
    color:#ffff;
}

.privacy-body h2 {
  margin: 30px 0 10px 5px;
}

.privacy-body p,
.privacy-body h4 {
  margin-left: 10px;
}

li {
  color: #ffff;
  margin: 5px 100px;
}

.privacy-policy {
  margin-top: 170px;
}

.generator-credit {
  margin: 5px 10px 15px 0;
}

.policy-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


