:root {
  --text-color: rgb(196, 234, 230);
  --font-primary: Montserrat;
  --bg-light: rgb(239, 236, 236);
  --bg-dark: rgb(8, 8, 15);
  --small-font: 15px;
  --transition-quick: 200ms;
  --transition-slow: 500ms;
  --font-light: rgb(231, 221, 221);
  --font-dark: rgb(36, 35, 35);
}
* {
  box-sizing: border-box;
}
body {
  /* margin-right: 8rem; */
  width: 100vw;
  padding-top: 4rem;
  overflow-x: hidden;
}
.modal {
  text-align: center;
}
.modal-body {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  align-items: center;
  font-family: var(--font-primary);
}
.modal-body p {
  text-align: left;
}
.modal-footer a {
  font-family: var(--font-primary);
}

.navbar-brand h3 img {
  width: 110px;
  height: 90px;
  position: relative;
  top: 17px;
  border-radius: 30%;
  box-shadow: 0 3px 2px rgb(86, 80, 80);
  /* font-family: Yellowtail; */
  /* font-size: 26pt; */
}
#navbar {
  width: 100vw;
  height: 11vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  font-size: 18px;
  font-weight: 450;
  letter-spacing: 0.8px;
  box-shadow: 3px 3px 8px rgb(86, 80, 80);
}
#navbar-collapse-toggle {
  justify-content: center;
}
.navbar-nav {
  display: flex;
  gap: 5%;
}
.nav-link {
  color: var(--text-color);
}
.navbar-toggler {
  width: 5rem;
}
#landingPage {
  width: 100vw;
  height: 100vh;
  background: rgb(12, 7, 97);
  background: linear-gradient(
    30deg,
    rgba(12, 7, 97, 1) 0%,
    rgba(12, 7, 97, 1) 0%,
    rgba(8, 8, 15, 1) 66%
  );
}
#intro {
  box-shadow: 3px 3px 3px white, -3px -3px 3px white;
  border-radius: 2px;
  color: var(--text-color);
  width: 45%;
  height: 60%;
  margin: auto;
  position: relative;
  top: 22%;
  text-align: center;
  padding-block: 3rem;
}
#wave {
  animation: welcome 2s ease-in-out infinite;
  display: inline-block;
  transform-origin: 30px 30px;
}
@keyframes welcome {
  0% {
  }
  30% {
    visibility: visible;
    transform: rotate(-30deg);
  }
  50% {
    transform: rotate(90deg);
  }
  60% {
    transform: rotate(-30deg);
  }
  80% {
    transform: rotate(30deg);
  }
  95% {
    visibility: hidden;
  }
}
#name-anime {
  font-size: 24px;
  border-right: 2px solid #333;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 6s steps(40, end) forwards,
    blink-caret 0.5s step-end infinite;
}
@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #333;
  }
}
#landingPage a {
  display: block;
  background-color: rgb(238, 235, 231);
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  width: 120px;
  margin: 0 auto;
  position: relative;
  top: 43%;
  border: 1px soild white;
}
#landingPage a:hover {
  color: var(--text-color);
  background: rgb(8, 8, 15);
  border: 1px solid var(--text-color);
}

