:root {
    /* --- PALETTE: MAGIC WORD MODERN (Lighter Dark / Illuminated) --- */
    
    /* Primary: Electric Violet & Deep Purple */
    --color-primary: #9D4EDD; 
    --color-primary-dark: #6A0DAD;
    
    /* Secondary: Neon Lime (High Energy Highlight) */
    --color-secondary: #ccff00; 
    
    /* Backgrounds: The "Illuminated Void" */
    /* Moved away from pitch black to deep rich slate/violet */
    --color-bg-body: #161625; 
    --color-bg-surface: #1E1E2E;
    
    /* Surface Colors (Glassmorphism & Cards) */
    /* Lighter transparency for a "premium" feel */
    --glass-bg: rgba(255, 255, 255, 0.03); 
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-highlight: rgba(157, 78, 221, 0.3);
    
    /* Text - Maximum Readability */
    --color-light: #ffffff;
    --color-text: #e0e0e6; /* Cool white, easier on eyes than pure white */
    --color-text-muted: #a0a0b0; /* Blue-grey muted text */
    
    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 1. STRIP the background from the body completely */
body {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* 2. Apply the Gradient to the FIXED particles container */
/* This element is already locked to the screen, so iOS cannot stretch it */
#particles-js {
    /* Set the base dark color */
    background-color: #161625 !important;
    
    /* Apply your specific gradient */
    background-image: radial-gradient(circle at 50% 0%, #680583 0%, #190d1d 60%) !important;
    
    /* Ensure it covers the screen properly */
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    
    /* Force it to stay fixed in the background */
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1 !important; /* Keeps it behind your text */
    opacity: 1 !important; /* Ensures it is visible */
}

/* 3. Optional: Ensure the cinematic intro doesn't interfere */
#cinematic-intro {
    z-index: 99999 !important;
}

/* --- CURSOR --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; pointer-events: none;
    border-radius: 50%; z-index: 9999; transform: translate(-50%, -50%);
}
.cursor-dot { 
    width: 8px; height: 8px; 
    background-color: var(--color-secondary); 
    box-shadow: 0 0 10px var(--color-secondary);
}
.cursor-outline {
    width: 45px; height: 45px; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease;
}
.cursor-outline.hovered { 
    transform: translate(-50%, -50%) scale(1.5); 
    border-color: var(--color-secondary);
    background: rgba(204, 255, 0, 0.05);
}

#particles-js { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; opacity: 0.4; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- TYPOGRAPHY --- */
h2 { 
    font-size: 2.6rem; 
    color: var(--color-light); 
    margin-bottom: 15px; 
    text-align: center; 
    font-weight: 800;
}
h2 span { 
    color: var(--color-primary); 
    text-shadow: 0 0 25px rgba(157, 78, 221, 0.5); 
}

h3 { font-size: 1.6rem; color: var(--color-light); margin-bottom: 12px; font-weight: 700; }
.section-subtitle { 
    text-align: center; font-size: 1.25rem; max-width: 750px; 
    margin: 0 auto 50px auto; color: var(--color-text-muted); font-weight: 400;
}

a, button { cursor: none; text-decoration: none; }

/* --- PROFESSIONAL BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 40px; 
    /* Brighter, glossier gradient */
    background: linear-gradient(135deg, #a55eea 0%, #7d3c98 100%); 
    color: #fff; border: none; border-radius: 50px; font-size: 1.05rem;
    font-weight: 700; text-decoration: none; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(135, 60, 190, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn:hover { 
    transform: translateY(-3px); 
    background: linear-gradient(135deg, #be7af0 0%, #904cb0 100%); 
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6); 
}

section { padding: 100px 0; }

/* --- HEADER --- */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}
.main-header.scrolled {
    padding: 12px 0;
    background: rgba(22, 22, 37, 0.85); /* Slightly transparent dark slate */
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-height: 60px; z-index: 1002; }

.header-nav { display: flex; justify-content: center; align-items: center; gap: 25px; flex-grow: 1; }

.nav-btn {
    background: transparent; color: var(--color-text); padding: 8px 18px; border-radius: 50px;
    font-weight: 600; transition: all 0.3s ease;
    font-family: inherit; font-size: 1rem; border: 1px solid transparent;
    white-space: nowrap;
}
.nav-btn:hover, .nav-btn.active { 
    background: rgba(255, 255, 255, 0.08); 
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
}
.lang-switcher { margin-right: auto; }

/* --- HERO --- */
.hero {
    min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding-top: 80px; position: relative;
}
.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; margin-bottom: 20px;
    line-height: 1.5; 
    padding-bottom: 15px; 
    /* Brighter, cooler gradient */
    background: linear-gradient(135deg, #ffffff 30%, #d4b3ff 70%, var(--color-secondary) 100%);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: pulseGradient 8s ease-in-out infinite;
    text-shadow: 0 10px 40px rgba(157, 78, 221, 0.3);
}
@keyframes pulseGradient { 0% { background-position: 200% center; } 50% { background-position: 0% center; } 100% { background-position: 200% center; } }
.hero p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 30px auto; color: var(--color-text); }


/* --- PROFESSIONAL CARDS (About & Ecosystem) --- */
/* Redesigned for "Lighter Dark" - Less opacity, more glass, cleaner borders */
.feature-item, .ecosystem-card {
    background: linear-gradient(180deg, rgba(45, 45, 60, 0.4) 0%, rgba(30, 30, 45, 0.6) 100%);
    padding: 40px 30px; 
    border-radius: 20px;
    border: 1px solid var(--glass-border); 
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
}

.feature-item:hover, .ecosystem-card:hover { 
    transform: translateY(-8px); 
    background: linear-gradient(180deg, rgba(55, 55, 75, 0.5) 0%, rgba(40, 40, 60, 0.7) 100%);
    border-color: var(--glass-border-highlight); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(157, 78, 221, 0.1);
}

.feature-item i, .ecosystem-card i { 
    font-size: 3rem; 
    /* Gradient Icon Text */
    background: linear-gradient(to bottom, #bd68ff, #7d3c98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px; 
    transition: transform 0.3s ease; 
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}
.feature-item:hover i, .ecosystem-card:hover i { 
    transform: scale(1.1); 
    background: linear-gradient(to bottom, #dfff5e, #A8E04D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item h3, .ecosystem-card h3 { 
    color: #fff; font-weight: 700; font-size: 1.4rem; margin-bottom: 15px;
}
.feature-item p, .ecosystem-card p { 
    color: var(--color-text-muted); font-size: 1rem; line-height: 1.7;
}


/* --- LEADERSHIP (Clean & Sharp) --- */
.leadership-grid { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }
.leader-profile { display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; gap: 60px; }
.leader-image-container {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}
.leader-image-container:hover { transform: scale(1.02); }
.leader-image-container img { width: 100%; height: auto; display: block; }
.leader-info { text-align: right; }
.leader-info h3 { font-size: 2.4rem; font-weight: 800; color: var(--color-light); margin-bottom: 10px; }
.leader-info p {
    color: var(--color-secondary); font-size: 1.3rem; font-weight: 600; margin-bottom: 25px;
    letter-spacing: 1px;
}
.leader-profile.leader-profile--reverse .leader-image-container { grid-column: 2; grid-row: 1; }
.leader-profile.leader-profile--reverse .leader-info { grid-column: 1; grid-row: 1; text-align: left; }


/* --- SCREENSHOTS --- */
.screenshots-container { height: 400vh; position: relative; }
.screenshots-sticky-wrapper {
    position: sticky; top: 0; height: 100vh;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
    padding: 2rem 0;
}
.screenshots-deck { 
    position: relative; width: clamp(280px, 18vw, 350px);
    height: auto; aspect-ratio: 9 / 19; max-height: 85vh;
}
.screenshot-card {
    position: absolute; width: 100%; height: 100%;
    border-radius: 24px; overflow: hidden;
    /* Clean shadow for depth */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
    transform-origin: bottom center;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    will-change: transform, opacity;
    background: transparent; 
}
.screenshot-card img { width: 100%; height: 100%; object-fit: cover; }


/* --- CONTACT SECTION (Clean, Bright Inputs) --- */
#contact { text-align: center; }
.contact-wrapper { 
    display: grid; 
    gap: 50px; 
    /* Lighter, smoother background */
    background: #1f1f2e; 
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.contact-info i { font-size: 2rem; color: var(--color-secondary); margin-bottom: 10px; }
.contact-info strong { font-size: 1.2rem; color: #fff; display: block; margin-bottom: 5px; }
.contact-info a { color: var(--color-text); transition: 0.3s; font-size: 1.1rem; }
.contact-info a:hover { color: var(--color-primary); }

/* Inputs - Professional Look */
#contact form { width: 100%; }
#contact input, #contact select, #contact textarea {
    width: 100%; padding: 16px; 
    /* Higher contrast background for inputs */
    background: #2a2a3b; 
    border: 1px solid #3e3e52;
    border-radius: 10px; 
    color: #fff; font-size: 1rem; font-family: inherit; 
    transition: all 0.3s;
}
#contact input::placeholder, #contact textarea::placeholder { color: #8e8e9e; }
#contact input:focus, #contact select:focus, #contact textarea:focus {
    outline: none; 
    background: #333347; 
    border-color: var(--color-primary); 
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2); 
}
#contact textarea { resize: vertical; min-height: 120px; }


/* --- FOOTER --- */
.main-footer { 
    padding: 50px 0; text-align: center; 
    border-top: 1px solid var(--glass-border); 
    background: hsl(240deg 25.32% 61.57% / 15%); 
}
.footer-link {
    display: inline-block; margin: 15px 5px 0 5px; padding: 10px 25px;
    color: var(--color-text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.footer-link:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* --- EXTRA PAGES (Mission/Vision) --- */
.vision-page-container { padding-top: 150px; padding-bottom: 100px; max-width: 1000px; }
.tabs-container {
    display: flex; justify-content: center; margin-bottom: 50px;
    background: #232336; padding: 5px; border-radius: 50px;
    border: 1px solid var(--glass-border);
}
.tab-btn {
    padding: 12px 30px; border: none; background: transparent;
    color: #aaa; font-size: 1.1rem; font-weight: 600;
    border-radius: 50px; transition: all 0.4s ease; flex-grow: 1; text-align: center;
}
.tab-btn.active {
    background: var(--color-primary); color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.tab-content { display: none; animation: fadeIn 0.6s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.value-card {
    background: var(--glass-bg); padding: 30px; border-radius: 15px;
    border: 1px solid var(--glass-border); transition: 0.3s;
}
.value-card:hover { transform: translateY(-5px); border-color: var(--color-primary); }
.value-card h5 { font-size: 1.3rem; color: var(--color-secondary); margin-bottom: 15px; }
.value-card p { color: var(--color-text); }


/* --- MOBILE NAV --- */
.hamburger { display: none; z-index: 1002; }
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: #161625; 
    z-index: 1001; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 25px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-nav.active { right: 0; }
.mobile-nav .nav-btn { font-size: 1.5rem; }

/* --- PAGINATION DOTS --- */
.swiper-pagination-bullet { background: #fff !important; opacity: 0.3 !important; }
.swiper-pagination-bullet-active { background: var(--color-secondary) !important; opacity: 1 !important; }

/* --- REVEAL ANIMATION --- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media(max-width: 992px) {
    .header-nav { display: none; }
    .hamburger { display: block; background: none; border: none; color: #fff; font-size: 1.8rem; }
    .leader-profile, .leader-profile.leader-profile--reverse {
        grid-template-columns: 1fr; text-align: center;
    }
    .leader-profile.leader-profile--reverse .leader-image-container,
    .leader-profile.leader-profile--reverse .leader-info {
        grid-column: 1; grid-row: auto; text-align: center;
    }
    .leader-image-container { max-width: 400px; margin: 0 auto; }
}

@media(max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
    section { padding: 80px 0; }
    .hero h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .message-grid-container { grid-template-columns: 1fr; }
    .message-grid-container .leader-image-container { position: static; max-width: 400px; margin: 0 auto; }
    .tabs-container { flex-direction: column; border-radius: 20px; }
    .tab-btn { border-radius: 20px; }
    #screenshots { padding-bottom: 80px; }
    .screenshots-container { height: auto; }
    .screenshots-sticky-wrapper { position: static; height: auto; display: block; padding: 0; }
    .screenshots-deck {
        height: 65vh; width: 100%; max-height: none;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        display: flex; gap: 15px; position: relative;
        padding: 0 20px; scrollbar-width: none; -ms-overflow-style: none;
        aspect-ratio: unset;
    }
    .screenshots-deck::-webkit-scrollbar { display: none; }
    .screenshot-card {
        position: relative; flex-shrink: 0; width: 70%; height: 100%;
        transform: none !important; opacity: 1 !important;
    }
    
    .about-features.swiper, .ecosystem-grid.swiper {
        padding-bottom: 40px; overflow: hidden;
    }
}

/* --- MOBILE SWIPER / DESKTOP GRID LOGIC --- */
@media (min-width: 768px) {
    .about-features.swiper, 
    .ecosystem-grid.swiper {
        padding-bottom: 0; overflow: visible;
    }
    .about-features .swiper-wrapper,
    .ecosystem-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 30px !important;
        transform: none !important; width: 100% !important;
    }
    .about-features .swiper-slide,
    .ecosystem-grid .swiper-slide {
        height: auto !important; width: auto !important; margin: 0 !important;
    }
    .about-pagination, .ecosystem-pagination { display: none; }
}