/* MAIN */


/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --light-bg: #f7f7f7;
  --light-text: #090909;
  /* --dark-bg: #1e1e1e;   */
  /* --dark-bg: #191919;   */
  --dark-bg: #0f0f0f; 
  --dark-bg: #000000;  
  --dark-text: #e0e0e0;  
  --accent-color: #00ccff;
  /* --accent-color: #b90de9; */
  --section-bg-light: rgb(255, 255, 255);
  /* --section-bg-dark: #2a2a2a;  */
  /* --section-bg-dark: #242424;  */
  /* --section-bg-dark: #1a1a1a;  */
  --section-bg-dark: #191919; 
  --section-bg-dark: #141414; 

  --subtle-border: #444;
  --glitch-red: #ff003c;
  --glitch-yellow: #ffff00;
  --glitch-blue: #00ccff;
  --glitch-green: #39ff14;
  --glitch-pink: #ff00c8;
}


[data-theme="dark"] {
  --bg-color: var(--dark-bg);
  --text-color: var(--dark-text);
  --section-bg: var(--section-bg-dark);
}

[data-theme="light"] {
  --bg-color: var(--light-bg);
  --text-color: var(--light-text);
  --section-bg: var(--section-bg-light);
}

html {
  scroll-behavior: smooth;
}

body {
  /* overflow-y: scroll;          
  scrollbar-width: none; 
  -ms-overflow-style: none; */
  font-family: 'Roboto', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::-webkit-scrollbar, body::-webkit-scrollbar-button { display: none; }

.small_screen_overlay {
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* .small_screen_overlay.active {
    visibility: visible;
    opacity: 1;
  } */

  .popup {
    background: #000000;
    border-radius: 5px;
    width: 80%;
    padding: 20px;
    position: relative;
    transition: all 0.5s ease-in-out;
  }

  .popup h2 {
    margin-top: 0;
    color: var(--accent-color);
    font-family: Tahoma, Arial, sans-serif;
  }

  .popup button {
    border: none;
    padding: 5px;
    background-color: var(--accent-color);
    color: var(--bg-color);
  }

  .popup .close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    cursor: pointer;
  }

  .popup .close:hover {
    color: #06D85F;
  }

  .popup .content {
    max-height: 200px;
    overflow: auto;
  }



.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-color);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 997;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.2);
  transition: opacity 1s;
}

.headeryay {
  opacity: 1;
}

.headernay {
  opacity: 0;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
}

.navbar a {
  margin: 0 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

.navbar a:hover {
  color: var(--accent-color);
}

#themeButton {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.3s;
}

#themeButton:hover {
  transform: scale(1.7);
}

.intro {
  display: flex;
  flex: 0.5;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0rem;
}

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

.intro-text h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-family: 'Montserrat', sans-serif;
}


.intro-text p {
  align-items: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(#f5f5ff);
  flex: 1;
}

.intro-img {
  display: flex;
  flex: 1;
  margin: auto; 
}

.intro-img img {
  width: 100%;
  border-radius: 20px;
  border-radius: 5%;
  margin: auto;
}

.intro-text a {
  margin: 0 10px;
}

a img {
  border: none;
  display: inline-block;
}

a {
  text-decoration: none;
  background: none;
}

.section {
  padding: 2rem 2rem;
  background-color: var(--section-bg);
  margin: 2rem 0;
  border-radius: 15px;
  margin-left: 5%;
  margin-right: 5%;
  z-index: 99;
  scroll-margin-top: 5rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.section h6 {
  margin-bottom: 1.5rem;
}

.section a {
  color: var(--text-color)
}

.section::after {
  content: "";
  display: block;
  clear: both;
}

.section img {
  border-radius: 10px;
}

.static-intro {
  font-family: 'Roboto', monospace;
  font-size: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  width: 20ch;
}

/* ABOUT ME */
#aboutme {
  display: flex;
  align-items: center;  
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5%;
  flex-wrap: wrap;
}

.about-text  {
  /* flex: 0.5; */
  width: 60%
}


/* TECH STACK */
#stackHolder {
  display: flex;
  align-items: center;
  /* gap: 3%; */
}

