/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --hue: 14;
  --first-color: hsl(var(--hue), 100%, 65%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 65%);
  --body-color: hsl(228, 15%, 20%);
  --container-color: hsl(228, 15%, 15%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}


/*=============== BUTTON ===============*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  padding: 1rem 1.75rem;
  margin-right: 5px;
  border-radius: .5rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: box-shadow .4s;
}

.button:hover{
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, .25);
}


/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}



html {
  scroll-behavior: smooth;
}

input,
textarea,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
textarea,
button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.section__subtitle span {
  color: var(--first-color);
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  background-color: var(--container-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo span{
  color: var(--first-color);
}

.nav__toggle,
.nav__close{
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px){
  .nav__menu{
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(0, 0%, 10%, .3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /*For safari*/
    transition: right .4s;
  }


  .footer__list{
    margin-bottom: 18%;
  }
}

@media (max-width: 767px) {
  /* For mobile devices */
  .tab-nav {
    display: flex; /* Show tab nav only on mobile devices */
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: hsla(0, 0%, 10%, .3);
    padding: 10px;
    backdrop-filter: blur(24px);
    text-align: center;
    z-index: 999;
  }

  .tab-nav a {
    flex: 1;
    margin: 5px;
    padding: 15px 20px;
    color: var(--title-color);
    text-decoration: none;
    font-size: 16px;
  }

  .footer__list{
    margin-bottom: 18%;
  }
}

@media (min-width: 768px) {
  /* For larger screens */
  .tab-nav {
    display: none; /* Hide the tab nav */
  }

  .footer__list{
    margin-bottom: 0%;
  }
}

.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link{
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color .4s;
}

.nav__link:hover{
  color: var(--first-color);
}

.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu{
  right: 0;
}

/* Add blur to header */
.blur-header{
  background-color: transparent;
}

.blur-header::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 10%, .3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); /* For safari */
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link{
  color: var(--first-color);
}



/*=============== CONTENT ===============*/

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

article {
  width: 90%;
  margin: 15px;
  padding: 10px;
  text-align: center;
}

.content p{
  color: #d5d5d5;
}

img {
  max-width: 30%;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 30px;
  height: auto;
}

@media only screen and (max-width: 600px) {
  article {
    width: 100%;
  }
}

/*=============== FOOTER ===============*/
.footer{
    background-color: var(--container-color);
    padding-block: 3.5rem;
  }
  
  .footer__container{
    row-gap: 2rem;
    text-align: center;
  }
  
  .footer__title{
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: .25rem;
  }
  
  .footer__title span{
    color: var(--first-color);
  }
  
  .footer__education{
    font-size: var(--normal-font-size);
  }
  
  .footer__list{
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
  }
  
  .footer-link {
    color: white;
  }
  
  .footer-list li {
    margin-bottom: 10px;
  }
  
  .footer__social{
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
  }
  
  .footer__social-link{
    display: flex;
    background-color: var(--first-color-alt);
    padding: .5rem;
    color: var(--title-color);
    font-size: 1.5rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform .4s;
  }
  
  .footer__social-link:hover{
    transform: translateY(-.25rem);
  }
  
  .footer__copy{
    font-size: var(--smaller-font-size);
    margin-top: 2rem;
  }

  .home__social{
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
  }
  
  .home__social-link{
    display: flex;
    background-color: var(--first-color-alt);
    padding: .5rem;
    color: var(--title-color);
    font-size: 1.5rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform .4s;
  }

  .home__social-link:hover{
    transform: translateY(-.25rem);
  }  
  
  /*=============== SCROLL BAR ===============*/
  ::-webkit-scrollbar{
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(228, 15%, 15%);
  }
  
  ::-webkit-scrollbar-thumb{
    background-color: hsl(228, 8%, 35%);
    border-radius: .5rem;
  }
  
  ::-webkit-scrollbar-thumb:hover{
    background-color: hsl(228, 8%, 45%);
  }
  
  /*=============== SCROLL UP ===============*/
  .scrollup{
    position: fixed;
    right: 1rem;
    bottom: -50%rem;
    background-color: var(--body-color);
    padding: 6px;
    display: inline-flex;
    border-radius: .25rem;
    color: var(--first-color);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px hsla(228, 15%, 8%, .4);
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
  }
  
  .scrollup:hover{
    transform: translateY(-.25rem);
  }
  
  /* Show Scroll Up */
  .show-scroll{
    bottom: 3rem;
  }
  
  /*=============== BREAKPOINTS ===============*/
  /* For small devices */
  @media screen and (max-width: 320px){
    .container{
      margin-inline: 1rem;
    }
  
    
  }
  
  /* For medium devices */
  @media screen and (min-width: 576px){
    
  
  }
  
  @media screen and (min-width: 768px){
    .nav__menu{
      width: 55%;
    }
  
  }
  
  /* For large devices */
  @media screen and (min-width: 1023px){
    .section{
      padding-block: 7rem 2rem;
    }
    .section__subtitle{
      font-size: var(--normal-font-size);
    }
  
    .nav{
      height: calc(var(--header-height) + 1.5rem);
    }
  
    .nav__close,
    .nav__toggle{
      display: none;
    }
  
    .nav__list{
      flex-direction: row;
      column-gap: 3rem;
    }
  
    .nav__menu{
      width: initial;
    }
  }
  
  @media screen and (min-width: 1125px){
    .container{
      margin-inline: auto;
    }
  
    .footer{
      padding-block: 4.5rem 4rem;
    }
  
    .footer__container{
      grid-template-columns: repeat(3, 1fr);
      align-items: center;
      text-align: initial;
    }
  
    .footer__title{
      font-size: var(--bigger-font-size);
    }
  
    .footer__social{
      column-gap: 1.5rem;
    }
  
    .footer__copy{
      margin: 0;
      justify-self: flex-end;
    }
  
    .scrollup{
      right: 3rem;
    }
  
  
  }