/* Fonts */
:root {
    --default-font: "Montserrat", sans-serif;
    --heading-font: "Lato", sans-serif;
    --nav-font: "Poppins",  sans-serif;
  }
  /*Global Colors*/
  :root { 
    --background-color: #ffffff; 
    --default-color: #272829; 
    --accent-color: #00796b; 
    --surface-color: #ffffff; 
    --contrast-color: #ffffff; 
  }
  
  /* Nav Menu Colors*/
  :root {
    --nav-color: #45505b;  
    --nav-hover-color: #004d40; 
    --nav-mobile-background-color: #ffffff;
    --nav-dropdown-background-color: #ffffff; 
    --nav-dropdown-color: #212529; 
    --nav-dropdown-hover-color: #0563bb;
  }
  
  /* Dark Theme */
  .dark-background {
    --background-color: #060606;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #252525;
    --contrast-color: #ffffff;
  }
  
  /* Smooth scroll */
  :root {
    scroll-behavior: smooth;
  }
  
  /*--------------------------------------------------------------
  # General Styling & Shared Classes
  --------------------------------------------------------------*/
  body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
  }
  
  a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
  }
  
  a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
  }
  
  /*--------------------------------------------------------------
  # Global Header
  --------------------------------------------------------------*/
  .header {
    color: var(--default-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 0 15px;
    transition: all ease-in-out 0.3s;
    overflow-y: auto;
    z-index: 997;
    min-width: 200px;
  }
  
  @media (max-width: 1199px) {
    .header {
      background-color: var(--background-color);
      border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
      width: 300px;
      left: -100%;
    }
  }
  
  @media (min-width: 1200px) and (max-width: 1600px) {
    .header~main {
      margin-left: 160px;
    }
  
    .header~main .hero {
      margin-left: -160px;
      width: 100vw;
    }
  }
  
  .header.header-show {
    left: 0;
  }
  
  .header .header-toggle {
    color: var(--contrast-color);
    background-color: color-mix(in srgb, var(--accent-color), white 10%);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    transition: background-color 0.3s;
    transform: scale(1.1);

  }
  
  .header .header-toggle:hover {
    color: var(--contrast-color);
    background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
  }
  
  /*--------------------------------------------------------------
  # Navigation Menu
  --------------------------------------------------------------*/
  .navmenu {
    padding: 0;
    padding-left: 17.5px;
    z-index: 9997;
  }
  
  .navmenu ul {
    list-style: none;
    padding: 0 0 20px 0;
    margin: 0;
    width: 140px;
  }
  
  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-family: var(--nav-font);
    display: flex;
    align-items: center;
    padding: 10px 18px;
    margin-bottom: 8px;
    font-size: 15px;
    border-radius: 50px;
    /* background: color-mix(in srgb, var(--default-color), transparent 92%); */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    height: 56px;
    width: 100%;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */

  }
  
  .navmenu a i,
  .navmenu a:focus i {
    font-size: 20px;
    transition: transform 0.3s ; /* Smooth animation for icon */
    /* margin-right: 8px */
  }
  
  .navmenu a span,
  .navmenu a:focus span {
    padding: 0 5px 0 7px;
  }
  
  @media (min-width: 992px) {
    .navmenu a,
    .navmenu a:focus {
        max-width: 56px;
        justify-content: center;
    }

    .navmenu a span,
    .navmenu a:focus span {
        display: none;
    }

    .navmenu a:hover,
    .navmenu li:hover > a {
        max-width: 180px;
        color: var(--contrast-color);
    }

    .navmenu a:hover span,
    .navmenu li:hover > a span {
        display: inline;
    }
}

/* Add to your CSS file for better toggle button visual feedback */
.mobile-nav-toggle {
  transition: all 0.3s ease;
}

.mobile-nav-toggle i.bi-x {
  color: #ff5252; /* Change to a more noticeable color like red when open */
  transform: rotate(90deg); /* Add a rotation effect */
}

/* Add active state styling for the toggle button */
.mobile-nav-toggle.active {
  background-color: rgba(0, 121, 107, 0.1); /* Subtle background when active */
  border-radius: 5px;
}
 /* Mobile Navigation Improvements */
