/* ========================================
   3D Hero Section Styles
   Ultra-modern 2026 design with Netflix vibes
   ======================================== */

/* Root Variables */
:root {
  --red: #E50914;
  --red-dark: #B81D24;
  --ink: #0a0a0a;
  --ice: #F5F5F1;
  --glow: rgba(229, 9, 20, 0.6);
}


/* ========================================
   3D HERO – iOS-safe + header-safe (NO TOP CUT)
   ======================================== */

.threed-hero-section{
  /* ✅ set a fallback header height (mobile) */
  --threed-header-h: 86px; /* adjust once if needed */
  --threed-safe-top: env(safe-area-inset-top, 0px);

  /* keep your existing vars */
  --threed-hero-min-height: 700px;
  --threed-hero-container-width: min(1400px, 92%);
  --threed-hero-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  overflow: hidden;
  background: var(--ink);

  /* ✅ iOS stable viewport (prevents crop) */
  min-height: max(var(--threed-hero-min-height), 100svh);
  height: auto;

  /* ✅ push content below fixed header + notch */
  padding-top: calc(var(--threed-header-h) + var(--threed-safe-top) + 16px);
  padding-bottom: 70px;

  box-sizing: border-box;

  /* ✅ important: do NOT vertical-center the whole hero on mobile */
  display: block;
}


/* Optional: give a little breathing space below header */
.threed-hero-container {
  padding-top: clamp(16px, 2vw, 28px);
}


/* Background */
.threed-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.threed-hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23E50914' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover, 100px 100px;
  background-position: center;
}

.threed-hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
}

.threed-hero-bg-gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
  opacity: 0.2;
  animation: threed-hero-pulse 6s ease-in-out infinite;
}

/* Parallax Layers */
.threed-hero-parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.threed-hero-shape {
  position: absolute;
  opacity: 0.03;
  border-radius: 12px;
  transform: rotate(45deg);
}

.threed-hero-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  animation: threed-hero-float 20s ease-in-out infinite;
}

.threed-hero-shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  background: linear-gradient(135deg, var(--ice), rgba(245, 245, 241, 0.5));
  animation: threed-hero-float 25s ease-in-out infinite reverse;
}

.threed-hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 30%;
  background: linear-gradient(135deg, var(--red), transparent);
  animation: threed-hero-float 22s ease-in-out infinite;
  animation-delay: 2s;
}

/* Container */
.threed-hero-container {
  position: relative;
  z-index: 2;
  width: var(--threed-hero-container-width);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem 80px;
}

/* Breadcrumb */
.threed-hero-breadcrumb {
  margin-bottom: clamp(30px, 4vw, 50px);
  opacity: 0;
  animation: threed-hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.threed-hero-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.threed-hero-breadcrumb-item {
  display: flex;
  align-items: center;
}

.threed-hero-breadcrumb-link {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 245, 241, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.threed-hero-breadcrumb-link:hover {
  color: var(--red);
}

.threed-hero-breadcrumb-current span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
}

.threed-hero-breadcrumb-separator {
  display: flex;
  align-items: center;
  color: rgba(245, 245, 241, 0.3);
}

.threed-hero-breadcrumb-separator svg {
  width: 14px;
  height: 14px;
}

/* Content */
.threed-hero-content {
  max-width: 900px;
}

/* Badge */
.threed-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 50px;
  margin-bottom: 32px;
  opacity: 0;
  animation: threed-hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  backdrop-filter: blur(10px);
}

.threed-hero-badge-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 8px;
  animation: threed-hero-badge-float 3s ease-in-out infinite;
}

.threed-hero-badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--ice);
}

.threed-hero-badge-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
}

/* Headline */
.threed-hero-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ice);
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.threed-hero-headline-line {
  display: block;
  opacity: 0;
  animation: threed-hero-slide-up 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.threed-hero-headline-line:nth-child(1) {
  animation-delay: 0.3s;
  background: linear-gradient(135deg, var(--ice) 0%, rgba(245, 245, 241, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.threed-hero-headline-line:nth-child(2) {
  animation-delay: 0.5s;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subheadline */
.threed-hero-subheadline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 245, 241, 0.7);
  margin: 0 0 40px 0;
  max-width: 650px;
  opacity: 0;
  animation: threed-hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

/* CTAs */
.threed-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(50px, 8vw, 80px);
  opacity: 0;
  animation: threed-hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.threed-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--threed-hero-transition);
  position: relative;
  overflow: hidden;
}

.threed-hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.threed-hero-cta:hover::before {
  transform: translateX(100%);
}

.threed-hero-cta-primary {
  background: var(--red);
  color: var(--ice);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.threed-hero-cta-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}

.threed-hero-cta-primary svg {
  transition: transform 0.3s ease;
}

.threed-hero-cta-primary:hover svg {
  transform: translateX(4px);
}

.threed-hero-cta-secondary {
  background: transparent;
  color: var(--ice);
  border: 2px solid rgba(245, 245, 241, 0.2);
}

.threed-hero-cta-secondary:hover {
  background: rgba(245, 245, 241, 0.05);
  border-color: var(--ice);
  transform: translateY(-2px);
}

/* Stats Bar */
.threed-hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(24px, 4vw, 36px);
  background: rgba(245, 245, 241, 0.03);
  border: 1px solid rgba(245, 245, 241, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  opacity: 0;
  animation: threed-hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.threed-hero-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.threed-hero-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.threed-hero-stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--red);
}

.threed-hero-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.threed-hero-stat-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--ice);
}

.threed-hero-stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 245, 241, 0.5);
}

.threed-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(245, 245, 241, 0.1);
}

/* Scroll Indicator */
.threed-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: threed-hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards;
  z-index: 3;
}

.threed-hero-scroll-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(245, 245, 241, 0.3);
  border-radius: 50%;
  animation: threed-hero-bounce 2s ease-in-out infinite;
}

.threed-hero-scroll-icon svg {
  width: 18px;
  height: 18px;
  color: rgba(245, 245, 241, 0.6);
}

.threed-hero-scroll-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 245, 241, 0.4);
}

/* Animations */
@keyframes threed-hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes threed-hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes threed-hero-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes threed-hero-float {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(-30px);
  }
}

@keyframes threed-hero-badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes threed-hero-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Focus States */
.threed-hero-breadcrumb-link:focus,
.threed-hero-cta:focus {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .threed-hero-stats {
    gap: 20px;
  }

  .threed-hero-stat {
    min-width: 160px;
  }

  .threed-hero-stat-divider:last-of-type {
    display: none;
  }
}

