/*===============
  global styles
===============*/

* {
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background-color: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    box-shadow: none;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Poppins", sans-serif;
    line-height: 1.5;
    color: var(--clr-fg);
    background-color: var(--clr-bg);
  }
  
  .light {
    --clr-bg: #fcfcfc;
    --clr-bg-alt: #fff;
    --clr-fg: #555;
    --clr-fg-alt: #444;
    --clr-primary: #f80606;
    --box-shadow: 1px 1px 20px #0e0d0df7, 1px 1px 40px #000000f7;
    --color: 0 0 5px rgb(255, 0, 0), 0 0 25px rgb(250, 3, 3), 0 0 50px rgb(214, 27, 27), 0 0 80px rgb(189, 31, 31);
    --c: rgb(240, 34, 34);
    --s:0 0 5px rgb(255, 1, 43),0 0 25px rgb(255, 0, 13);
    --i:  rgb(240, 29, 29);
    --d:linear-gradient(315deg, #2bff00, #3cff00, #28ef00, #35fc03);
    --e:rgb(0, 0, 0);
  }
  
  .dark {
    --clr-bg: #000000;
    --clr-bg-alt: #000000;
    --clr-fg: #eff1f1;
    --clr-fg-alt: #cdcdff;
    --clr-primary: #00fcfc;
    --box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
    --color: 0 0 5px rgb(0, 255, 255), 0 0 25px rgb(0, 255, 221), 0 0 50px rgb(30, 224, 224), 0 0 80px rgb(0, 225, 255);
    --c: #0ef;
    --s:0 0 5px #0ef,0 0 25px #0ef;
    --i:  rgb(0, 236, 165);
    --d:linear-gradient(315deg, #ff1100, #fc03be, #ebef00, #fc0303);
    --e:white;
  }
  
  ::-moz-selection {
    background: var(--clr-primary);
    color: var(--clr-bg);
  }
  
  ::-webkit-selection,
  ::selection {
    background: var(--clr-primary);
    color: var(--clr-bg);
  }
  /*
  h1,
  h2,
  h3,
  h4 {
    line-height: 1.2;
    color: var(--clr-fg-alt);
  }
  */
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  h4 {
    font-size: 1.3rem;
  }
  
  ul {
    list-style-type: none;
  }
  
  a {
    text-decoration: none;
  }
  
  button {
    cursor: pointer;
  }
  
  @media (max-width: 900px) {
    h1 {
      font-size: 2.6rem;
    }
  }
  
  /*===================
    buttons and links
  ===================*/
  .logo{
    width: 160px;
    font-weight: 600;
    font-family: "Merienda", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
  }

  .image{
   
    width: 60vh;
    margin: 80px;
    margin-bottom: 50px;
    margin-top: -30px;
    background-position: right;
    background-origin: border-box;
    height: 60vh;
    float: right;
    padding-right: -10%;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--color);

  }

  

.image img {
  height: 300px;
  width: 200px;
  border: 2px solid rgb(0, 0, 0);
  border-radius: 100%;
 
}

.image::before {
  content: '';
  position: absolute;
  inset: -20px 140px;
  background: var(--d);
  box-shadow: 0 0 5px rgb(255, 0, 0), 0 0 25px rgb(255, 0, 0), 0 0 50px rgb(255, 2, 2),0 0 80px rgb(255, 0, 0);
  transition: 0.5s;
  animation: animate 30s linear infinite;
}

.image:hover::before {
  inset: -20px 80px;
}

.image::after {
  content: 'hello';
  position: absolute;
  inset: 6px;
  background-image: url("s.jpeg");
  background-size: cover;
  border-radius: 50%;
  z-index: 1;

}

.read{
  display: inline-block;
  padding: 12px 28px;
  background: var(--c);
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow: var(--s);
}
  .link {
    color: var(--clr-primary);
    padding: 0 0 0.3em 0;
    position: relative;
  }
  
  .link:hover {
    color: var(--clr-primary);
  }
  
  .link::before {
    content: "";
    display: inline;
    width: 0%;
    height: 0.2em;
    position: absolute;
    bottom: 0;
    background-color: var(--clr-primary);
    transition: width 0.2s ease-in;
  }
  
  .link:hover::before,
  .link:focus::before {
    width: 100%;
  }
  
  .link--nav {
    color: var(--clr-fg);
    text-transform: lowercase;
    font-weight: 500;
  }
  

  
  .link--icon {
    color: var(--clr-fg);
    font-size: 1.2rem;
  }
  
  .btn {
    display: flex;
    padding: 0;
    font-weight: 500;
    font-size: 15px;
    text-transform: lowercase;
    transition: transform 0.2s ease-in-out;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 18px;
    letter-spacing: 1px;
  }


  .btn--outline {
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    justify-content: center;

  }
  
  .btn--outline:focus,
  .btn--outline:hover {
    color: var(--clr-bg);
  }
  
  .btn--outline:before {
    content: "";
    position: absolute;
    background-color: var(--clr-primary);
    right: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    z-index: -1;
    transition: right 0.2s ease-in-out;
  }
  
  .btn--outline:hover::before,
  .btn--outline:focus::before {
    right: 0;
  }
  
  .btn--plain {
    text-transform: initial;
    background-color: var(--clr-bg-alt);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
    border: 0;
  }
  
  .btn--plain:hover {
    transform: translateY(-4px);
  }
  
  .btn--icon {
    padding: 10;
    font-size: 1.2rem;
    padding-left: 30px;
  }
  
  .btn--icon:hover,
  .btn--icon:focus {
    color: var(--clr-primary);
  }
  
  .btn--icon:active {
    transform: translateY(-5px);
  }
  
  /*========
    layout
  ========*/
  
  .center {
    display: flex;
    position: relative;
    width: 100;
    height: 100;
  }
  
  .header {
    height: 8em;
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    justify-content: space-between;
    margin-top: 40px;
  }
  
  main {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
  }
  
  .section {
    margin-top: 5em;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  
  .section__title {
    text-align: center;
    margin-bottom: 1em;
    text-transform: uppercase;
  }
  
  .nav__list {
    
    margin-right: 1.5em;
    display: flex;
    font-family: "Merienda", cursive;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
  }
  
.nav__list-item::after{
  content:'';
  width: 0;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
  
}

  .nav__list-item {
    margin-left: 1.5em;
    
  }
  
  .nav__hamburger {
    display: none;
    width: 1em;
  }
  
  .about {
    flex-direction: column;
    margin-top: 3em;

    
  }
  
  .Home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.Home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
}

.Home-content h3 span {
    color: rgb(7, 245, 253);
}
  
  .about__name {
    color: var(--clr-primary);
  }
  
  
  .about__desc {
    font-size: 1rem;
    max-width: 600px;
  }
  
  .Home-sic a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    font-size: 20px;
    color:var(--c);
    text-decoration: none;
    transition: .5s;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.Home-sic a:hover {
    background:var(--c);
    color: rgb(7, 7, 7);
    box-shadow: 0 0 20px var(--c);
}


  .about__desc,
  .about__contact {
    margin-top: 2.4em;
  }
  
  .about .link--icon {
    margin-right: 0.8em;
  }
  
  .about .btn--outline {
    margin-right: 1em;
  }
  

.about-text
{
    display: flex;
    flex-direction: column;
    align-items: center;
    

}
  .about-text h2{
    font-size: 60px;
    margin-top: 80px;
    margin-bottom: 10px;
}

.about-text h2 span{
    color: var(--c);
}

.about-text h4{

    font-size: 29px;
    font-weight: 600;
}

.about-text p{
    font-size: 20px;
    margin: 30px;
    letter-spacing: 1px;
    line-height: 1.4;

}

  .projects__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    grid-gap: 6em;
    padding-top: 50px;
  }
  
  .project {
    margin-top: 80px;
    padding: 3em;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s linear;
    border-radius: 20px;
  }
  
  .project:hover {
    transform: translateY(-7px);
  }
  
  .project__description {
    margin-top: 1em;
  }
  
  .project__stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.2em 0;
  }
  
  .project__stack-item {
    margin: 0.5em;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--clr-fg-alt);
  }
  
  .project .link--icon {
    margin-left: 0.5em;
  }
  
  .skills__list {
    max-width: 450px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .skills__list-item {
    margin: 0.5em;
  }
  
  .contact {
    flex-direction: column;
  }
  

  form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 1rem;
    
}

