/* Premium 3D animated presentation-style detail page style sheet */

:root {
    --bg-color: #04030d;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-cyan: #00f0ff;
    --accent-purple: #9d4edd;
    --accent-blue: #3f37c9;
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4);
    --glow-purple: 0 0 20px rgba(157, 78, 221, 0.4);
    --glass-bg: rgba(14, 12, 34, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body.light-theme {
    --bg-color: #09081a; /* Keep presentation page dark for cinematic premium effect even in light mode */
}

/* Fullscreen Presentation Layout */
.presentation-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    overflow: hidden;
    z-index: 100;
}

/* Background Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Cyber Grid Background */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: 2;
    pointer-events: none;
}

/* Fullscreen Slides */
.slide-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.8s;
    z-index: 5;
}

.slide-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 3D Mockup Container (Fixed/Sticky Area Left) */
.mockup-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 55vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    perspective: 1200px;
    pointer-events: none; /* Let clicks pass to control slide cards or scroll */
}

/* SVG Cyber HUD */
.hud-overlay {
    position: absolute;
    width: 480px;
    height: 480px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.7;
    animation: slow-rotate 25s linear infinite;
}

.hud-ring {
    fill: none;
    stroke-width: 1;
    transform-origin: center;
}

.hud-ring-cyan {
    stroke: var(--accent-cyan);
    stroke-dasharray: 200 40;
}

.hud-ring-purple {
    stroke: var(--accent-purple);
    stroke-dasharray: 80 120;
    animation: reverse-rotate 15s linear infinite;
    transform-origin: center;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes reverse-rotate {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* 3D Device Container */
.device-container-3d {
    width: 280px;
    height: 560px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
}

/* Floating animation for phone */
.device-float {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floating-phone 6s ease-in-out infinite alternate;
}

@keyframes floating-phone {
    0% { transform: translateY(0px) rotateX(0deg); }
    100% { transform: translateY(-15px) rotateX(2deg); }
}

/* Face Cards */
.device-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0;
    transform-style: preserve-3d;
    background: transparent !important;
    box-shadow: none !important;
}

/* Device Front Face */
.device-face-front {
    background: transparent !important;
    border: none !important;
    z-index: 2;
}

/* Nested Screen Wallpaper inside front */
.device-screen-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: visible;
    background: transparent !important;
}

.device-screen-wallpaper::after {
    display: none;
}

.device-screen-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* DO NOT CROP */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

/* Device Back Face */
.device-face-back {
    background: transparent !important;
    border: none !important;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.device-face-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

/* Side Profile Mockup using pseudo classes */
.device-side-frame {
    display: none !important;
}

.device-side-image-view {
    display: none !important;
}

.device-side-image-view img {
    height: 100%;
    object-fit: contain;
}

/* HUD hotspots for Cam annotation */
.hud-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.4);
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.hud-marker.active {
    opacity: 1;
    transform: scale(1);
    animation: marker-pulse 1.5s infinite alternate;
}

@keyframes marker-pulse {
    0% { box-shadow: 0 0 5px var(--accent-cyan); }
    100% { box-shadow: 0 0 20px var(--accent-cyan); }
}

/* Floating Glass Spec Cards (Right Split) */
.specs-panel-right {
    grid-column: 2;
    z-index: 20;
    max-width: 520px;
}

.glass-card-presentation {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; /* delay slightly after slide activates */
}

.slide-section.active .glass-card-presentation {
    transform: translateX(0);
    opacity: 1;
}

.glass-card-presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.spec-category-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 12px;
}

.spec-title-presentation {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.spec-desc-presentation {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Specs Details list */
.specs-bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
}

.specs-bullet-item {
    display: grid;
    grid-template-columns: 40px 180px 20px 1fr;
    align-items: center;
    font-size: 0.95rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-bullet-item:last-child {
    border-bottom: none;
}

.specs-bullet-icon {
    color: var(--accent-cyan);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specs-bullet-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.specs-bullet-colon {
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
}

.specs-bullet-value {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-break: break-word;
}

@media (max-width: 768px) {
    .specs-bullet-item {
        grid-template-columns: 35px 125px 15px 1fr;
        font-size: 0.85rem;
        padding: 10px 0;
    }
    .specs-bullet-label, .specs-bullet-colon, .specs-bullet-value {
        font-size: 0.85rem;
    }
}

/* Sidebar progress bullet indicator */
.presentation-progress-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-dot-item {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-dot-btn {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.progress-dot-btn:hover,
.progress-dot-item.active .progress-dot-btn {
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: scale(1.6);
}

/* Slide Label Tooltip on Hover */
.progress-dot-tooltip {
    position: absolute;
    right: 24px;
    background: rgba(10, 8, 24, 0.85);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.progress-dot-item:hover .progress-dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Top bar indicators */
.presentation-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.back-btn-keynote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.back-btn-keynote:hover {
    background: var(--gradient-glow);
    border-color: transparent;
}

/* Down Arrow Scroll Indicator */
.presentation-scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    opacity: 0.6;
}

.scroll-arrow-anim {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: bounce-arrow 1.5s infinite alternate;
}

@keyframes bounce-arrow {
    0% { transform: translateY(0) rotate(45deg); }
    100% { transform: translateY(8px) rotate(45deg); }
}

/* Repeater listings customized for pros/cons in slides */
.pros-cons-grid-presentation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.pro-item-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #34d399; /* Green */
    font-weight: 500;
    font-size: 1.05rem;
}

.con-item-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f87171; /* Red */
    font-weight: 500;
    font-size: 1.05rem;
}

/* Presentation HUD Bottom Control Bar */
.presentation-hud-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-radius: 40px;
    background: rgba(10, 8, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
    transition: all 0.3s ease;
}

.presentation-hud-controls:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.3);
}

.hud-ctrl-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.hud-ctrl-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    transform: scale(1.08);
}

