/* =========================================== */
/* TEMPLATE-DESIGN-2026-BUNDLE */
/* Generated: 2025-12-12T21:47:52.863Z */
/* Combines 4 CSS files for optimized loading */
/* =========================================== */

/* =========================================== */
/* 1. template/shared/css/award-winning-ux-2026.css */
/* =========================================== */

/* =========================================== */
/* AWARD-WINNING UX/UI ENHANCEMENTS 2026 */
/* Parallax, Animations, Micro-interactions */
/* Best practices from award-winning sites */
/* =========================================== */

:root {
  /* Parallax Configuration */
  --parallax-speed-fast: 0.5;
  --parallax-speed-medium: 0.3;
  --parallax-speed-slow: 0.15;
  --parallax-speed-very-slow: 0.08;
  
  /* Animation Timing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Micro-interaction Durations */
  --micro-fast: 0.15s;
  --micro-medium: 0.3s;
  --micro-slow: 0.5s;
  
  /* Depth Layers */
  --depth-shadow-1: 0 2px 8px rgba(0, 0, 0, 0.08);
  --depth-shadow-2: 0 4px 16px rgba(0, 0, 0, 0.12);
  --depth-shadow-3: 0 8px 32px rgba(0, 0, 0, 0.16);
  --depth-shadow-4: 0 16px 64px rgba(0, 0, 0, 0.2);
}

/* =========================================== */
/* SMOOTH SCROLL BEHAVIOR */
/* =========================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* =========================================== */
/* ADVANCED PARALLAX SYSTEM */
/* Multi-layer depth with GPU acceleration */
/* =========================================== */

.parallax-container {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Prevent parallax classes from affecting non-layer elements */
.hero-image-container:not(.parallax-layer),
.hero-content:not(.parallax-layer),
.full-bleed-image:not(.parallax-layer),
.card-premium:not(.parallax-layer) {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

/* Parallax Speed Variants - Only for parallax-layer elements */
.parallax-layer.parallax-fast,
.parallax-container .parallax-fast:not(.parallax-layer) {
  transform: translate3d(0, 0, 0);
  transition: transform 0.1s linear;
}

.parallax-layer.parallax-medium,
.parallax-container .parallax-medium:not(.parallax-layer) {
  transform: translate3d(0, 0, 0);
  transition: transform 0.15s linear;
}

.parallax-layer.parallax-slow,
.parallax-container .parallax-slow:not(.parallax-layer) {
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s linear;
}

.parallax-layer.parallax-very-slow,
.parallax-container .parallax-very-slow:not(.parallax-layer) {
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s linear;
}

/* Hero Section Parallax */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section .hero-image-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  will-change: transform;
  transform: translateZ(0);
}

.hero-section .hero-image-container.parallax-slow {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

.hero-section .hero-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 2;
  will-change: transform, opacity;
}

.hero-section .hero-content.parallax-very-slow {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

/* Full-bleed Image Parallax */
.full-bleed-image-container {
  position: relative;
  overflow: hidden;
}

.full-bleed-image {
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.1s linear;
}

/* Card Parallax Effect */
.card-premium.parallax-card {
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.2s var(--ease-out-expo);
}

/* =========================================== */
/* SCROLL-TRIGGERED ANIMATIONS */
/* Intersection Observer based reveals */
/* =========================================== */

.scroll-reveal-award {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
  will-change: opacity, transform;
}

.scroll-reveal-award.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Children */
.stagger-reveal-award > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.stagger-reveal-award.revealed > *:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal-award.revealed > *:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal-award.revealed > *:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal-award.revealed > *:nth-child(4) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal-award.revealed > *:nth-child(5) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal-award.revealed > *:nth-child(6) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}

/* Scale Reveal */
.scale-reveal-award {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.scale-reveal-award.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Rotate Reveal */
.rotate-reveal-award {
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.rotate-reveal-award.revealed {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Blur Reveal */
.blur-reveal-award {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out-expo),
              filter 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

.blur-reveal-award.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* =========================================== */
/* ADVANCED MICRO-INTERACTIONS */
/* Contextual feedback and haptic-like effects */
/* =========================================== */

/* Button Press Feedback */
.btn-award,
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: transform var(--micro-fast) var(--ease-spring),
              box-shadow var(--micro-medium) var(--ease-out-expo);
}

.btn-award::before,
.btn-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width var(--micro-slow) var(--ease-out-expo),
              height var(--micro-slow) var(--ease-out-expo),
              opacity var(--micro-medium) ease;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.btn-award:active::before,
.btn-premium:active::before {
  width: 400px;
  height: 400px;
  opacity: 1;
  transition: width var(--micro-fast) var(--ease-out-expo),
              height var(--micro-fast) var(--ease-out-expo),
              opacity var(--micro-fast) ease;
}

.btn-award:active,
.btn-premium:active {
  transform: scale(0.96);
  box-shadow: var(--depth-shadow-1);
}

.btn-award:hover,
.btn-premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--depth-shadow-3);
}

/* Card Hover Micro-interactions */
.card-premium {
  transition: transform var(--micro-medium) var(--ease-out-expo),
              box-shadow var(--micro-medium) var(--ease-out-expo);
  will-change: transform;
}

.card-premium:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--depth-shadow-4);
}