form input, form textarea {
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: var(--e);
    color: var(--clr-bg-alt);
    border-color: var(--c);
    padding: 20px;
}

form button {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #333;
    color: var(--e);
    border: none;
    cursor: pointer;
}



  .footer {
    padding: 3em 0;
    margin-top: 4em;
    text-align: center;
  }
  
  .footer__link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-fg);
  }
  
  .scroll-top {
    display: none;
    position: fixed;
    bottom: 1em;
    right: 2em;
    background-color: transparent;
    font-size: 1.8rem;
    transition: transform 0.2s ease-in-out;
  }
  

  @media (max-width: 600px) {

    .header {
      height: 6em;
    }
  
    .section {
      margin-top: 4em;
      display: flex;
      flex-direction: column;
    }
  
    .nav__list {
      flex-direction: column;
      padding: 4em 0;
      position: absolute;
      right: 0;
      left: 0;
      top: 5em;
      background-color: var(--clr-bg);
      width: 0;
      overflow: hidden;
      transition: width 0.2s ease-in-out;
    }
  
    .display-nav-list {
      width: 100%;
    }
  
    .nav__list-item {
      margin: 0.5em 0;
    }
  
    .nav__hamburger {
      display: flex;
      margin-left: 0.8em;
    }
  
    .about {
      align-items: flex-start;
      margin-top: 2em;
    }
  
    form {
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
  }
  
.section form label button{
  display: flex;
  flex-direction: column;
  padding: 75px;
}

form label {
      margin-top: 1rem;
      display: flex;
      
  }
  
  form input, form textarea {
      padding: 0.5rem;
      margin-top: 0.5rem;
     
  }
  
  form button {
      margin-top: 1rem;
      padding: 0.5rem;
      border: 3px;
      cursor: pointer;
  }

    .footer {
      padding: 2em;
      margin-top: 3em;
    }
  
    .cope{
      display: flex;
      align-items: center;
      text-decoration: none;
    }
    .scroll-container {
      display: none;
    }
  }

  @keyframes animate
{
    100%
    {
        transform: scaleX(1);
    }
}

@keyframes animate {
  0% {
      transform: rotate(0deg);
  }

  0% {
      transform: rotate(306deg);
  }
}

@keyframes slideLeft {
  0% {
      transform: translateX(100px);
      opacity: 0;
  }

  100% {
      transform: translateX(0x);
      opacity: 1;
  }
}


@keyframes slideTop {
  0% {
      transform: translateY(100px);
      opacity: 0;
  }

  100% {
      transform: translateY(0x);
      opacity: 1;
  }
}


@keyframes slideBottom {
  0% {
      transform: translateY(-100px);
      opacity: 0;
  }

  100% {
      transform: translateY(0x);
      opacity: 1;
  }
}
