/* ========================================================
   Envato Category Showcase Section Stylesheet
   Signature Dark Stage Theme with Responsive Stagger Grid
   ======================================================== */

.envato-section {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #121513;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  contain: content;
}

.envato-section *,
.envato-section *::before,
.envato-section *::after {
  box-sizing: border-box;
}

/* Section Header */
.envato-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}

.envato-section .header-content {
  max-width: 750px;
}

.envato-section .section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #121513;
  margin-bottom: 12px;
}

.envato-section .section-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #555c56;
  line-height: 1.45;
  margin-bottom: 4px;
}

.envato-section .section-disclaimer {
  font-size: 13px;
  color: #7b837d;
  font-weight: 400;
}

/* Tab Pill (Stock only as explicitly requested) */
.envato-section .tab-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.envato-section .tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f3f0;
  color: #121513;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: default;
  border: 1px solid #dfe5e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.envato-section .tab-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Main Showcase Stage Box (Dark Stage Box) */
.envato-section .stage-container {
  position: relative;
  background-color: #111412;
  border: 1px solid #202723;
  border-radius: 28px;
  padding: 44px 34px 56px 64px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Green Dotted Grid & Ambient Glow Background */
.envato-section .stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.envato-section .dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(121, 226, 123, 0.24) 1.2px, transparent 1.2px);
  background-size: 17px 17px;
  mask-image: radial-gradient(circle at 10% 90%, black 10%, rgba(0,0,0,0.6) 40%, transparent 80%),
              radial-gradient(circle at 90% 90%, black 10%, rgba(0,0,0,0.5) 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 10% 90%, black 10%, rgba(0,0,0,0.6) 40%, transparent 80%),
                      radial-gradient(circle at 90% 90%, black 10%, rgba(0,0,0,0.5) 35%, transparent 75%);
}

.envato-section .corner-glow-left {
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 480px;
  height: 280px;
  background: radial-gradient(ellipse at bottom left, rgba(82, 214, 88, 0.28) 0%, rgba(82, 214, 88, 0.08) 50%, transparent 75%);
  filter: blur(40px);
}

.envato-section .corner-glow-right {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 480px;
  height: 280px;
  background: radial-gradient(ellipse at bottom right, rgba(82, 214, 88, 0.2) 0%, rgba(82, 214, 88, 0.05) 50%, transparent 75%);
  filter: blur(40px);
}

/* Left Envato Logo Badge */
.envato-section .stage-leaf-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 48px;
}

.envato-section .stage-leaf-logo svg {
  width: 26px;
  height: 38px;
  filter: drop-shadow(0 0 12px rgba(135, 230, 75, 0.5));
}

/* ========================================================
   Cards Grid Layout Engine (Matching Envato's exact system)
   Desktop: 6 columns x 2 rows (grid-auto-flow: column)
   Columns 2, 4, 6 drop down by 19px
   ======================================================== */
.envato-section .cards-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 14px;
  row-gap: 14px;
  align-items: start;
  padding-bottom: 24px;
}

/* Desktop Stagger: Columns 2, 4, 6 drop down (Only on Desktop screens min-width: 1081px) */
@media (min-width: 1081px) {
  .envato-section .cards-grid > .card-item:nth-child(3),
  .envato-section .cards-grid > .card-item:nth-child(4),
  .envato-section .cards-grid > .card-item:nth-child(7),
  .envato-section .cards-grid > .card-item:nth-child(8),
  .envato-section .cards-grid > .card-item:nth-child(11),
  .envato-section .cards-grid > .card-item:nth-child(12) {
    transform: translateY(19px);
  }
}

