@import url("https://fonts.googleapis.com/css2?family=Comfortaa&family=Josefin+Sans&family=Ubuntu+Mono&display=swap");

:root {
  --main-bg-color: rgba(0, 0, 0, 0.932);

  /* font families */
  --font-1: "Comfortaa", cursive;
  --font-2: "Ubuntu Mono", monospace;
  --font-3: "Josefin Sans", sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  /* transition: ease-in-out 0.1s; */
}

body {
  background-color: #2c2c2c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpolygon fill='%23232323' points='1600 160 0 460 0 350 1600 50'/%3E%3Cpolygon fill='%231a1a1a' points='1600 260 0 560 0 450 1600 150'/%3E%3Cpolygon fill='%23121212' points='1600 360 0 660 0 550 1600 250'/%3E%3Cpolygon fill='%23090909' points='1600 460 0 760 0 650 1600 350'/%3E%3Cpolygon fill='%23000000' points='1600 800 0 800 0 750 1600 450'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  flex-wrap: nowrap;
}

section {
  color: white;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.panel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hamburger {
  display: none;
}

.sidebar {
  position: fixed;
  width: 100vw;
  top: 0;
}

.phoneLogo {
  display: none;
}

nav {
  display: flex;
  justify-content: space-between;
}

nav img {
  width: 68px;
  margin: 8px;
}

nav img:hover {
  filter: invert(10%);
}

nav ul {
  display: flex;
  align-items: center;
  height: 60px;
}

nav ul li {
  padding: 18px;
  list-style: none;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-family: var(--font-3);
  font-size: 1.2em;
  cursor: pointer;
}

nav ul li:hover {
  filter: invert(15%);
  transform: scale(1.1);
  transition: 0.3s ease-in;
}

.navigation {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  top: 45%;
}

.navigation img {
  width: 5%;
}

.infoContainer {
  display: flex;
  align-items: center;
  margin: auto;
  padding: 34px;
  max-width: 95%;
}

.devInfo {
  font-size: 15px;
  font-family: var(--font-1);
}

.hello {
  font-size: 4em;
  font-weight: bolder;
}

.name {
  font-size: 2em;
  padding: 5px 0;
}
.myName {
  font-size: 1.5em;
  font-weight: bolder;
}

.about {
  font-size: 1.7em;
}

.moreAbout {
  margin-top: 12px;
  line-height: 19px;
  font-size: 1.1em;
}

.buttons {
  margin-top: 23px;
}

.btn {
  padding: 8px 13px;
  border-radius: 23px;
  background-color: rgba(255, 255, 255, 0.466);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bolder;
  margin-right: 8px;
  margin-top: 8px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 14px;
}

.btn:hover {
  background-color: black;
  color: white;
  transition: 0.3s ease-in;
}

.devPic img {
  height: 80vh;
  filter: drop-shadow(12px 12px 12px black);
  animation: focusEffect 2s ease-in;
}

/* ********** about page *********** */

#about {
  display: flex;
  font-family: var(--font-3);
  max-width: 90%;
  margin: auto;
}

