/*--------------------------------------GENERAL---------------------------------------*/
html{ scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

*,:after,:before { box-sizing: border-box; }

a,a:hover {
  color: #8602E5;
  text-decoration: none;
}
h1,h2,h3,h4,h5,h6 {
  font-family: "Courier New", Courier, monospace sans-serif;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
h1, h1 a,h1 a:hover {
  color: white;
  font-weight: 700;
}
h3{
  font-weight: 700;
  font-size: 26px;
  color: #49176B;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
}
ul {
  margin-top: 0;
  padding-left: 0;
}
ul strong{ margin-right: 5px;}

img {
  max-width: 100%;
  height: auto;
}
.center {
  justify-content: center;
  align-items: center;
}
.row{
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.row > * {
  width: 100%;
  padding: 0 0.75rem;
}
article { margin-left: 300px;}

section {
  padding: 60px 0;
  overflow: hidden;
}

section:nth-child(even){ background: #F6EAFF; }
section:last-child{ padding-bottom: 100px; }
.section-title { padding-bottom: 30px; }

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: #49176B;
  border-bottom: 3px solid #8602E5;
}
.section-title p { margin-bottom: 0;}

/*--------------------------------------BACK TO TOP---------------------------------------*/

.back-to-top {
  position: fixed;
  opacity: 0;
  z-index: 96;
  background: #0C0114;
  right: 15px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.5s;
  display: flex;
}
.back-to-top i {
  padding-bottom: 2px;
  font-size: 25px;
  color: white;
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}
.back-to-top:hover{ scale: 1.1; }

/*--------------------------------------MOBILE NAV---------------------------------------*/
.mobile-nav-toggle:hover { scale: 1.1; }

.mobile-nav-toggle {
  position: fixed;
  left: 15px;
  top: 15px;
  z-index: 98;
  font-size: 20px;
  background-color: #0C0114;
  color: white;
  width: 40px;
  height: 40px;
  display: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.5s;
}

.mobile-nav-active #header { left: 0; }

/*--------------------------------------NAV----------------------------------------------*/

#header {
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 97;
  transition: all 0.5s;
  padding: 0 15px;
  background: #0C0114;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
#header h1 {
  font-size: 1.75rem;
  margin: 1rem;
}
.logo-container{
  margin: 0 50px;
  position: relative;
}
#logo{
  display: flex;
  height: 10rem;
  width: 100%;
  position: relative;
  aspect-ratio: 1.5;
  margin-bottom: 1rem;
  user-select: none;
  cursor: pointer;
}
#logo::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 5px solid white;
  border-radius: 50%;
  background-color: #212431;
  box-shadow:  inset 0 0 10px 2px white, 0 0 25px 1px #8602E5;
}
#logo > img {
  position: absolute;
  z-index: 2;
  width: 60%;
}
.social-links a {
  font-size: 20px;
  display: inline-block;
  background: #212431;
  color: white;
  line-height: 1;
  padding: 8px 0;
  margin: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all 0.5s;
}
.social-links a:hover { background: #8602E5;}

#navbar {
  padding: 30px 0 30px 15px;
  text-align: start;
  display: flex;
  flex-direction: column;
  max-height: 40vh;
}
#navbar a{
  align-items: center;
  color: #a8a9b4;
  padding: 10px;
  font-size: 15px;
}
#navbar a:hover, #navbar .active{
  color: white;
}
#navbar a i {
  font-size: 24px;
  padding-right: 8px;
  color: #7e7f89;
}
#navbar a:hover i, #navbar .active i {
  color: #8602E5;
  transition: all 0.5s;
}

/*--------------------------------------HERO---------------------------------------*/
#hero {
  height: 100vh;
  background-color: black;
  display: flex;
}
#hero video{
  margin-left: 300px;
  width: calc(100% - 300px);
  position:absolute;
}
#hero .hero-container {
  margin-left: 300px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
}
.my-name {
  font-size: 64px;
  line-height: 56px;
  font-family: "Space Mono", monospace;
}
#hero p {
  color: white;
  font-size: 26px;
  margin-bottom: 0;
}

