 :root {
  --main-blue: rgb(76, 48, 252);
  --main-text-color: rgb(240, 240, 240);
  --nav-background: linear-gradient(5deg, #3a3d45 0%, #181719 100%);
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s linear;
  --clr-grey-8: hsl(210, 31%, 80%);
}

*,
::after,
::before,
::marker {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
}

body {
  font-family: 'Poppins', sans-serif;
}

nav {
  background: var(--nav-background);
  box-shadow: var(--light-shadow);
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle {
  background: transparent;
  border-color: transparent;
  font-size: 2rem;
  color: var(--main-blue);
  transition: var(--transition);
}

.fa-fire {
  font-size: 2.5rem;
  color: var(--main-blue);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0% {
    transform: scale(0.5);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.5);
  }
}

.links ul a {
  font-size: 1rem;
  text-transform: capitalize;
  display: block;
  padding: 0.7rem 2rem;
  transition: var(--transition);
  text-decoration: none;
}
.links ul a:hover {
  color: var(--main-blue);
  padding-left: 2rem;
}

.nav-mobile {
  display: none;
}

.show-links .nav-mobile {
  display: block;
}

.close {
  display: none;
}
.show-links .open {
  display: none;
}
.show-links .close {
  display: inline;
}

.intro {
  color: var(--main-blue);
  font-size: .8rem;
  padding-top: 2.5rem;
  font-family: 'Kaushan Script', cursive;
}

code {
  font-size: 1rem;
  font-weight: bold;
}

.links a,
code {
  color: #909096;
}

@media screen and (max-width: 599px)  {
  .intro, code {
    display: none;
  }
}

@media screen and (min-width: 599px) {
  body {
    margin-left: 7.5rem;
  }
  .nav-center {
    width: 7.5rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4rem;
    top: 0;
    left: 0;
    bottom: 0;
    position: fixed;
    background: linear-gradient(5deg, #3a3d45 0%, #181719 100%);
  }
  .nav-header {
    padding: 0;
  }
  .nav-toggle, .nav-toggle2 {
    display: none;
  }
  .links {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    text-align: center;
    height: auto;
    margin-bottom: 5rem;
  }
  .nav-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 3rem 0 2rem;
    background: linear-gradient(60deg, #1c212e 0%, #000000 100%);
  }
  .links ul a {
    padding: 0.7rem 0;
  }
  .fa-fire {
    font-size: 5rem;
  }
}


#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 100vh;
  position: relative;
  background: radial-gradient(
      closest-corner circle at 90% 15%,
      #ccc,
      #ccc 20%,
      #445 21%,
      #223 100%
    );
}

#welcome-section h1 {
  font-size: 5.5rem;
  color: var(--main-text-color);
}

#welcome-section span {
  font-size: 7rem;
  font-family: 'Raleway', sans-serif;
   background-image: linear-gradient(
     320deg,
     var(--main-blue) 0%,
     white 25%,
     var(--main-blue) 50%,
     var(--main-blue) 75%,
     var(--main-blue) 100%
   );
   background-size: auto auto;
   background-clip: border-box;
   background-size: 200% auto;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   animation: textclip 5s alternate infinite;
   display: inline-block;
   
 }
 
 @keyframes textclip {
   to {
     background-position: 200% center;
   }
 }

#welcome-section p {
  font-family: Poppins;
  color: var(--main-text-color);
  font-size: 1.4rem;
  margin-top: 4px;
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
  #welcome-section h1 {
    font-size: 5rem;
    }

    #welcome-section p  {
      font-size: 1.1rem;
      margin-top: 1px;
  }
}

/* Welcome Section Media Query for iPads */
@media screen and (max-width: 767px) and (min-width: 600px) {
  #welcome-section h1 {
  font-size: 4rem;                               
  }

  #welcome-section p  {
      font-size: 1.2rem;
      margin-top: 1px;
  }

  #welcome-section span {
  font-size: 5rem;
  }
}

