@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quantico&display=swap');

body {
  /* background-color: #1f143d; */
  background-color: black;
  color: whitesmoke;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Quantico', 'Russo One', sans-serif;
  /* overflow-x: hidden; */
}

nav {
  width: 100%;
  position: fixed;
  z-index: 2;
  margin: 20px auto;
  background-color: none;
  transition: all 300ms;
}

a {
  color: white;
  text-decoration: none;
}

p {
  margin: 0;
}

.nav-down {
  background-color: #1f143d;
  padding: 10px 0;
  margin: 0 auto;
  transition: all 300ms;
}

.nav-tab-group, .nav-break {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.nav-break {
  max-width: 500px;
  position: relative;
  bottom: 22px;
  z-index: -1;
  transition: all 300ms;
}

.nav-break-down {
  max-width: 100%;
  bottom: -10px;
  transition: all 300ms;
}

.nav-tab {
  cursor: pointer;
  background-color: rgb(31, 28, 28);
  padding: 10px 20px;
  border: 1px solid #4a3f6c;
  box-shadow: 0 0 10px 3px #1f143d;
  transition: all 0.2s linear;
}

.nav-tab:hover {
  background-color: #1f143d;
  border: 1px solid whitesmoke;
  color: orange;
}

.mobile-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  box-sizing: content-box;
  height: 25px;
  background-color: #1f143d;
  text-align: center;
  padding: 15px;
  transition: all 0.5s;
  opacity: 0.9;
}

.nav-bg-overlay {
  position: fixed;
  z-index: 2;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.777);
}

.logo, .close, .list, .mobile-header {
  position: fixed;
}

.close, .list {
  top: 12px;
  right: 12px;
  height: 30px;
  cursor: pointer;
}

.logo {
  display: flex;
  top: 20px;
  left: 20px;
  opacity: 0.7;
}

.logo img {
  height: 27px;
  margin: -4px
}

header {
  background-color: #1A1133;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='345' height='345' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23524242' stroke-width='1.4'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23552652'%3E%3Ccircle cx='769' cy='229' r='8'/%3E%3Ccircle cx='539' cy='269' r='8'/%3E%3Ccircle cx='603' cy='493' r='8'/%3E%3Ccircle cx='731' cy='737' r='8'/%3E%3Ccircle cx='520' cy='660' r='8'/%3E%3Ccircle cx='309' cy='538' r='8'/%3E%3Ccircle cx='295' cy='764' r='8'/%3E%3Ccircle cx='40' cy='599' r='8'/%3E%3Ccircle cx='102' cy='382' r='8'/%3E%3Ccircle cx='127' cy='80' r='8'/%3E%3Ccircle cx='370' cy='105' r='8'/%3E%3Ccircle cx='578' cy='42' r='8'/%3E%3Ccircle cx='237' cy='261' r='8'/%3E%3Ccircle cx='390' cy='382' r='8'/%3E%3C/g%3E%3C/svg%3E");
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

header:before {
  content: " ";
  display: block;
  position: absolute;
  height: 600px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.header-title, h1, .language-icons {
  position: relative;
}

.section-subtitle {
  background: none;
  /* text-align: center; */
  padding: 30px 0 50px;
  width: 70%;
  max-width: 900px;
  margin: 10px auto;
  font-size: 20px;
  position: relative;
}

.subtitle-first {
  margin: 10px auto 30px;
}

.stack-icon {
  position: absolute;
  top: -20px;
  right: -120px;
  height: 220px;
  opacity: 0.3;
  z-index: -1;
  /* filter: blur(3px) */
}

.front-end {
  top: -40px;
  right: -140px;
}

.full-stack {
  top: -50px
}

hr {
  opacity: 1;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, rgb(152, 27, 255), rgb(255, 3, 209), rgb(10, 232, 252), rgb(255, 3, 133), #4651f7, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  margin: 2px;
  animation: gradient 8s ease-in-out infinite;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }

  50% {
      background-position: 100% 50%;
  }

  100% {
      background-position: 0% 50%;
  }
}

.header-title {
  width: fit-content;
  margin: 0 auto;
}

.header-title p:first-child {
  font-size: 1.4rem;
  font-style: italic;
  margin: 0 0 -5px -20px;
  opacity: 0.8
}

#title {
  display: flex;
  justify-content: center;
}

