.comment-container .dropdown-item {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.profile-image {
  width: 150px; /* Set width */
  height: 150px; /* Force height to match width */
  object-fit: cover; /* Ensures the image scales correctly and doesn't distort */
  border-radius: 50%; /* Ensures the image stays round */
}

.sm-profile-image {
  width: 35px; /* Set width */
  height: 35px; /* Force height to match width */
  object-fit: cover; /* Ensures the image scales correctly and doesn't distort */
  border-radius: 50%; /* Ensures the image stays round */
}

/* Mobile icon bar at the bottom */
.fixed-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
}

.fixed-bottom .d-flex {
  justify-content: space-around;
}

.fixed-bottom a {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixed-bottom a i {
  display: block;
}

.fixed-bottom a .fs-sm {
  font-size: 0.75rem;
}

.fixed-bottom a i.text-success {
  color: #28a745; /* Green color for the add icon */
}


.gallery-item {
  width: 100%;
  padding-top: 100%; /* Makes the container a square */
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 0px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateZ(0);
  transition: transform 0.05s ease, box-shadow 0.45s ease, border-color 0.3s ease;
  z-index: 0;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 30%);
  opacity: 0.8;
  pointer-events: none;
  animation: glass-shimmer 10s ease-in-out infinite alternate;
  z-index: 0;
}

.gallery-item:hover {
  transform: scale(1.01);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the square without distortion */
  transform: scale(1.02);
  transition: transform 0.5s ease, filter 0.4s ease;
  z-index: 1;
}

.gallery-item:hover img {
  filter: saturate(1.08) brightness(1.02);
}

.text-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.75) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 0.75rem 0.5rem 1rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.image-bg {
  height: 100vh; /* Ensures the section fills the viewport */
  background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,var(--si-body-bg) 70%, var(--si-body-bg) 100%),
      url('../images/surf.jpg');
  background-size: cover, cover, cover; /* Ensures each background is sized correctly */
  background-position: center, center, center; /* Aligns each background */
  background-repeat: no-repeat, no-repeat, no-repeat; /* Prevents tiling for all layers */
  background-attachment: scroll, scroll, scroll; /* Controls scroll behavior */
}

.image-bg-north {
  height: 100vh; /* Ensures the section fills the viewport */
  background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0) 50%, var(--si-body-bg) 100%),
      url('https://wallpapercave.com/wp/wp4579132.jpg');
  background-size: cover, cover, cover; /* Ensures each background is sized correctly */
  background-position: center, center, center; /* Aligns each background */
  background-repeat: no-repeat, no-repeat, no-repeat; /* Prevents tiling for all layers */
  background-attachment: scroll, scroll, scroll; /* Controls scroll behavior */
}

.image-bg-yellow{
  height: 100vh; /* Ensures the section fills the viewport */
  background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0) 50%, var(--si-body-bg) 100%),
      url('https://wallpapercave.com/wp/wp4579132.jpg');
  background-size: cover, cover, cover; /* Ensures each background is sized correctly */
  background-position: center, center, center; /* Aligns each background */
  background-repeat: no-repeat, no-repeat, no-repeat; /* Prevents tiling for all layers */
  background-attachment: scroll, scroll, scroll; /* Controls scroll behavior */
}

.dark-mode .image-bg-north {
  height: 100vh; /* Ensures the section fills the viewport */
  background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0) 50%, var(--si-body-bg) 100%),
      url('https://i.pinimg.com/originals/f0/a9/54/f0a954736633887614fee3270e6aeaa5.jpg');
  background-size: cover, cover, cover; /* Ensures each background is sized correctly */
  background-position: center, center, center; /* Aligns each background */
  background-repeat: no-repeat, no-repeat, no-repeat; /* Prevents tiling for all layers */
  background-attachment: scroll, scroll, scroll; /* Controls scroll behavior */

}
.dark-mode .image-bg-yellow{
  height: 100vh; /* Ensures the section fills the viewport */
  background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0) 50%, var(--si-body-bg) 100%),
      url('../images/bgs.jpg');
  background-size: cover, cover, cover; /* Ensures each background is sized correctly */
  background-position: center, center, center; /* Aligns each background */
  background-repeat: no-repeat, no-repeat, no-repeat; /* Prevents tiling for all layers */
  background-attachment: scroll, scroll, scroll; /* Controls scroll behavior */

}