@media (max-width: 991px) {
  /* .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
  } */
  
  
  /* Mobile nav wrapper */
  .mobile-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Hamburger button */
  .mobile-nav-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-color);
    background: transparent;
    border: none;
    outline: none;
  }
  
  /* Nav container for mobile */
  .navmenu {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 60px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background for mobile menu */
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .navmenu.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .navmenu ul {
    width: 100%;
    /* padding: 0; */
  }
  
  .navmenu a,
  .navmenu a:focus {
    width: 100%;

    max-width: 100%;
    /* justify-content: flex-start;
    padding: 12px 20px; */
  }
  
  .navmenu a span,
  .navmenu a:focus span {
    display: inline;
  }
  .navmenu ul {
    width: 100%;
  }
  
  .navmenu li {
    margin-bottom: 10px;
  }
  
  .navmenu a:hover,
  .navmenu li:hover > a {
    max-width: 100%;
  }
}

/* Add this animation for mobile menu */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
} 
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus,
  /* .navmenu li:hover>a {
    color: var(--contrast-color);
    background: var(--nav-hover-color);
  } */
  .navmenu li:hover > a {
    color: var(--contrast-color, #ffffff);
    background: linear-gradient(135deg, var(--nav-hover-color, #00796b), var(--accent-color, #004d40));
    transform: scale(1.05); /* Slight scaling on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
  }
  
  .navmenu a:hover,
  .navmenu li:hover>a {
    max-width: 100%;
    color: var(--contrast-color);
  }
  
  .navmenu a:hover span,
  .navmenu li:hover>a span {
    display: block;
  }
  .navmenu a:hover i {
    transform: rotate(20deg); /* Slight rotation on hover */
  }
  @media (max-width: 768px) {
    .navmenu ul {
        width: 100%;
    }

    .navmenu a {
        font-size: 14px;
        padding: 10px 15px;
    }
  }

  
  /*--------------------------------------------------------------
  # Global Footer
  --------------------------------------------------------------*/
  .footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
    position: relative;
  }
  
  .footer h3 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    padding: 0;
    margin: 0 0 15px 0;
  }
  
  .footer p {
    font-size: 15;
    font-style: italic;
    padding: 0;
    margin: 0 0 30px 0;
  }
  
  .footer .social-links {
    margin: 0 0 30px 0;
  }
  
  .footer .social-links a {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--contrast-color);
    line-height: 1;
    margin: 0 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
  }
  
  .footer .social-links a:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
    text-decoration: none;
  }
  
  .footer .copyright {
    padding-top: 25px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
  
  .footer .credits {
    font-size: 13px;
    padding-top: 5px;
  }
  

  
  /*--------------------------------------------------------------
  # Global Sections
  --------------------------------------------------------------*/
  section,
  .section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 60px 0;
    overflow: clip;
  }
  
  /*--------------------------------------------------------------
  # Global Section Titles
  --------------------------------------------------------------*/
  .section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
  }
  
  .section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
  }
  
  .section-title h2:before {
    content: "";
    position: absolute;
    display: block;
    width: 160px;
    height: 1px;
    background: color-mix(in srgb, var(--default-color), transparent 60%);
    left: 0;
    right: 0;
    bottom: 1px;
    margin: auto;
  }
  
  .section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
  }
  
  .section-title p {
    margin-bottom: 0;
  }
  
  /*--------------------------------------------------------------
  # Hero Section
  --------------------------------------------------------------*/
  .hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .hero:before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 30%);
    position: absolute;
    inset: 0;
    z-index: 2;
  }
  
  .hero .container {
    position: relative;
    z-index: 3;
  }
  
  .hero h2 {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
  }
  
  .hero p {
    margin: 5px 0 0 0;
    font-size: 26px;
  }
  
  .hero p span {
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-color);
  }
  
  .hero .social-links {
    margin-top: 25px;
  }
  
  .hero .social-links a {
    font-size: 20px;
    display: inline-block;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    line-height: 1;
    margin-right: 20px;
    transition: 0.3s;
  }
  
  .hero .social-links a:hover {
    color: var(--accent-color);
  }
  
  @media (max-width: 768px) {
    .hero h2 {
      font-size: 32px;
    }
  
    .hero p {
      font-size: 20px;
    }
  }
  
  /*--------------------------------------------------------------
  # About Section
  --------------------------------------------------------------*/
  .about .content h2 {
    font-weight: 700;
    font-size: 24px;
  }
  
  .about .content ul {
    list-style: none;
    padding: 0;
  }
  
  .about .content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }
  
  .about .content ul strong {
    margin-right: 10px;
  }
  
  .about .content ul i {
    font-size: 16px;
    margin-right: 5px;
    color: var(--accent-color);
    line-height: 0;
  }
  /* About Section Styling */