/* Individual Card */
.envato-section .card-item {
  position: relative;
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              z-index 0.4s step-end;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

/* Desktop Hover Interactive Effects (Enabled only for devices with real mouse pointer) */
@media (hover: hover) and (pointer: fine) {
  .envato-section .card-item:hover {
    transform: translateY(-8px) scale(1.045) !important;
    box-shadow: 0 20px 38px -6px rgba(0, 0, 0, 0.14),
                0 0 24px rgba(121, 226, 123, 0.35);
    border-color: rgba(121, 226, 123, 0.5);
    z-index: 10;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                z-index 0s;
  }

  /* Shift neighbors subtly on desktop hover */
  .envato-section .cards-grid.has-hover .card-item:not(:hover) {
    opacity: 0.92;
    transition: opacity 0.3s ease;
  }
}

/* Card Header */
.envato-section .card-header {
  padding: 13px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #ffffff;
  z-index: 4;
  min-height: 50px;
}

.envato-section .card-title {
  font-size: 14px;
  font-weight: 700;
  color: #121513;
  letter-spacing: -0.015em;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin: 0;
}

.envato-section .card-count {
  font-size: 11.5px;
  font-weight: 500;
  color: #71777d;
  margin-top: 3px;
  line-height: 1;
}

/* Card Media Box */
.envato-section .card-media-box {
  position: relative;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #edf0ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envato-section .card-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.envato-section .card-item:hover .card-media-box img {
  transform: scale(1.08);
}

/* Micro Badges & Groups */
.envato-section .micro-badge-group {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  pointer-events: none;
  flex-wrap: nowrap;
}

.envato-section .micro-badge {
  background: rgba(14, 18, 15, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2.5px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.envato-section .micro-badge-sec {
  background: rgba(20, 26, 22, 0.85);
  border-color: rgba(121, 226, 123, 0.3);
  color: #a4f3a6;
}

.envato-section .micro-badge .dot {
  width: 5px;
  height: 5px;
  background-color: #79e27b;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.envato-section .card-item:hover .micro-badge {
  opacity: 1;
  transform: translateY(-1px);
}

/* ========================================================
   1. PHOTOS: Viewfinder & Shutter Flash
   ======================================================== */
.envato-section .card-photos .viewfinder {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.envato-section .card-photos:hover .viewfinder {
  opacity: 1;
}

.envato-section .viewfinder-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.envato-section .viewfinder-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.envato-section .viewfinder-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.envato-section .viewfinder-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.envato-section .viewfinder-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.envato-section .viewfinder-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(121, 226, 123, 0.85);
  border-radius: 50%;
  animation: focusLock 1.5s infinite alternate ease-in-out;
}

@keyframes focusLock {
  0% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
}

.envato-section .shutter-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  border-radius: 12px;
}

.envato-section .card-photos:hover .shutter-flash {
  animation: flashClick 0.4s ease-out;
}

@keyframes flashClick {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ========================================================
   2. SOUND EFFECTS: Audio Equalizer Waves
   ======================================================== */
.envato-section .sfx-center-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(115, 223, 120, 0.95);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.envato-section .sfx-center-pill .wave-bar {
  width: 3px;
  background-color: #142e17;
  border-radius: 2px;
  animation: sfxAmbient 1.2s infinite alternate ease-in-out;
}

.envato-section .sfx-center-pill .wave-bar:nth-child(1) { animation-delay: 0.1s; height: 6px; }
.envato-section .sfx-center-pill .wave-bar:nth-child(2) { animation-delay: 0.3s; height: 12px; }
.envato-section .sfx-center-pill .wave-bar:nth-child(3) { animation-delay: 0.5s; height: 8px; }
.envato-section .sfx-center-pill .wave-bar:nth-child(4) { animation-delay: 0.2s; height: 14px; }
.envato-section .sfx-center-pill .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 9px; }
.envato-section .sfx-center-pill .wave-bar:nth-child(6) { animation-delay: 0.6s; height: 13px; }
.envato-section .sfx-center-pill .wave-bar:nth-child(7) { animation-delay: 0.15s; height: 7px; }

@keyframes sfxAmbient {
  0% { height: 4px; }
  100% { height: 16px; }
}

.envato-section .card-sfx:hover .sfx-center-pill {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 20px rgba(115, 223, 120, 0.85);
}

.envato-section .card-sfx:hover .sfx-center-pill .wave-bar {
  animation: sfxBurst 0.25s infinite alternate ease-in-out;
}

@keyframes sfxBurst {
  0% { height: 3px; }
  100% { height: 18px; }
}

.envato-section .sfx-bottom-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(115, 223, 120, 0.92);
  border-radius: 9999px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 2.5px;
  z-index: 4;
}

.envato-section .sfx-bottom-pill .wave-bar {
  width: 2.5px;
  background-color: #142e17;
  border-radius: 2px;
  animation: sfxAmbient 1s infinite alternate ease-in-out;
}

.envato-section .sfx-bottom-pill .wave-bar:nth-child(1) { height: 4px; }
.envato-section .sfx-bottom-pill .wave-bar:nth-child(2) { height: 8px; }
.envato-section .sfx-bottom-pill .wave-bar:nth-child(3) { height: 6px; }
.envato-section .sfx-bottom-pill .wave-bar:nth-child(4) { height: 10px; }
.envato-section .sfx-bottom-pill .wave-bar:nth-child(5) { height: 5px; }

/* ========================================================
   3. VIDEO TEMPLATES: Motion Template Video Reel + Scrubber
   ======================================================== */
.envato-section .card-video-templates .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.envato-section .card-video-templates:hover .card-video {
  transform: scale(1.06);
}

/* ========================================================
   4. GRAPHIC TEMPLATES: Mockup Star Imprint
   ======================================================== */
.envato-section .card-graphic-templates .mockup-design-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 1.5px dashed rgba(121, 226, 123, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0.65;
  transition: all 0.4s ease;
  background: radial-gradient(circle, rgba(121, 226, 123, 0.15) 0%, transparent 70%);
}

.envato-section .card-graphic-templates .mockup-design-overlay svg {
  width: 22px;
  height: 22px;
  fill: #79e27b;
  animation: stampRotate 8s infinite linear;
}

@keyframes stampRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.envato-section .card-graphic-templates:hover .mockup-design-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.22);
  border-color: #79e27b;
  box-shadow: 0 0 16px rgba(121, 226, 123, 0.6);
}