.image-bg-latex {
  height: 100vh; /* Ensures the section fills the viewport */
  background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0) 50%, var(--si-body-bg) 100%),
      url('https://wallpapercave.com/wp/wp4579132.jpg');
  background-size: cover, cover, cover; /* Ensures each background is sized correctly */
  background-position: center, center, center; /* Aligns each background */
  background-repeat: no-repeat, no-repeat, no-repeat; /* Prevents tiling for all layers */
  background-attachment: scroll, scroll, scroll; /* Controls scroll behavior */
}

.card-blur{
  position: relative;
  border-radius:16px;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  background-color: rgba(var(--si-body-bg-rgb),0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  z-index: 0;
}

.card-blur::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  /* animation: glass-shimmer 12s ease-in-out infinite alternate; */
  z-index: 0;
}

.card-blur > * {
  position: relative;
  z-index: 1;
}

.card-blur:hover {
  box-shadow: 0 26px 60px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.blur{
  backdrop-filter: blur(7px) saturate(171%); 
  -webkit-backdrop-filter: blur(7px) saturate(171%);
  background-color: rgba(var(--si-body-bg-rgb),0.3);  
  border: none;
}

.fade-in-up {
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* When .fade-in-up has .is-visible, it transitions to final position */
.fade-in-up.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.alert-blur {
  backdrop-filter: blur(7px) saturate(171%);
  -webkit-backdrop-filter: blur(7px) saturate(171%);
  background-color: rgba(var(--si-body-bg-rgb),0.3);
}

@keyframes glass-shimmer {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(3%, 4%, 0) scale(1.03);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(6%, 8%, 0) scale(1.05);
    opacity: 0.7;
  }
}


/* ---------------------------INDEX-------------------------------------- */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Stylish Typewriter Effect */
.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid white; /* Simulated cursor */
  font-size: 3rem; /* Adjust as needed */
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
  animation: typing 4s steps(40, end) forwards;
  border-right: none; /* No blinking after typing completes */
}

/* Neon glow animation for the hero heading */
.neon-text {
  color:rgb(254, 255, 223);
  text-shadow: 
     0 0 2px var(--si-primary),
     0 0 4px var(--si-primary),
     0 0 8px var(--si-primary),
     0 0 15px var(--si-primary);
  animation: neonGlow 2s ease-in-out infinite alternate;
  font-family: "Playwrite HU", sans-serif;
}
@keyframes neonGlow {
  0% {
    text-shadow: 
      0 0 2px var(--si-primary),
      0 0 4px var(--si-primary),
      0 0 6px var(--si-primary),
      0 0 8px var(--si-primary);
  }
  100% {
    text-shadow:
      0 0 4px var(--si-primary),
      0 0 7px var(--si-primary),
      0 0 10px var(--si-primary),
      0 0 15px var(--si-primary);
  }
}

/* Slightly dark overlay for text to pop on images */
.text-overlay {
  background: rgb(65 65 65 / 68%);
  padding: 0.3rem;
  font-size: 0.9rem;
}

/* Removed .fade-in-up and .is-visible styles
   since AOS handles animations now. */

.card-blur,
.alert-blur {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.image-bg-yellow {
  /* If you have a specific background image, you can set it here */
  background-size: cover;
  background-position: center;
}
/* Skeleton Loader Animation */
@keyframes skeleton-loading {
0% {
background-color:rgb(28, 31, 41);
}
50% {
background-color:rgb(43, 44, 27);
}
100% {
background-color: rgb(28, 31, 41);
}
}

/* Skeleton Loader Placeholder */
.skeleton {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 5px;
animation: skeleton-loading 1.2s infinite alternate;
}

/* Ensure images fade in smoothly while maintaining a square */
.skeleton-container {
overflow: hidden;
background: #1d1d1d;
border-radius: 5px;
width: 100%;
}

.skeleton-container img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 0.5s ease-in-out;
}


