/* Custom Styles & Animations for Printing Studio Landing Page */
:root {
  --color-primary: #0f172a;
  --color-accent: #f51608;
  --color-accent-hover: #d01104;
  --color-accent-light: rgba(245, 22, 8, 0.08);
  --color-accent-glow: rgba(245, 22, 8, 0.35);
  --bg-light: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Parallax Background Wrappers */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.2, 0, 0.2, 1);
  z-index: 0;
}

.parallax-layer-slow {
  will-change: transform;
}
.parallax-layer-fast {
  will-change: transform;
}

/* Animated Buttons */
.btn-primary-animated {
  position: relative;
  background: linear-gradient(135deg, #f51608 0%, #d01104 100%);
  color: #ffffff;
  font-weight: 700;
  overflow: hidden;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(245, 22, 8, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.btn-primary-animated:hover::before {
  left: 140%;
}

.btn-primary-animated:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(245, 22, 8, 0.55), 0 0 0 4px rgba(245, 22, 8, 0.15);
}

.btn-primary-animated:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary-animated {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #e2e8f0;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-animated:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.btn-pulse-ring {
  position: relative;
}

.btn-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--color-accent);
  opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* Card Hover Elevation */
.card-hover-effect {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-effect:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(245, 22, 8, 0.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .lightbox-content {
    grid-template-columns: 1.3fr 1fr;
  }
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrapper {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}

.lightbox-img-wrapper img {
  max-height: 80vh;
  width: 100%;
  object-fit: cover;
}

/* CMYK Decorative Bar */
.cmyk-bar {
  display: flex;
  height: 4px;
  width: 100%;
}
.cmyk-c { background-color: #009fe3; flex: 1; }
.cmyk-m { background-color: #e5007d; flex: 1; }
.cmyk-y { background-color: #ffed00; flex: 1; }
.cmyk-k { background-color: #1a171b; flex: 1; }
.cmyk-accent { background-color: var(--color-accent); flex: 1; }

/* Category Pills Filter */
.filter-btn {
  transition: all 0.25s ease;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
}

.filter-btn.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 6px 15px -3px rgba(245, 22, 8, 0.35);
}

/* Gallery Items Animation */
.gallery-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.hidden-item {
  opacity: 0;
  transform: scale(0.85);
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Float Element Animation */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.animate-float {
  animation: float-slow 6s ease-in-out infinite;
}

/* Custom Range Input */
input[type=range] {
  accent-color: var(--color-accent);
}