/* ========================================================
   5. STOCK VIDEOS: Real Video Playback + Play Pill
   ======================================================== */
.envato-section .card-stock-videos .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.envato-section .card-stock-videos:hover .card-video {
  opacity: 1;
}

.envato-section .play-floating-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 36px;
  height: 36px;
  background: rgba(14, 18, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 4;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.envato-section .play-floating-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-left: 2px;
}

.envato-section .card-stock-videos:hover .play-floating-pill {
  transform: translate(-50%, -50%) scale(1.15);
  background: #79e27b;
  color: #0b0e0c;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(121, 226, 123, 0.7);
}

/* ========================================================
   6. FONTS: Typography Pulse & Format Badge
   ======================================================== */
.envato-section .font-marquee-tag {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #111412;
  color: #79e27b;
  padding: 2.5px 8px;
  border-radius: 9999px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.envato-section .card-fonts:hover .font-marquee-tag {
  background: #ffffff;
  color: #111412;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.envato-section .card-fonts:hover .card-media-box img {
  animation: fontWeightWobble 0.8s infinite alternate ease-in-out;
}

@keyframes fontWeightWobble {
  0% { transform: scale(1.06) skewX(0deg); }
  100% { transform: scale(1.09) skewX(-2deg); }
}

/* ========================================================
   7. GRAPHICS: Cyberpunk Neon Aura & Scan Beam
   ======================================================== */
.envato-section .neon-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255, 0, 128, 0.28) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.envato-section .card-graphics:hover .neon-glow-overlay {
  opacity: 1;
}

.envato-section .hologram-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #79e27b, #00ffff, transparent);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

.envato-section .card-graphics:hover .hologram-scan {
  opacity: 1;
  animation: holoScan 1.6s infinite ease-in-out;
}

