:root {
  --brand-red: #c2272d;
}

.text-brand {
  color: var(--brand-red);
}

.bg-brand {
  background-color: var(--brand-red);
}

.bg-brand-hover:hover {
  background-color: #a81f24;
}

.border-brand {
  border-color: var(--brand-red);
}

.gradient-brand {
  background: linear-gradient(
    135deg,
    rgba(194, 39, 45, 0.9),
    rgba(37, 99, 235, 0.9)
  );
}

.gradient-brand-soft {
  background: linear-gradient(
    135deg,
    rgba(194, 39, 45, 0.22),
    rgba(37, 99, 235, 0.22)
  );
}

.btn-zoom {
  transition: 0.18s ease;
}

.btn-zoom:hover {
  transform: scale(1.045);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.tilt {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tilt:hover {
  transform: translateY(-6px) rotateX(0.5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.float-soft {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealIn 0.9s ease forwards;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(229, 57, 53, 0.08),
    rgba(37, 99, 235, 0.06)
  );
  transition: transform 0.28s ease-out;
}

.mouse-gradient {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(37, 99, 235, 0.15) 0%,
    transparent 60%
  );
  transition: background 0.1s ease;
}

.mouse-gradient::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 39, 45, 0.22),
    rgba(37, 99, 235, 0.12),
    transparent 55%
  );
  filter: blur(70px);
  opacity: 0.25;
  transform: translate(-50%, -50%);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.popup-content h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 20px;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 18px;
  background: #4caf50;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
}

.popup-content button:hover {
  background: #45a049;
}

/* Optional: Red button for error */
#errorPopup .popup-content button {
  background: #f44336;
}

#errorPopup .popup-content button:hover {
  background: #d32f2f;
}
