/* ==========================================================================
   REOLINK GO PT PLUS — APPLE-STYLE SCROLLYTELLING STYLESHEET
   Engineered for 60 FPS Hardware-Accelerated Mobile & Desktop Performance
   ========================================================================== */

:root {
    --scrolly-bg: #060810;
    --scrolly-cyan: #00f3ff;
    --scrolly-blue: #0077b6;
    --scrolly-green: #10b981;
    --scrolly-red: #ff3366;
    --scrolly-orange: #ff7a00;
    --scrolly-text-glow: rgba(0, 243, 255, 0.35);
}

/* 1. Main Scrollytelling Track (450vh scroll journey) */
.scrolly-track {
    position: relative;
    width: 100%;
    height: 450vh;
    background: var(--scrolly-bg);
    margin: 0;
    padding: 0;
}

/* 2. Pinned 100vh Sticky Viewport Stage */
.scrolly-stage {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout paint size;
    perspective: 1000px;
}

/* 3. Multi-Layer Environmental Backgrounds */
.scrolly-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.scrolly-bg-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: opacity, transform;
}

.scrolly-bg-scene.active {
    opacity: 1;
    transform: scale(1);
}

/* Scene 1: Studio Dark Radial Spotlight */
.bg-scene-studio {
    background: radial-gradient(circle at 65% 45%, rgba(0, 174, 239, 0.18) 0%, rgba(13, 20, 38, 0.6) 40%, #060810 85%);
}

.bg-scene-studio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

/* Scene 2: Construction Site DHA/Bahria */
.bg-scene-construction {
    background-image: linear-gradient(to bottom, rgba(6, 8, 16, 0.75), rgba(6, 8, 16, 0.65)), url('../assets/scrollytelling/construction_bg.webp');
}

/* Scene 3: Rural Dera / Farmhouse Night Vision */
.bg-scene-farm {
    background-image: linear-gradient(to bottom, rgba(3, 5, 12, 0.85), rgba(2, 4, 10, 0.75)), url('../assets/scrollytelling/farm_night_bg.webp');
}

/* Scene 4: Premium Package Conversion Stage */
.bg-scene-conversion {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, rgba(10, 15, 29, 0.9) 50%, #060810 90%);
}

/* Vignette & Ambient Glow */
.scrolly-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 50%, rgba(6, 8, 16, 0.85) 100%);
    pointer-events: none;
    z-index: 2;
}

/* 4. The Hero Camera Rig (Pinned 3D Centerpiece) */
.camera-rig-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    z-index: 10;
    pointer-events: auto;
    will-change: transform;
}

.camera-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.hero-camera-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 40px rgba(0, 174, 239, 0.2));
    user-select: none;
    pointer-events: none;
    will-change: transform, filter;
}

/* Idle Floating Breathing Animation */
@keyframes cameraBreathe {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.8deg);
    }
}

.camera-rig-container.idle-float .hero-camera-img {
    animation: cameraBreathe 5s ease-in-out infinite;
}

/* Camera Lens Reflection Flare */
.camera-lens-flare {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #00f3ff 0%, rgba(0, 243, 255, 0.4) 60%, transparent 100%);
    top: 52%;
    left: 48%;
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
    animation: lensPulse 3s ease-in-out infinite;
}

@keyframes lensPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 0.95; transform: scale(1.2); }
}

/* 6 IR Night Vision LED Indicators (Activate in Stage 3) */
.camera-ir-glow {
    position: absolute;
    top: 52%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 51, 102, 0.4);
    box-shadow: 0 0 35px rgba(255, 51, 102, 0.8), inset 0 0 25px rgba(255, 51, 102, 0.6);
    opacity: 0;
    pointer-events: none;
}

.camera-ir-glow.active {
    opacity: 1;
}

/* 5. Stage Story Overlays (Text, Headings & CTAs) */
.scrolly-content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.scrolly-text-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 520px;
    padding: 20px 30px;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.scrolly-text-card.active {
    opacity: 1;
    pointer-events: auto;
}

/* Stage 1: Left Text Placement */
.text-stage-1 {
    left: 6%;
    max-width: 480px;
}

.text-stage-1.active {
    transform: translateY(-50%) translate3d(0, 0, 0);
}

