@import url('https://fonts.googleapis.com/css2?family=Niconne&family=Sigmar+One&display=swap');
@font-face {
    font-family: 'Shojumaru-Regular';
    src: url(Shojumaru-Regular.ttf);
}
:root{
     --bg-color:#fefefe;
     --text-color-primary:#000000;
     --text-color-secondary:#000000;
     --transition-time:.3s;
     --scroll-thumb-color:rgb(255, 254, 254);
     --padding-1:2rem;
     --padding-3:3rem;
     --padding-4:4rem;
     --space-s: clamp(1.00rem, calc(0.02rem + 4.50vw), 4.38rem);
     --min-width:300px;
     --max-width:400px;
     --box-shadow-card:#afafaf;
     --animation-color-1:#000000;
     --animation-color-2:#1a0221;
     --bg-secondary:#ededed;
     --p-step-0: clamp(1.00rem, calc(0.68rem + 1.40vw), 1.500rem);
     --text-color-secondary:rgb(25, 25, 25);
     --i-color:#7f0988;
     --i-step-0: clamp(1.25rem, calc(0.72rem + 2.35vw), 3.00rem);
     --step-0: clamp(1.50rem, calc(1.03rem + 2.11vw), 3.00rem);
     --grad-height-1:0px;
     --grad-height-2:0px;
}
[data-theme="dark"] {
    --grad-height-2:5px;
    --grad-height-1:4px;
    --animation-color-1:#00BB00;
    --animation-color-2:#bf07f2;
   --text-color-primary:#ffffff;
   --animation-color-1:#00BB00;
   --i-color:#11e911;
   --bg-color: #121212;
   --text-color-secondary:#d0d0d0;
   --text-color-secondary:#fefefe;
   --box-shadow-card:#afafaf;
   --bg-secondary:#212121;
}
/* Remove default margin  and use border box*/
*,*::before,*::after{
    box-sizing: border-box;
    margin:0;
    padding: 0;
}
/* Set core body defaults */
html{
    scroll-behavior: smooth;
}
body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    background-color: var(--bg-color);
    color: var(--text-color-primary);
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
}
/* selection animation */
::selection{
    background-color:var(--text-color-primary) ;
    color: var(--bg-color);
}



/*---------- scrollbar --------- */
::-webkit-scrollbar {
    width: 1em;
    background-color: var(--text-color-primary);
  }
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }
::-webkit-scrollbar-thumb {
    border-radius: .5rem;
background: #161515;
box-shadow: inset 5px 5px 14px #262525,
            inset -5px -5px 14px #949393;
  }