.scene {
  position: relative;
  margin: 0 auto;
  /* border: 0.5em solid purple; */
  width: 70%;
  height: 140px;
  margin-top: 2%;
  margin-bottom: 3.5rem;
  perspective: 1000px;
}

.carousel {
  width: 100%;
  height: 100%;
  /* position: absolute; */
  align-items: center;
  transform: translateZ(-288px);
  transform-style: preserve-3d;
  transition: transform 1s;
  
}

.carousel__cell {
  position: absolute;
  /* width: 190px;
  height: 120px; */
  width: 22%;
  left: 40%;
  top: 5%; 
  line-height: 116px;
  font-size: 80px;
  font-weight: bold;
  color: white;
  text-align: center;
  transition: transform 1.5s, opacity 1s;
  border-radius: 25px;
}

.carousel__cell img {
  width: 70%;
  height: auto;
  border-radius: 25%;
}

.carousel__cell img:hover {
  width: 80%;
  height: auto;
  transform: translateY(-5px);
  transition: 0.2s;
  /* box-shadow: 0 20px 20px rgba(0, 204, 255, 0.4); */
}


/* For Angle: if you have 4 images, then divide 360 by (4 + 1) and work that way */
.carousel__cell:nth-child(1) { transform: rotateY( 0deg) translateZ(288px); }
.carousel__cell:nth-child(2) { transform: rotateY( 40deg) translateZ(288px); }
.carousel__cell:nth-child(3) { transform: rotateY( 80deg) translateZ(288px); }
.carousel__cell:nth-child(4) { transform: rotateY(120deg) translateZ(288px); }
.carousel__cell:nth-child(5) { transform: rotateY(160deg) translateZ(288px); }
.carousel__cell:nth-child(6) { transform: rotateY(200deg) translateZ(288px); }
.carousel__cell:nth-child(7) { transform: rotateY(240deg) translateZ(288px); } 
.carousel__cell:nth-child(8) { transform: rotateY(280deg) translateZ(288px); }
.carousel__cell:nth-child(9) { transform: rotateY(320deg) translateZ(288px); } 

#stackDetails {
  width: 30%;
  background: rgba(230, 229, 229, 0.14);
  background: rgba(239, 238, 238, 0.08);
  border: 2px solid #252525;
  border-radius: 15px;
  list-style-type: none;
  /* display: flex; */
  /* justify-content: center; */
}

#stacksUsed {
  text-align: center;
  display: block;       
  margin: 0 auto;       
}

.highlight {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.4em;
}

#stackDetailsOther {
  width: 30%;
  background: rgba(230, 229, 229, 0.14);
  background: rgba(239, 238, 238, 0.08);
  border-radius: 15px;
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 1.5%;
  font-size: large;
}

#stackDetailsOther ul {
  list-style-type: none;
}


.detailTitle {
  display: flex;
  justify-content: center;
}

#stackDetails h3 {
  color: var(--accent-color);
  margin-top: 6%;
}

#detailText {
  display: flex;
  justify-content: center;
}

#usedIn {
  color: var(--text-color);
  font-size: 0.8rem;
}

#projectsUsed {
  margin-left: 3%;
  font-weight: 500;

}

#detailText {
  transition: opacity 1s;
}


/* PROJECT STUFF */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project {
  background: rgba(255, 255, 255, 0.05);
  background: rgba(230, 229, 229, 0.14);
  background: rgba(239, 238, 238, 0.14);
  background: rgba(239, 238, 238, 0.08);
  border: 2px solid #252525;
  padding: 1.5rem;
  border-radius: 15px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4);
}

.project h4 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.project p {
  text-align: center;
}

.project img {
  display: block;
  margin: 0 auto;
  width: 100%;
}

/* .project-title {
  font-size: 1.4rem;
  color: var(--text-color);
  text-decoration: none;
} */

.project-title h4{
  font-size: 1.4rem;
  color: var(--text-color);
  text-decoration: none;
}

/* 
.project-title:hover {
  text-decoration: underline;
} */

.footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin-top: 4rem;
  animation: animateBg 50s linear infinite;
}

