/* HERO — Hero Section, Loader, Page Transition — Turbo Surgical v5.7.2 */

/* --- Hero --- */
        .hero-new {
            position: relative;
            min-height: 90vh;
            display: flex;
            align-items: center;
            overflow: hidden;
            background: var(--dark);
        }

.hero-new .hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

.hero-new .hero-bg video,
        .hero-new .hero-bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.hero-new .hero-overlay {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(135deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.20) 50%, rgba(0, 0, 0, 0.55) 100%);
            z-index: 1;
        }

.hero-new .hero-content {
            position: relative;
            z-index: 2;
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px;
            width: 100%;
        }

.hero-new .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(227, 30, 36, 0.18);
            border: 1px solid rgba(227, 30, 36, 0.30);
            padding: 10px 22px;
            border-radius: 60px;
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: #ff6b6b;
            margin-bottom: 28px;
            backdrop-filter: blur(6px);
        }

.hero-new .hero-badge .pulse-dot {
            width: 8px;
            height: 8px;
            background: #4ade80;
            border-radius: 50%;
            position: relative;
            animation: pulse-dot 2s ease-in-out infinite;
        }

.hero-new .hero-title {
            font-size: clamp(1.4rem, 7vw, 2.8rem);
            font-weight: 900;
            line-height: 1.05;
            color: #fff;
            max-width: 800px;
            letter-spacing: -1.5px;
            margin-bottom: 20px;
        }

.hero-new .hero-title .accent {
            color: var(--red);
            position: relative;
        }

.hero-new .hero-title .accent::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 0;
            right: 0;
            height: 12px;
            background: rgba(227, 30, 36, 0.25);
            border-radius: 6px;
            z-index: -1;
        }

.hero-new .hero-desc {
            font-size: clamp(1rem, 1.4vw, 1.2rem);
            color: rgba(255, 255, 255, 0.65);
            max-width: 520px;
            line-height: 1.7;
            margin-bottom: 36px;
        }

.hero-new .hero-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

.hero-new .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 16px 36px;
            background: linear-gradient(135deg, var(--red), var(--red-dark));
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            border-radius: 60px;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 8px 32px rgba(227, 30, 36, 0.30);
            text-decoration: none;
        }

.hero-new .btn-primary:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 48px rgba(227, 30, 36, 0.40);
        }

.hero-new .btn-primary i {
            transition: transform 0.3s ease;
        }

.hero-new .btn-primary:hover i {
            transform: translateX(5px);
        }

.hero-new .btn-ghost {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 16px 32px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #fff;
            font-weight: 600;
            font-size: 0.95rem;
            border-radius: 60px;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            backdrop-filter: blur(6px);
        }

.hero-new .btn-ghost:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-4px);
        }

.hero-new .hero-stats {
            display: flex;
            gap: 48px;
            margin-top: 48px;
            padding-top: 32px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

.hero-new .hero-stats .stat {
            text-align: left;
        }

.hero-new .hero-stats .stat .num {
            display: block;
            font-size: clamp(1.6rem, 3vw, 2.4rem);
            font-weight: 900;
            color: #fff;
            line-height: 1;
        }

.hero-new .hero-stats .stat .label {
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.40);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 6px;
        }

.hero-new .scroll-indicator {
            position: absolute;
            bottom: 32px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
            color: rgba(255, 255, 255, 0.30);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            animation: scroll-bounce 2.4s ease-in-out infinite;
        }

.hero-new .scroll-indicator .mouse {
            width: 24px;
            height: 38px;
            border: 2px solid rgba(255, 255, 255, 0.20);
            border-radius: 12px;
            position: relative;
        }

.hero-new .scroll-indicator .mouse::after {
            content: '';
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 8px;
            background: rgba(255, 255, 255, 0.30);
            border-radius: 4px;
            animation: scroll-wheel 2.4s ease-in-out infinite;
        }

.model-wrapper .loader-3d {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.06);
            border-top-color: var(--red);
            border-radius: 50%;
            animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
            pointer-events: none;
            display: none;
        }

.model-wrapper iframe.loaded~.loader-3d {
            display: none;
        }

.hero-header-wrap {
  position:relative
}

.hero-slider {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%
}

.hero-slide {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity 1.2s cubic-bezier(0.4,0,0.2,1);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--sw-dark)
}

.hero-slide.active {
  opacity:1
}

.hero-video-bg {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  will-change:transform;
  min-width:100%;
  min-height:100%;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%)
}

.hero-video-fallback {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  position:absolute;
  top:0;
  left:0;
  display:none
}

.hero-slide.active .hero-video-fallback {
  display:block
}

.hero-video-bg.loaded~.hero-video-fallback {
  display:none !important
}