/* Tablet Small Breakpoint */
@media (max-width: 768px) {
  :root {
    --threed-hero-height: 80vh;
    --threed-hero-min-height: 500px;
  }

  .threed-hero-container {
    padding-bottom: 60px;
  }

  .threed-hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .threed-hero-stat {
    min-width: 0;
  }

  .threed-hero-stat-divider {
    display: none;
  }

  .threed-hero-shape {
    opacity: 0.02;
  }

  .threed-hero-scroll {
    bottom: 20px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .threed-hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .threed-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .threed-hero-badge {
    padding: 10px 20px;
    gap: 10px;
  }

  .threed-hero-badge-icon {
    width: 28px;
    height: 28px;
  }

  .threed-hero-stat-icon {
    width: 40px;
    height: 40px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .threed-hero-bg-gradient,
  .threed-hero-shape,
  .threed-hero-badge-icon,
  .threed-hero-scroll-icon,
  .threed-hero-cta::before {
    animation: none;
  }
}

@media (max-width: 768px){
  .threed-hero-section{
    --threed-header-h: 90px;
    padding-top: calc(var(--threed-header-h) + env(safe-area-inset-top, 0px) + 18px);
    padding-bottom: 60px;
  }
}

@media (max-width: 480px){
  .threed-hero-section{
    --threed-header-h: 94px;
    padding-top: calc(var(--threed-header-h) + env(safe-area-inset-top, 0px) + 18px);
  }
}

/* ========================================
   3D Service Description Section Styles
   Ultra-modern 2026 design with Netflix vibes
   ======================================== */

/* Root Variables */
:root {
  --red: #E50914;
  --red-dark: #B81D24;
  --ink: #0a0a0a;
  --ice: #F5F5F1;
  --glow: rgba(229, 9, 20, 0.6);
}

/* Section-Specific Variables */
:root {
  --threed-desc-spacing: clamp(80px, 10vw, 140px);
  --threed-desc-container-width: min(1400px, 92%);
  --threed-desc-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Section */
.threed-desc-section {
  background: var(--ink);
  padding: var(--threed-desc-spacing) 0;
  position: relative;
  overflow: hidden;
}

.threed-desc-container {
  width: var(--threed-desc-container-width);
  max-width: 1400px;
  margin: 0 auto;
}

/* Grid Layout */
.threed-desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Left Column - Content */
.threed-desc-content {
  opacity: 0;
  animation: threed-desc-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Section Label */
.threed-desc-label {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 6px;
}

/* Heading */
.threed-desc-heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin: 0 0 32px 0;
}

.threed-desc-gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Text Content */
.threed-desc-text {
  margin-bottom: 48px;
}

.threed-desc-text p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 245, 241, 0.75);
  margin: 0 0 24px 0;
}

.threed-desc-text p:last-child {
  margin-bottom: 0;
}

.threed-desc-highlight {
  color: var(--red);
  font-weight: 600;
  position: relative;
}

.threed-desc-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  opacity: 0.3;
}

/* Benefits Grid */
.threed-desc-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Benefit Card */
.threed-desc-benefit-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(245, 245, 241, 0.03);
  border: 1px solid rgba(245, 245, 241, 0.08);
  border-radius: 12px;
  transition: var(--threed-desc-transition);
  opacity: 0;
  animation: threed-desc-fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.threed-desc-benefit-card:nth-child(1) { animation-delay: 0.4s; }
.threed-desc-benefit-card:nth-child(2) { animation-delay: 0.5s; }
.threed-desc-benefit-card:nth-child(3) { animation-delay: 0.6s; }
.threed-desc-benefit-card:nth-child(4) { animation-delay: 0.7s; }

.threed-desc-benefit-card:hover {
  background: rgba(245, 245, 241, 0.05);
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.threed-desc-benefit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.1);
  border-radius: 10px;
  transition: var(--threed-desc-transition);
}

.threed-desc-benefit-card:hover .threed-desc-benefit-icon {
  background: var(--red);
  transform: scale(1.1) rotate(5deg);
}

.threed-desc-benefit-icon svg {
  color: var(--red);
  transition: var(--threed-desc-transition);
}

.threed-desc-benefit-card:hover .threed-desc-benefit-icon svg {
  color: var(--ice);
}

.threed-desc-benefit-content {
  flex: 1;
}

.threed-desc-benefit-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ice);
  margin: 0 0 6px 0;
}

.threed-desc-benefit-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(245, 245, 241, 0.6);
  margin: 0;
}

/* Right Column - Visual */
.threed-desc-visual {
  position: relative;
  opacity: 0;
  animation: threed-desc-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.threed-desc-visual-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
}

/* Main Image */
.threed-desc-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.threed-desc-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: cover, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 10px, 10px -10px, -10px 0px;
  animation: threed-desc-bg-move 20s linear infinite;
}

.threed-desc-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, var(--glow) 0%, transparent 60%);
  opacity: 0.2;
  animation: threed-desc-glow-pulse 4s ease-in-out infinite;
}

/* Floating Cards */
.threed-desc-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 245, 241, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: threed-desc-float 3s ease-in-out infinite;
}

.threed-desc-float-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.threed-desc-float-2 {
  top: 45%;
  left: -8%;
  animation-delay: 1s;
}

.threed-desc-float-3 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

.threed-desc-float-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 8px;
  flex-shrink: 0;
}

.threed-desc-float-icon svg {
  width: 20px;
  height: 20px;
  color: var(--ice);
}

.threed-desc-float-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.threed-desc-float-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ice);
  white-space: nowrap;
}

.threed-desc-float-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(245, 245, 241, 0.5);
  white-space: nowrap;
}

/* Animations */
@keyframes threed-desc-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes threed-desc-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes threed-desc-bg-move {
  0% {
    background-position: 0 0, 0 0, 0 10px, 10px -10px, -10px 0px;
  }
  100% {
    background-position: 0 0, 20px 20px, 20px 30px, 30px 10px, 10px 20px;
  }
}

@keyframes threed-desc-glow-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .threed-desc-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .threed-desc-visual-wrapper {
    height: 500px;
  }

  .threed-desc-float-card {
    padding: 14px 18px;
  }

  .threed-desc-float-1 {
    right: 5%;
  }

  .threed-desc-float-2 {
    left: 5%;
  }

  .threed-desc-float-3 {
    right: 10%;
  }
}

