/* Glass Title Container */
.glass-title-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px; /* Reduced for mobile */
  padding: 2rem; /* Adjusted for mobile */
  margin: 2rem auto; /* Adjusted for mobile */
  max-width: 90%; /* Responsive width */
  overflow: hidden;
  perspective: 1000px;
}

/* Glass Title Panel - Responsive */
.glass-title {
  position: relative;
  padding: 2rem; /* Adjusted for mobile */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(230, 243, 245, 0.18) 100%
  );
  backdrop-filter: blur(20px) saturate(180%); /* Reduced blur for performance */
  border-radius: 1.5rem; /* Adjusted for mobile */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
    /* Reduced shadow for mobile */ inset 0 4px 15px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(230, 243, 245, 0.1);
  z-index: 2;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Liquid Glass Effect - Responsive */
.glass-title::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(230, 243, 245, 0.1) 50%,
    transparent 75%
  );
  animation: liquid-flow 12s infinite linear;
  opacity: 0.3;
  z-index: 1;
}

@keyframes liquid-flow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Holographic Text Effect - Responsive */
.title-main {
  font-size: 2.5rem; /* Adjusted for mobile */
  text-align: center;
  color: #e6f3f5;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(230, 243, 245, 0.3),
    /* Reduced glow for mobile */ 0 0 20px rgba(230, 243, 245, 0.2);
  position: relative;
  z-index: 3;
  transform: translateZ(50px);
  transition: all 0.4s ease;
}

.title-line {
  display: block;
  position: relative;
  line-height: 1.1;
  margin: 0.5rem 0; /* Adjusted for mobile */
  padding: 0.5rem 0;
}

/* Crystalline Underline - Responsive */
.title-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px; /* Reduced for mobile */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(230, 243, 245, 0.8) 50%,
    transparent 100%
  );
  filter: drop-shadow(
    0 0 3px rgba(230, 243, 245, 0.3)
  ); /* Reduced for mobile */
  animation: line-pulse 2.5s infinite ease-in-out;
}

@keyframes line-pulse {
  0%,
  100% {
    width: 70%;
    opacity: 0.8;
  }
  50% {
    width: 90%;
    opacity: 1;
  }
}

/* Floating Prisms - Responsive */
.glass-deco {
  position: absolute;
  background: rgba(230, 243, 245, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  animation: prism-float 8s infinite ease-in-out;
  filter: drop-shadow(
    0 0 3px rgba(230, 243, 245, 0.2)
  ); /* Reduced for mobile */
}

.circle-deco {
  width: 100px; /* Adjusted for mobile */
  height: 100px;
  border-radius: 50%;
  top: -30px; /* Adjusted for mobile */
  left: -30px;
  animation-delay: 0s;
}

.wave-deco {
  width: 80px; /* Adjusted for mobile */
  height: 80px;
  bottom: -20px; /* Adjusted for mobile */
  right: -20px;
  clip-path: path("M10 80 Q 77 55 77 55 Q 95 65 95 80");
  animation-delay: 1.5s;
}

.triangle-deco {
  width: 60px; /* Adjusted for mobile */
  height: 60px;
  top: 20%; /* Adjusted for mobile */
  right: 10%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 3s;
}

@keyframes prism-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) /* Reduced for mobile */ rotate(180deg)
      scale(1.1);
    opacity: 1;
  }
}

/* Interactive Hover Effects - Disabled on Mobile */
@media (hover: hover) and (pointer: fine) {
  .glass-title:hover {
    transform: scale(1.02) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
      /* Reduced for mobile */ inset 0 6px 20px rgba(255, 255, 255, 0.15),
      0 0 30px rgba(230, 243, 245, 0.2);
  }

  .glass-title:hover::before {
    animation-duration: 4s;
    opacity: 0.4;
  }

  .glass-title:hover .title-main {
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4), 0 0 15px rgba(230, 243, 245, 0.5),
      /* Reduced for mobile */ 0 0 30px rgba(230, 243, 245, 0.2);
  }
}

/* Particle Effect - Disabled on Mobile */
@media (min-width: 768px) {
  .glass-title-container::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        circle at 20% 80%,
        rgba(230, 243, 245, 0.1) 2%,
        transparent 20%
      ),
      radial-gradient(
        circle at 80% 20%,
        rgba(230, 243, 245, 0.1) 2%,
        transparent 20%
      );
    animation: particle-drift 20s infinite linear;
    z-index: 1;
  }

  @keyframes particle-drift {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(-50px, 50px);
    }
  }
}

/* Mobile-Specific Adjustments */
@media (max-width: 480px) {
  .glass-title-container {
    min-height: 400px;
    padding: 1rem;
    margin: 1rem auto;
  }

  .glass-title {
    padding: 1rem;
    border-radius: 1rem;
  }

  .title-main {
    font-size: 1.5rem; /* Smaller for mobile */
  }

  .title-line::after {
    width: 80%;
    height: 1px; /* Thinner for mobile */
  }

  .glass-deco {
    display: none; /* Remove decorations on mobile */
  }
}
