
/* =========================================================
   PIXDOO - MAIN LANDING PAGE STYLES
   ========================================================= */

/* ---------- Base & Typography ---------- */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

.caret {
  display: inline-block;
  font-weight: 600;
  color: #8b5cf6;
  margin-left: 2px;
  transition: opacity 0.3s;
}

.toast-container {
  position: fixed;
  z-index: 2147483647; /* max safe value */
  pointer-events: none;
}




/* ---------- Form & Options ---------- */
.form-step {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.form-step.active {
  display: block;
  opacity: 1;
}
.option-card.selected {
  border: 2px solid #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

/* ---------- Buttons ---------- */
button {
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
  transform: scale(1.05);
}
button:active {
  transform: scale(0.97);
}
.pulse {
  animation: pulseEffect 2s infinite;
}
@keyframes pulseEffect {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.2); }
}

/* ---------- Service Cards ---------- */
.service-card {
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}
.service-card:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
  z-index: 10;
}

/* ---------- Glassmorphism ---------- */
.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.glassmorphism-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Hover Glow ---------- */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* ---------- Ripple Effect ---------- */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ---------- Menu Icon ---------- */
.menu-icon {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.menu-icon span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 10px; }
.menu-icon span:nth-child(3) { top: 20px; }
.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.menu-icon.active span:nth-child(2) { opacity: 0; }
.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}
#mobile-menu.open {
  transform: scaleY(1);
  opacity: 1;
  max-height: 500px;
}

/* ---------- Navigation ---------- */
nav a {
  position: relative;
  transition: color 0.3s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

/* ---------- Animations: Fade / Slide / Zoom ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Gradient Background ---------- */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientMove 10s ease infinite;
}

/* ---------- Floating Particles ---------- */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
  50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* ---------- Title Animation ---------- */
.title-zoom span {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
  animation: zoomInLetter 0.6s forwards;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.3s ease,
              text-shadow 0.3s ease;
}
.title-zoom span:hover {
  transform: scale(1.5) !important;
  color: #a78bfa;
  text-shadow: 0 0 25px rgba(167, 139, 250, 0.9);
  z-index: 10;
}
@keyframes zoomInLetter {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- Loader Beat ---------- */
@keyframes beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}
.animate-beat {
  animation: beat 1s ease-in-out infinite;
}