#title p {
  color: white;
  display: inline;
  margin: 0;
  padding: 0 2px;
  font-weight: 900;
  font-style: normal;
  font-size: 4rem;
  font-family: 'Russo One', sans-serif;
  transition: color 0.4s ease-in;
  position: relative;
}

#title img {
  position: absolute;
  height: 70px;
  top: -8px;
  right: -40px;
  transform: rotate(20deg);
  opacity: 0.6;
  /* filter: blur(1px); */
}

h1 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 600;
}

.subtitle {
  position: relative;
  text-align: center;
  margin: 0 auto 30px;
  font-size: 1.4rem;
  max-width: 1000px;
}

.language-icons {
  background-color: #1f143d98;
  border: 1px solid rgba(128, 128, 128, 0.203);
  box-shadow: 0 6px 12px 8px black;
  width: fit-content;
  padding: 20px 40px;
  border-radius: 70px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
}

.language-icons img {
  height: 50px
}

main {
  /* flex-grow: 1; */
  overflow-x: clip;
  overflow-y: visible;
}

.section-1, .section-2 {
  background: black;
  padding: 30px 40px 120px;
  /* margin: 0 40px; */
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(128, 128, 128, 0);
  gap: 50px;
}

.grid div {
  position: relative;
  text-align: center;
  z-index: 0;
  /* border: 1px solid #4a3f6c; */
  border-radius: 12px;
  width: 330px;
  height: 100%;
  /* margin: 0 30px; */
}

.grid div:after {
  content: " ";
  position: absolute;
  display: block;
  z-index: -1;
  top: -20px;
  height: 100%;
  width: 100%;
  background-color: #1f143de0;
  padding: 20px;
  border-radius: 70px;
  filter: blur(40px);
  animation: 3s infinite alternate glow;
}

@keyframes glow {
  0% {
    filter: blur(20px);
  }
  20% {
    filter: blur(25px);
  }
  40% {
    filter: blur(30px);
  }
  60% {
    filter: blur(35px);
  }
  80% {
    filter: blur(40px);
  }
  100% {
    filter: blur(45px);
  }
}

.section-2 {
  /* background-color: rgb(88, 88, 88); */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px
}

.section-2 img {
  width: 100px;
}

.long-icon {
  width: 180px !important;
}

.section-2 div {
  display: flex;
  align-items: center;
  background-color: #f5f2ff;
  box-shadow: 0 0 10px 3px #1f143d inset, 0 0 6px 2px rgba(247, 247, 247, 0.411);
  padding: 12px;
  border-radius: 20px;
}

h2 {
  border: 1px solid #4a3f6c;
  box-shadow: 0 0 10px 6px #1f143d;
  position: relative;
  z-index: 1;
  top: -40px;
  width: fit-content;
  text-align: center;
  background-color: black;
  margin: 0;
  padding: 20px;
}

.h2-bg {
  background-color: black;
  display: flex;
  justify-content: center;
  position: relative;
}

.h2-bg div {
  position: absolute;
  z-index: 0;
  top: -190px;
  height: 300px;
  width: 400px;
  border-radius: 50%;
  filter: blur(50px);
  background-color: #463277a8;
   /* background: linear-gradient(90deg, rgb(152, 27, 255), rgb(255, 3, 209), rgb(10, 232, 252), rgb(255, 3, 133)); */
 
   /* background: linear-gradient(217deg, rgba(152, 27, 255,.8), rgba(255, 3, 209,0) 70.71%), linear-gradient(127deg, rgba(10, 232, 252,.8), rgba(255, 3, 133,0) 70.71%), linear-gradient(336deg, rgba(152, 27, 255,.8), rgba(255, 3, 209,0) 70.71%); */
}

.z-plus {
  z-index: 1;
}

h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.grid div h3 {
  background-color: black;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.243);
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.149);
}

ul {
  list-style: none;
  padding: 0 20px;
}

footer {
  background-color: #1f143d;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  width: fit-content;
  margin: 0 auto;
}

.footer-container div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px
}

.footer-container div a {
  cursor: pointer;
  transition: all 0.5s linear;
}

.footer-container div a:hover {
  text-decoration: underline;
  color: orange;
}

.info {
  color: rgb(154, 154, 154);
  margin: 10px 0;
}

#carousel {
  width: 90%;
  max-width: 500px;
  margin: 0 auto 100px;
  position: relative;
  z-index: 1;
}