.intro-text {
  max-width: fit-content;
  max-height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heading {
  font-size: 24px;
}

.intro-text p {
  font-size: 1.1em;
  line-height: 32px;
  padding: 12px 15px;
}

.contactTxt {
  font-size: 1.1em;
  text-decoration: none;
  display: inline-block;
  border-bottom: 2px dashed white;
  padding: 8px 0;
  color: rgb(202, 202, 202);
}

.contactTxt:hover {
  color: white;
}

.contactDetails img {
  width: 50px;
  filter: invert();
  position: relative;
  top: 14px;
  padding: 0 8px;
  opacity: 0.7;
}

.contactDetails img:hover {
  opacity: 1;
}

legend {
  text-align: center;
  margin-top: 32px;
}

.skillsContainer {
  display: flex;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.skillsContainer::before {
  content: "";
  animation: aboutAnime 2s ease-in-out infinite;
  position: absolute;
  z-index: -1;
  box-shadow: inset 2px 0 42px rgba(128, 128, 128, 0.521),
    2px 0 13px rgba(128, 128, 128, 0.521);
  border-radius: 50%;
  width: 440px;
  height: 450px;
}

.skills {
  margin: 20px;
  border-radius: 50%;
  text-shadow: 2px 2px 8px black;
}

.html {
  animation: floatEffect 2s ease-in-out infinite;
  background-color: #dd4b25;
  padding: 25px 12px;
}

.css {
  animation: floatEffectOdd 2s ease-in-out infinite;
  background-color: #2965f1;
  padding: 25px 20px;
}

.js {
  background-color: #edd718;
  padding: 25px 28px;
  animation: floatEffect 2s ease-in-out infinite;
}

.nodejs {
  animation: floatEffectOdd 2s ease-in-out infinite;
  background-color: #6da55f;
  padding: 25px 10px;
}

.mongoDB {
  animation: floatEffect 2s ease-in-out infinite;
  background-color: #439743;
  font-size: 13px;
  padding: 29px 10px;
}

.bootstrap {
  animation: floatEffectOdd 2s ease-in-out infinite;
  background-color: #7b11f3;
  font-size: 13px;
  padding: 29px 10px;
}

.react {
  animation: floatEffect 2s ease-in-out infinite;
  background-color: #60d8f7;
  padding: 26px 16px;
}

.java {
  animation: floatEffectOdd 2s ease-in-out infinite;
  background-color: #f0931c;
  padding: 29px 23px;
}

/* ******** projects page css ********* */
#work {
  font-family: var(--font-3);
  max-width: 90%;
  margin: auto;
}

.projects h1 {
  font-size: 1.6em;
  padding: 12px 0;
  line-height: 1.4em;
}

.underline {
  border-bottom: 2px dashed white;
  width: 203px;
  text-align: center;
  margin: 23px auto;
}

.projects img {
  box-shadow: 2px 0 42px rgba(128, 128, 128, 0.521),
    2px 0 13px rgba(128, 128, 128, 0.521);
  width: 303px;
  border-radius: 18px;
  margin: 12px;
}

.projects img:hover {
  transform: scale(1.1);
  transition: ease-in-out 0.5s;
}

.project-container {
  display: flex;
  margin: 32px 0;
}

.right {
  flex-direction: row-reverse;
}

.project-content {
  padding: 12px;
  line-height: 1.4em;
}

.project-content p {
  font-size: 1.1em;
}

.all-projects a {
  text-decoration: none;
  color: rgb(202, 202, 202);
}
.all-projects a:hover {
  color: white;
}
.all-projects {
  border-bottom: 2px dashed white;
}

/* ******** goto page css ********* */

.goto-top {
  font-family: var(--font-1);
  opacity: 0.8;
}

.goto-top:hover {
  opacity: 1;
}

.goto-top img {
  filter: invert();
  width: 50vw;
  z-index: -1;
  opacity: 0.5;
}

.goto-top h1 {
  position: relative;
  top: 3em;
  left: 10%;
  font-size: 2em;
}

.goto-page a {
  color: white;
  text-decoration: none;
}

/* mislaneous css */
::-webkit-scrollbar {
  display: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ******* media querry for mobile device ******** */

@media (max-width: 995px) {
  .devPic {
    display: none;
  }

  nav img {
    display: none;
  }

  .phoneLogo {
    display: inline;
  }

  .phoneLogo img {
    display: block;
  }

  .phoneLogo a {
    position: absolute;
    right: 0;
  }

  .hamburger {
    display: inline-block;
    position: absolute;
    left: 15px;
    cursor: pointer;
    top: 15px;
    z-index: 2;
  }

  .ham {
    cursor: pointer;
    width: 40px;
    display: block;
  }

  .cross {
    filter: invert();
    width: 40px;
    margin-left: 90px;
  }

  .sidebar {
    position: absolute;
    font-family: "Comfortaa", cursive;
    background-color: var(--main-bg-color);
    height: 100vh;
    width: 155px;
    transition: transform 0.3s ease-in;
    z-index: 1;
  }

  .sidebar nav {
    display: flex;
    justify-content: center;
    height: 100vh;
  }
  .sidebar nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
  }

  .sidebar nav li {
    list-style: none;
    padding: 34px 0;
    font-size: 20px;
  }

  .sidebar nav li a {
    text-decoration: none;
    color: white;
  }

  .sidebar nav li a:hover {
    border: 2px solid white;
    border-radius: 10px;
    padding: 12px;
    transition: 0.3s ease-in;
  }

  .sidebarGo {
    transform: translate(-160px, 0px);
    position: absolute;
  }

  #about {
    flex-direction: column;
  }

  .anime {
    margin: 0;
    top: 35%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 68%;
  }

  .skills {
    margin: 8px;
  }

  .skillsContainer::before {
    width: 340px;
    height: 350px;
  }

  legend {
    margin-top: 12px;
  }

  .intro-text p,
  .contactDetails a {
    font-size: 1em;
    line-height: 23px;
    border-bottom: none;
  }

  .contactDetails .contactTxt {
    display: none;
  }

  .contactDetails {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    right: 10px;
  }

  .contactDetails img {
    padding: 8px 12px;
  }

  .project-content p {
    display: none;
  }
  .project-container {
    flex-direction: column-reverse;
  }

  .projects img {
    width: 253px;
    margin: 0 12px;
  }

  .project-content {
    padding: 0 12px;
  }

  .projects h1 {
    font-size: 1.3em;
    padding: 12px 0;
    line-height: 1em;
  }

  .goto-top img {
    width: 100vw;
  }

  .goto-top h1 {
    left: 0;
    text-align: center;
  }
}

.transparentBg {
  margin-top: 23px;
  background-color: transparent;
}

@keyframes focusEffect {
  from {
    filter: blur(4px);
    transform: translateX(32px);
  }
  to {
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes aboutAnime {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(359deg);
  }
}

@keyframes floatEffect {
  100% {
    transform: translateX(-2px);
    transform: translateY(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  0% {
    transform: translateX(-2px);
    transform: translateY(-2px);
  }
}
@keyframes floatEffectOdd {
  100% {
    transform: translateX(2px);
    transform: translateY(-2px);
  }
  50% {
    transform: translateX(-2px);
  }
  0% {
    transform: translateX(2px);
    transform: translateY(-2px);
  }
}