a,button,.logo__wrapper{
    cursor: pointer;
}
a{
    text-decoration: none;
    color: var(--text-color-primary);
}
li{
    list-style: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
     scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  /* dark-mode toggler */
  .theme-switch-wrapper{
      position: fixed;
      bottom:1rem;
      right:1rem;  
      z-index: 999;
      border: 1px solid var(--bg-color);
      transform: scale(.7);
}
.toggler-text{
     position:fixed;
     bottom:2.5rem;
     text-align: center;
     right: 1rem;
     font-size: .8rem;
     font-weight: 500;
     width:100%;
}
.arrow{
    font-size: 1.5rem;
    font-weight: 700;
}
/*slider switch css */
.theme-switch-wrapper {
    display: flex;
    align-items: center;

  }
  .theme-switch 
  {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
  }
  
  .theme-switch input {
    display:none;
    border: 0px;
  }
  input[type="checkbox"]:focus,input[type="checkbox"]:hover{
    outline:none;
}

  
  .slider {
    background-color: rgb(0, 0, 0);
    inset:0;
    cursor: pointer;
    position: absolute;
    transition: .4s;
  }
  
  .slider:before {
    background-color: rgb(255, 251, 251);
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
  }
  
  input:checked + .slider {
    background-color: #ffffff;
  }
  
  input:checked + .slider:before {
    background-color: #000000;
    transform: translateX(26px);
  }
  
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
  /* ----------Container------------ */
 .container{
     margin:0 var(--padding-1);
 }
 
 /* hamburger */
 .hamburger{
    width: 3rem;
    position: fixed;
    top:-1rem;
    right: 1rem;
    z-index:99999;
    transform: translateX(150%);
 }
 .hamburger > span{
     display: inline-block;
     width: 3rem;
     height: 3px;
     background-color: var(--text-color-primary);
 }
.hamburger span:nth-child(1){
    margin-bottom: -2rem;
}
.hamburger span:nth-child(2){
    margin-bottom:-1rem;
}


 /* -----------navbar--------------- */
 
 .navbar__container{
     display: flex;
     justify-content: space-between;
     position: relative;
     border-bottom: 2px  solid  var(--text-color-primary);
     padding: var(--p-step-0) var(--padding-1);
 }
 .navbar__container::before{
    content: "";
    position: absolute;
    bottom: -2px;
    display: block;
    height: var(--grad-height-1);
    width: 100%;
    left:0px;
    z-index: 23;
    background-image: linear-gradient(to right,#31ff31 ,#bf07f2,#00bb00,#bf09d3);
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-name: gradients;
}
 /* navbar logo */
 .logo__wrapper{
   display: flex;
   max-width:content;
   align-items: center;
   border: 1px solid var(--text-color-primary);
   border-radius: 83% 17% 85% 15% / 34% 66% 34% 66% ;
   animation:logoanim  1s  infinite ease-in alternate-reverse;

 }

@keyframes logoanim{
    from{
        border-radius: 83% 17% 85% 15% / 34% 66% 34% 66% ;
    }
    to{
        border-radius: 57% 43% 61% 39% / 41% 81% 19% 59% ;
    }
     
 }
 .logo-text{
     align-items: center;
     font-weight: 600;
     font-size: 1.5rem;
     font-family: 'Niconne', cursive;
     opacity: .8;
     vertical-align: center;
 }
 /* nav bar links */
 .navbar ul{
     display: flex;
     gap: 1rem;
     font-size: 1.5rem;
     font-weight: 700;
     width: 100%;
    
 }
 .navbar__link{
    display: block;
    width: 100%;
}
 .navbar__link:hover{
     opacity: .8;
 }

 .navbar__item{
     width: 100%;
     position: relative;
 }
 
 .navbar__item::after{
     content: "";
     display: block;
     position: absolute;
     bottom: 0px;
     left: 0px;
     width: 0%;
     height: 3px;
     background-color: var(--text-color-primary);
     transition: var(--transition-time);
 }
 .navbar__item:hover::after {
     width: 100%;
 }
 /* Main  */
 /* My info section */
 .hero-section{
     display: flex;
     height: 100vh;
     position: relative;
     justify-content: space-around;
     align-items: center;
     padding: var(--padding-4);
     z-index: 0;
     border-bottom: 1px solid var(--text-color-primary);
    transition: .3s;
 }

 .hero-section::after{
     content:"";
     position: absolute;
     opacity: .2;
     inset: 7rem;
     border: 10px solid var(--text-color-primary);
     clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
     z-index: -1;
     transition: .3s;

 }
 .hero-section:hover::after{

    border: 10px dashed var(--text-color-primary);
  

}

 .myphoto__container{
     padding: .4rem;
     border: 1px solid var(--text-color-primary);
     box-shadow: 3px 3px var(--text-color-primary);
 }
 .myname{
     text-align: center;
     text-transform: capitalize;
     font-weight: 600;
     font-size: 1.5rem;
     font-style:oblique;
     text-decoration:var(--text-color-primary) underline  wavy ;
 }
 .myphoto{
     display: block;
     max-width:var(--max-width) ;
     filter: grayscale(100%);    
     transition: var(--transition-time);
 }
 .myphoto:hover{

    filter: grayscale(30%); 
 }
 /* Hero Brutal Text */

 
.glitch {
    font-size: 5rem;
    font-weight:400;
    color: transparent;
    opacity: .9;
    font-family: Shojumaru-Regular;
    text-shadow: 2px 2px var(--text-color-primary);
    text-stroke:1.5px var(--text-color-primary);
   -webkit-text-stroke:1.5px var(--text-color-primary) ;
   -moz-text-stroke:1.5px var(--text-color-primary);
   animation:  5s  move alternate;
}

@keyframes move {
   0%{
    text-shadow: 2px 2px var(--text-color-primary);
    
    }
    50%{
        text-shadow: -2px -2px 5px var(--animation-color-1);
       
    }
    75%{
        text-shadow: 2px 0px 4px  var(--animation-color-2);
    
    }
    100%{
        text-shadow: 2px 2px var(--text-color-primary);
    }

    
}

 
/* --------------Project-section----------------- */
.project-container{
    padding-bottom: 2rem;;
    display: grid;
    gap:2rem;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    border-bottom: 1px solid var(--text-color-primary);
}
.project-title{
    text-align: center;
    font-size: var(--step-0);
    margin:1rem;
    text-decoration: 2px wavy underline;
}
.project-container section{
      padding-bottom: 1rem;
      background-color: var(--bg-secondary);
      border:1px solid var(--text-color-primary);
      box-shadow: 3px 3px var(--box-shadow-card);
      color: var(--text-color-secondary);
      overflow: hidden;
      
}
figcaption{
    text-align: center;
    font-weight: 600;
    text-decoration: var(--text-color-secondary) underline overline wavy;
}
figcaption.halloween-title{
    text-decoration: var(--text-color-secondary) underline wavy;
}

.project-container img{
    width: 100%;
    height: auto;
    display: block;
   margin-bottom: .5rem;
}
.project-container p{
    padding: .4rem;
}
.repo-link-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
}

.github-link{
    text-align: center;
    padding: .3rem 1rem;
    display: block;
    margin: auto;
    color: var(--text-color-secondary);
    font-weight: 600;
    border: 2px solid var(--text-color-primary);
    transition: .3s;
    margin-bottom: 1rem;
}
.github-link:hover{
    border: 2px dashed var(--text-color-primary);
    transform: rotateZ(10deg);
}
/*  ------------Testimonial---Section-------------- */

/* -----------Footer-section---------- */
.footer-sec{
    padding: var(--space-s);
    display: grid;
    position: relative;
    place-content: center;
    background-color: var(--bg-secondary);
    
}
.footer-sec::before{
    content: "";
    position: absolute;
    top: -2px;
    display: block;
    height: var(--grad-height-2);
    width: 100%;
    left:0px;
    z-index: 23;
    background-image: linear-gradient(to right,#31ff31 ,#bf07f2,#00bb00,#bf09d3);
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-name: gradients;
}
@keyframes  gradients{
    0% {
        background-image: linear-gradient(to right,#31ff31 ,#bf07f2,#e8c517,#bf09d3);
      }
    
      50% {
        background-image: linear-gradient(to right,#120fc6 ,#6d07f2,#00bb00,#e213f9);
      }
      75% {
        background-image: linear-gradient(to right,#bf07f2,#00bb00,#e4b81a,#31ff31);
      }
      100% {
        background-image: linear-gradient(to right,#31ff31 ,#bf07f2,#00bb00,#bf09d3);
      }
}
.footer-sec ul{
    display: flex;
    gap:2rem;
}

i{
    color: var(--text-color-primary);
    font-size: var(--i-step-0);
    transition: .5s;

}
i:hover{
    color: var(--i-color);
    transform: rotate(360deg);
}
/* ------------Lazy----load---------- */
.img,figure .img{
    opacity: .2;
    transition: .3s;
}
.img.fade{
    opacity: 1;
}


 /* media query */
 /* 12001+ px large screen */
 /* 1025px — 1200px: Desktops, large screens */
@media (max-width:1200px) {
    .glitch h2{
        font-size: 4rem;
    }
    
}

/* 769px — 1024px: Small screens, laptops */
@media (max-width:1124px) {
    .hero-section{
        flex-direction: column;
        gap: 2rem;
    }
    .glitch{
        text-align: center;
    }
    
   .navbar{
    position: fixed;
    inset:0;
    /* border:2px solid red; */
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 999;
    display: flex;
    align-items: center;
    transform: translateY(-100%) translateX(100%);
    border-radius:0px 0% 67% 33% / 0% 43% 57% 100% ;
    transition: 1s;
    
   }
   .project-container{
    grid-template-columns:  repeat(2,minmax(340px,1fr));
}
   
   .hamburger{
       transform: translateX(0);
   }
 
   .navbar__wrapper{
       width: 100%;
   }
   
   .navbar ul{
       width: 100%;
       flex-direction: column;
       gap: 2rem;
       width: 100%;
       transform: translateY(-3rem);
       
   }
   .navbar__item{
       width: 100%;
      text-align: center;
   }
  
   .navbar__item:hover::after {
    width: 80%;
}
   .display{
       transition: 1s;
       transition-timing-function: cubic-bezier(0,1.99,.62,.3);
       transform: translateY(0) translateX(0);
       border-radius:0;
   }
    .navbar__container{
        border: 0px;
    }
 
  
}

@media (max-width:890px){
    .project-container{
        grid-template-columns: repeat(2,minmax(310px,1fr));
    }
}

/* 769px — 1024px: Small screens, laptops */
 @media (max-width:769px) {
    .container{
        margin: 0 1rem;
    }
    .hero-section{
        height: auto;
    }
    .project-container{
        grid-template-columns: repeat(auto-fit,minmax(310px,1fr));
    }
    .glitch{
        font-family: 'Niconne', cursive;
        font-family: 'Sigmar One', cursive;
        font-size: 3.5rem;
    }
}
@media (max-width:700px){
    .container{
        padding: var(--padding-3);
    }
}
/* 320px — 480px: Mobile devices */
@media (max-width: 480px) {
    .glitch{
        font-size: 2.3rem;
    } 
    .container{
        margin: 0 .7rem;
        padding: 0px;
    }
    .hero-section{
        padding: 1rem;
    }
    .myphoto{
        max-width: var(--min-width);
    }
    .project-container{

        padding: .2rem;
    }
 
  .hero-section::after{
    border:0px;
   
}

} 


