/* Custom styles for Suzhou BroTech Website */

/* Base styles */
body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
}

/* Scroll reveal initial state handled by .reveal in HTML */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism utility classes */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-hover {
  transition: all 0.3s ease;
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* Neon and Gradients */
.neon-text {
  text-shadow:
    0 0 10px rgba(0, 242, 255, 0.5),
    0 0 20px rgba(0, 242, 255, 0.3);
}

.gradient-text {
  background: linear-gradient(90deg, #00f2ff, #7000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Background Animated Blobs */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    rgba(0, 242, 255, 0.15) 0%,
    rgba(112, 0, 255, 0.15) 100%
  );
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  animation: move 20s infinite alternate;
}

@keyframes move {
  from {
    transform: translate(-10%, -10%) scale(1);
  }
  to {
    transform: translate(10%, 10%) scale(1.1);
  }
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Custom button hover effects */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 242, 255, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* Center content on mobile */
@media (max-width: 768px) {
  .blob {
    display: none;
  }

  .text-center-mobile {
    text-align: center;
  }

  .flex-center-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Ensure proper centering for main content sections */
  .container,
  .max-w-7xl {
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure mobile menu button is visible on small screens */
  #mobile-menu-button {
    display: block !important;
  }
}

/* Shine animation for hero image */
.shine-container {
  position: relative;
  overflow: hidden;
}

.shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shine 4s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
