/* HOME PAGE CSS */

html[data-theme="light"] {
  --col-icon: black;
  --col-box-shadow: #000000 2px 2px 4px, #4D4D4D -2px -2px 4px;
  --col-box-shadow-hover: inset #8a7373 2px 2px 4px, inset #4D4D4D -2px -2px 4px;
  --col-icon-dribbble: #ea4c89;
  --col-icon-linkedin: #0e76a8;
  --col-icon-instagram: rgb(201, 94, 174);
  --col-icon-mail: rgb(209, 82, 82);
  --shadow-col: rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] {
  --col-icon: white;
  --col-box-shadow: 5px 5px 10px rgba(22, 21, 21, 0.7), -5px -5px 10px rgba(255,255,255,0.1);
  --col-box-shadow-hover: inset rgba(255, 255, 255, 1) 2px 2px 4px, inset rgba(255, 255, 255, 0.5) -2px -2px 4px;
  --col-icon-dribbble: #ea4c89;
  --col-icon-linkedin: #0e76a8;
  --col-icon-instagram: rgb(201, 94, 174);
  --col-icon-mail: rgb(209, 82, 82);
  --col-white: #fff;
}

body { font-family: "Poppins", sans-serif; }

#home, #particles-js {
  position: relative;
  height: 100vh;
  width: 100%;
}

.text {
  font-size: 25px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.text .header {
  font-family: "Agustina", cursive;
  font-size: 2rem;
  font-weight: bold;
}

.animated-text span { display: none; line-height: 1; }
.animated-text span.active { display: inline; }
.animated-text:after {
  content: ".";
  display: inline;
  width: 6px;
  background: var(--col-icon);
  animation: blink 0.3s infinite alternate;
}

@keyframes blink { from { opacity: 0; } to { opacity: 1; } }

/* Social icons */
:root {
  --link-size: 64px;
  --trans-props: all 0.2s ease;
}

.social-icons {
  display: flex;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;
}

.socialicon {
  display: flex;
  position: relative;
  overflow: hidden;
  width: var(--link-size);
  height: var(--link-size);
  background-color: #fff;
  margin: 8px;
  border-radius: 50%;
  box-shadow: 2px 5px 5px var(--shadow-col);
  text-decoration: none;
  transition: var(--trans-props);
}

.socialicon i {
  margin: auto;
  font-size: 24px;
  z-index: 1;
  transition: var(--trans-props);
}

html[light-mode="dark"] .socialicon { background-color: #141516; }

.socialicon:after {
  content: "";
  width: var(--link-size);
  height: var(--link-size);
  position: absolute;
  transform: translate(0, var(--link-size));
  border-radius: 50%;
  transition: var(--trans-props);
}

/* LinkedIn */
.linkedin-icon { margin-left: 15px; }
.linkedin:hover .linkedin-icon>rect { animation: rect-up 0.3s linear infinite; }
@keyframes rect-up {
  50% { y: 10px; height: 11px; }
  0% { y: 13px; height: 8px; }
}
.linkedin:hover .linkedin-icon>circle { animation: bounce 0.4s linear infinite; }
@keyframes bounce {
  75% { cy: 8px; }
  50% { cy: 4px; }
  0% { cy: 4px; }
}

/* Instagram */
.instagram-icon { width: 90px !important; }
.st0 { fill: none; stroke: #EF4649; stroke-width: 7; stroke-linecap: round; stroke-miterlimit: 10; }
.instagram:hover #littleCircle { stroke-dasharray: 150; }
.instagram #shutter { display: none; }
.instagram:hover #shutter { display: block; animation: shutter 1s linear infinite; }
.instagram:hover #lens { fill: #EF4649; animation: lens 1.5s linear infinite; }
@keyframes shutter {
  0%, 50% { stroke-dashoffset: 150; }
  75% { fill: #EF4649; stroke-dashoffset: 0; stroke-width: 11; }
}
@keyframes lens {
  0%, 75% { opacity: 0; }
  100% { opacity: 1; }
}

/* Twitter */
.twitter-icon { width: 40px; margin-left: 12px; }
.twitter:hover #wing1 { transform-origin: center; animation: flap 0.4s ease-out infinite alternate; }
.twitter:hover #wing2 { transform-origin: center; animation: flap 0.4s ease-in infinite alternate; }
@keyframes flap {
  50% { transform: scaleX(-1) rotate(-45deg) translate(-40px, -40px); }
}

/* GitHub */
html[light-mode="dark"] .github-icon { fill: #ffff; }
.github-icon { width: 40px; margin-left: 12px; margin-top: 5px; fill: #000000; }
.github:hover #arm { transform-origin: bottom right; animation: moveArm 1s infinite alternate; }
@keyframes moveArm {
  0% { transform: rotate(10deg); }
  100% { transform: rotate(-10deg); }
}

/* Social hover */
.socialicon:hover { transform: translateY(-4px); box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.16); }
.socialicon:hover:after { transform: translate(0) scale(1.2); }
.socialicon:hover i { color: #fff; }
a:hover { color: transparent; }

/* Wave */
.wave img { display: inline-block; }

/* Responsive */
@media only screen and (max-width: 450px) { .text { margin-top: 5rem; } }
@media only screen and (max-width: 2381px) { .text { margin-top: 2rem; } }
@media only screen and (max-width: 1340px) { .text { margin-top: 4rem; } }
@media only screen and (max-width: 780px) { .text { margin-top: 3rem; } }
@media only screen and (max-width: 700px) { .text { margin-top: 6rem; } }
@media only screen and (max-width: 350px) { .text { margin-top: 6rem; } }
@media only screen and (min-height: 731px) { .text { margin-top: 2rem; } }
@media only screen and (min-height: 768px) { .text { margin-top: 0rem; } }