/* Stage 2: Right Text Placement */
.text-stage-2 {
    right: 6%;
    max-width: 480px;
}

.text-stage-2.active {
    transform: translateY(-50%) translate3d(0, 0, 0);
}

/* Stage 3: Left Placement for Night Vision */
.text-stage-3 {
    left: 6%;
    top: 50%;
    max-width: 460px;
}

/* Stage 4: Right Conversion Card Placement */
.text-stage-4 {
    right: 6%;
    max-width: 480px;
}

/* Typography & Badges (Apple-Style Precision) */
.scrolly-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.badge-cyan {
    background: rgba(0, 243, 255, 0.12);
    color: var(--scrolly-cyan);
    border: 1px solid rgba(0, 243, 255, 0.35);
}

.badge-orange {
    background: rgba(255, 122, 0, 0.12);
    color: var(--scrolly-orange);
    border: 1px solid rgba(255, 122, 0, 0.35);
}

.badge-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--scrolly-green);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.scrolly-headline {
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.scrolly-headline span {
    background: linear-gradient(135deg, #00f3ff, #00aeef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scrolly-subhead {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 24px;
}

.scrolly-micro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.micro-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.micro-chip ion-icon {
    font-size: 14px;
    color: #00f3ff;
}

.scrolly-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-scrolly-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #00aeef, #0077b6);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.35);
    transition: all 0.25s ease;
}

.btn-scrolly-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 174, 239, 0.5);
}

.btn-scrolly-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.btn-scrolly-wa:hover {
    background: #20ba59;
    transform: translateY(-2px);
}

.btn-scrolly-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-scrolly-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 6. Interactive HUD Indicators (Stage 2: Construction Site) */
.hud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
    opacity: 0;
}

.hud-layer.active {
    opacity: 1;
}

.hud-callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(11, 17, 33, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 243, 255, 0.2);
    will-change: transform, opacity;
    animation: hudFloat 4s ease-in-out infinite alternate;
}

@keyframes hudFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.hud-callout.hud-sim {
    top: 32%;
    left: 22%;
}

.hud-callout.hud-weather {
    bottom: 28%;
    left: 26%;
}

.hud-beacon {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00f3ff;
    flex-shrink: 0;
}

.hud-beacon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid #00f3ff;
    animation: beaconPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hud-text strong {
    display: block;
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.02em;
}

.hud-text span {
    font-size: 11px;
    color: #94a3b8;
}

/* 7. Starlight Night Vision Simulation & AI Targets (Stage 3) */
.night-vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 13;
    opacity: 0;
}

.night-vision-overlay.active {
    opacity: 1;
}

/* Spotlight Beam from Camera */
.night-spotlight-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translate(-45%, -50%);
    background: radial-gradient(ellipse at 40% 50%, rgba(0, 243, 255, 0.15) 0%, rgba(0, 174, 239, 0.05) 50%, transparent 75%);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* AI Detection Radar Bounding Boxes */
.ai-target-box {
    position: absolute;
    border: 1.5px solid #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(0, 243, 255, 0.15);
    border-radius: 6px;
    pointer-events: none;
    padding: 6px 10px;
}

.ai-target-box.ai-cattle {
    bottom: 26%;
    right: 20%;
    width: 180px;
    height: 110px;
}

.ai-target-box.ai-human {
    top: 38%;
    right: 38%;
    width: 90px;
    height: 140px;
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4), inset 0 0 15px rgba(255, 51, 102, 0.15);
}

.ai-target-tag {
    position: absolute;
    top: -22px;
    left: 0;
    background: #00f3ff;
    color: #060810;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ai-target-box.ai-human .ai-target-tag {
    background: #ff3366;
    color: #fff;
}

/* Interactive Night Vision Toggle Bar */
.nv-toggle-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 17, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px 12px;
    margin-top: 16px;
    pointer-events: auto;
}

.nv-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nv-btn.active {
    background: #00aeef;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 174, 239, 0.4);
}