.hero-caption {
  position:absolute;
  left:0;
  bottom:18%;
  z-index:5;
  width:100%;
  pointer-events:none
}

.hero-caption-inner {
  max-width:1400px;
  margin:0 auto;
  padding:0 var(--container-padding);
  pointer-events:auto
}

.hero-caption-badge {
  display:inline-block;
  background:var(--sw-pink);
  color:var(--sw-white);
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:0.5px;
  padding:12px 22px;
  border-radius:var(--radius);
  box-shadow:0 6px 24px rgba(227,30,36,0.30)
}

.hero-caption-text {
  background:rgba(255,255,255,0.92);
  color:var(--sw-dark);
  max-width:480px;
  padding:16px 20px;
  font-size:0.95rem;
  line-height:1.5;
  border-radius:var(--radius);
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  margin-top:6px;
  backdrop-filter:blur(8px)
}

.hero-caption-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--sw-dark);
  color:var(--sw-white);
  font-size:0.82rem;
  font-weight:600;
  padding:12px 22px;
  border:none;
  cursor:pointer;
  border-radius:var(--radius);
  transition:background 0.3s ease,transform 0.3s ease,box-shadow 0.3s ease;
  margin-top:8px
}

.hero-caption-btn:hover {
  background:var(--sw-pink);
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(227,30,36,0.30)
}

.hero-caption-btn i {
  transition:transform 0.3s ease
}

.hero-caption-btn:hover i {
  transform:translateX(4px)
}

.sketchfab-embed-wrapper .loader-3d {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:1;
  width:40px;
  height:40px;
  border:3px solid rgba(255,255,255,0.1);
  border-top-color:var(--sw-pink);
  border-radius:50%;
  animation:spin 1s cubic-bezier(0.4,0,0.2,1) infinite;
  pointer-events:none
}

.sketchfab-embed-wrapper iframe.loaded~.loader-3d {
  opacity:0;
  pointer-events:none;
  transition:opacity 0.5s ease
}

.loader {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:var(--sw-white);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  transition:opacity 0.55s ease,transform 0.55s ease,visibility 0.55s ease
}

.loader.hidden {
  opacity:0;
  visibility:hidden;
  transform:scale(1.04)
}

.loader-spinner {
  width:44px;
  height:44px;
  border:3px solid var(--sw-border);
  border-top-color:var(--sw-red);
  border-radius:50%;
  animation:spin 1s cubic-bezier(0.4,0,0.2,1) infinite
}

.scroll-progress {
  position:fixed;
  top:0;
  left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg,var(--sw-pink) 0%,#ff6b6b 50%,var(--sw-red) 100%);
  background-size:200% 100%;
  animation:shimmerBar 2.5s linear infinite;
  z-index:9999;
  transition:width 0.1s linear;
  border-radius:0 2px 2px 0
}

/* ============================================
   SUB-PAGE GLASS HEADER OVER PAGE-BANNER
   ============================================ */
.hero-header-wrap {
  position:relative
}

/* ============================================
   VIDEO — OPTIMIZED
   ============================================ */
.hero-video-bg {
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  will-change:transform;
  opacity:0;
  transition:opacity 0.8s ease
}

.hero-video-bg.loaded {
  opacity:1
}

/* Very small screens */
@media (max-width: 320px)  {

  :root  {
   --container-padding: 8px;

}

  .hero-caption-badge  {
   font-size: 0.6rem;
   padding: 4px 8px;

}

  .hero-caption-text  {
   font-size: 0.6rem;
   padding: 6px 8px;

}

  .hero-caption-btn  {
   font-size: 0.55rem;
   padding: 4px 10px;

}

  .product-card  {
   height: 90px;

}

  .product-label  {
   font-size: 0.4rem;
   padding: 2px 5px;

}

  .count-up  {
   font-size: 1.2rem;

}

  .section-heading  {
   font-size: 1.1rem;

}

}

/* ============================================
   NEW REDESIGN STYLES — Add to style.css (append at end)
   Uses existing CSS variables to avoid duplication.
   ============================================ */

/* ----- HERO (new) ----- */
.hero-new {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--sw-dark);
}

.hero-new .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-new .hero-bg video,
.hero-new .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-new .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.20) 50%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.hero-new .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 130px 40px 60px;
    width: 100%;
}

.hero-new .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(227,30,36,0.15);
    border: 1px solid rgba(227,30,36,0.25);
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6b6b;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.hero-new .hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    position: relative;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-new .hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.08;
    color: #fff;
    max-width: 700px;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.hero-new .hero-title .accent {
    color: var(--sw-pink);
    position: relative;
}

.hero-new .hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(227,30,36,0.25);
    border-radius: 4px;
    z-index: -1;
}