/*--------------------------------------ABOUT---------------------------------------*/
#about{
  padding-bottom: 30px;
  min-height: 100vh;
}
#portrait {
  box-shadow: -0.5rem 0.5rem 0.5rem #49176B;
  max-width: 400px;
  animation: morph 15s ease-in-out infinite;
}

#margin-btm {
  margin-bottom: 50px;
}
#about li::before{
  content: "\27A4";
  color: #8602E5;
  font-size: 16px;
  margin-right: 5px;
  line-height: 0;
}
#about ul{
  margin-bottom: 0 ;
}
#about li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
#about-desc{
  margin-top: 40px;
  padding-left: 100px;
}

/*--------------------------------------SKILLS---------------------------------------*/

#skills{ min-height: 100vh; }
#skills .skill-item { height: 4rem; }

.skill {
  padding: 0;
  margin-bottom: 6px;
  font-weight: bold;
}
#skills i {
  float: right;
  font-style: normal;
}
#skills .p-bar-container {
  background: #7e7f89;
  border-radius: 5px;
  height: 10px;
  /* position: relative; */
}
#skills .p-bar {
  height: 100%;
  width: 0%;
  position: relative;
  border-radius: 5px;
  background-color: #49176B;
  transition: width 0.8s ease-in-out;
  /* animation: pulse 5s infinite; */
}
.p-bar-circle {
  position: absolute;
  top: -2.5px;
  right: -3px;
  width: 15px;
  height: 15px;
  background-color: #49176B;
  border-radius: 50%;
  z-index: 1;
  animation: pulse 2s infinite;
}


/*--------------------------------------Projects---------------------------------------*/
.carousel{
  margin-bottom: 20px;
  border: 2px solid #8602E5;
  border-radius: 5px;
}
.carousel-title{
  background-color: #8602E5;
  padding-bottom: 5px;
  margin-bottom: -5px;
  font-weight: 700;
}
.carousel-item * {border-radius: 5px;}
.carousel-caption, .carousel-control-next-icon, .carousel-control-prev-icon{
  background-color: rgba(0, 0, 0, 0.6) !important;
}
.carousel-link{
  background-color: #8602E5;
  color: white;
  border-radius: 5px;
  width: 50%;
  margin: 10px auto;
}
.projects{
  width: calc(100% / 3);
}
.project-container {
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-bottom: 30px;
}
.project-container img{
  border: 1px solid #8602E5;
  border-radius: 5px;
}
.project-container:before {
  content: "";
  background: rgba(255, 255, 255, 0.3);
  position: absolute;
  transition: all ease-in-out 0.5s;
  z-index: 2;
  opacity: 0;
}
.project-container:hover:before{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}
.project-cat{
  font-size: 28px;
  color: white;
  background-color: #8602E5;
  border-radius: 5px 5px 0 0;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  transition: all ease-in-out 0.5s;
  z-index: 3;
}
.project-container:hover .project-cat { top: 0; }

.project-link {
  display: flex;
  font-size: 28px;
  color: white;
  background-color: #8602E5;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -45px;
  transition: all ease-in-out 0.5s;
  z-index: 3;
}
.project-link:hover{
  transition: all 0.5s;
  background: #49176B;
}
.project-container:hover .project-link {
   bottom: 0;
   border-radius: 0 0 5px 5px;
  }

.project-link a {
  padding-top: 3px;
  color: white;
  width: 100%;
}
.project-cat:hover .fa-gamepad:before{
  content: "Web Game";
  font-family: Arial, Helvetica, sans-serif;
}
.project-cat:hover .fa-paint-brush:before{
  content: "Art";
  font-family: Arial, Helvetica, sans-serif;
}
.project-cat:hover .fa-desktop:before{
  content: "Web Design";
  font-family: Arial, Helvetica, sans-serif;
}
.project-cat:hover .bi-terminal:before{
  content: "CLI App";
  font-family: Arial, Helvetica, sans-serif !important;
}
.project-cat:hover .bi-filetype-java:before{
  content: "JAR App";
  font-family: Arial, Helvetica, sans-serif !important;
}
.project-cat:hover .bi-android:before{
  content: "Android App";
  font-family: Arial, Helvetica, sans-serif !important;
}
.project-cat:hover .fa-question-circle:before{
  content: "Upcoming";
  font-family: Arial, Helvetica, sans-serif;
}