/* 8. Conversion Package Card (Stage 4) */
.conversion-card {
    background: rgba(11, 17, 33, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.conversion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7a00, #00f3ff, #10b981);
}

.price-row-scrolly {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.price-scrolly-curr {
    font-size: 38px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: -0.02em;
}

.price-scrolly-orig {
    font-size: 18px;
    color: #64748b;
    text-decoration: line-through;
}

.price-scrolly-save {
    background: rgba(255, 122, 0, 0.15);
    color: #ff7a00;
    border: 1px solid rgba(255, 122, 0, 0.3);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.package-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
}

.package-checklist li ion-icon {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

/* 9. Scroll Progress Indicator (Right Edge) */
.scroll-progress-rail {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 30;
}

.rail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.rail-dot.active {
    background: #00f3ff;
    transform: scale(1.6);
    box-shadow: 0 0 10px #00f3ff;
}

/* 10. Mobile First Responsiveness (max-width: 900px) */
@media (max-width: 900px) {
    .camera-rig-container {
        width: 240px;
        height: 240px;
        top: 25%;
    }

    .scrolly-text-card {
        top: 48%;
        transform: translateY(0) !important;
        left: 4% !important;
        right: 4% !important;
        max-width: 92%;
        padding: 10px 14px;
        text-align: center;
    }

    .scrolly-micro-badges {
        justify-content: center;
        margin-bottom: 14px;
        gap: 6px;
    }

    .micro-chip {
        padding: 4px 8px;
        font-size: 11px;
    }

    .scrolly-cta-group {
        justify-content: center;
        gap: 8px;
    }

    .btn-scrolly-primary, .btn-scrolly-wa, .btn-scrolly-ghost {
        padding: 10px 16px;
        font-size: 13px;
    }

    .scrolly-headline {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 6px;
    }

    .scrolly-subhead {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.45;
    }

    .hud-callout.hud-sim {
        top: 12%;
        left: 4%;
        padding: 6px 10px;
    }

    .hud-callout.hud-weather {
        top: 20%;
        right: 4%;
        left: auto;
        bottom: auto;
        padding: 6px 10px;
    }

    .ai-target-box.ai-cattle {
        bottom: 40%;
        right: 6%;
        width: 110px;
        height: 70px;
    }

    .ai-target-box.ai-human {
        top: 18%;
        right: 18%;
        width: 60px;
        height: 90px;
    }

    .scroll-progress-rail {
        display: none;
    }

    .text-stage-4 {
        top: 46%;
    }

    .price-scrolly-curr {
        font-size: 26px;
    }

    .conversion-card {
        padding: 14px 16px;
    }

    .package-checklist {
        margin: 10px 0 14px;
        gap: 6px;
    }

    .package-checklist li {
        font-size: 11.5px;
    }
}

/* ==========================================================================
   POST-SCROLLYTELLING SECTIONS (Apple Tech Specs, Unboxing & FAQs)
   ========================================================================== */

.scrolly-post-content {
    max-width: 1280px;
    margin: 80px auto 120px;
    padding: 0 24px;
    position: relative;
    z-index: 20;
}

.scrolly-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.scrolly-section-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.scrolly-section-header p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Tech Specs Grid */
.specs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.spec-glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 26px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);
}

.spec-glass-card .spec-icon {
    font-size: 32px;
    color: #00f3ff;
    margin-bottom: 14px;
    display: inline-block;
}

.spec-glass-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.spec-glass-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* Unboxing Grid */
.unboxing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 80px;
}

.unboxing-item {
    background: rgba(11, 17, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    transition: transform 0.25s ease;
}

.unboxing-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 0, 0.4);
}

.unboxing-icon {
    font-size: 36px;
    color: #ff7a00;
    margin-bottom: 12px;
}

.unboxing-item strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.unboxing-item span {
    font-size: 12px;
    color: #64748b;
}

/* Customer Reviews Showcase */
.reviews-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.review-glass-bubble {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
}

.review-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-meta strong {
    font-size: 15px;
    color: #fff;
    display: block;
}

.reviewer-meta span {
    font-size: 12px;
    color: #00f3ff;
}

.review-stars {
    color: #ffb703;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.review-quote {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Accordion */
.faq-stack {
    max-width: 860px;
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-entry {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 26px;
    transition: border-color 0.2s;
}

.faq-entry:hover {
    border-color: rgba(0, 243, 255, 0.25);
}

.faq-entry h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-entry h4 ion-icon {
    color: #00f3ff;
    font-size: 20px;
    flex-shrink: 0;
}

.faq-entry p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    padding-left: 30px;
}