/* Tablet Small Breakpoint */
@media (max-width: 768px) {
  :root {
    --threed-desc-spacing: clamp(60px, 8vw, 80px);
  }

  .threed-desc-benefits {
    grid-template-columns: 1fr;
  }

  .threed-desc-visual-wrapper {
    height: 400px;
  }

  .threed-desc-float-card {
    padding: 12px 16px;
    font-size: 13px;
  }

  .threed-desc-float-icon {
    width: 32px;
    height: 32px;
  }

  .threed-desc-float-value {
    font-size: 13px;
  }

  .threed-desc-float-label {
    font-size: 11px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .threed-desc-visual-wrapper {
    height: 320px;
  }

  .threed-desc-benefit-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .threed-desc-float-1,
  .threed-desc-float-2 {
    display: none;
  }

  .threed-desc-float-3 {
    bottom: 10%;
    right: 50%;
    transform: translateX(50%);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .threed-desc-benefit-card,
  .threed-desc-float-card,
  .threed-desc-image-bg,
  .threed-desc-image-overlay {
    animation: none;
  }

  .threed-desc-benefit-card:hover {
    transform: none;
  }
}

/* ========================================
   3D Services List Section Styles
   Ultra-modern 2026 design with Netflix vibes
   Compact list format for easy scanning
   ======================================== */

/* Root Variables */
:root {
  --red: #E50914;
  --red-dark: #B81D24;
  --ink: #0a0a0a;
  --ice: #F5F5F1;
  --glow: rgba(229, 9, 20, 0.6);
}

/* Section-Specific Variables */
:root {
  --tdlist-spacing: clamp(80px, 10vw, 120px);
  --tdlist-container-width: min(1000px, 92%);
  --tdlist-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Section */
.tdlist-services-section {
  background: var(--ink);
  padding: var(--tdlist-spacing) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle Background Pattern */
.tdlist-services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(229, 9, 20, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.tdlist-services-container {
  width: var(--tdlist-container-width);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Section Header */
.tdlist-services-header {
  text-align: center;
  margin-bottom: clamp(50px, 7vw, 70px);
}

.tdlist-services-label {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0;
  animation: tdlistFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.tdlist-services-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(36px, 5.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin: 0 0 20px 0;
  opacity: 0;
  animation: tdlistFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.tdlist-services-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 245, 241, 0.65);
  margin: 0 auto;
  max-width: 700px;
  opacity: 0;
  animation: tdlistFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Services List */
.tdlist-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(50px, 7vw, 70px);
}

/* Service Item */
.tdlist-service-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: rgba(245, 245, 241, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 245, 241, 0.08);
  border-radius: 14px;
  transition: var(--tdlist-transition);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-30px);
  animation: tdlistSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered Animation */
.tdlist-service-item:nth-child(1) { animation-delay: 0.4s; }
.tdlist-service-item:nth-child(2) { animation-delay: 0.5s; }
.tdlist-service-item:nth-child(3) { animation-delay: 0.6s; }
.tdlist-service-item:nth-child(4) { animation-delay: 0.7s; }
.tdlist-service-item:nth-child(5) { animation-delay: 0.8s; }
.tdlist-service-item:nth-child(6) { animation-delay: 0.9s; }
.tdlist-service-item:nth-child(7) { animation-delay: 1s; }

/* Glow Effect */
.tdlist-service-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 0% 50%, var(--glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.tdlist-service-item:hover {
  background: rgba(245, 245, 241, 0.04);
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateX(8px);
  box-shadow: 
    -4px 0 0 0 var(--red),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

.tdlist-service-item:hover .tdlist-service-glow {
  opacity: 0.1;
}

/* Service Number */
.tdlist-service-number {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  color: rgba(245, 245, 241, 0.3);
  letter-spacing: -0.01em;
  min-width: 32px;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.tdlist-service-item:hover .tdlist-service-number {
  color: var(--red);
}

/* Service Icon */
.tdlist-service-icon {
  width: clamp(48px, 6vw, 56px);
  height: clamp(48px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.08);
  border-radius: 10px;
  transition: var(--tdlist-transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.tdlist-service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tdlist-service-item:hover .tdlist-service-icon {
  transform: scale(1.08);
  background: rgba(229, 9, 20, 0.15);
}

.tdlist-service-item:hover .tdlist-service-icon::before {
  opacity: 1;
}

.tdlist-service-icon svg {
  width: clamp(24px, 3vw, 28px);
  height: clamp(24px, 3vw, 28px);
  color: var(--red);
  transition: var(--tdlist-transition);
  position: relative;
  z-index: 1;
}

.tdlist-service-item:hover .tdlist-service-icon svg {
  color: var(--ice);
  transform: scale(1.1);
}

/* Service Content */
.tdlist-service-content {
  flex: 1;
  min-width: 0;
}

.tdlist-service-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ice);
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

.tdlist-service-item:hover .tdlist-service-title {
  color: var(--red);
}

.tdlist-service-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(245, 245, 241, 0.6);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* Bottom CTA */
.tdlist-services-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(36px, 5vw, 48px);
  background: rgba(245, 245, 241, 0.02);
  border: 1px solid rgba(245, 245, 241, 0.08);
  border-radius: 16px;
  opacity: 0;
  animation: tdlistFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.tdlist-services-cta-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--ice);
  margin: 0;
  text-align: center;
}

.tdlist-services-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--red);
  color: var(--ice);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--tdlist-transition);
  position: relative;
  overflow: hidden;
}

.tdlist-services-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tdlist-services-cta-button:hover::before {
  transform: translateX(100%);
}

.tdlist-services-cta-button:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--glow);
}

.tdlist-services-cta-button svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tdlist-services-cta-button:hover svg {
  transform: translateX(4px);
}

/* Animations */
@keyframes tdlistFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tdlistSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.tdlist-service-item:focus,
.tdlist-services-cta-button:focus {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* Tablet Breakpoint */
@media (max-width: 768px) {
  :root {
    --tdlist-spacing: clamp(60px, 8vw, 80px);
  }

  .tdlist-service-item {
    gap: 16px;
    padding: 20px;
  }

  .tdlist-service-number {
    min-width: 28px;
    font-size: 14px;
  }

  .tdlist-service-icon {
    width: 48px;
    height: 48px;
  }

  .tdlist-service-icon svg {
    width: 24px;
    height: 24px;
  }

  .tdlist-service-description {
    -webkit-line-clamp: 3;
  }


}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .tdlist-service-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tdlist-service-number {
    order: -1;
    width: 100%;
    text-align: left;
  }

  .tdlist-service-icon {
    order: -1;
  }

  .tdlist-service-content {
    order: 0;
    width: 100%;
  }



  .tdlist-services-cta {
    padding: 28px 20px;
  }

  .tdlist-services-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .tdlist-service-item,
  .tdlist-services-label,
  .tdlist-services-title,
  .tdlist-services-subtitle,
  .tdlist-services-cta,
  .tdlist-services-cta-button::before {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .tdlist-service-item:hover {
    transform: translateX(4px);
  }
}

/* Print Styles */
@media print {
  .tdlist-services-section::before {
    display: none;
  }

  .tdlist-service-item {
    opacity: 1;
    transform: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }


}

/* ========================================
   3D Portfolio/Work Showcase Section Styles
   Ultra-modern 2026 design with Netflix vibes
   ======================================== */

/* Root Variables */
:root {
  --red: #E50914;
  --red-dark: #B81D24;
  --ink: #0a0a0a;
  --ice: #F5F5F1;
  --glow: rgba(229, 9, 20, 0.6);
}

/* Section-Specific Variables */
:root {
  --threed-portfolio-spacing: clamp(80px, 10vw, 140px);
  --threed-portfolio-container-width: min(1600px, 95%);
  --threed-portfolio-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Section */
.threed-portfolio-section {
  background: var(--ink);
  padding: var(--threed-portfolio-spacing) 0;
  position: relative;
  overflow: hidden;
}

.threed-portfolio-container {
  width: var(--threed-portfolio-container-width);
  max-width: 1600px;
  margin: 0 auto;
}

/* Section Header */
.threed-portfolio-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.threed-portfolio-label {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0;
  animation: threed-portfolio-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.threed-portfolio-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin: 0 0 16px 0;
  opacity: 0;
  animation: threed-portfolio-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.threed-portfolio-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 245, 241, 0.65);
  margin: 0 auto;
  max-width: 650px;
  opacity: 0;
  animation: threed-portfolio-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Filter Tabs */
.threed-portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 60px);
  opacity: 0;
  animation: threed-portfolio-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.threed-portfolio-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(245, 245, 241, 0.03);
  border: 1px solid rgba(245, 245, 241, 0.1);
  border-radius: 50px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 245, 241, 0.7);
  cursor: pointer;
  transition: var(--threed-portfolio-transition);
}

.threed-portfolio-filter:hover {
  background: rgba(245, 245, 241, 0.05);
  border-color: rgba(245, 245, 241, 0.2);
  color: var(--ice);
  transform: translateY(-2px);
}

.threed-portfolio-filter-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--ice);
}

.threed-portfolio-filter-active:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.threed-portfolio-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.threed-portfolio-filter-active .threed-portfolio-filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Portfolio Grid - Masonry Layout */
.threed-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(50px, 6vw, 80px);
}