#about .section-title h2 {
  font-weight: 600;
  font-size: 28px;
  color: var(--heading-color);
  text-align: center;
  /* margin-bottom: 10px; */
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 20px;
  border-radius: 2px;
}

.about .content {
  /* background-color: color-mix(in srgb, var(--default-color), transparent 95%); */
  padding: 20px;
  border-radius: 8px;
  max-width: 1000px;
  margin: 0 auto;
}

.about .content p {
  font-size: 16px;
  line-height: 1.8;
  /* letter-spacing: 0.5px; */
  color: var(--default-color);
  margin-bottom: 20px;
  text-align: justify;
}

.about .content p em {
  font-style: italic;
  color: var(--heading-color);
}

.about .content p strong {
  font-weight: 600;
  color: var(--heading-color);
}
.detail {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px; /* Space between label and value */
}
@media (max-width: 768px) {
  .about-details .col-lg-6 {
      margin-bottom: 20px;
  }
}
.about-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-details li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0; /* Adds some spacing between each item */
}

.about-details li > b {
  min-width: 120px; /* Adjust width as needed to align content */
  padding-right: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* .about-details li > b::after {
  content: ':';
} */

.about-details li > a {
  color: #006666; /* Adjust link color if needed */
  text-decoration: none;
}

.about-details li > a:hover {
  text-decoration: underline;
}
/* 
.about-details{
  margin-bottom: px;
} */

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  /* margin-top: px; */
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */

}

.resume .resume-item {
  padding: 0 0 20px 25px;
  margin-top: 30px;
  /* margin-bottom: 10px; */
  margin-left: 25px;
  border-left: 2px solid var(--accent-color); /* Restored left border line */
  position: relative;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;


}
.resume .resume-item:hover {
  transform: scale(1.05); /* Slightly scales up the element */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
  border-radius: 5px;
}

.resume .resume-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--accent-color), 0 0 16px var(--accent-color); /* Creates a glow around the border */
}

.resume .resume-item h4 {
  line-height: 1.2;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading-color);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  padding-top: 15px;
  /* padding-left: 28px; */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */

}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  color: var(--accent-color);
  /* background: linear-gradient(135deg, #0093E9, #80D0C7); */
  border-radius: 4px;
  margin-bottom: 10px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.resume .resume-item ul {
  padding-left: 25px;
  margin-top: 5px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
  position: relative;
  color: var(--default-color);
  font-size: 15px;
}

.resume .resume-item ul li::before {
  content: "»";
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 8px;
  font-size: 14px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

/* Futuristic Timeline Indicator */
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: -19px;
  top: 8px;
  background: transparent; /* Center is transparent */
  border: 2px solid var(--accent-color); /* Outline of the circle */
  box-shadow: 
      0 0 6px rgba(255, 255, 255, 0.5),   /* First glow (white) */
      0 0 12px rgba(255, 255, 255, 0.3),  /* Second glow (lighter white) */
      0 0 18px rgba(0, 147, 233, 0.4),    /* Third glow (transition to accent color) */
      0 0 24px rgba(0, 147, 233, 0.3);    /* Fourth glow (accent color) */
}