@keyframes holoScan {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* ========================================================
   8. PRESENTATION TEMPLATES: 3D Layered Depth
   ======================================================== */
.envato-section .card-presentation .card-media-box {
  perspective: 600px;
}

.envato-section .card-presentation:hover .card-media-box img {
  transform: scale(1.1) rotateX(10deg) rotateY(-8deg) translateZ(10px);
  box-shadow: -6px 12px 24px rgba(0, 0, 0, 0.4);
}

/* ========================================================
   9. ROYALTY-FREE MUSIC: Animated Audio Waveform Player
   ======================================================== */
.envato-section .music-note-icon {
  position: absolute;
  top: 25%;
  left: 14%;
  width: 26px;
  height: 26px;
  background: #fbf6f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111412;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 3;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.envato-section .card-music:hover .music-note-icon {
  transform: scale(1.1) rotate(-8deg);
}

.envato-section .music-waveform-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  height: 38px;
  background: #fbf6f0;
  border-radius: 9999px;
  border: 1.5px solid #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  padding: 0 12px;
  box-sizing: border-box;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.envato-section .card-music:hover .music-waveform-pill {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.envato-section .music-waveform-pill .wf-bar {
  width: 2.5px;
  border-radius: 2px;
  transform-origin: center;
  animation: wfBounce 1.2s infinite ease-in-out;
}

.envato-section .music-waveform-pill .wf-bar.active {
  background-color: #1a1a1a;
}

.envato-section .music-waveform-pill .wf-bar.accent {
  background-color: #12822a;
}

@keyframes wfBounce {
  0%, 100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1.35);
  }
}

.envato-section .card-music:hover .music-waveform-pill .wf-bar {
  background-color: #79e27b;
  box-shadow: 0 0 5px rgba(121, 226, 123, 0.7);
  animation-duration: 0.5s;
}

@keyframes musicBar {
  0% { height: 3px; }
  100% { height: 11px; }
}

.envato-section .music-bottom-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 18, 15, 0.88);
  border-radius: 9999px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #79e27b;
  font-size: 10px;
  z-index: 3;
}

.envato-section .music-bottom-pill .wave-bar {
  width: 2px;
  background-color: #79e27b;
  border-radius: 1px;
  animation: musicBar 0.8s infinite alternate ease-in-out;
}

.envato-section .music-bottom-pill .wave-bar:nth-child(1) { height: 3px; }
.envato-section .music-bottom-pill .wave-bar:nth-child(2) { height: 7px; }
.envato-section .music-bottom-pill .wave-bar:nth-child(3) { height: 5px; }
.envato-section .music-bottom-pill .wave-bar:nth-child(4) { height: 9px; }

/* ========================================================
   10. 3D: Perspective Tilt & Specular Shine
   ======================================================== */
.envato-section .card-3d .card-media-box {
  perspective: 800px;
  transform-style: preserve-3d;
  position: relative;
}

.envato-section .card-3d .specular-shine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  pointer-events: none;
  z-index: 4;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.envato-section .card-3d:hover .specular-shine {
  transform: rotate(25deg) translateY(100%);
}

.envato-section .card-3d .card-media-box img {
  animation: float3d 5s infinite alternate ease-in-out;
  transform-style: preserve-3d;
}

@keyframes float3d {
  0% { transform: scale(1.02) rotateY(-3deg) rotateX(2deg); }
  100% { transform: scale(1.05) rotateY(3deg) rotateX(-2deg); }
}

.envato-section .card-3d:hover .card-media-box img {
  animation: none;
  transform: scale(1.12) rotateX(12deg) rotateY(-10deg) translateZ(12px);
  filter: drop-shadow(0 16px 20px rgba(220, 50, 180, 0.25));
}

/* ========================================================
   11. LUTS: Before / After Color Grade Reel
   ======================================================== */
.envato-section .card-luts .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.envato-section .card-luts:hover .card-video {
  transform: scale(1.06);
}

.envato-section .lut-tag-raw {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(14, 18, 15, 0.85);
  color: #ffffff;
  padding: 2.5px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 3;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.envato-section .lut-tag-lut {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #79e27b;
  color: #0b0e0c;
  padding: 2.5px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(121, 226, 123, 0.35);
  pointer-events: none;
}

/* ========================================================
   12. ALL CATEGORIES: RGB Glitch & CRT Scanlines
   ======================================================== */
.envato-section .card-all .crt-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.2) 0px,
    rgba(0, 0, 0, 0.2) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
}