/* Portfolio Item */
.threed-portfolio-item {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  animation: threed-portfolio-item-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered animation */
.threed-portfolio-item:nth-child(1) { animation-delay: 0.5s; }
.threed-portfolio-item:nth-child(2) { animation-delay: 0.55s; }
.threed-portfolio-item:nth-child(3) { animation-delay: 0.6s; }
.threed-portfolio-item:nth-child(4) { animation-delay: 0.65s; }
.threed-portfolio-item:nth-child(5) { animation-delay: 0.7s; }
.threed-portfolio-item:nth-child(6) { animation-delay: 0.75s; }
.threed-portfolio-item:nth-child(7) { animation-delay: 0.8s; }
.threed-portfolio-item:nth-child(8) { animation-delay: 0.85s; }
.threed-portfolio-item:nth-child(9) { animation-delay: 0.9s; }
.threed-portfolio-item:nth-child(10) { animation-delay: 0.95s; }
.threed-portfolio-item:nth-child(11) { animation-delay: 1s; }
.threed-portfolio-item:nth-child(12) { animation-delay: 1.05s; }

/* Large items in masonry */
.threed-portfolio-item-large {
  grid-row: span 2;
  height: 832px;
}

/* Hidden items (filtered) */
.threed-portfolio-item-hidden {
  display: none;
}

/* Item Image */
.threed-portfolio-item-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.threed-portfolio-item-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.threed-portfolio-item:hover .threed-portfolio-item-bg {
  transform: scale(1.1);
}

/* Placeholder backgrounds (replace with real images) */
.threed-portfolio-bg-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.threed-portfolio-bg-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.threed-portfolio-bg-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.threed-portfolio-bg-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.threed-portfolio-bg-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.threed-portfolio-bg-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.threed-portfolio-bg-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.threed-portfolio-bg-8 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.threed-portfolio-bg-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.threed-portfolio-bg-10 { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }
.threed-portfolio-bg-11 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.threed-portfolio-bg-12 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

/* Item Overlay */
.threed-portfolio-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.threed-portfolio-item:hover .threed-portfolio-item-overlay {
  opacity: 1;
}

/* Item Content */
.threed-portfolio-item-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.threed-portfolio-item:hover .threed-portfolio-item-content {
  transform: translateY(0);
}

.threed-portfolio-item-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--red);
  border-radius: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
}

.threed-portfolio-item-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ice);
  margin: 0 0 8px 0;
}

.threed-portfolio-item-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(245, 245, 241, 0.75);
  margin: 0;
}

/* View Button */
.threed-portfolio-item-view {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--threed-portfolio-transition);
}

.threed-portfolio-item:hover .threed-portfolio-item-view {
  opacity: 1;
  transform: scale(1);
}

.threed-portfolio-item-view:hover {
  background: var(--red-dark);
  transform: scale(1.1);
}

.threed-portfolio-item-view svg {
  width: 24px;
  height: 24px;
  color: var(--ice);
}

/* Load More Button */
.threed-portfolio-load-more {
  text-align: center;
  opacity: 0;
  animation: threed-portfolio-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.threed-portfolio-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: rgba(245, 245, 241, 0.03);
  border: 1px solid rgba(245, 245, 241, 0.1);
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ice);
  cursor: pointer;
  transition: var(--threed-portfolio-transition);
}

.threed-portfolio-load-btn:hover {
  background: rgba(245, 245, 241, 0.05);
  border-color: var(--red);
  transform: translateY(-2px);
}

.threed-portfolio-load-btn svg {
  transition: transform 0.3s ease;
}

.threed-portfolio-load-btn:hover svg {
  transform: translateY(4px);
}

/* Lightbox Modal */
.threed-portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.threed-portfolio-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.threed-portfolio-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
}

.threed-portfolio-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.threed-portfolio-lightbox[aria-hidden="false"] .threed-portfolio-lightbox-content {
  transform: scale(1);
}

/* Lightbox Close Button */
.threed-portfolio-lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 241, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--threed-portfolio-transition);
  z-index: 3;
}

.threed-portfolio-lightbox-close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

.threed-portfolio-lightbox-close svg {
  color: var(--ice);
}

/* Lightbox Navigation */
.threed-portfolio-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 241, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--threed-portfolio-transition);
  z-index: 3;
}

.threed-portfolio-lightbox-prev {
  left: -80px;
}

.threed-portfolio-lightbox-next {
  right: -80px;
}

.threed-portfolio-lightbox-nav:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.1);
}

.threed-portfolio-lightbox-nav svg {
  color: var(--ice);
}

/* Lightbox Image */
.threed-portfolio-lightbox-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.threed-portfolio-lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Lightbox Info */
.threed-portfolio-lightbox-info {
  padding: 24px;
  background: rgba(245, 245, 241, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 245, 241, 0.08);
  border-radius: 12px;
}

.threed-portfolio-lightbox-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--red);
  border-radius: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
}

.threed-portfolio-lightbox-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ice);
  margin: 0 0 8px 0;
}

.threed-portfolio-lightbox-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 245, 241, 0.75);
  margin: 0;
}

/* Animations */
@keyframes threed-portfolio-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes threed-portfolio-item-appear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Focus States */
.threed-portfolio-filter:focus,
.threed-portfolio-item-view:focus,
.threed-portfolio-load-btn:focus,
.threed-portfolio-lightbox-close:focus,
.threed-portfolio-lightbox-nav:focus {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .threed-portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .threed-portfolio-lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .threed-portfolio-lightbox-prev {
    left: -60px;
  }

  .threed-portfolio-lightbox-next {
    right: -60px;
  }
}