#bottomfooter{
  font-size: small;
  /* color: var(--accent-color); */
  margin-top: 2px;
}

#bottomfooter a{
  /* font-size: small; */
  color: var(--accent-color);
  /* opacity: 0.8; */
  /* margin-top: 2px; */
}

/* TAGS */
#fabricationtag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(191, 87, 2, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#softwaretag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(38, 177, 237, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#hardwaretag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(25, 163, 48, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#prototypetag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(244, 28, 28, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px;   
  font-size:12px; 
  border-radius:4px;
}

#othertag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(85, 0, 255, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px;   
  font-size:12px; 
  border-radius:4px;
}

#downloadstag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(237, 38, 230, 0.733);; 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

/* CODE TAGS */
#cpptag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(38, 177, 237, 0.733);; 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#pythontag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(25, 163, 48, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#jstag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(247, 200, 7, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#sqltag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(12, 162, 203, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#threejstag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(113, 112, 112, 0.733); 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#htmlcsstag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(85, 0, 255, 0.733);  
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#javatag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(210, 144, 3, 0.733);; 
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#cadtag {
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(244, 28, 28, 0.733);   
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#clitag{
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(0, 4, 255, 0.733);  
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#pandastag{
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(6, 6, 6, 0.733);  
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#aitag{
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(249, 70, 5, 0.733);  
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

#apitag{
  display:inline-block; 
  padding-left: 2%;
  padding-right: 2%;
  height:20px; 
  background-color:rgba(85, 0, 255, 0.733);  
  color: var(--text-color);  
  text-align:center; 
  line-height:20px; 
  font-size:12px; 
  border-radius:4px;
}

/* VIDEO STUFF */

.video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* scroll-margin-top: 0; */
}

.video-wrapper {
  flex: 0.5;
  border-radius: 50px;
  position: relative;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  z-index: -1;
}

/* .video-wrapper {
  width: 100%;
  height: 100%;
} */

.video-wrapper video {
  width: 100%;
  height: 100%;

  /* use contain to see full video (this will add margins and stuff) or use cover to make sure there is no grey space (but video will get cropped) */
  object-fit: cover;
}


.tag-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1%;
  padding-bottom: 2%;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); 
  width: auto ;
  height: 100%;
  z-index: -1;
}


/* 
.overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);  
    width: 19%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
} */

.afterOverlay {
  position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 19%;
    height: calc(100vh);
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 999;
    display: flex;
    align-items: center;
}

.intro-text2 {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  text-align: center;
  z-index: 999;
}

.intro-text2 h1 {
  font-size: 2.8rem;  
  margin: 0; 
  text-align: center;
  margin: auto;
  color: var(--accent-color); 
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}


.intro-text2 p {
  align-items: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(#f5f5ff);
  flex: 1;
}

/* .static-intro2 {
  font-family: 'Roboto', monospace;
  font-size: 10px;
  overflow: hidden;
  text-align: left;
  width: 20ch;
} */

.static-intro2 {
  font-family: 'Roboto', monospace;
  font-size: 2.2rem;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .static-intro2 {
    font-size: 1.5rem;
  }

  .contacts img {
    width: 30px;
    height: 30px;
  }
}

.contacts{
  margin: 6%;
  z-index: 999;
}

.contacts a {
  position: relative;
  padding: 3px;
  z-index: 999;
}

.contacts a:hover {
  transform: translateY(5px);
}

.scroll-indicator {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.scroll-indicator #arrow {
  display: block;
  width: 30px;
  height: 30px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
  margin: 0 auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(10px) rotate(-45deg);
  }
  60% {
    transform: translateY(5px) rotate(-45deg);
  }
}

.animate-fade.fade-out {
  opacity: 0;
}


/* PROJECT SPECIFIC */
.projectCode {
  width: 90%;
  margin-left: 5%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  margin-top: 1%;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 7px;
  font-size: larger;
}


.projectP {
  margin-top: 10px; 
  padding-left: 2%;
}

.project-p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.4;
}

.project-p a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: var(--accent-color);
}