#about_page {
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 5%;
  padding-block: 6rem;
}
#about_text {
  background: transparent;
  width: 40%;
  padding-inline: 0.75rem;
  font-family: var(--font-primary);
  font-size: var(--small-font);
  color: var(--font-dark);
  letter-spacing: -0.2px;
  padding-bottom: 5px;
  border-radius: 4px;
  box-shadow: 2px 2px 10px rgb(179, 177, 177), -2px -2px 10px rgb(179, 177, 177);
  transition: all var(--transition-quick) ease-in;
}
#about_text:hover {
  box-shadow: 7px 7px 10px rgb(179, 177, 177), -7px -7px 10px rgb(179, 177, 177);
}
#about_text:hover #about {
  border-bottom: 2px solid var(--font-dark);
  transition: all 2s ease-in-out;
}
#about_avatar {
  width: 300px;
  border-radius: 36% 78% 78% 36%/38% 38% 70% 70%;
  box-shadow: 5px 5px 20px rgb(66, 64, 64);
  filter: sepia(0.5);
  transition: all var(--transition-slow) ease-out;
}
#about_avatar:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 20px rgb(66, 64, 64);
  filter: blur(1px);
}
#about_avatar img {
  width: 100%;
  border-radius: 36% 78% 78% 36%/38% 38% 70% 70%;
}
.socials {
  width: 230px;
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 0 auto;
}
.socials a {
  width: 35px;
  height: 35px;
  line-height: 35px;
  background-color: #051b35;
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 3px;
  transition: color, background-color var(--transition-slow);
  transition-timing-function: ease-out;
}
.socials a:hover {
  color: #2c3038;
  background-color: #ffffff;
  border: 2px solid #051b35;
}
#skills_services {
  padding-top: 3rem;
}
.skills {
  display: flex;
  flex-direction: column;
  color: var(--font-light);
}
.skills h1 {
  text-shadow: 10px 10px 8px white;
}
.skills h5 {
  font-weight: 700;
  border-bottom: 2px solid var(--font-light);
  width: 95px;
}
.skills h1,
.skills h5,
#serve,
#portfolio,
#blogging,
#contact_me {
  margin-left: 5vw;
  font-family: var(--font-primary);
}
#technologies {
  place-self: center;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  transform: translateY(20%);
  row-gap: 1rem;
  column-gap: 2rem;
}
.techs {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  filter: brightness(10%);
  filter: grayscale(20%);
}
.techRotate1 {
  animation: tech-rotate 20s infinite ease-in-out alternate-reverse;
}
.techRotate2 {
  animation: tech-rotate 10s infinite ease-in-out alternate;
}
.techRotate3 {
  animation: tech-translate 20s infinite ease-in-out alternate-reverse;
}
@keyframes tech-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes tech-translate {
  from {
    transform-origin: center center;
    transform: rotateY(0deg) translateZ(5px);
  }

  to {
    transform-origin: center center;
    transform: rotateY(360deg) translateZ(10px);
  }
}
.techs img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.techs img {
  width: 100%;
}
#service-container {
  padding-top: 3rem;
}
#serve {
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--font-dark);
  width: 180px;
  text-align: center;
}
#services {
  padding-block: 2rem;
  display: flex;
  place-content: center;
  column-gap: 2rem;
  font-size: var(--small-font);
  font-family: var(--font-primary);
  margin-bottom: 2rem;
}
.service {
  width: 290px;
  padding: 0.3rem;
  border: 0.075rem solid rgb(187, 183, 183);
  border-radius: 4px;
}
.service img {
  width: 100%;
}
#hireme {
  background-color: var(--bg-dark);
  height: 30vh;
  color: var(--text-color);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