/* Enhanced Border Line */
.resume .resume-item::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 30px;
  bottom: 0;
  width: 2px;
  /* background: linear-gradient(180deg, var(--accent-color) 0%, #0093E9 100%); */
  opacity: 0.6;
}





 /*--------------------------------------------------------------
  # Scrollbar
  --------------------------------------------------------------*/  
  ::-webkit-scrollbar {
    width: 0px;
  }
  
  ::-webkit-scrollbar-track {
    background-color: transparent;
    border: 5px solid transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #000000;
    border-radius: 10px;
    border: 6px solid transparent;
    background-clip: content-box;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
  }
  /* Image profile*/
  #self-image {
    max-width: 100%; /* Ensures the image doesn’t exceed its container */
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  /* Responsive adjustments for smaller screens */
  @media (max-width: 1024px) {
  .about .content {
    flex-direction: column;
    text-align: center;
  }
  
  #self-image {
    width: 300px; /* Reduce the image width */
    margin-bottom: 20px;
  }
  
  /* Padding adjustments for text */
  .col-lg-8.content {
    padding: 0 10px;
  }
}
  @media (max-width: 768px) {
    #self-image {
      width: 250px; /* Further reduce image size on small screens */
    }
  }
  
  @media (max-width: 576px) {
    #self-image {
      width: 200px; /* Reduce image size even more on very small screens */
    }
  
    .about .section-title h2 {
      font-size: 24px;
    }
  
    .about-details ul li {
      font-size: 14px; /* Adjust text size */
    }
  }
 /*--------------------------------------------------------------
  # Scroll Button
  --------------------------------------------------------------*/
  .scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed;
    opacity: 0;
    visibility: hidden;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #000;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    transition: opacity 0.3s , visibility 0.3s ;
    background: linear-gradient(135deg, #00796b, #004d40);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .scroll-to-top-btn.visible {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .scroll-to-top-btn:hover {
    background-color: #555;
    opacity: 0.9;
    background: linear-gradient(135deg, #004d40, #00796b);
  }
  
  .section-divider {
    width: 80%;
    height: 2px;
    background-color: var(--accent-color);
    margin: 20px auto;
    border-radius: 5px;
  }









  /* Glitch effect */
  /* Glitch Effect */
  :root {
    --translate-range: 5px; /* Range of translation */
  }
  .typed-glitch-wrapper {
    position: relative;
    /* display: inline-block; */
  }
  .typed-glitch {
    position: relative;
    color: var(--primary-color, #ffffff);
    font-weight: bold;
    animation: glitch .3s infinite;
    font-size: 1.2em; /* Make text larger for emphasis */
    overflow: visible; /* Ensure text doesn't clip */
    white-space: nowrap; /* Prevent line breaks */

  }

  .typed-glitch::before,
  .typed-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    overflow: hidden;
    color: #ff004d; /* Red offset */
    opacity: 0.8;
    clip: rect(0, 900px, 0, 0);
    animation: glitch .6s infinite linear alternate;
  }

  .typed-glitch::after {
    color: #0075f2; /* Blue offset */
    left: 2px;
    text-shadow: -2px 0 rgba(255, 0, 77, 0.5);
    animation: glitch 0.6s infinite linear alternate;
  }
  /* Add Water-Like Reflection Below */
  .typed-glitch--reflection {
    position: absolute;
    top: 100%; /* Position below the original text */
    left: 0;
    width: 100%; /* Match the font size */
    /* color: rgba(0, 255, 234, 0.2); Semi-transparent neon for reflection */
    transform: scaleY(-1) translateY(20); /* Flip and move down */
    filter: blur(3px); /* Blur for watery effect */
    opacity: 1;
    animation: glitch-reflection 0.4s infinite alternate;
    clip: auto;
    overflow: visible; /* Ensure text doesn't clip */
    white-space: nowrap; /* Prevent line breaks */

  }
  .typed-glitch--reflection::before,
  .typed-glitch--reflection::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0.5;
    clip: rect(0, 900px, 0, 0);
  }

  .typed-glitch--reflection::before {
    color: rgba(255, 0, 77, 0.4); /* Red offset for reflection */
    animation: glitch 0.6s infinite linear alternate;
  }

  .typed-glitch--reflection::after {
    color: rgba(0, 117, 242, 0.4); /* Blue offset for reflection */
    left: 2px;
    text-shadow: -2px 0 rgba(0, 117, 242, 0.5);
    animation: glitch 0.6s infinite linear alternate;
  }
  /* Glitch Animation */
  @keyframes glitch {
    0% {
        clip: rect(0, 100vw, 0, 0);
        transform: translate(calc(-1 * var(--translate-range)), calc(-1 * var(--translate-range)));
        color: var(--color1);
    }
    8% {
        clip: rect(10px, 100vw, 70px, 0);
        transform: translate(calc(var(--translate-range) * 0.5), calc(var(--translate-range) * -0.3));
        color: var(--color2);
    }
    16% {
        clip: rect(20px, 100vw, 50px, 0);
        transform: translate(calc(var(--translate-range) * -0.7), calc(var(--translate-range) * 0.7));
        color: var(--color1);
    }
    24% {
        clip: rect(30px, 100vw, 60px, 0);
        transform: translate(calc(var(--translate-range) * 0.9), calc(var(--translate-range) * -0.5));
        color: var(--color4);
    }
    32% {
        clip: rect(15px, 100vw, 40px, 0);
        transform: translate(calc(var(--translate-range) * -1), calc(var(--translate-range) * 0.3));
        color: var(--color5);
    }
    40% {
        clip: rect(40px, 100vw, 30px, 0);
        transform: translate(calc(var(--translate-range) * 0.6), calc(var(--translate-range) * -0.6));
        color: var(--color3);
    }
    48% {
        clip: rect(25px, 100vw, 80px, 0);
        transform: translate(calc(var(--translate-range) * -0.4), calc(var(--translate-range) * 0.8));
        color: var(--color2);
    }
    56% {
        clip: rect(35px, 100vw, 20px, 0);
        transform: translate(calc(var(--translate-range) * 0.7), calc(var(--translate-range) * -0.7));
        color: var(--color1);
    }
    64% {
        clip: rect(50px, 100vw, 70px, 0);
        transform: translate(calc(var(--translate-range) * -0.9), calc(var(--translate-range) * 0.5));
        color: var(--color4);
    }
    72% {
        clip: rect(60px, 100vw, 90px, 0);
        transform: translate(calc(var(--translate-range) * 0.3), calc(var(--translate-range) * -0.9));
        color: var(--color5);
    }
    80% {
        clip: rect(70px, 100vw, 50px, 0);
        transform: translate(calc(var(--translate-range) * -0.2), calc(var(--translate-range) * 0.4));
        color: var(--color3);
    }
    88% {
        clip: rect(80px, 100vw, 60px, 0);
        transform: translate(calc(var(--translate-range) * 0.2*10), calc(var(--translate-range) * -0.2));
        color: var(--color2);
    }
    100% {
        clip: rect(10px, 100vw, 40px, 0);
        transform: translate(0px, 0px);
        color: var(--color1);
    }
  }
  @keyframes glitch-reflection {
    0% {
        transform: scaleY(-1) translateY(22px) translateX(0px); /* Position slightly below */
        opacity: 0.4;
    }
    25% {
        transform: scaleY(-1) translateY(22px) translateX(-1px); /* Shift left */
        opacity: 1.3;
    }
    50% {
        transform: scaleY(-1) translateY(23px) translateX(1px); /* Shift right */
        opacity: 0.4;
    }
    75% {
        transform: scaleY(-1) translateY(24px) translateX(-1px); /* Shift back left */
        opacity: 0.35;
    }
    100% {
        transform: scaleY(-1) translateY(22px) translateX(0px); /* Reset */
        opacity: 0.5;
    }
  }