#experienceHolder {
  display: flex;                
  justify-content: center;     
  align-items: center;          
  flex-direction: column;       
  padding: 50px 0;             
}


.experience-section {
  width: 90%;
  max-width: 1500px;
  position: relative;
  padding: 50px 0;
}

/* Center timeline line */
.experience-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;  
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 250, 0.2),  
    rgba(100, 100, 100, 0.4),  
    rgba(100, 100, 100, 0.4)  
  );
  transform: translateX(-50%);
}


.experience {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 40px 0;
  position: relative;
}


.experience:nth-child(even) {
  flex-direction: row-reverse;
}

.experience-content {
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 41%;
  z-index: 1;
  position: relative;
}

.experience-content:hover {
  /* transform: translateY(-10px); */
  transform: scale(1.05);
  transition: 0.2s;
}

.tbp {
  background: linear-gradient(135deg, #4E2D19 0%, #634d40 100%);
  color: #111;
}

/* .isc {
  background: linear-gradient(135deg, #FF7F0F 0%, #13294B 100%);
  color: #fff;
} */
.isc {
  background: linear-gradient(135deg, #c25a00 0%, #001940 100%);
  color: #fff;
}

/* .ibc {
  background: linear-gradient(135deg, #000ba3 0%, #000640 100%);
  color: #fff;
} */

.asme {
  background: linear-gradient(135deg, #1537ce 0%, #a1a1a1 100%);
  color: #fff;
}

.enopi {
  background: linear-gradient(135deg, #03bb50 0%, #0d5702 100%);
  color: #fff;
}

.stanford {
  background: linear-gradient(135deg, #8C1515 0%, #B83A4B 100%);
  color: #fff;
}

.experience-content h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  color: var(--text-color);
  color: var(--dark-text);
}

.experience-content h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text-color);
  color: var(--dark-text);
}

.experience-content p {
  font-size: 0.95rem;
  color: var(--text-color);
  color: var(--dark-text);
  line-height: 1.5;
}

.experience-logo {
  width: 70px;
  height: 70px;           
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--section-bg-light);
  position: relative;
  z-index: 2;
  margin: 0 20px;
  flex-shrink: 0;
}

.experience-logo:hover {
  /* transform: translateY(-8px); */
  transform: scale(1.2);
  transition: 0.2s;
  border: 3px solid var(--accent-color); 
}

.experience-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}




.glitch-btn {
  position: relative;
  padding: 10px 25px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: #111;
  border: 2px solid #0ff;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.2s ease;
}


.glitch-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #0ff, #f0f, #ff0, #0ff);
  background-size: 300% 300%;
  mix-blend-mode: screen;
  animation: none;
  opacity: 0;
  z-index: -1;
}

.glitch-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg, #f0f, #0ff, #ff0, #f0f);
  background-size: 200% 200%;
  mix-blend-mode: difference;
  animation: none;
  opacity: 0;
  z-index: -1;
}
  
.glitch-btn:hover {
  color: #000;
  border-color: #fff;
}

.glitch-btn:active {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.glitch-btn:hover::before {
  opacity: 1;
  animation: neonShift 1s infinite steps(2, end);
}

.glitch-btn:hover::after {
  opacity: 0.7;
  animation: neonShiftAlt 0.6s infinite steps(3, end);
}

@keyframes neonShift {
  0% { clip-path: polygon(0 0, 100% 0, 100% 10%, 0 20%); }
  20% { clip-path: polygon(0 30%, 100% 20%, 100% 40%, 0 50%); }
  40% { clip-path: polygon(0 60%, 100% 55%, 100% 70%, 0 80%); }
  60% { clip-path: polygon(0 85%, 100% 75%, 100% 100%, 0 95%); }
  80% { clip-path: polygon(0 10%, 100% 0, 100% 25%, 0 15%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes neonShiftAlt {
  0% { clip-path: polygon(10% 0, 90% 5%, 95% 40%, 5% 35%); }
  25% { clip-path: polygon(0 20%, 100% 25%, 95% 65%, 0 60%); }
  50% { clip-path: polygon(15% 40%, 85% 30%, 90% 90%, 10% 100%); }
  75% { clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 80%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

