* {
  margin: 0;
  padding: 0;
}

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

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  background-image: linear-gradient(to left, rgb(27 20 41), rgb(20 15 35));
}



 /* ---- particles.js container ---- */ 
 #particles-js{ 
    position:absolute; 
    width: 100%; 
    height: 100%;     
    background-size: cover; 
    background-position: 50% 50%; opacity: 0.2;
}


nav{
  display: flex;
  z-index: 1;
  position: fixed;
  top: 0px;
  width: 100%;
  background-color: rgba(26, 27, 46, 0.8);
  font-size: 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.navbar-brand {
  width: 30%;
  color: rgb(194, 15, 231);
}

.navbar-link {
  width: 65%;
  display: flex;
  justify-content: flex-end;
}

nav a {
  color: #eee;
  text-decoration: none;
  padding: 12px 15px;
}

.navbar-link a:hover {
  background-color: rgba(41, 10, 77, 0.7);
}

@media (max-width: 450px) {
  nav {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 15px;
  }
  .navbar-brand {
    text-align: center;
    width:100%;
  }
  .navbar-link {
    width: 100%;
  }
}

#image img{
  position: relative;
  max-width: 320px;
  border-radius: 50%; 
}

#welcome-section {
  display: flex;
  justify-content: center;
  height: 100vh;
  width: 100%;
  align-items: center;
  background-color: rgb(70, 50, 83);
  background-image: linear-gradient(62deg, #170a2c 0%, #181719 100% 0%, #181719 100%);
}

 h1 {
  font-family: 'Raleway', sans-serif;
  color: #eee;
  text-align: center;
  font-size: 45px;
  padding: 12px 70px;
  font-weight: 300;
}

#welcome-section i {
  font-size: 27px;
  color: rgba(195, 15, 231, 0.85);
  margin: 12px 85px;
}

@media (max-width: 640px) {
  #welcome-section {
    display: flex;
    flex-direction: column;
  }
}

#projects {
  text-align: center;
  background-color: rgb(70, 50, 83);
  background-image: linear-gradient(62deg, #170a2c 0%, #181719 100% 0%, #181719 100%);
}

#projects-header {
  max-width: 620px;
  margin: 0 auto 30px auto;
  padding-top: 3%;
  border-bottom: 1.5px solid #ccc;
  text-align: center;
  font-size: 40px;
  color: #ccc;
}

@media (max-width: 640px) {
  #projects-header {
    font-size: 26px;
  }
}
  
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 15px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 60px auto;
}
  
  .project {
  background: #333;
  box-shadow: 0px 2px 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  margin: 40px;
}
  
  .code {
  color: #333;
  transition: color 0.3s ease-out;
}

 .project:hover .code {
  color: rgb(194, 15, 231);
}

.project-image {
  height: calc(100% - 50px);
  width: 100%;
  object-fit: cover;
}

.projects-grid a{
  text-decoration: none;
  color: #ccc;
}

.project-title {
  font-size: 25px;
  padding: 10px 5px;
}

#profile-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 2px;
  background-color: #333;
  font-size: 22px;
  text-decoration: none;
  color: #ccc;
  margin-bottom: 30px;
}

#profile-link:hover {
  color: rgb(194, 15, 231);;
}

#contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: hsl(270, 50%, 1%);
  background-image: url('home-bg.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  padding-bottom: 30px !important;
  padding-top: 30px !important;
  width: 100%;
  height: 80vh;
}


#contact-header {
  color: #ccc;
  font-size: 50px;
}

#contact-p {
  font-size: 23px;
  color: #ccc;
  font-style: italic;
}

#social {
  text-align: center;
  font-size: 25px;
}

.fa {
  padding: 20px;
  text-decoration: none;
  color: #ccc;
  text-shadow: 2px 2px 1px #1f1f1f;
  transition: transform 0.3s ease-out;
}

.fa:hover {
  opacity: 0.7;
  transform: translateY(8px);
}

#footer {
  font-weight: 300;
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  padding: 30px;
  background-color: hsl(257, 41%, 12%);
  color: #ccc;
  font-size: 16px;
  text-shadow: 2px 2px 1px #1f1f1f;
}

#footer-link {
  text-decoration: none;
  color: #ccc;
}