/* Portfolio Grid */
  .portfolio {
    padding: 60px 0;
  }

  .portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

    transition: height 0.4s ease-in-out;
    will-change: height; /* Helps with smoother height transitions */
  }

  .portfolio-item {
    position: relative;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    /* opacity: 0; */
    transform: scale(0.95);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  
    opacity: 1;
    will-change: transform, opacity;
    backface-visibility: hidden; /* Performance boost */
  }

  .portfolio-item.show {
    opacity: 1;
    transform: scale(1);
  }

  .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  /* Items that get filtered out */
  .portfolio-item.filtering-out {
      transform: scale(0.8);
      opacity: 0;
  }

  /* Items being filtered in */
  .portfolio-item.filtering-in {
      transform: scale(1);
      opacity: 1;
  }


  /* .portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 100%;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .portfolio-item:hover .overlay {
    opacity: 1;
  } */
  .portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align content to the left */
    text-align: left;
    transition: transform 0.4s ease-out, opacity 0.5s ease-out;
    opacity: 0; /* Hide by default */
  }

  .portfolio-item:hover .overlay {
    opacity: 1;
    /* transform: translateX(100%); Slide in from the side */

  }

  /* Overlay Text Styling */
  .overlay h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  .overlay p {
    font-size: 1em;
  }
  /* Filter Button Bar */
  .filters {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    background-color: #00796b;
    border-radius: 50px;
    padding: 5px;
  }

  .filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 8px 12px; */
    /* border-radius: 4px; */
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-width: 44px; /* Ensure minimum tap target size */

    flex: 1;
    padding: 10px;
    font-size: 14px;
    color: #ffffff;
    background: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    /* transition: background-color 0.3s ease; */
    
  }

  .filter-btn:hover,
  .filter-btn.active {
    background-color: #004d40;
    color: #ffffff;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .fade-in { animation: fadeIn 0.6s ease forwards; }
  .zoom-in { animation: zoomIn 0.6s ease forwards; }
  .slide-up { animation: slideUp 0.6s ease forwards; }
  .portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9); /* Slightly scale down */
    pointer-events: none; /* Prevent interactions while hidden */
  }

  .filter-btn i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
  }
  
  .filter-btn span {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
  }
  
  .filter-btn:hover span,
  .filter-btn.active span,
  .filter-btn:focus span {
    opacity: 1;
    transform: translateY(0);
  }
  
  .filter-btn:hover,
  .filter-btn.active,
  .filter-btn:focus {
    background-color: #004d40;

  }
  
  .filter-btn:hover i,
  .filter-btn.active i,
  .filter-btn:focus i {
    opacity: 0;
    transform: translateY(-10px);
  }




  /* "+" Icon Styling */