.carousel-img {
  width: 300px !important;
  margin: 0 auto;
}

.carousel-caption {
  background-color: #1f143da6;
  border-radius: 7px;
  padding: 1.25rem 10px 40px 10px;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.639);
}

.carousel-caption h5 {
  background-color: white;
  width: fit-content;
  margin: 0 auto 6px;
  color: black;
  padding: 5px 10px;
  border-radius: 7px;
}

.carousel-caption a {
  text-shadow: 2px -2px 5px rgb(212, 27, 249);
  font-size: 20px;
}

.carousel-indicators {
  padding: 15px;
}

/* Styles for input element */

input, .github-link, .back-to-top {
  height: fit-content;
  padding: 10px;
  border-radius: 7px;
  width: auto;
  border: none;
  flex-grow: 1;
}

.github-link, .back-to-top  {
  text-align: center;
}

.focus, #submit, .github-link, .back-to-top   {
  transition: all 0.3s linear;
  box-shadow: 0 0 5px 2px rgba(255, 249, 249, 0.254);
}

.focus:focus {
  outline: none !important;
  box-shadow: 0 0 10px #719ECE;
  border: 1px solid rgba(128, 128, 128, 0.265);
}

#submit, .github-link, .back-to-top, .overlay-btn  {
  width: 100%;
  background-color: #6a44d3;
  color: whitesmoke;
  cursor: pointer;
  border: 1px solid #6943c7;
  box-shadow: 0 0 5px 1px #1f143dae inset;
}

.back-to-top {
  flex-grow: 0;
  width: fit-content;
  display: block;
  margin: 0 auto 40px auto;
}

#submit:hover, .github-link:hover, .back-to-top:hover {
  border: 1px solid whitesmoke;
}

#submit:active, .github-link:active, .back-to-top:active {
  background-color: rgb(177, 177, 177);
}

#submit:disabled {
  background-color: gray;
  box-shadow: none;
  border: 1px solid black;
}

/* end section */

/* Styles for repository/project links */

.repository-links {
  margin: 20px 0 10px;
  display: flex;
  gap: 25px;
}

.repository-links div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repository-links div a, .repository-author p a, .carousel-caption a {
  color: rgb(2, 213, 255);
  transition: all 0.5s;
}

.repository-links div a:hover, .repository-author p a:hover, .carousel-caption a:hover {
  color: orange;
  text-decoration: underline;
}

/* end section */

@media (max-width: 500px) {
  #title p {
    font-size: 10vw
  }

  #title img {
    height: 45px;
    right: -20px;
    top: 0;
  }

  .language-icons img {
    height: 30px
  }

  .section-2 img {
    width: 80px;
  }
  
  .long-icon {
    width: 140px !important;
  }

  .section-subtitle {
    font-size: 1rem;
    margin: -10px auto 20px
  }

  h2 {
    font-size: 1.3rem;
  }
}

@media(max-width: 720px) {
  #home-header {
    height: 750px;
  }

  #home-header:before {
    height: 750px;
  }

  #home-header > * {
    transform: translateY(-20px);
  }

  header:not(#home-header, #contact-header) {
    height: 500px;
  }

  header:not(#home-header, #contact-header):before {
    height: 500px;
  }

  h1:not(#home-header h1) {
    margin: 40px 20px 10px 20px;
    font-size: 40px;
  }

  .language-icons {
    width: 60%;
    margin-bottom: -30px
  }

  .h2-bg div {
    width: 70%;
  }

  .subtitle-last {
    margin: 0 auto 50px;
  }

  nav {
    position: static;
    margin: 0;
  }

  .nav-tab-group {
    border-top: 1px solid gray;
    position: fixed;
    width: 100%;
    top: 55px;
    flex-direction: column;
    max-width: none;
    gap: 0;
    margin: 0;
  }

  .nav-tab {
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    border: none;
    box-shadow: none;
  } 

  .nav-tab:hover {
    border: none;
    background-color: none;
  }

  .section-subtitle {
    padding: 10px 0;
  }

  .subtitle {
    margin: 0 20px 30px;
  }

  #carousel {
    margin: 30px auto 70px
  }

  .carousel-img {
    width: 200px !important;
    margin: 0 auto;
  }
}

@media (max-width: 800px) {
  .footer-container div {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
}

@media (max-width: 1400px) {
  .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    justify-content: center;
    text-align: center;
  }
}