.envato-section .card-all:hover .card-media-box img {
  animation: rgbGlitch 0.6s infinite alternate ease-in-out;
}

@keyframes rgbGlitch {
  0% {
    transform: scale(1.08) translate(0, 0);
    filter: drop-shadow(-2px 0 red) drop-shadow(2px 0 cyan);
  }
  50% {
    transform: scale(1.09) translate(1px, -1px);
    filter: drop-shadow(2px 0 red) drop-shadow(-2px 0 cyan);
  }
  100% {
    transform: scale(1.08) translate(-1px, 1px);
    filter: drop-shadow(-1px 0 red) drop-shadow(1px 0 cyan);
  }
}

/* Bottom Features Row */
.envato-section .features-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 48px auto 0;
  gap: 40px;
  padding: 0 16px;
}

.envato-section .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.envato-section .feature-icon-circle {
  width: 52px;
  height: 52px;
  background-color: #ffffff;
  border: 1.5px solid #e1e7e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #121513;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.envato-section .feature-item:hover .feature-icon-circle {
  transform: scale(1.1) translateY(-2px);
  border-color: #79e27b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1), 0 0 18px rgba(121, 226, 123, 0.4);
}

.envato-section .feature-icon-circle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.envato-section .feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #121513;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.envato-section .feature-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: #555e57;
  max-width: 320px;
  margin: 0;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile Perfection)
   ======================================================== */
/* Tablet View: 4 Columns x 3 Rows */
@media (max-width: 1080px) and (min-width: 769px) {
  .envato-section .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    column-gap: 12px;
    row-gap: 12px;
    padding-bottom: 26px;
  }

  .envato-section .stage-container {
    padding: 36px 24px 48px 48px;
  }

  /* Clear desktop stagger */
  .envato-section .cards-grid > .card-item:nth-child(3),
  .envato-section .cards-grid > .card-item:nth-child(4),
  .envato-section .cards-grid > .card-item:nth-child(7),
  .envato-section .cards-grid > .card-item:nth-child(8),
  .envato-section .cards-grid > .card-item:nth-child(11),
  .envato-section .cards-grid > .card-item:nth-child(12) {
    transform: none;
  }

  /* Tablet Stagger: Col 2 (Cards 4,5,6) and Col 4 (Cards 10,11,12) drop down */
  .envato-section .cards-grid > .card-item:nth-child(4),
  .envato-section .cards-grid > .card-item:nth-child(5),
  .envato-section .cards-grid > .card-item:nth-child(6),
  .envato-section .cards-grid > .card-item:nth-child(10),
  .envato-section .cards-grid > .card-item:nth-child(11),
  .envato-section .cards-grid > .card-item:nth-child(12) {
    transform: translateY(22px);
  }
}

