/* Reset and Base Styles */

#loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.92);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

#loading-progress .progress-bar {
    width: 220px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 18px;
}

#loading-progress .progress-fill {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 5px;
    animation: loading-bar 1.2s infinite alternate;
}

#loading-progress .loading-text {
    color: #2d3a4b;
    font-size: 1.1em;
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes loading-bar {
    from { width: 30%; }
    to { width: 95%; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.beta-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.btn-join {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-join:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-container {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 32px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: #ffffff;
    transition: text-shadow 0.5s ease;
}

.typewriter-container {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.second-line {
    margin-top: 10px;
}

.typewriter-text,
.typewriter-text-2 {
    display: inline-block;
    white-space: nowrap;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.typewriter-text {
    border-right: 3px solid #8b5cf6;
    padding-right: 5px;
}

.cursor {
    display: inline-block;
    background-color: #8b5cf6;
    width: 3px;
    height: 30px;
    animation: blink 1s infinite;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.typewriter-description {
    opacity: 0;
    animation: fadeInUp 1s ease-out 4.5s forwards;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.btn-primary {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* 3D Scene Container */
.scene-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scene-3d-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

/* Hide 3D scene on mobile devices */
@media (max-width: 768px) {
    .scene-3d-container {
        display: none;
    }
}

/* Reduce 3D scene opacity on tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .scene-3d-container {
        opacity: 0.6;
    }
}

/* 3D Scene Loading State */
.scene-3d-container.loading {
    opacity: 0;
}

.scene-3d-container.loaded {
    opacity: 0.8;
}

/* 3D Scene Hover Effect */
.scene-3d-container:hover {
    opacity: 1;
}

/* Ensure 3D scene doesn't interfere with page content */
.scene-3d-container * {
    pointer-events: auto;
}

/* 3D Model Section - Legacy styles kept for compatibility */
.model-3d-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #0a0a0a, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.model-container {
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

#model-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.model-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 10;
}

.model-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.model-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* App Preview Section */
.app-preview-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-stats {
    text-align: center;
    padding: 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-stats:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.stats-number {
    font-size: 42px;
    font-weight: 800;
    color: #8b5cf6;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.stats-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.preview-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.6;
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.feature-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* App Preview Section */
.app-preview-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-stats {
    text-align: center;
    padding: 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-stats:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.stats-number {
    font-size: 42px;
    font-weight: 800;
    color: #8b5cf6;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.stats-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Image Slider Styles */
.preview-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 550px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.3);
}

/* Auto-slide animation */
@keyframes slideProgress {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.dot.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: slideProgress 4s linear;
    transform-origin: left;
}

/* Touch/Swipe indicators */
.slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.02) 50%, transparent 51%);
    pointer-events: none;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        max-width: 350px;
        border-radius: 16px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        max-width: 280px;
        border-radius: 12px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .prev-btn {
        left: 8px;
    }
    
    .next-btn {
        right: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Apps Section */
.apps-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.app-card.featured {
    border-color: #8b5cf6;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden; /* Required for the ribbon */
}

.badge-ribbon {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.badge-ribbon span {
    position: absolute;
    display: block;
    width: 150%;
    padding: 8px 0;
    background: #8b5cf6;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transform: rotate(45deg) translateY(-50px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.app-info h3 .new-tag {
    display: inline-block;
    background: #a78bfa;
    color: #0a0a0a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

.limited-offer {
    color: #facc15; /* A bright yellow color */
    font-weight: 600;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.app-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.app-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.app-version {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.app-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.app-features {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-features span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.btn-download {
    width: 100%;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.btn-download.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    padding: 8px 14px;
}

.btn-download.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-store {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.blog-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .container {
        padding: 0 16px;
    }

    .preview-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .preview-text h2 {
        font-size: 28px;
    }

    .preview-text p {
        font-size: 16px;
    }

    .feature-item {
        text-align: right;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {

    .hero-badge,
    .hero-actions {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
    }

    .hero-badge {
        animation-delay: 0.1s;
    }

    .hero-actions {
        animation-delay: 5s;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter Animation */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #8b5cf6;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Glowing text effect */
@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.6);
    }
}

/* Shimmer effect for description */
@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Wave animation for background */
@keyframes wave {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Floating animation for particles */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(120deg);
    }

    66% {
        transform: translateY(5px) rotate(240deg);
    }
}/* B
log Page Styles */
.blog-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 0, 0, 0.8));
    text-align: center;
}

.blog-header-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.blog-header-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.blog-articles {
    padding: 80px 0;
}

.blog-grid-full {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-card-full {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card-full:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-full:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-category {
    font-size: 12px;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.blog-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-content h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-content h2 a:hover {
    color: #8b5cf6;
}

.blog-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.read-more {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #a78bfa;
}

/* Article Page Styles */
.article-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(0, 0, 0, 0.9));
}

.article-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: #8b5cf6;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-date,
.article-category,
.article-read-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.article-category {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.article-content {
    padding: 60px 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.content-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 16px;
}

.content-text h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 8px;
}

.content-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 32px 0 16px 0;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text ul,
.content-text ol {
    margin: 20px 0;
    padding-right: 20px;
}

.content-text li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.article-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-tags h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-share {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-share h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.copy {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
}

.related-articles h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 16px;
}

.related-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-content h3 a:hover {
    color: #8b5cf6;
}

.related-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Navigation Active State */
.nav-link.active {
    color: #8b5cf6;
    font-weight: 500;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 32px;
    }
    
    .blog-card-full {
        grid-template-columns: 1fr;
    }
    
    .blog-image img {
        height: 200px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .content-text h2 {
        font-size: 24px;
    }
    
    .content-text h3 {
        font-size: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
}/* Page He
ader Styles */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 0, 0, 0.8));
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-btn {
    display: inline-block;
    background: #8b5cf6;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.download-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.download-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.download-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-download-direct {
    background: #8b5cf6;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
}

.btn-download-direct:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Story Section */
.story-section {
    padding: 80px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.story-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.mission-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.mission-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mission-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.mission-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.team-member {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.member-avatar {
    font-size: 64px;
    margin-bottom: 16px;
}

.team-member h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.team-member p {
    color: #8b5cf6;
    font-size: 14px;
    margin-bottom: 12px;
}

.member-bio {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.stats-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* Terms Content */
.terms-content {
    padding: 80px 0;
}

.terms-text {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.terms-text h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 8px;
}

.terms-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 24px 0 12px 0;
}

.terms-text p {
    margin-bottom: 16px;
}

.terms-text ul {
    margin: 16px 0;
    padding-right: 20px;
}

.terms-text li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.terms-text strong {
    color: #8b5cf6;
}

.terms-footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.terms-footer p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-image img {
        height: 250px;
    }
    
    .faq-grid,
    .contact-grid,
    .mission-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        align-items: center;
    }
    
    .terms-text {
        padding: 0 16px;
    }
    
    .terms-text h2 {
        font-size: 24px;
    }
    
    .terms-text h3 {
        font-size: 18px;
    }
}/
* Loading Progress Bar Styles */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-progress.show {
    opacity: 1;
    visibility: visible;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Hide loading on fast connections */
@media (prefers-reduced-motion: reduce) {
    .loading-progress {
        animation: none;
    }
    
    .progress-fill::before {
        animation: none;
    }
    
    .loading-text {
        animation: none;
    }
}/* Blog V
iew All Button */
.blog-view-all {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-view-all:hover::before {
    left: 100%;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-view-all svg {
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(-4px);
}

/* Enhanced Blog Cards for Index Page */
.blog-section .blog-card h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.blog-section .blog-card h3 a:hover {
    color: #8b5cf6;
}

.blog-section .blog-meta span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.blog-section .blog-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-top: 12px;
}/* 
Blog View All Button Styles */
.blog-view-all {
    text-align: center;
    margin-top: 48px;
}

.btn-view-all-articles {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-view-all-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-view-all-articles:hover::before {
    left: 100%;
}

.btn-view-all-articles:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-view-all-articles:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-view-all-articles:hover .btn-icon {
    transform: translateX(-4px);
}

.btn-icon svg {
    transition: all 0.3s ease;
}

.btn-view-all-articles:hover .btn-icon svg {
    stroke-width: 2.5;
}

/* Responsive design for the button */
@media (max-width: 768px) {
    .btn-view-all-articles {
        padding: 14px 24px;
        font-size: 15px;
        gap: 10px;
    }
    
    .btn-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .btn-view-all-articles {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .btn-icon svg {
        width: 14px;
        height: 14px;
    }
}/* C
inematic Logo Reveal Styles */
.cinematic-logo-container {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(10, 10, 10, 0.8));
    border-radius: 20px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.cinematic-logo-container.reveal {
    opacity: 1;
    transform: translateY(0);
}

.logo-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 1.5s ease;
    z-index: 1;
}

.cinematic-logo-container.reveal .logo-spotlight {
    transform: translate(-50%, -50%) scale(2);
}

.cinematic-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    z-index: 2;
}

.app-logo-cinematic {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0) rotate(180deg);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: brightness(0.7);
}

.cinematic-logo-container.reveal .app-logo-cinematic {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    opacity: 0;
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: -1;
}

.cinematic-logo-container.reveal .logo-glow {
    opacity: 1;
    animation-delay: 1s;
}

.cinematic-text {
    position: relative;
    z-index: 2;
}

.cinematic-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    transition-delay: 0.5s;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cinematic-logo-container.reveal .cinematic-title {
    opacity: 1;
    transform: translateY(0);
}

.cinematic-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.8s;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.cinematic-logo-container.reveal .cinematic-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Styles */
.preview-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS المكرر تم حذفه - يتم استخدام CSS السلايدر الأساسي أعلاه */

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cinematic-logo-container {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .app-logo-cinematic {
        width: 100px;
        height: 100px;
    }
    
    .cinematic-title {
        font-size: 28px;
    }
    
    .cinematic-subtitle {
        font-size: 14px;
    }
    
    .slider-container {
        max-width: 300px;
        height: 500px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}/
* App Preview Slider Section */
.app-preview-slider-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.app-preview-slider-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.app-preview-slider-section .section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.app-preview-slider-section .section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* Enhanced Slider Animations */
.slide {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.slide.slide-in-right {
    animation-name: slideInRight;
}

.slide.slide-in-left {
    animation-name: slideInLeft;
}

.slide.slide-out-right {
    animation-name: slideOutRight;
}

.slide.slide-out-left {
    animation-name: slideOutLeft;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Loading Animation for Slides */
.slide img {
    transition: all 0.3s ease;
}

/* تم إزالة blur filter لتحسين وضوح الصور */

/* Slider Controls Enhancement */
.slider-btn svg {
    transition: all 0.3s ease;
}

.slider-btn:hover svg {
    transform: scale(1.2);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Dots Animation */
.dot {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dot:hover {
    transform: scale(1.3);
}

.dot.active {
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Progress Bar for Auto-slide */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 0%;
    transition: width 4s linear;
    z-index: 5;
}

.slider-progress.active {
    width: 100%;
}

/* Responsive Enhancements */
@media (max-width: 480px) {
    .app-preview-slider-section {
        padding: 60px 0;
    }
    
    .app-preview-slider-section .section-header {
        margin-bottom: 40px;
    }
    
    .app-preview-slider-section .section-header h2 {
        font-size: 24px;
    }
    
    .slider-container {
        max-width: 280px;
        height: 450px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}/* Seq
uential Animation Styles */
.cinematic-section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.cinematic-section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.cinematic-section.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: -1;
    transition: all 0.6s ease;
}

.app-preview-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.app-preview-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animation sequence timing */
.cinematic-logo-container {
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

.cinematic-logo-container.complete {
    animation-name: fadeOutUp;
    animation-duration: 1s;
    animation-delay: 2s;
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
}/* EPIC CINE
MATIC ANIMATION STYLES */
.cinematic-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: all 1s ease;
}

.cinematic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: epicBackgroundShift 8s ease-in-out infinite;
    pointer-events: none;
}

.cinematic-section.reveal {
    opacity: 1;
}

.cinematic-section.hide {
    opacity: 0;
    transform: scale(1.2);
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: -1;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* SMOOTH LOGO CONTAINER */
.cinematic-logo-container {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background: transparent;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1.5s ease-out;
}

.cinematic-section.reveal .cinematic-logo-container {
    transform: translateY(0);
    opacity: 1;
}

/* CLEAN SPOTLIGHT EFFECT */
.logo-spotlight {
    display: none;
}

/* SMOOTH LOGO STYLING */
.cinematic-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    z-index: 10;
}

.app-logo-cinematic {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 1.2s ease-out;
    opacity: 0;
}

.cinematic-section.reveal .app-logo-cinematic {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* CLEAN GLOW EFFECT */
.logo-glow {
    display: none;
}

/* SMOOTH TEXT ANIMATIONS */
.cinematic-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
    transition-delay: 0.5s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cinematic-section.reveal .cinematic-title {
    opacity: 1;
    transform: translateY(0);
}

.cinematic-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
    transition-delay: 0.8s;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.cinematic-section.reveal .cinematic-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* CLEAN EFFECTS */
.cinematic-logo-container::before,
.cinematic-logo-container::after {
    display: none;
}

/* EPIC KEYFRAME ANIMATIONS */
@keyframes epicBackgroundShift {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    25% { transform: translateX(-20px) translateY(-10px) scale(1.02); }
    50% { transform: translateX(20px) translateY(10px) scale(0.98); }
    75% { transform: translateX(-10px) translateY(20px) scale(1.01); }
}

@keyframes epicSpotlightPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    25% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }
    75% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes epicInnerSpotlight {
    0% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    100% { opacity: 0.6; transform: scale(1.1) rotate(180deg); }
}

@keyframes epicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes epicLogoFloat {
    0%, 100% { 
        transform: scale(1) rotateY(0deg) rotateX(0deg) translateY(0px) rotateZ(0deg);
        box-shadow: 
            0 0 80px rgba(139, 92, 246, 0.8),
            0 0 160px rgba(139, 92, 246, 0.4),
            0 30px 100px rgba(0, 0, 0, 0.9);
    }
    25% { 
        transform: scale(1.08) rotateY(10deg) rotateX(5deg) translateY(-15px) rotateZ(2deg);
        box-shadow: 
            0 0 100px rgba(139, 92, 246, 1),
            0 0 200px rgba(139, 92, 246, 0.6),
            0 40px 120px rgba(0, 0, 0, 0.7);
    }
    50% { 
        transform: scale(1.12) rotateY(-5deg) rotateX(-3deg) translateY(-25px) rotateZ(-1deg);
        box-shadow: 
            0 0 120px rgba(139, 92, 246, 1.2),
            0 0 240px rgba(139, 92, 246, 0.8),
            0 50px 140px rgba(0, 0, 0, 0.5);
    }
    75% { 
        transform: scale(1.05) rotateY(8deg) rotateX(4deg) translateY(-10px) rotateZ(1deg);
        box-shadow: 
            0 0 90px rgba(139, 92, 246, 0.9),
            0 0 180px rgba(139, 92, 246, 0.5),
            0 35px 110px rgba(0, 0, 0, 0.8);
    }
}

@keyframes epicGlowPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 1;
        transform: scale(1.15) rotate(120deg);
    }
    66% { 
        opacity: 0.8;
        transform: scale(1.25) rotate(240deg);
    }
}

@keyframes epicOuterGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes epicTextShimmer {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

@keyframes epicParticles {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    100% { transform: translateY(-200px) rotate(720deg) scale(0.5); }
}

@keyframes epicLightning {
    0%, 90%, 100% { opacity: 0; }
    5%, 15% { opacity: 0.3; }
    10% { opacity: 1; }
}

/* SIMPLE EXIT ANIMATION */
.cinematic-logo-container.complete {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1s ease-in;
}

/* APP PREVIEW SECTION */
.app-preview-section {
    opacity: 0;
    transform: translateY(150px) scale(0.8);
    transition: all 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.app-preview-section.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* RESPONSIVE EPIC ANIMATIONS */
@media (max-width: 768px) {
    .cinematic-section {
        min-height: 80vh;
    }
    
    .app-logo-cinematic {
        width: 140px;
        height: 140px;
    }
    
    .cinematic-title {
        font-size: 42px;
    }
    
    .logo-spotlight {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .app-logo-cinematic {
        width: 120px;
        height: 120px;
    }
    
    .cinematic-title {
        font-size: 36px;
    }
    
    .cinematic-subtitle {
        font-size: 16px;
    }
}/* S
ide Navigation Styles */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 20px 15px;
    transition: all 0.3s ease;
}

.side-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.side-nav-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.nav-item.active {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8b5cf6;
    border-radius: 0 2px 2px 0;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover .nav-dot {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.nav-item.active .nav-dot {
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transform: scale(1.3);
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item.active .nav-dot::after {
    opacity: 1;
}

.nav-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.nav-item.active .nav-label {
    color: #ffffff;
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Snap Scrolling - Desktop Only */
@media (min-width: 769px) {
    html {
        scroll-snap-type: y mandatory;
    }

    .hero,
    .cinematic-section,
    .app-preview-section,
    .apps-section,
    .blog-section {
        scroll-snap-align: start;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile - Normal scrolling */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    .hero,
    .cinematic-section,
    .app-preview-section,
    .apps-section,
    .blog-section {
        scroll-snap-align: none;
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 120px 16px 80px;
    }
}

/* Progress indicator for active section */
.nav-item.active .nav-dot {
    animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulseActive {
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .side-nav {
        right: 10px;
        padding: 12px 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .side-nav-items {
        gap: 12px;
    }
    
    .nav-item {
        padding: 8px 10px;
        border-radius: 12px;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
    }
    
    .nav-label {
        font-size: 11px;
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Show labels always on mobile */
    .nav-item .nav-label {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Hide side nav during loading */
.loading-progress.show ~ .side-nav {
    opacity: 0;
    pointer-events: none;
}

/* Section transition effects */
.section-transition {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-transition.visible {
    opacity: 1;
    transform: translateY(0);
}
/
* ===== عداد متحرك احترافي ===== */
.stats-number {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* تأثيرات العداد المتحرك */
/* .stats-number.counting {
    animation: counting-pulse 0.1s ease-in-out infinite alternate;
    color: #a855f7 !important;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.8) !important;
    transform: scale(1.05);
} */

.stats-number.completed {
    animation: completion-bounce 0.6s ease-out;
}

/* تأثير النبض أثناء العد */
/* @keyframes counting-pulse {
    0% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    }
    100% {
        text-shadow: 0 0 35px rgba(168, 85, 247, 1);
    }
} */

/* تأثير الارتداد عند الانتهاء */
@keyframes completion-bounce {
    0% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 40px rgba(139, 92, 246, 1);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
}



/* .stats-number.counting::before {
    left: 100%;
} */

/* تأثير النص المصاحب */
.stats-text {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.stats-text.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
}

/* تأثيرات إضافية للحاوية */
.user-stats {
    transition: all 0.3s ease;
}

.user-stats:hover .stats-number {
    transform: scale(1.02);
    text-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
}

/* تأثير الجسيمات (اختياري) */
/* .stats-number.counting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: particle-float 1s ease-in-out infinite;
} */

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -150%) scale(1);
    }
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .stats-number {
        font-size: 36px;
    }
/*     
    .stats-number.counting {
        transform: scale(1.03);
    }
     */
    .stats-number.completed {
        animation: completion-bounce-mobile 0.6s ease-out;
    }
    
    @keyframes completion-bounce-mobile {
        0% {
            transform: scale(1.03);
        }
        50% {
            transform: scale(1.08);
        }
        100% {
            transform: scale(1);
        }
    }
}/
* ===== تأثيرات النص المتحرك ===== */
.stats-text {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.stats-text.text-animating {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.stats-text.text-animating::after {
    content: '|';
    animation: cursor-blink 1s infinite;
    color: #8b5cf6;
    margin-left: 2px;
}

.stats-text.text-completed {
    color: rgba(255, 255, 255, 0.8) !important;
    animation: text-glow 0.8s ease-out;
}

/* تأثير وميض المؤشر */
@keyframes cursor-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* تأثير التوهج عند اكتمال النص */
@keyframes text-glow {
    0% {
        text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
        transform: scale(1.02);
    }
    100% {
        text-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
        transform: scale(1);
    }
}

/* تأثير الموجة للنص */
.stats-text.text-animating {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(255, 255, 255, 0.6) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-wave 2s ease-in-out infinite;
}

@keyframes text-wave {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
}

/* تأثير الجسيمات للنص */
.stats-text.text-completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: text-particles 1s ease-out;
    pointer-events: none;
}

@keyframes text-particles {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* تحسين التفاعل مع الحاوية */
.user-stats:hover .stats-text {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* تأثيرات للأجهزة المحمولة */
@media (max-width: 768px) {
    .stats-text.text-animating::after {
        font-size: 16px;
    }
    
    .stats-text.text-completed {
        animation: text-glow-mobile 0.6s ease-out;
    }
    
    @keyframes text-glow-mobile {
        0% {
            text-shadow: 0 0 3px rgba(139, 92, 246, 0.3);
        }
        50% {
            text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
            transform: scale(1.01);
        }
        100% {
            text-shadow: 0 0 3px rgba(139, 92, 246, 0.2);
            transform: scale(1);
        }
    }
}

/* تأثير إضافي للتزامن مع العداد */
.user-stats.stats-synced .stats-number,
.user-stats.stats-synced .stats-text {
    animation: sync-pulse 0.3s ease-in-out;
}

@keyframes sync-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    }
}
/* .stats-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
    padding: 20px 0;
}

.stats-container .user-stats {
    margin: 10px 0;
    padding: 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stats-container .user-stats:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

/* تحسين النص للإحصائية الثانية */
/* .stats-container .user-stats:nth-child(2) .stats-text {
    font-size: 16px;
    line-height: 1.4;
} */

/* تأثيرات خاصة للرقم الكبير */
/* .stats-container .user-stats:nth-child(2) .stats-number {
    font-size: 38px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */ */
/* 
.stats-container .user-stats:nth-child(2) .stats-number.counting {
    background: linear-gradient(45deg, #a855f7, #c084fc, #ddd6fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 0.5s ease-in-out infinite alternate;
} */

/* @keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
} */

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .stats-container {
        gap: 15px;
    }
    
    .stats-container .user-stats {
        padding: 16px;
    }
    
    .stats-container .user-stats:nth-child(2) .stats-number {
        font-size: 32px;
    }
    
    .stats-container .user-stats:nth-child(2) .stats-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-container .user-stats:nth-child(2) .stats-number {
        font-size: 28px;
    }
    
    .stats-container .user-stats:nth-child(2) .stats-text {
        font-size: 13px;
    }
}/
* ===== إصلاح مسافة الكارتين ===== */
.stats-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 50px !important;
    margin-top: 30px !important;
    padding: 30px 0 !important;
}

.stats-container .user-stats {
    margin: 15px 0 !important;
    padding: 28px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.stats-container .user-stats:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25) !important;
}

/* فاصل بصري بين الكارتين */
.stats-container .user-stats:first-child::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    border-radius: 1px;
}

.stats-container .user-stats:first-child {
    position: relative;
    margin-bottom: 25px !important;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .stats-container {
        gap: 40px !important;
        padding: 25px 0 !important;
    }
    
    .stats-container .user-stats {
        margin: 12px 0 !important;
        padding: 22px !important;
    }
    
    .stats-container .user-stats:first-child {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .stats-container {
        gap: 35px !important;
        padding: 20px 0 !important;
    }
    
    .stats-container .user-stats {
        margin: 10px 0 !important;
        padding: 20px !important;
    }
}/* ===== 
إصلاح مشكلة النص على الجوال ===== */

/* تأكد من ظهور النص على الجوال */
@media (max-width: 768px) {
    .preview-text h2 {
        font-size: 32px !important;
        margin-bottom: 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .stats-container {
        margin-top: 25px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .stats-text {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
    
    /* إصلاح النص المتحرك على الجوال */
    .stats-text.text-animating {
        opacity: 1 !important;
        visibility: visible !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .stats-text.text-completed {
        opacity: 1 !important;
        visibility: visible !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

@media (max-width: 480px) {
    .preview-text h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .stats-container {
        margin-top: 20px !important;
    }
    
    .stats-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* تبسيط التأثيرات على الجوال */
    .stats-text.text-animating::after {
        display: none !important;
    }
    
    .stats-text.text-animating {
        background: none !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
        color: rgba(255, 255, 255, 0.8) !important;
        animation: none !important;
    }
}

/* إصلاح عام للنصوص المخفية */
.preview-text * {
    opacity: 1 !important;
    visibility: visible !important;
}

.stats-container * {
    opacity: 1 !important;
    visibility: visible !important;
}/* =
==== أزرار اختيار طريقة العرض ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-toggle {
    display: flex;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.view-btn {
    background: transparent;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.view-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.view-btn.active {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.view-btn svg {
    transition: all 0.3s ease;
}

.view-btn:hover svg {
    transform: scale(1.1);
}

/* ===== أنماط العرض المختلفة ===== */

/* عرض الشبكة (افتراضي) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    transition: all 0.5s ease;
}

/* عرض القائمة */
.blog-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-grid.list-view .blog-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.blog-grid.list-view .blog-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(5px);
}

.blog-grid.list-view .blog-card::before {
    content: '';
    width: 4px;
    height: 60px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border-radius: 2px;
    flex-shrink: 0;
}

.blog-grid.list-view .blog-card .blog-meta {
    min-width: 120px;
    margin-bottom: 0;
}

.blog-grid.list-view .blog-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.blog-grid.list-view .blog-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* عرض البطاقات */
.blog-grid.card-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-grid.card-view .blog-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-grid.card-view .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
}

.blog-grid.card-view .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.blog-grid.card-view .blog-card .blog-meta {
    background: rgba(139, 92, 246, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    margin-bottom: 15px;
}

.blog-grid.card-view .blog-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-grid.card-view .blog-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* تأثيرات الانتقال */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .view-btn {
        padding: 8px 10px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-grid.list-view .blog-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-grid.list-view .blog-card::before {
        width: 100%;
        height: 3px;
    }
    
    .blog-grid.card-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .view-btn {
        padding: 6px 8px;
    }
    
    .view-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .blog-grid.list-view .blog-card {
        padding: 15px;
    }
    
    .blog-grid.card-view .blog-card {
        padding: 20px;
    }
}/
* ===== تأثير التمييز للقسم المستهدف ===== */
.section-highlight {
    position: relative;
    animation: sectionHighlight 2s ease-out;
}

@keyframes sectionHighlight {
    0% {
        background: rgba(139, 92, 246, 0.1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        background: rgba(139, 92, 246, 0.05);
        box-shadow: 0 0 0 20px rgba(139, 92, 246, 0.1);
    }
    100% {
        background: transparent;
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* تحسين التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* إضافة id لقسم المدونة إذا لم يكن موجوداً */
.blog-section {
    scroll-margin-top: 80px; /* تعويض ارتفاع شريط التنقل */
}/* ===
== إشعار سفلي ===== */
.bottom-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-notification.show {
    transform: translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.notification-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.notification-text strong {
    font-weight: 700;
    color: #fbbf24;
}

.notification-text .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    animation: highlight-glow 1.5s ease-in-out infinite alternate;
}

@keyframes highlight-glow {
    0% {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    100% {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-download-now {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-download-now:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-close-notification {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-close-notification:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* تأثير الإغلاق */
.bottom-notification.closing {
    animation: slideDown 0.4s ease-in forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* تعديل padding للمحتوى عند ظهور الإشعار */
body.notification-active {
    padding-bottom: 80px;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .notification-content {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
        text-align: center;
    }
    
    .notification-text {
        font-size: 14px;
        order: 1;
    }
    
    .notification-icon {
        order: 0;
        width: 36px;
        height: 36px;
    }
    
    .notification-actions {
        order: 2;
        justify-content: center;
        width: 100%;
    }
    
    .btn-download-now {
        flex: 1;
        max-width: 200px;
        padding: 10px 20px;
    }
    
    body.notification-active {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .notification-content {
        padding: 12px 14px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .btn-download-now {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
    }
    
    body.notification-active {
        padding-bottom: 110px;
    }
}

/* تأثير عند التمرير */
.bottom-notification.scroll-hide {
    transform: translateY(100%);
}

/* تأثير النبض للإشعار */
.bottom-notification.urgent {
    animation: urgent-pulse 1s ease-in-out infinite;
}

@keyframes urgent-pulse {
    0%, 100% {
        box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 -4px 30px rgba(139, 92, 246, 0.6);
    }
}