/* assets/css/style.css */

/* Custom Animations */
@keyframes matrix-rain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes scan-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Matrix Rain Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.matrix-rain span {
  position: absolute;
  color: rgba(0, 240, 255, 0.1);
  font-family: monospace;
  font-size: 20px;
  animation: matrix-rain 20s linear infinite;
}

/* Glowing Cards */
.glow-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(26, 26, 42, 0.9),
    rgba(21, 21, 31, 0.9)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}

.glow-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  transform: translateY(-5px);
}

.glow-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00f0ff, #7000ff, #00f0ff);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.glow-card:hover::before {
  opacity: 0.3;
}

/* Service Icons Animation */
.service-icon {
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

/* Progress Bar Animation */
.progress-bar {
  position: relative;
  height: 4px;
  background: rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* Animated Border */
.animated-border {
  position: relative;
}

.animated-border::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% {
    border-color: rgba(0, 240, 255, 0.3);
    border-top-color: transparent;
  }
  25% {
    border-color: rgba(112, 0, 255, 0.3);
    border-right-color: transparent;
  }
  50% {
    border-color: rgba(0, 240, 255, 0.3);
    border-bottom-color: transparent;
  }
  75% {
    border-color: rgba(112, 0, 255, 0.3);
    border-left-color: transparent;
  }
  100% {
    border-color: rgba(0, 240, 255, 0.3);
    border-top-color: transparent;
  }
}

/* Cyber Button */
.cyber-btn {
  position: relative;
  padding: 12px 24px;
  background: transparent;
  color: #00f0ff;
  border: 1px solid #00f0ff;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.cyber-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.2),
    transparent
  );
  transition: left 0.3s ease;
  z-index: -1;
}

.cyber-btn:hover::before {
  left: 100%;
}

.cyber-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Data Stream Effect */
.data-stream {
  position: relative;
  overflow: hidden;
}

.data-stream::after {
  content: "01010101010101010101010101010101";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(0, 240, 255, 0.03);
  font-family: monospace;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  animation: stream 20s linear infinite;
  pointer-events: none;
}

@keyframes stream {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Glitch Effect */
.glitch {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%,
  100% {
    transform: none;
    opacity: 1;
  }
  7% {
    transform: skew(-0.5deg, -0.9deg);
    opacity: 0.75;
  }
  10% {
    transform: none;
    opacity: 1;
  }
  27% {
    transform: none;
    opacity: 1;
  }
  30% {
    transform: skew(0.8deg, -0.1deg);
    opacity: 0.75;
  }
  35% {
    transform: none;
    opacity: 1;
  }
  52% {
    transform: none;
    opacity: 1;
  }
  55% {
    transform: skew(-1deg, 0.2deg);
    opacity: 0.75;
  }
  50% {
    transform: none;
    opacity: 1;
  }
  72% {
    transform: none;
    opacity: 1;
  }
  75% {
    transform: skew(0.4deg, 1deg);
    opacity: 0.75;
  }
  80% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

/* Scanning Line */
.scan-line {
  position: relative;
  overflow: hidden;
}

.scan-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  animation: scan-line 4s linear infinite;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Loading Spinner */
.cyber-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 240, 255, 0.1);
  border-top-color: #00f0ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #00f0ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7000ff;
}