#hireme p {
  font-size: 28pt;
}
#hireme button {
  width: 250px;
  font-size: 18pt;
}
#hireme button a {
  width: 100%;
  color: var(--bg-light);
  text-decoration: none;
}
#hireme button a:hover {
  opacity: 0.5;
}
#portfolio-page {
  padding-top: 2.1rem;
}
#portfolio {
  border-bottom: 1px solid var(--font-dark);
  width: 170px;
  margin-top: 2rem;
  text-align: center;
}
#projects {
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 1.5rem;
  padding-block: 2rem;
}
.project {
  width: 280px;
  border: 0.075rem solid rgb(187, 183, 183);
  padding-bottom: 5px;
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow var(--transition-quick) ease-in;
}
.project:hover {
  box-shadow: -2px 0 5px gray, 2px 0 5px gray;
}
.were {
  width: 100%;
  height: 233px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: 50%;
  transition: transform var(--transition-slow) ease;
}
.project:hover .were {
  transform: scale(1.1);
}
.projDetails {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.projDetails h2 {
  font-size: 14pt;
}
.live,
.view_more,
.projDetails h2 {
  margin-left: 6px;
}
.live {
  background: transparent;
  width: 50px;
  height: 30px;
  font-size: 10pt;
  font-family: var(--font-primary);
  font-weight: 600;
  margin-right: 2px;
  border: none;
  border-radius: 2px;
  border: 1px solid rgb(190, 186, 186);
  padding-inline: 0.9px;
}

.live:hover a {
  color: var(--font-light);
}
.view_more {
  width: 100px;
  height: 30px;
  font-family: var(--font-primary);
  font-size: var(--small-font);
  letter-spacing: -0.6px;
  padding-block: 1px;
}
.view_more:hover {
  background: #080808;
}
#blogging {
  border-bottom: 1px solid var(--font-dark);
  width: 310px;
  text-align: center;
  text-shadow: 6px 6px 14px white;
}
#blog {
  background-color: var(--bg-dark);
  padding-block: 3.5rem;
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  font-family: var(--font-primary);
  color: var(--font-light);
}
#unary {
  border: 2px solid rgb(209, 209, 234);
  width: 290px;
  background: var(--bg-light);
  color: var(--font-dark);
  text-align: center;
  border: none;
  border-radius: 3px;
  padding-block: 0.75rem;
  transition: box-shadow, transform var(--transition-quick) ease-in;
  box-shadow: 3px 3px 5px rgb(96, 92, 92);
  margin: 0 auto;
}
#unary:hover {
  box-shadow: 4px 4px 5px rgb(96, 94, 94);
  transform: translateY(-0.15rem);
}
#unary img {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}
#newsletter {
  width: 500px;
  margin: 0 auto;
  padding-block: 15px;
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  column-gap: 3%;
  border-radius: 3px;
  box-shadow: 1px 1px 5px white, -1px -1px 3px white;
}
#newsletter p {
  width: 100%;
  text-align: center;
}
#newsletter input {
  width: 300px;
}
#newsletter button {
  transition: color, background-color var(--transition-slow);
  transition-timing-function: ease-out;
}
#contact {
  padding-block: 2rem;
}
#contact_me {
  width: 250px;
  margin-block: 2rem;
  border-bottom: 1px solid var(--font-dark);
  text-align: center;
}
#contact form {
  display: flex;
  flex-direction: column;
  padding: 3rem;
}
#contact div {
  width: 70%;
  margin: 0 auto;
}
.inputs {
  min-height: 60px;
}
input[type="file"] {
  margin-bottom: 1rem;
}
#contact textarea {
  height: 170px;
}
#contact button {
  width: 90px;
  transition: color, background-color var(--transition-slow);
  transition-timing-function: ease-out;
}
#footer {
  height: 190px;
  background-color: var(--bg-dark);
  text-align: center;
  padding-top: 1.75rem;
}
#footer h1 {
  color: #ffffff;
}
#footer .socials {
  display: flex;
  width: 250px;
  justify-content: space-around;
  border: none;
}
#footer .socials a {
  background: #ffffff;
  color: #2c3038;
  width: 35px;
  height: 35px;
  line-height: 34px;
  border-radius: 3px;
  transition: color, background-color var(--transition-slow);
  transition-timing-function: ease-out;
}
#footer .socials a:hover {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* MEDIA QUERIES */
@media (max-width: 320px) {
  #services {
    padding: 0;
  }
  #newsletter p,
  #newsletter button,
  #news_input {
    margin-left: -2rem;
  }
  #unary {
    width: 250px;
  }
}
@media (max-width: 370px) {
  .navbar-brand h3 img {
    width: 90px;
  }
  #landingPage {
    min-height: 100vh;
  }
  #technologies {
    display: flex;
    width: 100vw;
    flex-wrap: wrap;
    justify-content: center;
    transform: translateY(30%);
  }
  .techs {
    width: 50px;
    height: 50px;
  }
  #newsletter {
    box-shadow: none;
  }
  #newsletter p,
  #newsletter button,
  #news_input {
    margin-left: -1.5rem;
  }
  #newsletter button {
    border: 2px solid red;
    margin-top: 0.5rem;
  }
  #intro {
    width: 100%;
  }
  #name-anime {
    font-size: 10px;
  }
  #about_page {
    padding-block: 2rem;
  }
  #about_text {
    width: 80vw;
    padding-bottom: 2rem;
  }
  #serve {
    width: 120px;
  }
  #hireme p {
    font-size: 10pt;
    line-height: 2;
    letter-spacing: -2px;
  }
  #footer {
    height: 150px;
  }
}
@media (max-width: 480px) {
  #navbar {
    /* width: 100vw; */
    height: 11vh;
  }
  #navbar-toggler {
    background-color: rgb(121, 112, 112);
    color: white;
    border: 1px solid rgb(96, 93, 93);
  }
  #landingPage {
    /* width: 100vw; */
    min-height: 100vh;
  }
  #landingPage .btn {
    position: relative;
    top: 105px;
    /* margin-bottom: -2rem; */
    /* background-color: red; */
  }
  #intro {
    margin-top: -4rem;
  }
  #intro a {
    top: 58%;
  }
  #about_text {
    padding-inline: 0.5rem;
  }
  #about_avatar {
    width: 280px;
  }
  #technologies {
    grid-template-columns: repeat(4, 1fr);
  }
  .techs {
    width: 70px;
    height: 70px;
  }
  .techs:last-child {
    grid-column: 3/4;
  }
  .techs:nth-last-child(2) {
    grid-column: 2/3;
  }
  #serve {
    width: 150px;
    text-align: center;
  }
  #services {
    flex-direction: column;
    align-items: center;
    row-gap: 1.7rem;
  }
  #services div {
    position: relative;
    width: 85vw;
  }
  #hireme {
    height: 20vh;
  }
  #hireme p {
    font-size: 20pt;
    margin-bottom: -1rem;
  }
  #hireme button {
    width: 200px;
    font-size: 12pt;
  }
  #newsletter {
    width: 350px;
    row-gap: 15px;
  }
  #news_input {
    margin-top: -1rem;
  }
  #contact div {
    width: 90%;
  }
  #contact form {
    padding: 2.5%;
  }
  .inputs {
    min-height: 40px;
  }
  #name-anime {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  #navbar-collapse-toggle {
    border: none;
    position: absolute;
    top: 9vh;
    left: -15.5%;
    margin-left: 15%;
    padding-left: 10px;
    width: 100vw;
    background-color: rgb(247, 249, 247);
    box-shadow: 2px 2px 10px rgb(63, 59, 59);
  }
  .navbar-nav {
    display: flex;
    padding-bottom: 10px;
  }
  .nav-link {
    margin-bottom: -10px;
    color: rgb(47, 0, 255);
  }
  .navbar-brand h3 img {
    top: 6px;
  }
  #landingPage {
    width: 100vw;
    flex-direction: column;
    height: 80vh;
  }
  #intro {
    width: 80%;
    padding-inline: 1rem;
  }
  #introImg {
    width: 300px;
  }
  #about_page {
    flex-direction: column;
  }
  #about_text {
    width: calc(70% + 100px);
  }
  #about_avatar {
    margin-top: 1.5rem;
  }
  #technologies {
    gap: 1.2rem;
  }
  #services {
    column-gap: 0.9rem;
  }
  .service {
    width: 270px;
  }
  #hireme {
    flex-direction: column;
  }
  #serve,
  #portfolio,
  #blogging,
  #contact_me {
    border: none;
    text-align: start;
  }
  .project {
    box-shadow: -2px 0 5px gray, 2px 0 5px gray;
  }
}
@media (max-width: 890px) {
  #introImg img {
    width: 100%;
  }
}
@media (max-width: 1000px) {
  .collapse {
    font-size: 14px;
    background-color: rgb(1, 1, 3);
  }
  #serve {
    width: 150px;
  }
}