.card-premium:active {
  transform: translateY(-4px) scale(0.99);
  transition: transform var(--micro-fast) var(--ease-spring);
}

/* Link Hover Effects */
a.award-link {
  position: relative;
  display: inline-block;
  transition: transform var(--micro-medium) var(--ease-out-expo);
}

a.award-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width var(--micro-medium) var(--ease-out-expo);
}

a.award-link:hover {
  transform: translateX(4px);
}

a.award-link:hover::after {
  width: 100%;
}

/* Badge Micro-interactions */
.badge-premium {
  transition: transform var(--micro-medium) var(--ease-spring),
              box-shadow var(--micro-medium) var(--ease-out-expo);
  will-change: transform;
}

.badge-premium:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--depth-shadow-2);
}

.badge-premium:active {
  transform: scale(1.05) translateY(0);
  transition: transform var(--micro-fast) var(--ease-spring);
}

/* Image Hover Effects */
.img-award-hover {
  transition: transform var(--micro-slow) var(--ease-out-expo),
              filter var(--micro-slow) ease;
  will-change: transform;
}

.img-award-hover:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05);
}

/* =========================================== */
/* FOCUS INDICATORS */
/* Award-winning accessibility */
/* =========================================== */

.btn-award:focus-visible,
.btn-premium:focus-visible,
a.award-link:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

.card-premium:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 4px;
  box-shadow: var(--depth-shadow-3),
              0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* =========================================== */
/* LOADING STATES */
/* Skeleton and shimmer effects */
/* =========================================== */

