@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll 20s linear infinite;
}

.fade-mask {
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.hidden-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.visible-card {
  opacity: 1;
  transform: translateY(0);
}

/* Services */
.vertical-heading {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.vertical-heading {
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Section2 */
.fade-in {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

/* Updated image styles for smooth fade */
#image-container,
#third-image-container {
  position: relative;
}

.image,
.third-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 90%;
  border-radius: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  background-color: #101320;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.image.active,
.third-image.active {
  opacity: 1;
  pointer-events: auto;
}

/* Third view specific styles */
.third-content-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.4s ease;
}

.third-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Exploding Image Stack Styles */
.image-wrapper {
  position: absolute;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.1s linear;
  border-width: 7px;
  border-color: black;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.image-wrapper:hover {
  transform: scale(1.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
}

.stack-container {
  position: relative;
  width: 1100px;
  height: 300px;
}

/* Services */
.vertical-heading {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.vertical-heading {
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

#bar-group {
  position: relative;
  z-index: 0;
  overflow: visible;
}





/* Portfolio Section */
.card-hover-effect {
  transition: all 0.3s ease;
}



.icon-hover {
  transition: all 0.3s ease;
}

.card-hover-effect:hover .icon-hover {
  transform: scale(1.15);
  color: rgba(255, 255, 255, 0);
}

.tool-name {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
}

.card-hover-effect:hover .tool-name {
  opacity: 1;
  transform: translateY(0);
}

.hover-overlay {
  transition: opacity 0s ease;
  opacity: 0;
}

.card-hover-effect:hover .hover-overlay {
  opacity: 0;
}

.background-image {
  transition: opacity 0.3s ease;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-hover-effect:hover .background-image {
  opacity: 1;
}

.card-content {
  transition: all 0.3s ease;
}


/* Blur effect for text elements only */
.blur-text {
  transition: filter 0.8s ease;
}

/* When cards section is in view, blur the text */
.port-section~* .blur-text,
.port-section:hover~* .blur-text {
  filter: blur(4px);
}

/* Alternative approach using intersection observer simulation */
body:has(.port-section) .blur-text {
  filter: blur(4px);
}


@keyframes dropSmooth {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-drop-smooth {
  animation: dropSmooth 1s ease-out forwards;
}