/* ============================================
   HERO SLIDER - Bitstech Store
   5 Slides with Images & Animations
   ============================================ */

section.bt-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10px 0 50px;
    overflow: hidden;
    background: var(--bt-bg-primary);
}

section.bt-hero .bt-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

section.bt-hero .bt-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(var(--bt-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 100% 20%, rgba(var(--bt-accent-rgb), 0.08) 0%, transparent 50%);
}

/* Slider */
section.bt-hero .bt-hero-slider-main {
    position: relative;
    width: 100%;
    z-index: 2;
}

section.bt-hero .bt-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

section.bt-hero .bt-hero-slide.bt-hero-slide-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Remove min-height on mobile to prevent gap */
@media (max-width: 992px) {
    section.bt-hero .bt-hero-slide.bt-hero-slide-active {
        min-height: auto;
    }
}

/* Two Column - Text left, Image right (side by side) */
section.bt-hero .bt-hero-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* Left Content */
section.bt-hero .bt-hero-content {
    flex: 0 0 55%;
    max-width: 580px;
}

section.bt-hero .bt-anim-item {
    opacity: 0;
    transform: translateY(30px);
}

section.bt-hero .bt-anim-3d {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
}

section.bt-hero .bt-hero-content .bt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(var(--bt-primary-rgb), 0.15), rgba(var(--bt-accent-rgb), 0.08));
    border: 1px solid rgba(var(--bt-primary-rgb), 0.25);
    border-radius: 50px;
}

section.bt-hero .bt-hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.3rem);
    font-weight: 700;
    line-height: 1.7;
    color: var(--bt-accent);
    margin-bottom: 10px;
}

section.bt-hero .bt-hero-title {
    font-size: clamp(1.6rem, 3.3vw, 2.6rem) !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
    color: var(--bt-text-primary) !important;
    word-spacing: 0.05em;
}

section.bt-hero .bt-hero-desc {
    font-size: 0.9rem;
    line-height: 1.95;
    color: var(--bt-text-secondary);
    margin-bottom: 28px;
    max-width: 480px;
}

section.bt-hero .bt-hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

section.bt-hero .bt-hero-actions .bt-btn {
    padding: 12px 24px;
    font-size: 0.82rem;
    line-height: 1.6;
}

/* Stats - 5 items */
section.bt-hero .bt-hero-stats {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bt-border-color);
    flex-wrap: wrap;
}

section.bt-hero .bt-hero-stat {
    text-align: left;
}

section.bt-hero .bt-hero-stat-num {
    display: block;
    font-family: var(--bt-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section.bt-hero .bt-hero-stat-label {
    display: block;
    font-size: 0.6rem;
    line-height: 1.7;
    color: var(--bt-text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   RIGHT SIDE - Image Visual Area
   ============================================ */
section.bt-hero .bt-hero-visual {
    flex: 1;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -50px;
}

/* Hero Images - Compact, right side */
section.bt-hero .bt-hero-img {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    transform-origin: center center;
}

/* Style 1: Float up/down - like Google Home speaker */
section.bt-hero .bt-hero-img-float {
    animation: btImgFloat 6s ease-in-out infinite;
}

/* Style 2: Perspective tilt - like Asus ROG / GPU card */
section.bt-hero .bt-hero-img-tilt {
    animation: btImgTilt 7s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* Style 3: Gentle bounce with scale - like accessories */
section.bt-hero .bt-hero-img-bounce {
    animation: btImgBounce 5s ease-in-out infinite;
}

/* Style 4: Slow rotate sway - like headset/audio */
section.bt-hero .bt-hero-img-rotate {
    animation: btImgRotate 8s ease-in-out infinite;
}

/* Style 5: Scale pulse with glow - like hardware */
section.bt-hero .bt-hero-img-pulse {
    animation: btImgPulse 6s ease-in-out infinite;
}

@keyframes btImgFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.02); }
}

@keyframes btImgTilt {
    0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) scale(1); }
    50% { transform: perspective(1200px) rotateY(4deg) rotateX(-2deg) scale(1.03); }
}

@keyframes btImgBounce {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    30% { transform: translateY(-18px) rotate(-1.5deg) scale(1.02); }
    60% { transform: translateY(-10px) rotate(1deg) scale(1.04); }
}

@keyframes btImgRotate {
    0%, 100% { transform: rotate(0deg) translateY(0) scale(1); }
    25% { transform: rotate(2.5deg) translateY(-12px) scale(1.01); }
    50% { transform: rotate(0deg) translateY(-22px) scale(1.03); }
    75% { transform: rotate(-2.5deg) translateY(-12px) scale(1.01); }
}