.hero-new .hero-desc {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-new .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-new .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--sw-pink), var(--sw-pink-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 28px rgba(227,30,36,0.25);
    text-decoration: none;
}

.hero-new .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(227,30,36,0.35);
}

.hero-new .btn-primary i {
    transition: transform 0.3s ease;
}

.hero-new .btn-primary:hover i {
    transform: translateX(4px);
}

.hero-new .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 60px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(6px);
}

.hero-new .btn-ghost:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
    transform: translateY(-3px);
}

.hero-new .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-new .hero-stats .stat {
    text-align: left;
}

.hero-new .hero-stats .stat .num {
    display: block;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.hero-new .hero-stats .stat .label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.hero-new .scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.20);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: scroll-bounce 2.4s ease-in-out infinite;
}

.hero-new .scroll-indicator .mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    position: relative;
}

.hero-new .scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: rgba(255,255,255,0.20);
    border-radius: 3px;
    animation: scroll-wheel 2.4s ease-in-out infinite;
}

.model-wrapper .loader-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top-color: var(--sw-pink);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4,0,0.2,1) infinite;
    pointer-events: none;
    display: none;
}

.model-wrapper iframe.loaded ~ .loader-3d {
    display: none;
}

/* VIDEO AFTER PAGE LOAD */
.hero-video-bg{opacity:0;transition:opacity 0.8s ease}

.hero-video-bg.loaded{opacity:1}

/* ============================================
   HERO BADGE — MOBILE SPACING FROM HEADER
   ============================================ */
@media(max-width:992px){
  .hero-new .hero-content{
    padding-top: 130px !important;
  }
}

/* --- Hero content fade-up on load --- */
.hero-content {
  will-change: transform, opacity;
}

/* --- Hero badge entrance --- */
.hero-badge {
  will-change: transform, opacity;
}

/* --- Scroll indicator bounce (existing mouse wheel has anim, add to arrow text) --- */
.scroll-indicator span {
  animation: ts-fade-pulse 2.5s ease-in-out infinite;
}

/* --- 3. LOADER REDESIGN — logo + progress bar --- */
.loader {
  background: #0a0a0a !important;
  flex-direction: column;
  gap: 28px;
}

.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(227,30,36,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(243,146,0,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.loader-spinner {
  width: 52px !important;
  height: 52px !important;
  border: 2.5px solid rgba(255,255,255,0.06) !important;
  border-top-color: #e31e24 !important;
  border-right-color: rgba(227,30,36,0.4) !important;
  box-shadow: 0 0 20px rgba(227,30,36,0.15) !important;
}

/* Loader logo above spinner */
.loader::after {
  content: 'TURBO SURGICAL';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 60px));
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Loader progress track */
.loader-progress-track {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.loader-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e31e24, #f39200);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(227,30,36,0.6);
}

/* --- 4. SCROLL PROGRESS BAR — thicker + glow --- */
.scroll-progress {
  height: 3px !important;
  background: linear-gradient(90deg, #e31e24 0%, #f39200 50%, #e31e24 100%) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 1px 8px rgba(227,30,36,0.4) !important;
}

/* --- 8. HERO TITLE GRADIENT ACCENT --- */
.hero-title .accent {
  background: linear-gradient(135deg, #ff6b6b 0%, #e31e24 40%, #f39200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

/* --- 9. HERO BADGE IMPROVEMENT --- */
.hero-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15) !important;
  padding: 8px 20px !important;
  border-radius: 60px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-badge:hover {
  border-color: rgba(227,30,36,0.4) !important;
  box-shadow: 0 4px 24px rgba(227,30,36,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* --- 10. HERO STATS IMPROVEMENT --- */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 16px;
}

.hero-stats .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #e31e24, rgba(227,30,36,0.2));
  border-radius: 2px;
}

.hero-stats .stat .num {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  letter-spacing: -1px;
}

.hero-stats .stat .label {
  font-size: 0.65rem !important;
  color: rgba(255,255,255,0.45) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
}

/* --- 29. MOBILE HERO IMPROVEMENTS --- */
@media (max-width: 768px) {
  .hero-stats {
    gap: 20px;
  }
  .hero-stats .stat .num {
    font-size: 1.4rem !important;
  }
  .hero-badge {
    font-size: 0.65rem !important;
    padding: 6px 14px !important;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .btn-primary,
  .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Hide native video overlay/controls (iOS Low Power Mode play button etc.) */
.hero-video-bg{pointer-events:none}
.hero-video-bg::-webkit-media-controls,
.hero-video-bg::-webkit-media-controls-start-playback-button,
.hero-video-bg::-webkit-media-controls-overlay-play-button,
.hero-video-bg::-webkit-media-controls-panel{display:none!important;-webkit-appearance:none}