/* Tablet Small Breakpoint */
@media (max-width: 768px) {
  :root {
    --threed-portfolio-spacing: clamp(60px, 8vw, 80px);
  }

  .threed-portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .threed-portfolio-item,
  .threed-portfolio-item-large {
    height: 350px;
    grid-row: span 1;
  }

  .threed-portfolio-filters {
    gap: 8px;
  }

  .threed-portfolio-filter {
    padding: 10px 20px;
    font-size: 13px;
  }

  .threed-portfolio-lightbox-nav {
    display: none;
  }

  .threed-portfolio-lightbox-close {
    top: 16px;
    right: 16px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .threed-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .threed-portfolio-item {
    height: 300px;
  }

  .threed-portfolio-load-btn {
    width: 100%;
  }

  .threed-portfolio-lightbox-content {
    width: 95%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .threed-portfolio-item-bg,
  .threed-portfolio-item-view,
  .threed-portfolio-load-btn svg {
    transition: none;
  }

  .threed-portfolio-item:hover .threed-portfolio-item-bg {
    transform: none;
  }
}

/* Make cards auto-height */
.threed-portfolio-item {
  height: auto;            /* ✅ remove fixed height */
}

/* Image wrapper auto */
.threed-portfolio-item-image {
  height: auto;
}

/* Make the image define the card height */
.threed-portfolio-img {
  width: 100%;
  height: auto;            /* ✅ keeps natural ratio */
  display: block;
  object-fit: contain;     /* ✅ shows FULL image */
  background: #000;        /* optional: looks clean with contain */
}

.threed-portfolio-lightbox-content {
  height: 90vh;           /* was only max-height */
}

/* ✅ FIX: make sure image area always has space */
.threed-portfolio-lightbox-image {
  flex: 1 1 auto;
  min-height: 320px;
}

/* ✅ FIX: the background container needs height */
.threed-portfolio-lightbox-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.threed-portfolio-load-btn[disabled]{
  opacity: .6;
  cursor: not-allowed;
}



/* ========================================
   3D Process/Workflow Timeline Section Styles
   Ultra-modern 2026 design with Netflix vibes
   ======================================== */

/* Root Variables */
:root {
  --red: #E50914;
  --red-dark: #B81D24;
  --ink: #0a0a0a;
  --ice: #F5F5F1;
  --glow: rgba(229, 9, 20, 0.6);
}

/* Section-Specific Variables */
:root {
  --threed-process-spacing: clamp(80px, 10vw, 140px);
  --threed-process-container-width: min(1600px, 95%);
  --threed-process-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Section */
.threed-process-section {
  background: var(--ink);
  padding: var(--threed-process-spacing) 0;
  position: relative;
  overflow: hidden;
}

.threed-process-container {
  width: var(--threed-process-container-width);
  max-width: 1600px;
  margin: 0 auto;
}

/* Section Header */
.threed-process-header {
  text-align: center;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.threed-process-label {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0;
  animation: threed-process-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.threed-process-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin: 0 0 16px 0;
  opacity: 0;
  animation: threed-process-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.threed-process-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 245, 241, 0.65);
  margin: 0 auto;
  max-width: 650px;
  opacity: 0;
  animation: threed-process-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Timeline Container */
.threed-process-timeline {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0;
}

/* Progress Line */
.threed-process-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(245, 245, 241, 0.1);
  z-index: 0;
}

.threed-process-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--red), var(--red-dark));
  box-shadow: 0 0 20px var(--glow);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Process Step */
.threed-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: clamp(40px, 5vw, 60px);
  align-items: center;
  margin-bottom: clamp(80px, 10vw, 120px);
  opacity: 0;
  transform: translateY(30px);
  animation: threed-process-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger delays */
.threed-process-step:nth-child(2) { animation-delay: 0.4s; }
.threed-process-step:nth-child(3) { animation-delay: 0.5s; }
.threed-process-step:nth-child(4) { animation-delay: 0.6s; }
.threed-process-step:nth-child(5) { animation-delay: 0.7s; }
.threed-process-step:nth-child(6) { animation-delay: 0.8s; }
.threed-process-step:nth-child(7) { animation-delay: 0.9s; }
.threed-process-step:nth-child(8) { animation-delay: 1s; }
.threed-process-step:nth-child(9) { animation-delay: 1.1s; }

.threed-process-step-last {
  margin-bottom: 0;
}

/* Zigzag Pattern - Regular Steps (Left Side) */
.threed-process-step:not(.threed-process-step-alternate) {
  grid-template-areas: "content icon empty";
}

.threed-process-step:not(.threed-process-step-alternate) .threed-process-step-content {
  grid-area: content;
  text-align: right;
}

.threed-process-step:not(.threed-process-step-alternate) .threed-process-step-icon {
  grid-area: icon;
}

.threed-process-step:not(.threed-process-step-alternate) .threed-process-step-number {
  left: 50%;
}

/* Zigzag Pattern - Alternate Steps (Right Side) */
.threed-process-step-alternate {
  grid-template-areas: "empty icon content";
}

.threed-process-step-alternate .threed-process-step-icon {
  grid-area: icon;
}

.threed-process-step-alternate .threed-process-step-content {
  grid-area: content;
  text-align: left;
}

.threed-process-step-alternate .threed-process-step-number {
  left: 50%;
}

/* Step Number */
.threed-process-step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border: 2px solid rgba(245, 245, 241, 0.1);
  border-radius: 50%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(245, 245, 241, 0.4);
  z-index: 2;
  transition: var(--threed-process-transition);
}

.threed-process-step:hover .threed-process-step-number {
  border-color: var(--red);
  color: var(--red);
  transform: translateX(-50%) scale(1.1);
}

/* Step Icon */
.threed-process-step-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.1);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 50%;
  z-index: 1;
  transition: var(--threed-process-transition);
}

.threed-process-step:hover .threed-process-step-icon {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px var(--glow);
}

.threed-process-step-icon svg {
  color: var(--red);
  transition: var(--threed-process-transition);
}

.threed-process-step:hover .threed-process-step-icon svg {
  color: var(--ice);
  transform: scale(1.1);
}

/* Step Content */
.threed-process-step-content {
  padding: clamp(28px, 4vw, 40px);
  background: rgba(245, 245, 241, 0.03);
  border: 1px solid rgba(245, 245, 241, 0.08);
  border-radius: 16px;
  transition: var(--threed-process-transition);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.threed-process-step:hover .threed-process-step-content {
  background: rgba(245, 245, 241, 0.05);
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.threed-process-step-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ice);
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

.threed-process-step:hover .threed-process-step-title {
  color: var(--red);
}

.threed-process-step-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 245, 241, 0.7);
  margin: 0 0 16px 0;
}

/* Step Details */
.threed-process-step-details {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.threed-process-step-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.threed-process-step-time svg {
  width: 14px;
  height: 14px;
  color: var(--red);
}

/* Total Timeline */
.threed-process-total {
  margin-top: clamp(60px, 8vw, 100px);
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: threed-process-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.threed-process-total-content {
  text-align: center;
  padding: clamp(32px, 4vw, 48px);
  background: rgba(229, 9, 20, 0.05);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 20px;
  min-width: 300px;
}

.threed-process-total-label {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 241, 0.6);
  margin-bottom: 8px;
}

.threed-process-total-time {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}

.threed-process-total-note {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 245, 241, 0.5);
  margin: 0;
}

/* Animations */
@keyframes threed-process-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .threed-process-step {
    gap: 30px;
  }

  .threed-process-step-icon {
    width: 70px;
    height: 70px;
  }

  .threed-process-step-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* Tablet Small Breakpoint - Switch to Vertical */