/* Welcome Section Media Query for Mobiles */
@media screen and (max-width: 599px) and (min-width: 0px) {
  #welcome-section {
    height: calc(100vh - 70px);
    background: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
  }

  #welcome-section h1 {
    margin-top: -15px;
    font-size: 3rem;
  }

  #welcome-section p  {
      font-size: 1.05rem;
      margin-top: 2px;
  }

  #welcome-section span {
  font-size: 3.8rem
  }
}

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 800px;
  padding: 100px;
  background: linear-gradient(142deg, #181719 0%, #3a3d45 50%, #181719 100%);
  /* background-color: rgb(26,37,75); */
  color: var(--main-text-color);
}

#projects h1 {
  text-align: center;
  font-size: 2.5rem;
  border-bottom: 2px solid var(--main-text-color);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.8rem;
}

.project {
  background-color: gray;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 50%);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
}

.project:hover {
  opacity: 0.5;
  color: #fff;
}

.project-image {
  height: 280px;
  /* calc(100% - 4rem); */
  width: 100%;
  object-fit: cover;
  object-position: top left;
  padding: 2px;
}

.project-title {
  text-align: center;
  font-size: 1.4rem;
  padding: 0.7rem 0.5rem;
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
  #projects {
    padding: 20px;
  }

  #projects h1 {
    font-size: 2.1rem;
  }

  .project-title {
    font-size: 1.2rem;
    padding: 0.5rem 0.5rem;
  }
}

/* Project Section Media Query for iPads */
@media screen and (max-width: 767px) and (min-width: 600px) {
  #projects {
      padding: 100px 50px;
      height: 100vh;
  }

  #projects h1 {
      font-size: 2rem;
  }

  .project-grid {
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-top: 1.8rem;
  }

  .project-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    }

  .project-title {
      font-size: 1rem;
      padding: 0.7rem 0.5rem;
  }
}

/* Project Section Media Query for Mobiles */
@media screen and (max-width: 599px) and (min-width: 280px) {
  #projects {
      padding: 50px 30px;
      height: 100%;
      z-index: 200;
  }

  #projects h1 {
  font-size: 1.2rem;
  }

  .project-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.8rem;
  }

  .project-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  }

  .project-title {
  font-size: 1rem;
  padding: 0.3rem 0.4rem 0.5rem 0.4re;
  }
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background-color: #181719;
  color: var(--main-text-color);
}

#contact h1 {
  font-size: 5rem;
  text-align: center;
  background-color: none;
}

#contact p {
  font-size: 1.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-style: italic;
  text-align: center;
}

#contact div {
  display: flex;
  flex-direction: rows;
  justify-content: center;
  align-content: baseline;
  flex-wrap: wrap;
  margin-top: 60px;
  gap: 20px;
}

.fa-twitter,
.fa-github,
.fa-envelope,
.fa-whatsapp {
  padding: 0 10px;
}

#profile-link {
  text-decoration: none;
  color: inherit;  
  font-size: 2.4rem;
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
  #contact h1 {
    font-size: 3.5rem;
  }
  #contact p {
    font-size: 1.2rem;
  }

  #profile-link { 
    font-size: 1.7rem;
  }
}

/* Contact Section Media Query for iPads */
@media screen and (max-width: 767px) and (min-width: 600px) {
  #contact h1 {
  font-size: 2.5rem;
  }

  #contact p {
      font-size: 1rem;
  }

  #profile-link { 
      font-size: 1.5rem;
  }
}

/* Project Section Media Query for Mobile */
@media screen and (max-width: 599px) and (min-width: 280px) {
  #contact {
    padding: 50px;
    height: 97vh;
    z-index: 200;
  }
  
   #contact h1 {
  font-size: 2rem;
  }

  #contact p {
      font-size: 0.8rem;
  }

  #profile-link { 
      font-size: 1.1rem;
      justify-content: center;
  }

  .fa-envelope {
    font-size: 1.9rem;
  }
}