.plus-icon {
  position: absolute;
  bottom: 10px; /* Position slightly above the edge */
  right: 10px;  /* Position slightly from the right edge */
  font-size: 24px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.6);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 3; /* Ensure it appears above the overlay */
  opacity: 0; /* Start hidden */
}

/* Show the "+" icon on hover */
.portfolio-item:hover .plus-icon {
  opacity: 1;
  transform: scale(1.1); /* Slightly enlarge on hover */
}

@media (max-width: 991px) {
  /* <!-- Mobile filter button bar --> */
  .filters {
      display: flex;
      justify-content: center;
      gap: 5px;
      margin-bottom: 30px;
      background-color: #00796b;
      border-radius: 10px;
      padding: 5px;
  }

  /* <!-- Responsive grid --> */
  .portfolio-item {
      position: relative;
      width: 30%;
      height: 100px;
      overflow: hidden;
      border-radius: 20px;
      cursor: pointer;
      opacity: 1;
      transform: scale(0.9);
  }

  /* Adjusted padding for mobile */
  /* padding: 15px; */

  /* Filter link styling */
  .filter-btn i {
      position: absolute;
      transform: translateY(-12px);
      pointer-events: none;
      opacity: 0;
  }

  .filter-btn span {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease;

      /* Mobile-specific */
      width: 16px;
      height: 8px;
  }

  .filter-btn:hover span,
  .filter-btn.active span {
      opacity: 1;
  }

}










/* Gallery Overlay */
.gallery{
  display: flex;
  flex-wrap: wrap;
}
.gallery-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  cursor: pointer;
}

.gallery-content {
  max-width: 90%; /* Adjust width to center more in viewport */
  max-height: 90vh;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: auto;
  overflow: auto;
  max-height: 80vh;
  width: 80vw;
}

/* Masonry-style grid for gallery images */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Set minimum column width */
  gap: 20px;
  overflow-y: auto;
  width: 100%;
  max-height: 70vh;
  padding: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: auto;
  transform-origin: top left;
  transition: transform 0.3s ease;
  /* min-height: 300px; */
}

/* Define default sizes for images, allowing them to fit in a masonry layout */
.gallery-images img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  outline: 1px solid #000000; /* Adds an outline to the image */
}

/* Add specific classes to vary image sizes for masonry effect */
.grid-item--small {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-item--medium {
  grid-row: span 2;
  grid-column: span 2;
}

.grid-item--large {
  grid-row: span 3;
  grid-column: span 3;
}

.grid-item--tall {
  grid-row: span 3;
  grid-column: span 2;
}

.grid-item--wide {
  grid-row: span 1;
  grid-column: span 2;
}
.grid-item--break {
  grid-column: 1 / -1; /* Forces the item to break to a new row */
}
/* Add this to your main.css file */
.image-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px; /* Matches standard image heights */
  background: #000; /* Black background for video spaces */
  display: block; /* Removes extra spacing */
}

/* Fix for video containers to match image proportions */
.grid-item--medium video {
  aspect-ratio: 16/9;
}

/* Fix for video container dimensions */
.grid-item--medium:has(video) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
/* Hover effect for images */
.gallery-images img:hover {
  transform: scale(1.05);
}
/* Navigation Arrow Styles */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: rgba(255, 255, 255, 0.7); /* Semi-transparent */
  cursor: pointer;
  padding: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
  user-select: none; /* Prevents text selection */
}

.gallery-arrow-left {
  left: 20px; /* Positions on the left */
}

.gallery-arrow-right {
  right: 20px; /* Positions on the right */
}

/* Hover Effect */
.gallery-arrow:hover {
  color: #ffffff; /* Fully opaque on hover */
  transform: translateY(-50%) scale(1.2); /* Slightly enlarges */
  border-radius: 50%;
  transition: color 0.3s ease, transform 0.3s ease;
}
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  transform-origin: top left;
}
.description {
  position: absolute;
  top: 0;
  left: 100%; /* Position the description to the right of the image */
  margin-left: 19px; /* Add some space between the image and description */
  width: 200px; /* Set a fixed width for the description */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Slightly darker background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, left 0.3s;
  pointer-events: none; /* Ensure the description doesn't interfere with hover */
  padding: 20px; /* Add padding for better spacing */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
  border-radius: 8px; /* Match the border radius of the image */
  transform-origin: left center;
}