.skeleton-award {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer-award 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer-award {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Pulse Loading */
.pulse-award {
  animation: pulse-award 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-award {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* =========================================== */
/* SCROLL PROGRESS INDICATORS */
/* Visual feedback for scroll position */
/* =========================================== */

.scroll-progress-award {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* =========================================== */
/* CURSOR EFFECTS */
/* Custom cursor for interactive elements */
/* =========================================== */

.cursor-award {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(99, 102, 241, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor-award.active {
  width: 40px;
  height: 40px;
  opacity: 1;
}

.cursor-award.hover {
  width: 60px;
  height: 60px;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

/* Cursor Dot */
.cursor-dot-award {
  position: fixed;
  width: 6px;
  height: 6px;
  background: rgba(99, 102, 241, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* =========================================== */
/* SECTION TRANSITIONS */
/* Smooth section-to-section flow */
/* =========================================== */

.section-award {
  position: relative;
  scroll-margin-top: 100px;
}

.section-award::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--micro-medium) ease;
}

.section-award.visible::before {
  opacity: 1;
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  /* Reduce parallax intensity on mobile */
  .parallax-fast,
  .parallax-medium,
  .parallax-slow,
  .parallax-very-slow {
    transform: none !important;
  }
  
  /* Reduce hover effects */
  .card-premium:hover {
    transform: translateY(-4px) scale(1.005);
  }
  
  .btn-award:hover,
  .btn-premium:hover {
    transform: translateY(-1px) scale(1.01);
  }
  
  /* Hide custom cursor on mobile */
  .cursor-award,
  .cursor-dot-award {
    display: none;
  }
  
  /* Reduce animation distances */
  .scroll-reveal-award {
    transform: translateY(30px) scale(0.98);
  }
  
  .stagger-reveal-award > * {
    transform: translateY(20px);
  }
}

/* =========================================== */
/* REDUCED MOTION SUPPORT */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .parallax-layer,
  .parallax-fast,
  .parallax-medium,
  .parallax-slow,
  .parallax-very-slow,
  .scroll-reveal-award,
  .stagger-reveal-award > *,
  .scale-reveal-award,
  .rotate-reveal-award,
  .blur-reveal-award,
  .card-premium,
  .btn-award,
  .btn-premium,
  a.award-link,
  .badge-premium,
  .img-award-hover {
    transition: opacity 0.2s ease !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  
  .scroll-reveal-award.revealed,
  .stagger-reveal-award.revealed > *,
  .scale-reveal-award.revealed,
  .rotate-reveal-award.revealed,
  .blur-reveal-award.revealed {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  
  .cursor-award,
  .cursor-dot-award {
    display: none;
  }
  
  .skeleton-award {
    animation: none;
  }
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* GPU acceleration and will-change */
/* =========================================== */

.parallax-layer,
.parallax-fast,
.parallax-medium,
.parallax-slow,
.parallax-very-slow,
.scroll-reveal-award,
.card-premium,
.btn-award,
.btn-premium {
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* =========================================== */
/* AWARD-WINNING DETAILS */
/* Subtle polish that makes a difference */
/* =========================================== */

/* Subtle glow on hover */
.card-premium:hover::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--micro-medium) ease;
}

.card-premium:hover::after {
  opacity: 1;
}

/* Text selection styling */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.3);
  color: inherit;
}



/* =========================================== */
/* 2. template/shared/css/enhanced-parallax-2026.css */
/* =========================================== */

/* =========================================== */
/* ENHANCED PARALLAX SCROLLING 2026 */
/* Multi-layer depth, tilt effects, scroll progress */
/* Award-winning parallax implementations */
/* =========================================== */

:root {
  /* Parallax Speed Variants */
  --parallax-speed-ultra-fast: 0.8;
  --parallax-speed-fast: 0.5;
  --parallax-speed-medium: 0.3;
  --parallax-speed-slow: 0.15;
  --parallax-speed-very-slow: 0.08;
  --parallax-speed-ultra-slow: 0.04;
  
  /* Depth Layers */
  --parallax-depth-1: 0.1;
  --parallax-depth-2: 0.2;
  --parallax-depth-3: 0.3;
  --parallax-depth-4: 0.4;
  --parallax-depth-5: 0.5;
  
  /* Tilt Intensity */
  --tilt-intensity: 15deg;
  --tilt-smoothness: 0.3s;
}

/* =========================================== */
/* MULTI-LAYER PARALLAX CONTAINER */
/* =========================================== */

.parallax-multi-layer {
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.parallax-multi-layer .parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.parallax-multi-layer .parallax-layer-1 {
  transform: translateZ(-100px) scale(1.1);
}

.parallax-multi-layer .parallax-layer-2 {
  transform: translateZ(-50px) scale(1.05);
}

.parallax-multi-layer .parallax-layer-3 {
  transform: translateZ(0px) scale(1);
}

.parallax-multi-layer .parallax-layer-4 {
  transform: translateZ(50px) scale(0.95);
}

.parallax-multi-layer .parallax-layer-5 {
  transform: translateZ(100px) scale(0.9);
}

/* =========================================== */
/* SCROLL-BASED PARALLAX */
/* Elements that move based on scroll position */
/* =========================================== */

[data-parallax-scroll] {
  will-change: transform;
  transition: transform 0.1s linear;
}

[data-parallax-scroll="fast"] {
  --parallax-speed: var(--parallax-speed-fast);
}

[data-parallax-scroll="medium"] {
  --parallax-speed: var(--parallax-speed-medium);
}

[data-parallax-scroll="slow"] {
  --parallax-speed: var(--parallax-speed-slow);
}

[data-parallax-scroll="very-slow"] {
  --parallax-speed: var(--parallax-speed-very-slow);
}

/* =========================================== */
/* DEPTH-BASED PARALLAX */
/* Parallax based on z-index depth */
/* =========================================== */

[data-parallax-depth="1"] {
  --parallax-speed: var(--parallax-depth-1);
}

[data-parallax-depth="2"] {
  --parallax-speed: var(--parallax-depth-2);
}

[data-parallax-depth="3"] {
  --parallax-speed: var(--parallax-depth-3);
}

[data-parallax-depth="4"] {
  --parallax-speed: var(--parallax-depth-4);
}

[data-parallax-depth="5"] {
  --parallax-speed: var(--parallax-depth-5);
}

/* =========================================== */
/* TILT PARALLAX EFFECT */
/* 3D tilt based on mouse position */
/* =========================================== */

[data-tilt-parallax] {
  transform-style: preserve-3d;
  transition: transform var(--tilt-smoothness) ease-out;
  will-change: transform;
}

[data-tilt-parallax]:hover {
  transform-style: preserve-3d;
}

/* =========================================== */
/* SCROLL PROGRESS PARALLAX */
/* Parallax that responds to scroll progress */
/* =========================================== */

[data-scroll-progress] {
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* =========================================== */
/* HORIZONTAL PARALLAX */
/* Parallax that moves horizontally */
/* =========================================== */

[data-parallax-horizontal] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* =========================================== */
/* ROTATION PARALLAX */
/* Elements that rotate based on scroll */
/* =========================================== */

[data-parallax-rotate] {
  will-change: transform;
  transition: transform 0.1s linear;
  transform-origin: center center;
}

/* =========================================== */
/* SCALE PARALLAX */
/* Elements that scale based on scroll */
/* =========================================== */

[data-parallax-scale] {
  will-change: transform;
  transition: transform 0.1s linear;
  transform-origin: center center;
}

/* =========================================== */
/* OPACITY PARALLAX */
/* Elements that fade based on scroll */
/* =========================================== */

[data-parallax-opacity] {
  will-change: opacity;
  transition: opacity 0.1s linear;
}

/* =========================================== */
/* BLUR PARALLAX */
/* Elements that blur based on scroll */
/* =========================================== */

[data-parallax-blur] {
  will-change: filter;
  transition: filter 0.1s linear;
}

/* =========================================== */
/* STAGGERED PARALLAX */
/* Multiple elements with staggered parallax */
/* =========================================== */

.parallax-stagger > * {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-stagger > *:nth-child(1) {
  --parallax-speed: var(--parallax-speed-fast);
}

.parallax-stagger > *:nth-child(2) {
  --parallax-speed: var(--parallax-speed-medium);
}

.parallax-stagger > *:nth-child(3) {
  --parallax-speed: var(--parallax-speed-slow);
}

.parallax-stagger > *:nth-child(4) {
  --parallax-speed: var(--parallax-speed-very-slow);
}

/* =========================================== */
/* PARALLAX CONTAINER VARIATIONS */
/* =========================================== */

.parallax-container-vertical {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  perspective: 1000px;
}

.parallax-container-horizontal {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100vw;
  perspective: 1000px;
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */

[data-parallax-scroll],
[data-parallax-depth],
[data-tilt-parallax],
[data-scroll-progress],
[data-parallax-horizontal],
[data-parallax-rotate],
[data-parallax-scale],
[data-parallax-opacity],
[data-parallax-blur] {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  /* Disable parallax on mobile for performance */
  [data-parallax-scroll],
  [data-parallax-depth],
  [data-tilt-parallax],
  [data-scroll-progress],
  [data-parallax-horizontal],
  [data-parallax-rotate],
  [data-parallax-scale] {
    transform: none !important;
    transition: none !important;
  }
  
  .parallax-multi-layer .parallax-layer {
    transform: none !important;
  }
}

/* =========================================== */
/* ACCESSIBILITY */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  [data-parallax-scroll],
  [data-parallax-depth],
  [data-tilt-parallax],
  [data-scroll-progress],
  [data-parallax-horizontal],
  [data-parallax-rotate],
  [data-parallax-scale],
  [data-parallax-opacity],
  [data-parallax-blur],
  .parallax-multi-layer .parallax-layer,
  .parallax-stagger > * {
    transform: none !important;
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}


/* =========================================== */
/* 3. template/shared/css/progressive-images-2026.css */
/* =========================================== */

/* =========================================== */
/* PROGRESSIVE IMAGE LOADING 2026 */
/* Blur-up effect for better perceived performance */
/* Award-winning UX pattern */
/* =========================================== */

:root {
  --blur-up-duration: 0.5s;
  --blur-up-blur: 20px;
  --blur-up-scale: 1.1;
}

/* =========================================== */
/* PROGRESSIVE IMAGE CONTAINER */
/* =========================================== */

.progressive-image-container {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  display: inline-block;
  width: 100%;
  height: 100%;
}

/* Placeholder (low-quality image) */
.progressive-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--blur-up-blur));
  transform: scale(var(--blur-up-scale));
  transition: opacity var(--blur-up-duration) ease,
              filter var(--blur-up-duration) ease,
              transform var(--blur-up-duration) ease;
  opacity: 1;
  z-index: 1;
}

/* Full-quality image */
.progressive-image-full {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--blur-up-duration) ease;
  z-index: 2;
}

/* When full image is loaded */
.progressive-image-container.loaded .progressive-image-placeholder {
  opacity: 0;
  filter: blur(0);
  transform: scale(1);
}

.progressive-image-container.loaded .progressive-image-full {
  opacity: 1;
}

/* =========================================== */
/* SKELETON LOADER VARIANT */
/* For images without placeholder */
/* =========================================== */

.progressive-image-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.progressive-image-container.loaded .progressive-image-skeleton {
  opacity: 0;
  transition: opacity var(--blur-up-duration) ease;
}

/* =========================================== */
/* ASPECT RATIO PRESERVATION */
/* =========================================== */

.progressive-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.progressive-image-wrapper::before {
  content: '';
  display: block;
  padding-bottom: var(--aspect-ratio, 56.25%); /* 16:9 default */
}

.progressive-image-wrapper[data-aspect-ratio]::before {
  padding-bottom: var(--aspect-ratio);
}

.progressive-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Common aspect ratios */
.progressive-image-wrapper[data-aspect-ratio="1:1"]::before {
  padding-bottom: 100%;
}

.progressive-image-wrapper[data-aspect-ratio="4:3"]::before {
  padding-bottom: 75%;
}

.progressive-image-wrapper[data-aspect-ratio="16:9"]::before {
  padding-bottom: 56.25%;
}

.progressive-image-wrapper[data-aspect-ratio="21:9"]::before {
  padding-bottom: 42.85%;
}

/* =========================================== */
/* LAZY LOADING ENHANCEMENT */
/* =========================================== */

.progressive-image-container[loading="lazy"] {
  content-visibility: auto;
}

/* =========================================== */
/* RESPONSIVE IMAGES */
/* =========================================== */

.progressive-image-full,
.progressive-image-full img,
.progressive-image-placeholder,
.progressive-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero image compatibility */
.hero-image-container .progressive-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-image-container .progressive-image-container {
  width: 100%;
  height: 100%;
}

/* =========================================== */
/* LOADING INDICATOR */
/* =========================================== */

.progressive-image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 3;
  opacity: 1;
  transition: opacity var(--blur-up-duration) ease;
}

.progressive-image-container.loaded .progressive-image-loading {
  opacity: 0;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =========================================== */
/* ERROR STATE */
/* =========================================== */

.progressive-image-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
  z-index: 4;
}

.progressive-image-error-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */

.progressive-image-container,
.progressive-image-placeholder,
.progressive-image-full {
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}

.progressive-image-container.loaded {
  will-change: auto;
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  :root {
    --blur-up-blur: 15px;
    --blur-up-scale: 1.05;
  }
}

/* =========================================== */
/* REDUCED MOTION SUPPORT */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .progressive-image-placeholder,
  .progressive-image-full,
  .progressive-image-loading,
  .progressive-image-skeleton {
    transition: opacity 0.2s ease !important;
    animation: none !important;
  }
  
  .progressive-image-placeholder {
    filter: blur(0) !important;
    transform: scale(1) !important;
  }
}



/* =========================================== */
/* 4. template/shared/css/page-transitions-2026.css */
/* =========================================== */

/* =========================================== */
/* PAGE TRANSITIONS 2026 */
/* Smooth transitions between pages */
/* Award-winning UX pattern */
/* =========================================== */

:root {
  --transition-duration: 0.4s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --overlay-opacity: 0.95;
}

/* =========================================== */
/* PAGE TRANSITION OVERLAY */
/* =========================================== */

.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-duration) var(--transition-easing);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition-overlay.active {
  opacity: var(--overlay-opacity);
  pointer-events: all;
}

/* Dark mode support */
[data-bs-theme="dark"] .page-transition-overlay {
  background: #0f172a;
}

/* =========================================== */
/* LOADING SPINNER */
/* =========================================== */

.page-transition-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: page-transition-spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-duration) ease;
}

.page-transition-overlay.active .page-transition-spinner {
  opacity: 1;
}

@keyframes page-transition-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================== */
/* LOADING TEXT */
/* =========================================== */

.page-transition-text {
  margin-top: 1.5rem;
  color: #6366f1;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition-duration) ease;
  text-align: center;
}

.page-transition-overlay.active .page-transition-text {
  opacity: 1;
}

[data-bs-theme="dark"] .page-transition-text {
  color: #818cf8;
}

/* =========================================== */
/* LOADING CONTENT CONTAINER */
/* =========================================== */

.page-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================================== */
/* FADE TRANSITION */
/* =========================================== */

.page-transition-fade {
  animation: page-transition-fade-out var(--transition-duration) var(--transition-easing);
}

@keyframes page-transition-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* =========================================== */
/* SLIDE TRANSITION */
/* =========================================== */

.page-transition-slide {
  animation: page-transition-slide-out var(--transition-duration) var(--transition-easing);
}

@keyframes page-transition-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

/* Slide from right */
.page-transition-slide-right {
  animation: page-transition-slide-out-right var(--transition-duration) var(--transition-easing);
}

@keyframes page-transition-slide-out-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* =========================================== */
/* SCALE TRANSITION */
/* =========================================== */

.page-transition-scale {
  animation: page-transition-scale-out var(--transition-duration) var(--transition-easing);
}

@keyframes page-transition-scale-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* =========================================== */
/* BLUR TRANSITION */
/* =========================================== */

.page-transition-blur {
  animation: page-transition-blur-out var(--transition-duration) var(--transition-easing);
}

@keyframes page-transition-blur-out {
  from {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 0;
    filter: blur(10px);
  }
}

/* =========================================== */
/* VIEW TRANSITIONS API SUPPORT */
/* =========================================== */

@supports (view-transition-name: none) {
  ::view-transition-old(root) {
    animation: page-transition-fade-out var(--transition-duration) var(--transition-easing);
  }
  
  ::view-transition-new(root) {
    animation: page-transition-fade-in var(--transition-duration) var(--transition-easing);
  }
  
  @keyframes page-transition-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* =========================================== */
/* PROGRESS INDICATOR */
/* =========================================== */

.page-transition-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  transition: width 0.3s ease;
  z-index: 100000;
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  .page-transition-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .page-transition-text {
    font-size: 0.75rem;
  }
}

/* =========================================== */
/* REDUCED MOTION SUPPORT */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay {
    transition: opacity 0.2s ease !important;
  }
  
  .page-transition-fade,
  .page-transition-slide,
  .page-transition-slide-right,
  .page-transition-scale,
  .page-transition-blur {
    animation: none !important;
  }
  
  .page-transition-spinner {
    animation: none !important;
  }
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */

.page-transition-overlay {
  will-change: opacity;
  backface-visibility: hidden;
}

.page-transition-overlay:not(.active) {
  will-change: auto;
}






