/* TNT Media - Refined Human Craft CSS */

/* Card Perspective & Specular Sheen */
.interactive-card,
.service-card,
.case-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, opacity, box-shadow;
  transition: border-color 0.3s ease, box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-card:hover,
.service-card:hover,
.case-card:hover {
  box-shadow: -14px 28px 50px -8px rgba(13, 13, 13, 0.18), 0 10px 24px -4px rgba(13, 13, 13, 0.08);
  border-color: rgba(13, 13, 13, 0.12);
}

/* Subtle Glass Border Highlight */
.interactive-card::before,
.service-card::before,
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.interactive-card:hover::before,
.service-card:hover::before,
.case-card:hover::before {
  opacity: 1;
}

/* Specular Glare Sheen Layer for 3D Cards */
.tnt-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 30;
}

.tnt-card-glare-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(245, 79, 155, 0.12) 32%,
    rgba(249, 87, 33, 0.08) 55%,
    transparent 72%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
  will-change: transform, opacity;
}

/* 3D Spatial Depth Layers */
.card-depth-img {
  transform: translateZ(26px);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.card-depth-title {
  transform: translateZ(18px);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.card-depth-body {
  transform: translateZ(10px);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Milestone Spatial Pop-up Card - Pure Crisp Vector Typography (Zero Blur) */
.milestone-3d-card {
  position: relative;
  z-index: 1;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.milestone-3d-card.is-active-3d {
  z-index: 50 !important;
  box-shadow: 
    0 24px 50px -12px rgba(13, 13, 13, 0.16),
    0 12px 24px -8px rgba(13, 13, 13, 0.08) !important;
  border-color: rgba(13, 13, 13, 0.12) !important;
}

/* Creator Slide-Up Content Card (Light Editorial Showcase) */
.creator-slide-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  background-color: #ffffff;
}

.creator-slide-card .creator-peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem;
  z-index: 10;
  color: #0d0d0d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.creator-slide-card:hover .creator-peek {
  transform: translateY(-80px);
  opacity: 0;
}

.creator-slide-card .creator-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(13, 13, 13, 0.08);
  color: #0d0d0d;
  padding: 1.75rem;
  z-index: 20;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.creator-slide-card:hover .creator-panel {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .creator-slide-card .creator-peek,
  .creator-slide-card .creator-panel {
    transition: none !important;
  }
}

/* TNT Elastic Lift Service Card (Spring Bounce Physics) */
.tnt-elastic-card {
  --elastic-bounce: cubic-bezier(0.34, 1.56, 0.4, 1);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-color: #ffffff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  box-shadow: 0 4px 16px -4px rgba(13, 13, 13, 0.05);
  transform-origin: bottom center;
  transition: transform 0.55s var(--elastic-bounce), box-shadow 0.5s ease, border-color 0.4s ease;
  will-change: transform;
}

.tnt-elastic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 135%, var(--card-glow, rgba(249, 87, 33, 0.2)) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.tnt-elastic-card:hover {
  transform: translateY(-16px);
  box-shadow: 0 32px 64px -16px rgba(13, 13, 13, 0.14), 0 12px 28px -8px rgba(13, 13, 13, 0.06);
  border-color: rgba(13, 13, 13, 0.16);
}

.tnt-elastic-card:hover::before {
  opacity: 1;
}

.tnt-elastic-card .tnt-elastic-icon {
  transition: transform 0.55s var(--elastic-bounce), background-color 0.4s ease, color 0.4s ease;
}

.tnt-elastic-card:hover .tnt-elastic-icon {
  transform: translateY(-4px) scale(1.08);
}

.tnt-elastic-card .tnt-elastic-arrow {
  transition: transform 0.55s var(--elastic-bounce), color 0.4s ease;
}

.tnt-elastic-card:hover .tnt-elastic-arrow {
  transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
  .tnt-elastic-card,
  .tnt-elastic-card .tnt-elastic-icon,
  .tnt-elastic-card .tnt-elastic-arrow {
    transition: none !important;
  }
}

/* Infinite Marquee Styles */
.tnt-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.tnt-marquee-track,
.marquee-clone {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  will-change: transform;
}

.hero-pan-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

/* Custom Scrollbar & Selection */
::selection {
  background-color: #0d0d0d;
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Clean Editorial Section Insets & Backgrounds */
.tnt-section-orange {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 5rem 1.5rem;
}

.tnt-section-sky {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(13, 13, 13, 0.06);
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
  padding: 5rem 1.5rem;
}

.tnt-section-pink {
  background-color: #ffffff;
  border-top: 1px solid rgba(13, 13, 13, 0.06);
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
  padding: 5rem 1.5rem;
}

.tnt-section-yellow {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(13, 13, 13, 0.06);
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
  padding: 5rem 1.5rem;
}


/* Mockup Shadow & Realistic Depth */
.phone-mockup-shadow {
  filter: drop-shadow(0 20px 30px rgba(13, 13, 13, 0.16));
}

.dashboard-shadow {
  box-shadow: 0 24px 60px -12px rgba(13, 13, 13, 0.14), 0 8px 24px -4px rgba(13, 13, 13, 0.06);
}

/* Architectural Grid & Studio Lighting Backdrop */
.tnt-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.tnt-architectural-grid {
  position: absolute;
  inset: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(13, 13, 13, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 13, 13, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 25%, transparent 85%);
}

.tnt-studio-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(95px);
  pointer-events: none;
  will-change: transform;
}

.tnt-glow-warm {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(249, 87, 33, 0.18) 0%, rgba(249, 87, 33, 0.04) 65%, transparent 80%);
}

.tnt-glow-magenta {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 79, 155, 0.14) 0%, rgba(245, 79, 155, 0.03) 65%, transparent 80%);
}

.tnt-glow-cyan {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(22, 117, 232, 0.08) 0%, transparent 70%);
}

/* Glassmorphism Refined Specular Card */
.tnt-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 18px 42px -6px rgba(13, 13, 13, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}





/* 3D Endless Vertical Rolling Photo Matrix (Light Editorial Showcase) */
.tnt-hero-matrix-stage {
  perspective: 800px;
}

.tnt-hero-matrix-stage .main3D {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 800px;
}

.tnt-hero-matrix-stage .mainBoxes {
  position: absolute;
  top: 50%;
  left: 74%;
  width: 1200px;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform, left, scale;
}

.tnt-hero-matrix-stage .photoBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 640px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  box-shadow: 0 16px 36px -8px rgba(13, 13, 13, 0.12), 0 0 0 1px rgba(13, 13, 13, 0.08);
  cursor: pointer;
  will-change: transform, opacity;
  background-color: #f1f2f4;
  user-select: none;
  transition: box-shadow 0.3s ease;
}

.tnt-hero-matrix-stage .photoBox:hover {
  box-shadow: 0 24px 50px -10px rgba(13, 13, 13, 0.22), 0 0 0 2px rgba(245, 79, 155, 0.5);
}

.tnt-hero-matrix-stage .mainClose {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

@media (max-width: 1023px) {
  .hero-editorial-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 60%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}