@media (max-width: 768px) {
  :root {
    --threed-process-spacing: clamp(60px, 8vw, 80px);
  }

  /* Vertical Timeline */
  .threed-process-line {
    left: 40px;
    transform: none;
  }

  .threed-process-timeline {
    padding: 20px 0 20px 100px;
  }

  /* Reset to Single Column */
  .threed-process-step,
  .threed-process-step-alternate {
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon content";
    gap: 24px;
    margin-bottom: 60px;
  }

  .threed-process-step:not(.threed-process-step-alternate) .threed-process-step-content,
  .threed-process-step-alternate .threed-process-step-content {
    grid-area: content;
    text-align: left;
  }

  .threed-process-step:not(.threed-process-step-alternate) .threed-process-step-icon,
  .threed-process-step-alternate .threed-process-step-icon {
    grid-area: icon;
  }

  .threed-process-step:not(.threed-process-step-alternate) .threed-process-step-number,
  .threed-process-step-alternate .threed-process-step-number {
    left: 40px;
    transform: translateX(-50%);
  }

  .threed-process-step-icon {
    width: 60px;
    height: 60px;
  }

  .threed-process-step-icon svg {
    width: 24px;
    height: 24px;
  }

  .threed-process-step-content {
    min-height: auto;
  }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .threed-process-line {
    left: 30px;
  }

  .threed-process-timeline {
    padding: 20px 0 20px 70px;
  }

  .threed-process-step {
    gap: 16px;
    margin-bottom: 50px;
  }

  .threed-process-step:not(.threed-process-step-alternate) .threed-process-step-number,
  .threed-process-step-alternate .threed-process-step-number {
    left: 30px;
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .threed-process-step-icon {
    width: 50px;
    height: 50px;
  }

  .threed-process-step-icon svg {
    width: 20px;
    height: 20px;
  }

  .threed-process-step-content {
    padding: 24px;
  }

  .threed-process-total-content {
    min-width: 0;
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .threed-process-step,
  .threed-process-step-icon,
  .threed-process-step-number,
  .threed-process-line-progress {
    animation: none;
    transition: none;
  }

  .threed-process-step:hover .threed-process-step-icon,
  .threed-process-step:hover .threed-process-step-number,
  .threed-process-step:hover .threed-process-step-content {
    transform: none;
  }
}

/* ========================================
   FIX: Icon inside card (left cards = icon left, right cards = icon right)
   Paste at the END of your CSS
   ======================================== */

/* 1) Card becomes a 2-column grid: icon + text */
.threed-process-step-content{
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon desc"
    "icon details";
  column-gap: 18px;
  row-gap: 10px;
  align-items: start;
}

/* Place icon in its grid area */
.threed-process-step-content .threed-process-step-icon{
  grid-area: icon;
  align-self: start;
  margin-top: 2px; /* slight optical alignment */
}

/* Place text blocks */
.threed-process-step-content .threed-process-step-title{ grid-area: title; margin: 0; }
.threed-process-step-content .threed-process-step-description{ grid-area: desc; margin: 0; }
.threed-process-step-content .threed-process-step-details{ grid-area: details; margin-top: 8px; }

/* 2) LEFT cards: icon on LEFT (default) + keep your right-aligned text */
.threed-process-step:not(.threed-process-step-alternate) .threed-process-step-content{
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon desc"
    "icon details";
  text-align: right;
}
.threed-process-step:not(.threed-process-step-alternate) .threed-process-step-details{
  justify-content: flex-end;
}

/* 3) RIGHT cards: icon on RIGHT */
.threed-process-step-alternate .threed-process-step-content{
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title icon"
    "desc icon"
    "details icon";
  text-align: left;
}
.threed-process-step-alternate .threed-process-step-details{
  justify-content: flex-start;
}

/* 4) Mobile/Tablet vertical timeline: always icon left (clean UX) */
@media (max-width: 768px){
  .threed-process-step-content{
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "icon title"
      "icon desc"
      "icon details";
    text-align: left !important;
  }
  .threed-process-step-details{
    justify-content: flex-start !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   td-tools.css  |  prefix: td-tools-
   3D Service — Tools & Technology  |  Flat 2×2 grid
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&display=swap');

:root {
  --red:      #E50914;
  --red-dark: #B81D24;
  --ink:      #0a0a0a;
  --ice:      #F5F5F1;
  --glow:     rgba(229, 9, 20, 0.6);
}

/* ── Section shell ── */
.td-tools-section {
  background: var(--ink);
  padding: 5.5rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.td-tools-section::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

/* faint grid */
.td-tools-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.td-tools-wrap {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.td-tools-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.td-tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(245,245,241,0.4);
  margin-bottom: 1rem;
}

.td-tools-eyebrow__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 5px rgba(229,9,20,0.9);
  animation: td-blink 2s ease-in-out infinite;
}

@keyframes td-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.td-tools-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 800;
  color: var(--ice);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.55rem;
}

.td-tools-sub {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.88rem;
  color: rgba(245,245,241,0.35);
  font-weight: 400;
  margin: 0;
}

/* ── 2×2 Grid ── */
.td-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 520px) {
  .td-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tool card ── */
.td-tools-card {
  position: relative;
  background: #0f0f0f;
  padding: 1.8rem 1.75rem;
  cursor: default;
  overflow: hidden;

  /* scroll-in start state */
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity   0.5s ease,
    transform 0.5s cubic-bezier(0.4,0,0.2,1),
    background 0.35s ease;
}

.td-tools-card.td-tools-card--in {
  opacity: 1;
  transform: translateY(0);
}

/* hover background shift */
.td-tools-card:hover {
  background: #141414;
}

/* Animated red left-edge sweep */
.td-tools-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--red-dark));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
}

.td-tools-card:hover::before {
  transform: scaleY(1);
}

/* Radial glow blob */
.td-tools-card__glow {
  position: absolute;
  bottom: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.td-tools-card:hover .td-tools-card__glow {
  opacity: 1;
}

/* ── Card inner ── */
.td-tools-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Top row: icon + tag */
.td-tools-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Icon box */
.td-tools-card__icon-wrap {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.td-tools-card:hover .td-tools-card__icon-wrap {
  background: rgba(229,9,20,0.08);
  border-color: rgba(229,9,20,0.28);
  box-shadow: 0 0 16px rgba(229,9,20,0.12);
}

.td-tools-icon-svg {
  width: 22px; height: 22px;
  color: rgba(245,245,241,0.3);
  transition: color 0.35s ease;
}

.td-tools-card:hover .td-tools-icon-svg {
  color: rgba(245,245,241,0.9);
}

/* Category tag pill */
.td-tools-card__tag {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245,245,241,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: color 0.3s, border-color 0.3s;
}

.td-tools-card:hover .td-tools-card__tag {
  color: rgba(229,9,20,0.75);
  border-color: rgba(229,9,20,0.25);
}

/* Tool name */
.td-tools-card__name {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: rgba(245,245,241,0.75);
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color 0.3s;
}

.td-tools-card:hover .td-tools-card__name {
  color: var(--ice);
}

/* Description */
.td-tools-card__desc {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(245,245,241,0.3);
  line-height: 1.6;
  transition: color 0.3s;
}

.td-tools-card:hover .td-tools-card__desc {
  color: rgba(245,245,241,0.5);
}

/* ── Footnote ── */
.td-tools-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(245,245,241,0.22);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.td-tools-footnote svg {
  flex-shrink: 0;
  color: rgba(229,9,20,0.35);
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .td-tools-card,
  .td-tools-card::before,
  .td-tools-card__glow,
  .td-tools-icon-svg,
  .td-tools-eyebrow__dot {
    transition: none !important;
    animation: none !important;
  }
  .td-tools-card {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   td-faq.css  |  prefix: td-faq-
   3D Service Page — FAQ Accordion
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --red:      #E50914;
  --red-dark: #B81D24;
  --ink:      #0a0a0a;
  --ice:      #F5F5F1;
  --glow:     rgba(229, 9, 20, 0.6);
}

/* ── Section ── */
.td-faq-section {
  background: var(--ink);
  padding: 5.5rem 1.5rem 6.5rem;
  position: relative;
  overflow: hidden;
}

.td-faq-section::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.td-faq-wrap {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.td-faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.td-faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(245,245,241,0.4);
  margin-bottom: 1rem;
}

.td-faq-eyebrow__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(229,9,20,0.9);
  animation: td-faq-blink 2s ease-in-out infinite;
}

@keyframes td-faq-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.td-faq-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--ice);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.td-faq-sub {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.9rem;
  color: rgba(245,245,241,0.35);
  font-weight: 400;
  margin: 0 0 1.75rem;
}

/* ── Search ── */
.td-faq-search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.td-faq-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: rgba(245,245,241,0.3);
  pointer-events: none;
  transition: color 0.2s;
}