/* Mobile View (Matches Envato elements mobile exactly)
   2 Columns x 6 Rows:
   Col 1 (Left): Cards 1-6 (Photos, SFX, Video Templ., Graphic Templ., Stock Videos, Fonts)
   Col 2 (Right): Cards 7-12 (Graphics, Presentation, Music, 3D, LUTs, All categories)
   Entire Right Column (Cards 7-12) drops down by 26px!
*/
@media (max-width: 768px) {
  .envato-section {
    padding: 24px 12px 60px;
    contain: paint;
  }

  .envato-section .stage-container {
    padding: 24px 12px 38px 12px;
    border-radius: 22px;
    contain: layout paint;
  }

  /* 1. Disable heavy background filters and GPU blur overlays */
  .envato-section .stage-bg .corner-glow-left,
  .envato-section .stage-bg .corner-glow-right {
    display: none !important;
  }

  .envato-section .dot-grid {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    opacity: 0.16;
  }

  /* 2. Disable video decoding streams on mobile (instant, crisp static poster thumbnails) */
  .envato-section .card-video {
    display: none !important;
  }

  /* 3. Disable expensive backdrop-filter on badges */
  .envato-section .micro-badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(18, 22, 19, 0.94) !important;
    font-size: 8px;
    padding: 2px 5.5px;
    border-radius: 5px;
  }

  /* 4. Disable continuous ambient infinite keyframe animations */
  .envato-section .micro-badge .dot,
  .envato-section .card-photos .camera-reticle,
  .envato-section .card-graphic-templates .stamp-rotate-svg,
  .envato-section .card-sfx .sfx-center-pill .wave-bar,
  .envato-section .card-music .music-bar,
  .envato-section .card-music .music-waveform-pill .wf-bar,
  .envato-section .card-3d .card-media-box img,
  .envato-section .card-all .card-media-box img {
    animation: none !important;
  }

  /* 5. Disable hover jumps and layer will-change on touch */
  .envato-section .card-item {
    border-radius: 16px;
    will-change: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .envato-section .cards-grid.has-hover .card-item:not(:hover) {
    opacity: 1 !important;
  }

  .envato-section .card-item:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
  }

  .envato-section .section-header {
    margin-bottom: 20px;
    gap: 14px;
  }

  .envato-section .section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .envato-section .section-subtitle {
    font-size: 14px;
  }

  .envato-section .stage-leaf-logo {
    display: none;
  }

  .envato-section .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
    column-gap: 12px;
    row-gap: 14px;
    padding-bottom: 30px;
  }

  /* Left Column (Cards 1 to 6) has zero translateY - no vertical collision */
  .envato-section .cards-grid > .card-item:nth-child(-n+6) {
    transform: none !important;
  }

  /* Entire Right Column (Cards 7 to 12) drops down cleanly by 26px */
  .envato-section .cards-grid > .card-item:nth-child(n+7) {
    transform: translateY(26px) !important;
  }

  .envato-section .cards-grid > .card-item:nth-child(-n+6):hover {
    transform: none !important;
  }

  .envato-section .cards-grid > .card-item:nth-child(n+7):hover {
    transform: translateY(26px) !important;
  }

  .envato-section .card-header {
    padding: 10px 10px 6px 10px;
    min-height: 48px;
  }

  .envato-section .card-title {
    font-size: 13px;
    line-height: 1.25;
  }

  .envato-section .card-count {
    font-size: 11px;
  }

  .envato-section .card-media-box {
    margin: 0 8px 8px 8px;
    border-radius: 10px;
  }

  .envato-section .micro-badge-group {
    top: 6px;
    left: 6px;
    right: 6px;
    gap: 3.5px;
  }

  .envato-section .features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding: 0 8px;
  }

  .envato-section .feature-icon-circle {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .envato-section .feature-icon-circle svg {
    width: 20px;
    height: 20px;
  }

  .envato-section .feature-title {
    font-size: 14.5px;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .envato-section .feature-desc {
    font-size: 12px;
    line-height: 1.45;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .envato-section {
    padding: 18px 8px 50px;
  }

  .envato-section .stage-container {
    padding: 18px 8px 30px 8px;
    border-radius: 18px;
  }

  .envato-section .cards-grid {
    column-gap: 8px;
    row-gap: 11px;
    padding-bottom: 26px;
  }

  .envato-section .cards-grid > .card-item:nth-child(-n+6) {
    transform: none !important;
  }

  .envato-section .cards-grid > .card-item:nth-child(n+7) {
    transform: translateY(20px) !important;
  }

  .envato-section .cards-grid > .card-item:nth-child(-n+6):hover {
    transform: none !important;
  }

  .envato-section .cards-grid > .card-item:nth-child(n+7):hover {
    transform: translateY(20px) !important;
  }

  .envato-section .card-header {
    padding: 9px 8px 5px 8px;
    min-height: 44px;
  }

  .envato-section .card-title {
    font-size: 12px;
  }

  .envato-section .card-count {
    font-size: 10px;
  }

  .envato-section .card-media-box {
    margin: 0 6px 6px 6px;
  }

  .envato-section .features-row {
    gap: 12px;
    margin-top: 26px;
    padding: 0 4px;
  }

  .envato-section .feature-icon-circle {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
  }

  .envato-section .feature-icon-circle svg {
    width: 17px;
    height: 17px;
  }

  .envato-section .feature-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .envato-section .feature-desc {
    font-size: 11px;
    line-height: 1.35;
  }
}