@keyframes btImgPulse {
    0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4)); }
    50% { transform: scale(1.06) translateY(-15px); filter: drop-shadow(0 50px 100px rgba(0,0,0,0.5)); }
}

/* 3D Canvas fallback */
section.bt-hero .bt-hero-3d-canvas {
    width: 100%;
    height: 320px;
    background: transparent;
    border: none;
}

/* Shared 3D Canvas - right side on desktop, between content & nav on mobile */
section.bt-hero .bt-hero-3d-shared-wrap {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 42%;
    height: 350px;
    z-index: 1;
    pointer-events: none;
    display: block;
    transition: opacity 0.5s ease;
}

/* On mobile/tablet: show inline, centered, above nav */
@media (max-width: 992px) {
    section.bt-hero .bt-hero-3d-shared-wrap {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 280px;
        height: 180px;
        margin: 5px auto 0;
    }
    section.bt-hero .bt-hero-nav {
        margin-top: 10px;
    }
}

section.bt-hero .bt-hero-3d-shared-wrap .bt-hero-3d-canvas {
    width: 100%;
    height: 100%;
}

/* Hide shared 3D when slide has its own image - glow still shows */
section.bt-hero .bt-hero-slide-active .bt-hero-img ~ .bt-hero-3d-glow {
    opacity: 1;
}

/* Hide placeholder div in slides when 3D shared is used */
section.bt-hero .bt-hero-visual .bt-hero-3d-shared {
    width: 100%;
    height: 420px;
    background: transparent;
    border: none;
    /* This is invisible - the shared wrap shows the 3D */
}

/* Glow Effects */
section.bt-hero .bt-hero-3d-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: btGlowPulse 4s ease-in-out infinite;
}

section.bt-hero .bt-glow-purple { background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%); }
section.bt-hero .bt-glow-blue { background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%); }
section.bt-hero .bt-glow-cyan { background: radial-gradient(circle, rgba(6,182,212,0.3) 0%, transparent 70%); }
section.bt-hero .bt-glow-green { background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%); }
section.bt-hero .bt-glow-orange { background: radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 70%); }

@keyframes btGlowPulse {
    0%,100%{transform:translate(-50%,-50%) scale(1);opacity:0.6;}
    50%{transform:translate(-50%,-50%) scale(1.1);opacity:0.8;}
}

/* ============================================
   NAVIGATION - Progress Tabs
   ============================================ */
section.bt-hero .bt-hero-nav {
    position: relative;
    z-index: 10;
    margin-top: 30px;
}

section.bt-hero .bt-hero-nav-track {
    display: flex;
    gap: 6px;
    justify-content: center;
}

section.bt-hero .bt-hero-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

section.bt-hero .bt-hero-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--bt-primary-rgb), 0.3);
}

section.bt-hero .bt-hero-nav-item.bt-active {
    background: rgba(var(--bt-primary-rgb), 0.1);
    border-color: rgba(var(--bt-primary-rgb), 0.4);
}

section.bt-hero .bt-nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--bt-primary), var(--bt-accent));
    border-radius: 2px;
}

section.bt-hero .bt-hero-nav-item.bt-active .bt-nav-progress {
    animation: btNavProgress 6s linear forwards;
}

@keyframes btNavProgress {
    from { width: 0; }
    to { width: 100%; }
}

section.bt-hero .bt-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

section.bt-hero .bt-hero-nav-item.bt-active .bt-nav-label {
    color: var(--bt-primary);
}

/* ============================================
   PAGE HEADER / BREADCRUMB / 404
   ============================================ */
