@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap");

:root {
  --brand: #6d28d9;
  --brand-dark: #4c1d95;
  --brand-soft: #ede9fe;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e9d5ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.page-loader__content::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  border: 2px solid rgba(109, 40, 217, 0.18);
  border-top-color: rgba(109, 40, 217, 0.9);
  transform: translateX(-50%);
  animation: loaderSpin 1s linear infinite;
  box-shadow: 0 0 16px rgba(109, 40, 217, 0.12);
  pointer-events: none;
}

.page-loader__logo {
  width: 72px;
  height: 72px;
}

.page-loader__text {
  font-size: 0.82rem;
  color: #6b7280;
}

.animated-hero {
  background: linear-gradient(120deg, #faf5ff, #ffffff, #f5f3ff, #ffffff);
  background-size: 230% 230%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  isolation: isolate;
}

.hero-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(17, 24, 39, 0.72),
    rgba(76, 29, 149, 0.58)
  );
  z-index: -1;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: -4%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: heroPulse 17s ease-in-out infinite;
  z-index: -2;
}

.animated-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(109, 40, 217, 0.09),
      transparent 38%
    ),
    radial-gradient(circle at 90% 5%, rgba(76, 29, 149, 0.08), transparent 32%);
  z-index: -1;
}

.particles-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-surface {
  border: 1px solid #f3e8ff;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.96),
    rgba(250, 245, 255, 0.7)
  );
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(34px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(-34px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: translate(0, 0);
}

.lift-card {
  transition:
    transform 320ms ease,
    box-shadow 320ms ease;
}

.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.08);
}

.product-card img,
.zoom-wrap img {
  transition: transform 460ms ease;
}

.product-card:hover img,
.zoom-wrap:hover img {
  transform: scale(1.08);
}

.tag-chip {
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.media-overlay {
  position: relative;
}

.media-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.32), transparent 55%);
  pointer-events: none;
}

.contact-light-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.contact-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  filter: blur(8px);
  opacity: 0.65;
}

.contact-blob-right {
  top: -120px;
  right: -80px;
}

.contact-blob-left {
  bottom: -130px;
  left: -90px;
}

.contact-item {
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: #ddd6fe;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.parallax-item {
  transition: transform 220ms linear;
  will-change: transform;
}

.stats-number {
  font-variant-numeric: tabular-nums;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  right: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: right 420ms ease;
}

.btn-glow:hover::after {
  right: 120%;
}

.cursor-glow,
.cursor-glow-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transition: opacity 260ms ease;
  will-change: transform;
}

.cursor-glow {
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    rgba(109, 40, 217, 0.18) 0%,
    rgba(109, 40, 217, 0.1) 32%,
    rgba(109, 40, 217, 0.04) 55%,
    transparent 74%
  );
  filter: blur(10px);
}

.cursor-glow-dot {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 9999px;
  background: rgba(109, 40, 217, 0.55);
  box-shadow: 0 0 0 8px rgba(109, 40, 217, 0.12);
}

body.cursor-effect-ready .cursor-glow,
body.cursor-effect-ready .cursor-glow-dot {
  opacity: 1;
}

.magnetic-target {
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
  will-change: transform;
}

.scroll-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: all 300ms ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float {
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 23px;
  width: 2px;
  background: linear-gradient(to bottom, #ddd6fe, #a78bfa);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #6d28d9;
  box-shadow: 0 0 0 5px rgba(109, 40, 217, 0.2);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes loaderSpin {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }

  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

@media (max-width: 992px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow,
  .cursor-glow-dot {
    display: none;
  }

  .magnetic-target {
    transform: none !important;
  }

  .contact-blob {
    width: 220px;
    height: 220px;
    opacity: 0.45;
  }

  .page-loader__content::before {
    animation: none;
  }
}