.description p {
  margin: 0;
  font-size: 16px; /* Adjust font size */
  text-align: center; /* Center align text */
}
.image-container img{
  display: block;
  width: 100%;
  height: auto;
}
.image-container:hover .description {
  opacity: 1;
  left: 100%; /* Position the description to the right of the image */
  z-index: 10;
  pointer-events: auto;
}

/* Close button styling */
.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #000;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.close-button:hover {
  background-color: #fff;
  transform: scale(1.1);
}


.zoom-controls {
  position: absolute;
  top: 120px;
  right: 200px;
  display: flex;
  gap: 5px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 5px;
}

.zoom-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.zoom-controls button:hover {
  transform: scale(1.1);
  color: #0d6efd;
}

.zoomable-image {
  transition: transform 0.3s ease;
}




/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

#preloader .spinner {
  width: 70px;
  text-align: center;
  margin-bottom: 10px;
}

#preloader .spinner > div {
  width: 18px;
  height: 18px;
  background-color: #00796b;
  border-radius: 100%;
  display: inline-block;
  animation: preloader-bounce 1.4s infinite ease-in-out both;
  margin: 0 4px;
}

#preloader .spinner .bounce1 {
  animation-delay: -0.32s;
}

#preloader .spinner .bounce2 {
  animation-delay: -0.16s;
}

@keyframes preloader-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}














/* 3D Project Graph Styling */
.project-experience-wrapper {
  position: relative;
  margin: 60px 0;
  padding: 0;
}

#project-graph-container {
  position: relative;
  min-height: 600px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15,23,42,0.8), rgba(30,41,59,0.9));
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.3),
    0 1px 5px rgba(0,121,107,0.2) inset,
    0 -1px 0 rgba(255,255,255,0.1) inset;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#project-graph-container:hover {
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.4),
    0 2px 10px rgba(0,121,107,0.3) inset;
  transform: translateY(-5px);
}

/* Graph Loading Animation */
#project-graph-container::before {
  content: "Initializing Project Network...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  opacity: 0.8;
  animation: pulse 2s infinite;
  z-index: 0;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

/* Graph Legend */
.graph-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15,23,42,0.8);
  border-radius: 10px;
  padding: 15px;
  width: auto;
  max-width: 220px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  z-index: 10;
  transform: translateX(250px);
  transition: transform 0.4s ease;
}

#project-graph-container:hover .graph-legend {
  transform: translateX(0);
}

.graph-legend h5 {
  color: var(--accent-color);
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.8);
}

.color-box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  margin-right: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Control Panel */
.graph-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.graph-control-btn {
  background: rgba(0,121,107,0.2);
  color: var(--accent-color);
  border: 1px solid rgba(0,121,107,0.5);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.graph-control-btn:hover {
  background: rgba(0,121,107,0.4);
  transform: translateY(-2px);
}

.graph-control-btn i {
  font-size: 16px;
}

/* Node tooltip */
.graph-tooltip {
  position: absolute;
  background: rgba(15,23,42,0.95);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-size: 14px;
  z-index: 100;
  pointer-events: none;
  max-width: 250px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #project-graph-container {
    min-height: 450px;
  }
  
  .graph-legend {
    top: 10px;
    right: 10px;
    padding: 10px;
    max-width: 180px;
  }
}
/* Add this to hide the loading message once graph is loaded */
#project-graph-container.loaded::before {
  display: none;
}















/* GitHub Projects Section Theming */
.github-projects {
  /* background-color: rgba(0, 0, 0, 0.02); Same as your other sections */
  position: relative;
}


.github-projects .card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.github-projects .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 121, 107, 0.3);
}

.github-projects .card-title {
  color: #00796b;
  font-weight: 500;
}

.github-projects .btn-primary {
  background-color: #00796b;
  border-color: #00796b;
}
/* GitHub badge color override - add this to your CSS */
.github-projects .badge.bg-primary {
  background-color: rgba(0, 121, 107, 0.2) !important; /* Use your theme color */
  color: #00796b !important; /* Match your accent color */
  border: 1px solid rgba(0, 121, 107, 0.3);
}
.github-projects .btn-primary:hover {
  background-color: #00635a;
  border-color: #00635a;
}