.bt-page-header {
    padding: var(--bt-space-2xl) 0 var(--bt-space-xl);
    background: linear-gradient(180deg, rgba(var(--bt-primary-rgb), 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--bt-border-color);
}
.bt-page-title { font-size: var(--bt-fs-2xl); margin-bottom: var(--bt-space-xs); }
.bt-breadcrumb { padding: var(--bt-space-sm) 0; font-size: var(--bt-fs-sm); }
.bt-breadcrumb-item { color: var(--bt-text-muted); }
.bt-breadcrumb-item a { color: var(--bt-text-secondary); }
.bt-breadcrumb-item a:hover { color: var(--bt-primary); }
.bt-breadcrumb-sep { margin: 0 var(--bt-space-sm); color: var(--bt-text-muted); }
.bt-404 { min-height: 60vh; display: flex; align-items: center; }
.bt-404-content { text-align: center; max-width: 550px; margin: 0 auto; }
.bt-404-number { font-family: var(--bt-font-heading); font-size: 8rem; font-weight: 800; line-height: 1; margin-bottom: var(--bt-space-md); }
.bt-404-content h1 { margin-bottom: var(--bt-space-md); }
.bt-404-content p { margin-bottom: var(--bt-space-2xl); }
.bt-404-actions { display: flex; gap: var(--bt-space-md); justify-content: center; flex-wrap: wrap; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    section.bt-hero .bt-hero-inner { gap: 16px; }
    section.bt-hero .bt-hero-content { max-width: 650px; }
    section.bt-hero .bt-hero-img { max-height: 250px; }
}

@media (max-width: 992px) {
    section.bt-hero { min-height: auto; padding: 30px 0 20px; }
    section.bt-hero .bt-hero-inner { flex-direction: column; text-align: center; gap: 10px; }
    section.bt-hero .bt-hero-content { flex: none; max-width: 600px; order: 1; margin: 0 auto; }
    section.bt-hero .bt-hero-desc { margin-left: auto; margin-right: auto; }
    section.bt-hero .bt-hero-actions { justify-content: center; }
    section.bt-hero .bt-hero-stats { justify-content: center; }
    section.bt-hero .bt-hero-visual { order: 2; width: 100%; min-height: 0; margin-left: 0; justify-content: center; }
    /* No-image slides: hide the inline visual placeholder */
    section.bt-hero .bt-hero-visual:has(.bt-hero-3d-shared) { display: none; }
    section.bt-hero .bt-hero-visual.no-image { display: none; }
    /* Image slides: show the visual with image */
    section.bt-hero .bt-hero-visual:has(.bt-hero-img) { display: flex; min-height: auto; align-items: center; justify-content: center; margin: 15px auto 0; }
    section.bt-hero .bt-hero-visual.has-image { display: flex !important; min-height: auto; align-items: center; justify-content: center; margin: 15px auto 0; }
    section.bt-hero .bt-hero-img { max-height: 220px; max-width: 80%; margin: 0 auto; display: block; }
    /* Shared 3D laptop - compact, smooth collapse when hidden */
    section.bt-hero .bt-hero-3d-shared-wrap {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 260px;
        height: 150px;
        margin: 5px auto 0;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.4s ease, height 0.4s ease, margin 0.4s ease;
    }
    section.bt-hero .bt-hero-3d-shared-wrap.bt-3d-hidden {
        height: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        pointer-events: none;
    }
    section.bt-hero .bt-hero-3d-canvas { height: 150px; max-width: 260px; }
    section.bt-hero .bt-hero-nav { margin-top: 5px; }
    section.bt-hero .bt-hero-3d-glow { width: 180px; height: 180px; }
    section.bt-hero .bt-hero-nav-item { padding: 6px 10px; }
    section.bt-hero .bt-nav-label { font-size: 0.58rem; }
}

@media (max-width: 576px) {
    section.bt-hero { padding: 15px 0 15px; }
    section.bt-hero .bt-hero-content .bt-badge { font-size: 0.62rem; padding: 6px 12px; line-height: 1.7; }
    section.bt-hero .bt-hero-subtitle { font-size: 0.85rem; line-height: 1.7; }
    section.bt-hero .bt-hero-title { font-size: 1.35rem !important; line-height: 1.6 !important; }
    section.bt-hero .bt-hero-desc { font-size: 0.82rem; line-height: 1.95; margin-bottom: 16px; }
    section.bt-hero .bt-hero-actions { flex-direction: column; gap: 10px; margin-bottom: 16px; }
    section.bt-hero .bt-hero-actions .bt-btn { width: 100%; justify-content: center; }
    section.bt-hero .bt-hero-stats { gap: 12px; padding-top: 12px; }
    section.bt-hero .bt-hero-stat-num { font-size: 1rem; line-height: 1.4; }
    section.bt-hero .bt-hero-stat-label { font-size: 0.55rem; line-height: 1.7; margin-top: 5px; }
    section.bt-hero .bt-hero-img { max-height: 180px; }
    section.bt-hero .bt-hero-3d-canvas { height: 160px; max-width: 240px; }
    section.bt-hero .bt-hero-3d-shared-wrap { max-width: 240px; height: 150px; margin: 5px auto 0; }
    section.bt-hero .bt-hero-3d-glow { width: 140px; height: 140px; }
    section.bt-hero .bt-hero-nav { margin-top: 8px; }
    section.bt-hero .bt-hero-nav-item { padding: 5px 8px; }
    section.bt-hero .bt-nav-label { font-size: 0.5rem; }
}

/* ============================================
   LIGHT MODE
   ============================================ */
html[data-theme="light"] section.bt-hero .bt-hero-gradient {
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(117,59,235,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 100% 20%, rgba(6,182,212,0.04) 0%, transparent 50%);
}
html[data-theme="light"] section.bt-hero .bt-hero-subtitle { color: #753beb; }
html[data-theme="light"] section.bt-hero .bt-hero-nav-item {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] section.bt-hero .bt-hero-nav-item.bt-active {
    background: rgba(117,59,235,0.06);
    border-color: rgba(117,59,235,0.2);
}
html[data-theme="light"] section.bt-hero .bt-nav-label { color: var(--bt-text-muted); }
html[data-theme="light"] section.bt-hero .bt-hero-nav-item.bt-active .bt-nav-label { color: #753beb; }
html[data-theme="light"] .bt-page-header {
    background: linear-gradient(180deg, rgba(117,59,235,0.03) 0%, transparent 100%);
    border-bottom-color: rgba(0,0,0,0.06);
}


/* ============================================
   MYANMAR FONT — Unicode-aware spacing
   မြန်မာစာ characters တွေအတွက် line-height & letter-spacing ထိန်းညှိ
   (diacritic stack တွေ အပေါ်အောက် ထိနေခြင်း မဖြစ်အောင်)
   ============================================ */

/* :lang(my) ကြောင့် lang attribute ထည့်ထားသူတွေအတွက် */
section.bt-hero :lang(my),
section.bt-hero [lang="my"],
section.bt-hero [lang="my-MM"] {
    line-height: 1.9;
    letter-spacing: 0.005em;
}

/* unicode-range ဖြင့် Myanmar စာ ပါသော element တိုင်းကို
   ပိုကောင်းသော diacritic rendering ပေးရန် font-feature ဖွင့်ထား */
section.bt-hero .bt-hero-title,
section.bt-hero .bt-hero-subtitle,
section.bt-hero .bt-hero-desc,
section.bt-hero .bt-hero-content .bt-badge,
section.bt-hero .bt-hero-stat-num,
section.bt-hero .bt-hero-stat-label,
section.bt-hero .bt-btn,
section.bt-hero .bt-nav-label {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "locl" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Title — အပေါ်အောက် မထိအောင် line-height ၁.၅၅ ထား */
section.bt-hero .bt-hero-title {
    line-height: 1.55 !important;
    padding: 0.05em 0;            /* diacritic အပေါ်/အောက် space ပေး */
}

/* Description — paragraph ရှည်တဲ့အခါ ၁.၉ */
section.bt-hero .bt-hero-desc {
    line-height: 1.9;
}

/* Button label - တစ်ကြောင်းတည်းမှာ Myanmar diacritic ပါရင် button height သေးနေတတ် */
section.bt-hero .bt-btn {
    line-height: 1.6;
    padding-top: 13px;
    padding-bottom: 13px;
}

/* Nav tab label */
section.bt-hero .bt-nav-label {
    line-height: 1.7;
}

/* Stats container — အောက်ဖက် border နဲ့ မထိအောင် */
section.bt-hero .bt-hero-stats {
    padding-top: 22px;
    margin-top: 6px;
}
section.bt-hero .bt-hero-stat-num {
    padding: 0.08em 0;
    line-height: 1.4;
}

/* Mobile fine-tune */
@media (max-width: 576px) {
    section.bt-hero .bt-hero-title { line-height: 1.6 !important; padding: 0.08em 0; }
    section.bt-hero .bt-hero-desc  { line-height: 1.95; }
    section.bt-hero .bt-btn        { line-height: 1.6; padding-top: 12px; padding-bottom: 12px; }
}

/* ============================================
   GLOBAL Myanmar improvements (homepage sections)
   ============================================ */
.bt-section-title h2,
.bt-section-title h3,
.bt-section-subtitle,
.bt-feature-title,
.bt-feature-desc,
.bt-promo-title,
.bt-promo-desc,
.bt-cta-title,
.bt-cta-desc {
    line-height: 1.75;
    padding: 0.04em 0;
}

/* Heading elements within hero / features / promo / cta scope only */
section.bt-hero h1,
section.bt-hero h2,
section.bt-hero h3,
.bt-features h2,
.bt-features h3,
.bt-features h4,
.bt-promo h2,
.bt-promo h3,
.bt-cta h2,
.bt-cta h3,
.bt-section-title h1,
.bt-section-title h2,
.bt-section-title h3 {
    line-height: 1.6;
    padding: 0.05em 0;
}