.td-faq-search-wrap:focus-within .td-faq-search-icon {
  color: rgba(229,9,20,0.7);
}

.td-faq-search {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.7rem 2.5rem 0.7rem 2.6rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ice);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  caret-color: var(--red);
}

.td-faq-search::placeholder {
  color: rgba(245,245,241,0.25);
}

.td-faq-search:focus {
  border-color: rgba(229,9,20,0.35);
  background: rgba(229,9,20,0.04);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.08);
}

.td-faq-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  color: rgba(245,245,241,0.35);
}

.td-faq-search-clear svg { width: 12px; height: 12px; }

.td-faq-search-clear.td-faq-clear--visible {
  opacity: 1;
  pointer-events: all;
}

/* ── FAQ list ── */
.td-faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
}

/* ── Single item ── */
.td-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: opacity 0.25s ease, max-height 0.2s ease;
}

.td-faq-item:last-child {
  border-bottom: none;
}

/* Hide filtered items */
.td-faq-item.td-faq-item--hidden {
  display: none;
}

/* Highlight match */
.td-faq-highlight {
  background: rgba(229,9,20,0.22);
  border-radius: 3px;
  color: var(--ice);
  padding: 0 1px;
}

/* ── Question button ── */
.td-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: #0f0f0f;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
  position: relative;
}

.td-faq-question:hover {
  background: #141414;
}

/* Red left-bar on active item */
.td-faq-item--open .td-faq-question {
  background: rgba(229,9,20,0.04);
}

.td-faq-item--open .td-faq-question::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--red-dark));
}

/* Icon */
.td-faq-q-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,245,241,0.3);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.td-faq-q-icon svg { width: 15px; height: 15px; }

.td-faq-item--open .td-faq-q-icon,
.td-faq-question:hover .td-faq-q-icon {
  background: rgba(229,9,20,0.1);
  border-color: rgba(229,9,20,0.25);
  color: var(--red);
}

/* Question text */
.td-faq-q-text {
  flex: 1;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(245,245,241,0.7);
  line-height: 1.4;
  transition: color 0.25s;
}

.td-faq-item--open .td-faq-q-text,
.td-faq-question:hover .td-faq-q-text {
  color: var(--ice);
}

/* Chevron */
.td-faq-q-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: rgba(245,245,241,0.25);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.25s;
  display: flex;
  align-items: center;
}

.td-faq-q-chevron svg { width: 18px; height: 18px; }

.td-faq-item--open .td-faq-q-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

/* ── Answer panel (smooth height) ── */
.td-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1);
}

.td-faq-item--open .td-faq-answer {
  max-height: 400px; /* generous ceiling */
}

.td-faq-answer__body {
  padding: 0 1.5rem 1.4rem 4rem; /* left-aligned with question text */
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(245,245,241,0.5);
  line-height: 1.75;
}

.td-faq-answer__body strong {
  color: rgba(245,245,241,0.8);
  font-weight: 600;
}

/* ── No-results ── */
.td-faq-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem;
  color: rgba(245,245,241,0.25);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.85rem;
  font-style: italic;
}

.td-faq-empty svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Footer ── */
.td-faq-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.td-faq-footer__text {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.82rem;
  color: rgba(245,245,241,0.3);
  margin: 0;
}

.td-faq-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.td-faq-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.28s ease;
}

.td-faq-footer__link--ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(245,245,241,0.55);
}

.td-faq-footer__link--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--ice);
}

.td-faq-footer__link--red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(229,9,20,0.28);
}

.td-faq-footer__link--red:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(229,9,20,0.42);
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .td-faq-question { padding: 1.1rem 1.1rem; gap: 0.75rem; }
  .td-faq-answer__body { padding: 0 1.1rem 1.2rem 3.6rem; }
  .td-faq-q-text { font-size: 0.88rem; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .td-faq-answer { transition: none !important; }
  .td-faq-q-chevron { transition: none !important; }
  .td-faq-eyebrow__dot { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   td-related.css  |  prefix: td-rel-
   3D Service Page — Related Services
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --red:      #E50914;
  --red-dark: #B81D24;
  --ink:      #0a0a0a;
  --ice:      #F5F5F1;
  --glow:     rgba(229, 9, 20, 0.6);
}

/* ── Section — slightly different bg to visually separate ── */
.td-rel-section {
  background: #080808;
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.td-rel-section::before {
  content: '';
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* Diagonal stripe texture — visually distinct from plain ink */
.td-rel-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -48deg,
    transparent,
    transparent 52px,
    rgba(255,255,255,0.012) 52px,
    rgba(255,255,255,0.012) 53px
  );
  pointer-events: none;
}

.td-rel-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.td-rel-header {
  margin-bottom: 2.5rem;
}

.td-rel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,245,241,0.38);
  margin-bottom: 0.9rem;
}

.td-rel-eyebrow__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 5px rgba(229,9,20,0.9);
  animation: td-rel-blink 2s ease-in-out infinite;
}

@keyframes td-rel-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.td-rel-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--ice);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
}

/* ── Track wrapper (handles scroll + fades) ── */
.td-rel-track-wrap {
  position: relative;
}

/* ── Scroll track ── */
.td-rel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .td-rel-track {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px; /* space for focus ring */
  }
  .td-rel-track::-webkit-scrollbar { display: none; }
}

/* Scroll-fade overlays (mobile only) */
.td-rel-fade {
  display: none;
  position: absolute;
  top: 0; bottom: 4px;
  width: 48px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}

@media (max-width: 860px) {
  .td-rel-fade { display: block; }
}

.td-rel-fade--left {
  left: 0;
  background: linear-gradient(to right, #080808, transparent);
  opacity: 0;
}

.td-rel-fade--right {
  right: 0;
  background: linear-gradient(to left, #080808, transparent);
}

/* ── Card ── */
.td-rel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    background   0.35s ease,
    transform    0.32s cubic-bezier(0.4,0,0.2,1),
    box-shadow   0.35s ease;

  /* scroll-in start */
  opacity: 0;
  transform: translateY(14px);
}

.td-rel-card.td-rel-card--in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .td-rel-card {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
  }
}

.td-rel-card:hover {
  border-color: rgba(229,9,20,0.3);
  background: #131313;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,9,20,0.1);
}

/* Red sweep on left */
.td-rel-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--red-dark));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.td-rel-card:hover::before { transform: scaleY(1); }

/* Glow blob */
.td-rel-card__glow {
  position: absolute;
  bottom: -70px; right: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.td-rel-card:hover .td-rel-card__glow { opacity: 1; }

/* ── Icon ── */
.td-rel-card__icon-wrap {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.td-rel-card:hover .td-rel-card__icon-wrap {
  background: rgba(229,9,20,0.09);
  border-color: rgba(229,9,20,0.25);
}

.td-rel-card__icon-svg {
  width: 26px; height: 26px;
  color: rgba(245,245,241,0.28);
  transition: color 0.3s;
}

.td-rel-card:hover .td-rel-card__icon-svg {
  color: rgba(245,245,241,0.85);
}

/* ── Body ── */
.td-rel-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.td-rel-card__label {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(229,9,20,0.5);
  transition: color 0.25s;
}

.td-rel-card:hover .td-rel-card__label { color: rgba(229,9,20,0.8); }

.td-rel-card__name {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(245,245,241,0.75);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  transition: color 0.25s;
}

.td-rel-card:hover .td-rel-card__name { color: var(--ice); }

.td-rel-card__desc {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(245,245,241,0.3);
  line-height: 1.65;
  margin: 0;
  transition: color 0.25s;
}

.td-rel-card:hover .td-rel-card__desc { color: rgba(245,245,241,0.5); }

/* ── CTA row ── */
.td-rel-card__cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(245,245,241,0.3);
  transition: color 0.25s;
}

.td-rel-card__cta svg {
  width: 13px; height: 13px;
  transition: transform 0.28s ease, color 0.25s;
}

.td-rel-card:hover .td-rel-card__cta {
  color: var(--red);
}

.td-rel-card:hover .td-rel-card__cta svg {
  transform: translateX(4px);
}

/* ── Footer link ── */
.td-rel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.75rem;
}