.github-projects .btn-outline-primary {
  color: #00796b;
  border-color: #00796b;
}

.github-projects .btn-outline-primary:hover {
  background-color: #00796b;
  color: white;
}

.github-projects .badge {
  background-color: rgba(0, 121, 107, 0.2);
  color: #00796b;
}

/* Repository cards styling */
#github-repositories .card {
  border-left: 4px solid #00796b;
}

/* Trophy section styling */
#github-trophies {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 20px;
}


/* Profile section styling */
#github-profile .card {
  background-color: rgba(255, 255, 255, 0.05);
}

/* GitHub stats image adjustment */
#github-profile img.img-fluid {
  background-color: transparent;
  border-radius: 8px;
}
.profile-badge__header.profile-badge__header--light {
    background-color: #0077b5 !important; /* LinkedIn blue */
    color: #ffffff !important; /* White text */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Add some padding */
    font-weight: bold; /* Make text bold */
}

.btn-theme-accent {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
    transition: background 0.3s, color 0.3s;
}

.btn-theme-accent:hover,
.btn-theme-accent:focus {
    background: var(--accent-color);
    color: #fff;
}







:root {
    --anime-assistant-z: 9999;
    --anime-assistant-bg: rgba(10, 12, 18, 0.82);
    --anime-assistant-border: rgba(255, 255, 255, 0.12);
    --anime-assistant-text: rgba(255, 255, 255, 0.92);
    --anime-assistant-muted: rgba(255, 255, 255, 0.68);
    --anime-assistant-accent: #9cf0ff;
}

.anime-assistant {
    position: fixed;
    right: 85px;
    bottom: 18px;
    z-index: var(--anime-assistant-z);
    display: grid;
    grid-template-columns: auto;
    gap: 10px;
    align-items: end;
    pointer-events: none;
}
.anime-assistant.is-visible {
    right: 18px; /* adjust to taste (12–28px is typical) */
}
.anime-assistant__bubble {
    pointer-events: auto;
    max-width: min(320px, calc(100vw - 36px));
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--anime-assistant-bg);
    color: var(--anime-assistant-text);
    border: 1px solid var(--anime-assistant-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.anime-assistant__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.anime-assistant__name {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
}

.anime-assistant__hint {
    font-size: 0.78rem;
    color: var(--anime-assistant-muted);
    user-select: none;
}

.anime-assistant__message {
    margin: 0;
    line-height: 1.35;
    font-size: 0.92rem;
}

.anime-assistant__controls {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.anime-assistant__btn {
    pointer-events: auto;
    appearance: none;
    border: 1px solid var(--anime-assistant-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--anime-assistant-text);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.anime-assistant__btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

.anime-assistant__btn:active {
    transform: translateY(0px) scale(0.98);
}

.anime-assistant__btn--primary {
    border-color: rgba(156, 240, 255, 0.35);
    background: rgba(156, 240, 255, 0.10);
}

.anime-assistant__character {
    pointer-events: auto;
    width: 120px;
    height: 120px;
    border-radius: 22px;
    background: radial-gradient(circle at 30% 20%, rgba(156,240,255,0.25), rgba(255,255,255,0.03) 60%, rgba(0,0,0,0.15));
    border: 1px solid var(--anime-assistant-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 50px rgba(0,0,0,0.35);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.anime-assistant__character:focus {
    outline: 2px solid rgba(156, 240, 255, 0.55);
    outline-offset: 2px;
}

.anime-assistant__sparkle {
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 20% 30%, rgba(156,240,255,0.24), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(255,180,255,0.18), transparent 42%),
        radial-gradient(circle at 50% 90%, rgba(255,255,255,0.12), transparent 45%);
    transform: rotate(8deg);
    opacity: 0.85;
    pointer-events: none;
}

.anime-assistant__svg {
    width: 92px;
    height: 92px;
    transform-origin: 50% 85%;
    transition: transform 160ms ease;
}

.anime-assistant__character.is-bop .anime-assistant__svg {
    transform: rotate(-2deg) translateY(-1px);
}

.anime-assistant__character.is-shy .anime-assistant__svg {
    transform: rotate(2deg) translateY(1px) scale(0.98);
}

.anime-assistant__character.is-surprised .anime-assistant__svg {
    transform: rotate(0deg) translateY(-2px) scale(1.03);
}

.anime-assistant__bubble.is-hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .anime-assistant__btn,
    .anime-assistant__svg {
        transition: none;
    }
}