/*--------------------------------------CONTACT---------------------------------------*/
#contact{ padding-bottom: 150px; }
#contact .row{ padding: 0 12px; }

.info{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 30px 15px 30px !important;
  background: white;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.2);
}
#contact i {
  font-size: 20px;
  color: #8602E5;
  border: 1px solid #8602E5;
  float: left;
  width: 40px;
  height: 40px;
  background: #F6EAFF;
  display: flex;
  border-radius: 50px;
  transition: all 0.5s ease-in-out;
}
#contact .columns-to-50{ padding: 0;}

#contact h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: black;
}
.info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #49176B;
}
#contact .contact-type:hover i, #resume:hover {
  background: #8602E5;
  color: white;
  transition: all 0.5s ease-in-out;
}
#resume{
  margin-top: 10px;
  border-radius: 10px;
  background-color: #F6EAFF;
  border: 1px solid #8602E5;
}
#resume i{
  border: none;
  transition: none;
  text-align: left;
}

#resume h4{
  padding: 7px 60px;
  text-align: center;
}
#resume h4:hover {
  color: white;
  transition: all 0.5s ease-in-out
}


/*--------------------------------------FOOTER----------------------------------------------*/
#footer {
  margin-left: 300px;
  padding: 15px;
  color: white;
  font-size: 14px;
  position: static;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 99;
  background: #0C0114;
}

#footer p {
  margin: 0;
  text-align: center;
}

/*--------------------------------------RESPONSIVENESS---------------------------------------*/

/* MAXS */
@media (max-width: 405px) {
  .carousel-caption * {font-size: 10px;}
  #resume i{
    font-size: 30px;
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 550px) {
  #hero h1 {
    font-size: 36px;
    line-height: 1;
  }
  #hero p {
    font-size: 20px;
    line-height: 1;
  }

}

@media (max-width: 768px){
  #about img{ margin-left: 0 !important; }
  #portrait{ width: 100%; }
  #margin-btm{ margin-bottom: 20px;}

  #about-desc, #about ul{
    margin-top: 0;
    margin-bottom: 0;
  }
  .projects{ width: 100% !important }
}

@media (max-width: 992px) {
  #portrait { animation: none; }
  #about h3 { padding-top: 20px; }
  #about img { margin-left: 150px; }

  #about-desc{
    margin-top: 10px;
    padding-left: 0;
  }
  #about ul{
    margin-left: 0;
    margin-bottom: 0;
    font-size: initial;
  }
  #contact .half{
    padding: 0;
    margin: 0;
  }
  .projects{
    width: 50%;
    display: none;
  }
}

@media (max-width: 1199px){

  #header { left: -300px; }
  #hero video{
    margin-left: 0;
    width: 100%;
  }
  #hero .hero-container, #article, #footer{ margin-left: 0; }
  .container { padding: 0 12px; }
  .mobile-nav-toggle { display: flex; }
}


/* MINS*/
@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 769px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  #carousels {
    display: none;
    justify-content: space-around;
  }
  .carousel-caption * {font-size: x-small;}
  #webCarousel, #gameCarousel, #javaCarousel {width: 30%;}
  .container { max-width: 960px; }
  .columns-to-33 {
    width: calc(100% / 3);
  }
  .columns-to-66 {
    width: calc(200% / 3);
  }
  #skills .half, #contact .half, #about .half{
    width: 50% !important;
  }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px !important; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/*Max-Min Range*/
@media (max-width: 992px) and (min-width: 768px) {
  #resume i{
    font-size: 30px;
    width: 60px;
    height: 60px;
  }
  .half{
    flex: 0 0 auto;
    width: 50%;
  }
}


/*--------------------------------------ANIMATIONS---------------------------------------*/

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}

@keyframes morph {
  0%,100% {
			border-radius:  50% 40% 30% 70% / 50% 30% 70% 40%;
      transform: translateX(0) translateY(0);
	}

	50% {
			border-radius:  30% 60% 70% 40% / 50% 60% 30% 60%;
      transform:  translateX(0%) translateY(2%);
	}

}