.td-rel-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245,245,241,0.3);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.td-rel-all-link:hover { color: var(--ice); }

.td-rel-all-link svg {
  transition: transform 0.25s ease;
}

.td-rel-all-link:hover svg { transform: translateX(3px); }

/* ── Accessibility ── */
.td-rel-card:focus-visible {
  outline: 2px solid rgba(229,9,20,0.6);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .td-rel-card,
  .td-rel-card::before,
  .td-rel-card__glow,
  .td-rel-eyebrow__dot {
    transition: none !important;
    animation: none !important;
  }
  .td-rel-card { opacity: 1; transform: none; }
}

/* CTA Section - 3D Services Styles */

/* Root Variables */
:root {
    --red: #E50914;
    --red-dark: #B81D24;
    --ink: #0a0a0a;
    --ice: #F5F5F1;
    --glow: rgba(229, 9, 20, 0.6);
}

/* Section-Specific Variables */
.td-cta-section {
    --td-cta-bg: var(--ink);
    --td-cta-text-primary: var(--ice);
    --td-cta-text-secondary: rgba(245, 245, 241, 0.7);
    --td-cta-accent: var(--red);
    --td-cta-accent-hover: var(--red-dark);
    --td-cta-glow: var(--glow);
    --td-cta-gradient-start: rgba(229, 9, 20, 0.15);
    --td-cta-gradient-end: rgba(10, 10, 10, 0);
    --td-cta-border-subtle: rgba(245, 245, 241, 0.1);
}

/* Typography - Apple Inspired */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Section Container */
.td-cta-section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background: var(--td-cta-bg);
}

/* Background Elements */
.td-cta-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.td-cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--td-cta-gradient-start) 0%, var(--td-cta-gradient-end) 70%);
    opacity: 0.8;
}

.td-cta-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(245, 245, 241, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 245, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.td-cta-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--td-cta-glow) 0%, transparent 60%);
    opacity: 0.2;
    animation: tdCtaPulse 4s ease-in-out infinite;
}

@keyframes tdCtaPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

/* Main Container */
.td-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.td-cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.td-cta-header {
    margin-bottom: 60px;
}

.td-cta-headline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--td-cta-text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 24px 0;
}

.td-cta-highlight {
    color: var(--td-cta-accent);
    position: relative;
    display: inline-block;
}

.td-cta-highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, var(--td-cta-accent) 0%, var(--td-cta-accent-hover) 100%);
    opacity: 0.15;
    z-index: -1;
    border-radius: 4px;
}

.td-cta-subheadline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    color: var(--td-cta-text-secondary);
    letter-spacing: -0.01em;
    line-height: 1.6;
    margin: 0;
}

/* CTA Actions */
.td-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.td-cta-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.td-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.td-cta-button:hover::before {
    opacity: 1;
}

/* Primary Button */
.td-cta-primary {
    background: var(--td-cta-accent);
    color: white;
    border: 2px solid var(--td-cta-accent);
    box-shadow: 0 8px 30px var(--td-cta-glow);
}

.td-cta-primary:hover {
    background: var(--td-cta-accent-hover);
    border-color: var(--td-cta-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--td-cta-glow);
}

.td-cta-primary .td-cta-btn-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-cta-primary:hover .td-cta-btn-icon {
    transform: translateX(4px);
}

/* Secondary Button */
.td-cta-secondary {
    background: transparent;
    color: var(--td-cta-text-primary);
    border: 2px solid var(--td-cta-border-subtle);
    backdrop-filter: blur(10px);
}

.td-cta-secondary:hover {
    background: rgba(245, 245, 241, 0.05);
    border-color: rgba(245, 245, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.td-cta-whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: #25D366;
    transition: transform 0.3s ease;
}

.td-cta-secondary:hover .td-cta-whatsapp-icon {
    transform: scale(1.1) rotate(5deg);
}

.td-cta-btn-text {
    position: relative;
    z-index: 1;
}

/* Trust Signals */
.td-cta-trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid var(--td-cta-border-subtle);
}

.td-cta-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: tdCtaFadeIn 0.6s ease forwards;
}

.td-cta-trust-item:nth-child(1) { animation-delay: 0.2s; }
.td-cta-trust-item:nth-child(3) { animation-delay: 0.3s; }
.td-cta-trust-item:nth-child(5) { animation-delay: 0.4s; }

@keyframes tdCtaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.td-cta-trust-icon {
    width: 20px;
    height: 20px;
    color: var(--td-cta-accent);
    flex-shrink: 0;
}

.td-cta-trust-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--td-cta-text-secondary);
    letter-spacing: -0.01em;
}

.td-cta-trust-divider {
    width: 1px;
    height: 24px;
    background: var(--td-cta-border-subtle);
}

/* Floating Elements */
.td-cta-float-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--td-cta-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.td-cta-float-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: tdCtaFloat1 8s ease-in-out infinite;
}

.td-cta-float-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: tdCtaFloat2 10s ease-in-out infinite;
}

.td-cta-float-3 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    animation: tdCtaFloat3 12s ease-in-out infinite;
}

.td-cta-float-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(40px);
}

@keyframes tdCtaFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes tdCtaFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) scale(0.9);
    }
    66% {
        transform: translate(20px, -40px) scale(1.1);
    }
}

@keyframes tdCtaFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, 30px) scale(1.05);
    }
    66% {
        transform: translate(-30px, -20px) scale(0.95);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .td-cta-section {
        padding: 100px 0;
    }

    .td-cta-container {
        padding: 0 24px;
    }

    .td-cta-header {
        margin-bottom: 40px;
    }

    .td-cta-headline {
        font-size: 2.25rem;
    }

    .td-cta-subheadline {
        font-size: 1.125rem;
    }

    .td-cta-actions {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
    }

    .td-cta-button {
        width: 100%;
        justify-content: center;
        padding: 18px 32px;
        font-size: 16px;
    }

    .td-cta-trust-signals {
        gap: 20px;
        padding: 24px 0;
    }

    .td-cta-trust-item {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .td-cta-trust-divider {
        display: none;
    }

    .td-cta-trust-text {
        font-size: 14px;
    }

    /* Simplify floating elements on mobile */
    .td-cta-float-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .td-cta-headline {
        font-size: 1.875rem;
    }

    .td-cta-button {
        padding: 16px 28px;
        font-size: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .td-cta-glow-effect,
    .td-cta-float-element {
        animation: none;
    }

    .td-cta-button {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .td-cta-section {
        --td-cta-border-subtle: rgba(245, 245, 241, 0.3);
    }

    .td-cta-button {
        border-width: 3px;
    }
}