/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* Ensure body is transparent so cityscape shows through (theme bg can wash out glass) */
body {
  background-color: transparent !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide particles - using animated cityscape background instead */
#particles-js {
  display: none !important;
}

/* Ensure body is transparent so cityscape shows through (theme may set a solid color) */
body {
  background: transparent !important;
}

/* Staggered pop-in animations - cards and items animate in with bounce + subtle glitch */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(28px);
  }
  70% {
    opacity: 1;
    transform: scale(1.03) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes glitchPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px) translateX(0);
  }
  8% {
    opacity: 0.6;
    transform: scale(0.95) translateY(16px) translateX(-3px);
  }
  16% {
    transform: scale(0.95) translateY(16px) translateX(2px);
  }
  24% {
    transform: scale(0.95) translateY(16px) translateX(0);
  }
  75% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0);
  }
}

/* Scroll-triggered: elements stay hidden until .is-visible is added when in viewport */
.animate-pop-in {
  opacity: 0;
  transform: scale(0.9) translateY(28px);
}
.animate-pop-in.is-visible {
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-glitch-pop-in {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
}
.animate-glitch-pop-in.is-visible {
  animation: glitchPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Glassmorphic product cards - dark glass so cityscape shows through, blur creates frosted effect */
.glass-card {
  width: 100%;
  min-height: 360px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Top edge highlight - visible above content */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  pointer-events: none;
  z-index: 10;
}

/* Left edge highlight - visible above content */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    transparent,
    rgba(255, 255, 255, 0.08)
  );
  pointer-events: none;
  z-index: 10;
}

/* Glass overlay on image area - softens opaque images so they blend with the glass effect */
.glass-card .relative.overflow-hidden {
  position: relative;
}

.glass-card .relative.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 25%,
    transparent 75%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Slight transparency on product images so glass shows through at edges */
.glass-card img {
  opacity: 0.92;
}

/* Hero section - polished typography and accent styling */
.hero-section .hero-title {
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-section .hero-title {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-section .hero-title {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero-section .hero-title {
    white-space: normal;
  }
}

/* Allow title to wrap on small screens to avoid overflow */
@media (max-width: 639px) {
  .hero-section .hero-title {
    white-space: normal;
  }
}

.hero-section .hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--cl-accent)), transparent);
  border-radius: 2px;
}

.hero-section [class*="text-left"] .hero-title::after {
  left: 0;
  transform: none;
}

.hero-section [class*="text-right"] .hero-title::after {
  left: auto;
  right: 0;
  transform: none;
}

.hero-section .hero-accent,
.hero-section .text-accent-500 {
  color: #22d3ee !important;
  font-weight: 600;
  text-shadow: 0 0 32px rgba(34, 211, 238, 0.35);
}

.hero-section .hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 32rem;
  letter-spacing: 0.01em;
}

.hero-section .hero-subtitle.text-center,
.hero-section [class*="text-center"] .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* Staggered pop-in animations - cards and items animate in with a subtle glitch-style entrance */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  70% {
    opacity: 1;
    transform: scale(1.03) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes glitchPopIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px) translateX(-3px);
  }
  8% {
    transform: scale(0.95) translateY(18px) translateX(4px);
  }
  16% {
    transform: scale(0.95) translateY(18px) translateX(-2px);
  }
  24% {
    transform: scale(0.96) translateY(16px) translateX(0);
  }
  75% {
    opacity: 1;
    transform: scale(1.02) translateY(-3px) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0);
  }
}

/* Scroll-triggered: stay hidden until .is-visible is added when element enters viewport */
.animate-pop-in {
  opacity: 0;
  transform: scale(0.9) translateY(28px);
}
.animate-pop-in.is-visible {
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-glitch-pop-in {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
}
.animate-glitch-pop-in.is-visible {
  animation: glitchPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered pop-in animations - cards and items animate in with subtle glitch */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  70% {
    opacity: 1;
    transform: scale(1.02) translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes glitchPopIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px) translateX(0);
  }
  8% {
    transform: scale(0.95) translateY(16px) translateX(-2px);
  }
  16% {
    transform: scale(0.95) translateY(16px) translateX(2px);
  }
  24% {
    transform: scale(0.96) translateY(14px) translateX(0);
  }
  75% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0);
  }
}

.animate-pop-in {
  opacity: 0;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-glitch-pop-in {
  opacity: 0;
  animation: glitchPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}