.hud-slide-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    padding: 0 8px;
    user-select: none;
}

.hud-slide-counter span {
    color: var(--accent-cyan);
}

/* Number sweep animation support */
.sweep-number {
    display: inline-block;
    transition: all 0.5s ease-out;
}

/* =========================================================================
   KEYNOTE PRESENTATION DESIGN TEMPLATES (THEMES)
   ========================================================================= */

/* Template 1: Cyber HUD (Default Cyan & Purple) - Inherits :root variables */

/* Template 2: Midnight Minimal (Apple-style Luxury Slate & Gold) */
.theme-midnight-minimal {
    --bg-color: #0b0c10;
    --accent-cyan: #d4af37; /* Luxury Metallic Gold */
    --accent-purple: #c5a059; /* Light Gold */
    --accent-blue: #1f2833; /* Slate Blue */
    --glow-cyan: 0 0 15px rgba(212, 175, 55, 0.45);
    --glow-purple: 0 0 15px rgba(197, 160, 89, 0.3);
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(212, 175, 55, 0.15);
}

.theme-midnight-minimal .cyber-grid {
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
}

.theme-midnight-minimal .hud-ring-cyan {
    stroke: #d4af37;
}

.theme-midnight-minimal .hud-ring-purple {
    stroke: #8a7355;
}

/* Template 3: Vapor Synth (80s Neon Hot Pink & Lime Green) */
.theme-vapor-synth {
    --bg-color: #1a0826; /* Deep Cosmic Violet */
    --accent-cyan: #ff007f; /* Neon Hot Pink */
    --accent-purple: #39ff14; /* Neon Lime Green */
    --accent-blue: #8a2be2; /* Neon Purple */
    --glow-cyan: 0 0 20px rgba(255, 0, 127, 0.5);
    --glow-purple: 0 0 20px rgba(57, 255, 20, 0.5);
    --glass-bg: rgba(36, 12, 54, 0.5);
    --glass-border: rgba(255, 0, 127, 0.25);
}

.theme-vapor-synth .cyber-grid {
    background-image: 
        linear-gradient(rgba(255, 0, 127, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 127, 0.03) 1px, transparent 1px);
}

.theme-vapor-synth .hud-ring-cyan {
    stroke: #ff007f;
}

.theme-vapor-synth .hud-ring-purple {
    stroke: #39ff14;
}

/* Template 4: Aurora Glass (Inverted Glacial Aurora Teal & Pink) */
.theme-aurora-glass {
    --bg-color: #031b24; /* Glacial Teal Navy */
    --accent-cyan: #00ffcc; /* Polar Cyan/Green */
    --accent-purple: #ff88c2; /* Aurora Pink */
    --accent-blue: #008080;
    --glow-cyan: 0 0 20px rgba(0, 255, 204, 0.45);
    --glow-purple: 0 0 20px rgba(255, 136, 194, 0.35);
    --glass-bg: rgba(6, 40, 50, 0.55);
    --glass-border: rgba(0, 255, 204, 0.2);
}

/* Dotted grid background override */
.theme-aurora-glass .cyber-grid {
    background-image: radial-gradient(rgba(0, 255, 204, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.theme-aurora-glass .hud-ring-cyan {
    stroke: #00ffcc;
}

.theme-aurora-glass .hud-ring-purple {
    stroke: #ff88c2;
}

/* INVERTED STRUCTURAL LAYOUT */
.theme-aurora-glass .mockup-viewport {
    left: auto;
    right: 0;
    width: 50vw;
}

.theme-aurora-glass .slide-section {
    grid-template-columns: 0.95fr 1.05fr; /* Swap columns layout */
    padding: 0 8% 0 10%;
}

.theme-aurora-glass .specs-panel-right {
    grid-column: 1; /* Move details card to left column */
}

.theme-aurora-glass .glass-card-presentation {
    transform: translateX(-40px); /* Transition slide in from left side */
}

.theme-aurora-glass .slide-section.active .glass-card-presentation {
    transform: translateX(0);
}

.theme-aurora-glass .presentation-progress-nav {
    right: auto;
    left: 40px; /* progress dots on the left edge */
}

.theme-aurora-glass .progress-dot-tooltip {
    right: auto;
    left: 24px;
    transform: translateX(-10px);
}

.theme-aurora-glass .progress-dot-item:hover .progress-dot-tooltip {
    transform: translateX(0);
}

/* =========================================================================
   STATIC SCROLLABLE SPECIFICATIONS SHEET LAYOUT
   ========================================================================= */

.static-specs-section {
    background-color: #06050e; /* Solid background for the specifications flow */
    padding: 80px 0;
    position: relative;
    z-index: 110;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.static-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.static-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.static-accent-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.static-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.static-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grids */
.static-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.static-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .static-grid-2, .static-grid-3 {
        grid-template-columns: 1fr;
    }
    .static-specs-section {
        padding: 50px 0;
    }
    .static-main-title {
        font-size: 2rem;
    }
}

/* Frosted Glass Static Cards */
.static-glass-card {
    background: rgba(18, 16, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.static-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
}

.static-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.static-card-icon {
    font-size: 1.3rem;
}

.static-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Spec Rows inside card */
.static-specs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.static-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
    padding-bottom: 8px;
}

.static-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.static-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.static-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* FAQ accordion styling */
.static-faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.static-faq-item {
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    background: rgba(255,255,255,0.01);
    overflow: hidden;
}

.static-faq-query {
    padding: 14px 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.static-faq-query:hover {
    background: rgba(255,255,255,0.03);
}

.static-faq-answer {
    padding: 14px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0, 0, 0, 0.2);
}

.static-pro-con-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.gallery-card-hover {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}
