/* ===========================
   Presentation Mode - Full Screen Snap Scroll
   =========================== */

/* Hide default scrollbar in presentation mode */
.presentation-mode {
    overflow: hidden;
    height: 100vh;
}

.presentation-mode .dark-navbar,
.presentation-mode .dark-footer {
    display: none !important;
}

/* ===========================
   Slides Container
   =========================== */
.slides-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* ===========================
   Individual Slide
   =========================== */
.slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===========================
   Slide Background
   =========================== */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.7) 0%,
        rgba(10, 10, 15, 0.5) 50%,
        rgba(10, 10, 15, 0.8) 100%
    );
    z-index: 1;
}

/* ===========================
   Hero Slide
   =========================== */
.slide-hero {
    background: var(--bg-primary);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-arrow::before {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--accent-start);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 28px; opacity: 0.3; }
}

@keyframes fadeInUp {
    to { opacity: 0.6; transform: translateX(-50%) translateY(0); }
}

/* ===========================
   Feature Slide
   =========================== */
.slide-feature {
    background: var(--bg-primary);
}

.feature-slide-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    direction: rtl;
}

/* ===========================
   Text Panel (Left - White)
   =========================== */
.feature-slide-text {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    padding: 4rem 3rem;
    background: #ffffff;
    opacity: 0;
    transform: translateX(-80px);
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.feature-slide-text::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.text-panel-inner {
    width: 100%;
}

.feature-number {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.9;
    font-weight: 400;
}

.feature-divider {
    width: 50px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 1.2rem 0;
}

/* ===========================
   Image Panel (Right)
   =========================== */
.feature-slide-image {
    flex: 0 0 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #0d0d14;
    opacity: 0;
    transform: translateX(80px);
    position: relative;
    overflow: hidden;
}

.feature-slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 820px;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.image-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(102, 126, 234, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Tajawal', sans-serif;
}

.image-wrapper:hover .image-zoom-hint {
    opacity: 1;
}

/* ===========================
   Lightbox (Image Zoom)
   =========================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.2);
    animation: zoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Glass Panel - kept for hero compatibility */
.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* ===========================
   TOC Slide - فهرس الميزات
   =========================== */
.slide-toc {
    background: var(--bg-primary);
    overflow: hidden;
}

.toc-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3rem 5%;
    overflow-y: auto;
    scrollbar-width: none;
}

.toc-content::-webkit-scrollbar { display: none; }

.toc-header {
    flex-shrink: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.toc-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 60%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.toc-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto;
}

/* TOC List Style */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.toc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateX(30px);
}

.toc-row:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateX(0) !important;
}

.toc-row-num {
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    min-width: 45px;
    text-align: center;
}

.toc-row-info {
    flex: 1;
    min-width: 0;
}

.toc-row-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.toc-row-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.toc-row-meta {
    flex-shrink: 0;
}

.toc-badge {
    font-size: 0.75rem;
    background: rgba(102, 126, 234, 0.12);
    color: var(--accent-start);
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-weight: 600;
}

.toc-row-btn {
    flex-shrink: 0;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.4);
    color: var(--accent-start);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.toc-row-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

/* ===========================
   Feature Tag + Points
   =========================== */
.feature-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.3px;
}

.feature-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-points li {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.7;
    padding: 0.4rem 0;
    padding-right: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.feature-points li:last-child {
    border-bottom: none;
}

.feature-points li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

/* ===========================
   Feature Hub Slide
   =========================== */
.slide-feature-hub {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hub-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(2px);
}

.hub-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 5%;
}

.hub-number {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hub-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hub-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 0 1.5rem;
}

.hub-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hub-meta {
    font-size: 0.85rem;
    color: var(--accent-start);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hub-start-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hub-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ===========================
   Progress Bar & Navigation
   =========================== */
.feature-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.progress-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-start);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-total {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feature-nav-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.nav-prev {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.15);
    color: #555;
}

.nav-prev:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.25);
}

.nav-next {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.nav-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-finish {
    background: linear-gradient(135deg, #10b981, #059669);
}

.nav-finish:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===========================
   End Slide
   =========================== */
.slide-end {
    background: var(--bg-primary);
}

.end-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(40px);
}

.end-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.end-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===========================
   Slide Navigation Dots
   =========================== */
.slide-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.3);
}

.slide-dot.active {
    background: var(--accent-start);
    box-shadow: 0 0 10px var(--glow);
    transform: scale(1.3);
}

/* ===========================
   Hidden Login Button
   =========================== */
.hidden-login {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0.15;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    backdrop-filter: blur(10px);
}

.hidden-login:hover {
    opacity: 1;
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 20px var(--glow);
    transform: translateX(-50%) translateY(-2px);
}

/* ===========================
   Ripple Canvas
   =========================== */
#ripple-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* ===========================
   Empty Presentation
   =========================== */
.empty-presentation {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.empty-presentation i {
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: block;
}

.empty-presentation h2 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-presentation p {
    color: var(--text-muted);
    font-weight: 300;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 992px) {
    .feature-slide-content {
        flex-direction: column;
    }

    .feature-slide-text {
        flex: 0 0 auto;
        width: 100%;
        padding: 2rem;
        transform: translateY(-50px);
        min-height: 40%;
    }

    .feature-slide-image {
        flex: 1;
        width: 100%;
        padding: 1.5rem;
        transform: translateY(50px);
    }

    .image-wrapper img {
        max-height: 45vh;
    }

    .feature-number {
        font-size: 3rem;
    }

    .slide-nav {
        left: 12px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .feature-slide-text {
        padding: 1.5rem;
    }

    .feature-slide-image {
        padding: 1rem;
    }

    .hidden-login {
        bottom: 12px;
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}
