/* =========================================
   CORE VARIABLES & DESKTOP STYLES
   ========================================= */
:root {
    --bg-deep: #12021a;
    --neon-purple: #bd00ff;
    --neon-blue: #4d00ff;
    --text-white: #ffffff;
    --bg-white: #f8f9fa;
    --text-dark: #222222;
    --main-font: 'IBM Plex Sans Arabic', sans-serif;
}

body {
    margin: 0; padding: 0;
    font-family: var(--main-font);
    background-color: var(--bg-deep);
    color: var(--text-white);
    overflow: hidden; height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6, 
.hero-title, .section-header h2, .partner-name-text,
.service-title-en, .service-title-ar {
    font-family: var(--main-font) !important;
}

/* Button & Input Reset */
button, .secret-btn, .nav-btn, .btn-glow, .back-btn, .service-btn, .btn-text,
input, textarea, select {
    font-family: var(--main-font) !important;
}

/* White Mode */
body.white-mode { background-color: #e3e3e3; color: var(--text-dark); }
body.white-mode .dark-bg-element { opacity: 0 !important; pointer-events: none; }
body.white-mode .nav-list li a { color: #555; }
body.white-mode .nav-list li a:hover { color: #000; }
body.white-mode .nav-btn, body.white-mode .secret-btn { border-color: var(--neon-purple); color: var(--neon-purple) !important; background: transparent; }
body.white-mode .nav-btn:hover, body.white-mode .secret-btn:hover { background: var(--neon-purple); color: #fff !important; box-shadow: 0 0 20px var(--neon-purple); }

/* Layers */
#counters-layer, #three-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; transition: opacity 0.5s ease; }
#counters-layer { z-index: 2; pointer-events: none; }
#three-canvas { z-index: 1; pointer-events: none; opacity: 0.5; }

/* Header */
.glass-header { position: fixed; top: 0; width: 100%; height: 90px; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; z-index: 100; background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent); box-sizing: border-box; transition: 0.5s; }
body.white-mode .glass-header { background: #e3e3e3; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.header-logo { width: 120px; transition: 0.3s; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.nav-list li a { text-decoration: none; color: #ccc; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; padding: 5px 10px; position: relative; }
.nav-list li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background: var(--neon-purple); transition: all 0.3s ease; transform: translateX(-50%); }
.nav-list li a:hover::after { width: 100%; }
.nav-list li a:hover { color: #fff; text-shadow: 0 0 10px var(--neon-purple); }
.btn-glow { padding: 10px 25px; border: 1px solid var(--neon-purple); border-radius: 50px; background: rgba(189,0,255,0.15); color: #fff !important; text-decoration: none; font-weight: bold; transition: 0.3s; white-space: nowrap; }
.btn-glow:hover { background: var(--neon-purple); box-shadow: 0 0 20px var(--neon-purple); }

/* Mobile Menu Elements (Hidden on Desktop) */
.mobile-header-controls { display: none; }
.mobile-menu-overlay { display: none; }
.mobile-hero-logo { display: none; }

/* Layout Main */
.main-wrapper { width: 100vw; height: 100vh; position: relative; z-index: 10; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
.horizontal-slider { display: flex; width: 200vw; height: 100vh; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
.screen-section { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; flex-shrink: 0; position: relative; overflow: hidden; }
.vertical-section { position: absolute; left: 0; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; }
#section3 { top: 100vh; }

/* Bottom Horizontal Wrapper */
.bottom-slider-wrapper { position: absolute; top: 200vh; left: 0; width: 200vw; height: 100vh; display: flex; direction: ltr; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
#section4, #section5 { position: relative; width: 100vw; height: 100vh; top: auto; left: auto; flex-shrink: 0; direction: rtl; }
#section6 { position: absolute; top: 300vh; left: 0; width: 100vw; height: 100vh; direction: rtl; background-color: #f8f9fa; }
.contact-section { position: absolute; top: 400vh; left: 0; width: 100vw; height: 100vh; direction: rtl; background-color: #12021a; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }

/* Sec 1 Hero */
.hero-content { text-align: center; max-width: 1200px; padding: 0 20px; position: relative; z-index: 20; }
.hero-title { font-size: 4.5vw; font-weight: 800; margin: 0; white-space: nowrap; line-height: 1.4; opacity: 0; transform: translateY(30px); transition: 1s ease; }
.clean-highlight { color: transparent; background: linear-gradient(to top, var(--neon-blue), #fff); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 30px rgba(189, 0, 255, 0.5); }
.hero-desc { font-size: 1.3rem; color: #ccc; margin: 20px auto 50px; max-width: 800px; white-space: normal; line-height: 1.6; opacity: 0; transform: translateY(20px); transition: 1s ease 0.2s; }
.hero-title.reveal, .hero-desc.reveal, .btn-group.reveal { opacity: 1; transform: translateY(0); }
.secret-btn { padding: 15px 40px; background: transparent; border: 2px solid var(--neon-purple); color: #fff; font-size: 1.1rem; border-radius: 50px; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(189, 0, 255, 0.1); }
.secret-btn:hover { background: var(--neon-purple); box-shadow: 0 0 40px var(--neon-purple); transform: scale(1.05); }
.btn-group { opacity: 0; transition: 1s ease 0.4s; }

/* Sec 2 Cards */
.cards-container { width: 90%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 20; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 3rem; margin-bottom: 10px; line-height: 1.2; }
.section-header p { color: #aaa; font-size: 1.2rem; }
.glass-cards-grid { display: flex; gap: 30px; justify-content: center; width: 100%; flex-wrap: wrap; }
.glass-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px 25px; text-align: center; flex: 1; min-width: 280px; max-width: 350px; backdrop-filter: blur(10px); transition: 0.3s; transform-style: preserve-3d; }
.glass-card.featured { background: rgba(189, 0, 255, 0.05); border-color: rgba(189, 0, 255, 0.3); }
.card-icon { margin-bottom: 25px; }
.card-icon svg { color: var(--neon-purple); filter: drop-shadow(0 0 15px var(--neon-purple)); }
.glass-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.glass-card p { color: #ccc; font-size: 1rem; line-height: 1.6; }
.glass-card:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--neon-purple); box-shadow: 0 0 30px rgba(189, 0, 255, 0.2); transform: translateY(-10px); }
.back-group { margin-top: 60px; display: flex; align-items: center; gap: 20px; }
.small-btn { padding: 10px 30px; font-size: 1rem; }
.back-btn { background: rgba(189, 0, 255, 0.2); color: #fff; border: 1px solid var(--neon-purple); width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.back-btn:hover { background: var(--neon-purple); box-shadow: 0 0 20px var(--neon-purple); }

/* Sec 3 Stats */
.stats-container { text-align: center; width: 90%; max-width: 1200px; position: relative; z-index: 20; transition: 0.5s; }
.stats-title { font-size: 3.5rem; margin-bottom: 60px; transition: 0.5s; }
.cinematic-stats-grid { display: flex; justify-content: center; gap: 30px; width: 100%; flex-wrap: wrap; }
.stat-box { text-align: center; flex: 0 1 auto; width: 220px; padding: 30px 20px; border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.stat-box:hover { transform: translateY(-10px); border-color: var(--neon-purple); box-shadow: 0 0 30px rgba(189,0,255,0.2); }
.stat-icon-white svg { stroke: white; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
.rial-img-icon { width: 60px; height: 60px; filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
.floating { animation: floatStat 3s ease-in-out infinite; }
@keyframes floatStat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.counter { font-size: 2.5rem; font-weight: 800; margin: 20px 0 10px; color: var(--neon-purple); text-shadow: 0 0 20px var(--neon-purple); }
.stat-label { font-size: 1rem; color: #ccc; letter-spacing: 1px; }
.back-group-center { margin-top: 60px; display: flex; justify-content: center; align-items: center; gap: 20px; transition: 0.5s; }
.scatter-out { transform: translate(calc(-50vw + 100%), calc(-50vh + 100%)) rotate(45deg) scale(0.5) !important; opacity: 0 !important; pointer-events: none; }
.stats-title.scatter-out { transform: translateY(-100vh) rotate(-20deg) !important; }
.cinematic-stats-grid.scatter-out { transform: scale(1.5) !important; opacity: 0; }
.back-group-center.scatter-out { transform: translateY(100vh) rotate(20deg) !important; }

/* Splash */
.splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: radial-gradient(circle at center, #2a0038 0%, #050008 100%); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: transform 1.2s cubic-bezier(0.7,0,0.3,1); }
.splash-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.splash-logo-big { width: 300px; animation: fadeUpLogo 1s ease-out forwards; opacity: 0; transform: translateY(20px); }
.vertical-data-loader { width: 60px; height: 100px; display: flex; justify-content: space-between; align-items: flex-end; margin-top: -50px; }
.data-bar { width: 8px; height: 0%; background: var(--neon-purple); border-radius: 2px; box-shadow: 0 0 10px var(--neon-purple); animation: fillUpBar 1.5s ease-in-out forwards infinite; }
.data-bar:nth-child(1) { animation-delay: 0.1s; } .data-bar:nth-child(2) { animation-delay: 0.3s; } .data-bar:nth-child(3) { animation-delay: 0.5s; } .data-bar:nth-child(4) { animation-delay: 0.7s; } .data-bar:nth-child(5) { animation-delay: 0.9s; }
@keyframes fillUpBar { 0%, 100% { height: 20%; opacity: 0.5; } 50% { height: 100%; opacity: 1; } }
@keyframes fadeUpLogo { to { opacity: 1; transform: translateY(0); } }

/* Sec 4 */
.white-section { background-color: #f8f9fa; flex-direction: column; overflow: hidden; }
.grid-floor-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; perspective: 1200px; overflow: hidden; z-index: 0; }
.grid-floor { position: absolute; bottom: -30%; left: -50%; width: 200%; height: 100%; background-image: linear-gradient(rgba(77, 0, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 0, 255, 0.1) 1px, transparent 1px); background-size: 60px 60px; transform: rotateX(60deg); animation: gridMove 2s linear infinite; transform-origin: center top; backface-visibility: hidden; }
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 60px; } }
.horizon-fade { position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to bottom, #f8f9fa 20%, transparent 100%); pointer-events: none; z-index: 1; }
#grid-counters-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; perspective: 1200px; overflow: hidden; }
.grid-flow-box { position: absolute; left: 50%; width: 180px; padding: 20px 15px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(5px); border: 1px solid rgba(189, 0, 255, 0.2); border-radius: 20px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); white-space: nowrap; will-change: transform, opacity; transform-style: preserve-3d; backface-visibility: hidden; }
.grid-icon-container { margin-bottom: 10px; }
.grid-icon-container svg { stroke: var(--neon-purple); filter: drop-shadow(0 0 5px rgba(189, 0, 255, 0.3)); }
.grid-rial-icon { width: 45px; height: 45px; filter: brightness(0) saturate(100%) invert(16%) sepia(96%) saturate(5888%) hue-rotate(292deg) brightness(93%) contrast(113%) drop-shadow(0 0 5px rgba(189, 0, 255, 0.3)); }
.grid-box-num { font-size: 1.6rem; font-weight: 800; margin: 5px 0; color: var(--neon-purple); text-shadow: 0 0 10px rgba(189, 0, 255, 0.2); font-family: 'Cairo', sans-serif; }
.grid-box-label { font-size: 0.9rem; color: #555; font-weight: 500; font-family: 'Tajawal', sans-serif; }
.grid-flow-box.blue { border-color: rgba(77, 0, 255, 0.2); }
.grid-flow-box.blue svg { stroke: var(--neon-blue); filter: drop-shadow(0 0 5px rgba(77, 0, 255, 0.3)); }
.grid-flow-box.blue .grid-rial-icon { filter: brightness(0) saturate(100%) invert(12%) sepia(90%) saturate(6426%) hue-rotate(250deg) brightness(93%) contrast(125%) drop-shadow(0 0 5px rgba(77, 0, 255, 0.3)); }
.grid-flow-box.blue .grid-box-num { color: var(--neon-blue); text-shadow: 0 0 10px rgba(77, 0, 255, 0.2); }
@keyframes flowOnGrid { 0% { top: 20%; opacity: 0; transform: translateX(-50%) rotateX(60deg) scale(0.1); } 15% { opacity: 1; } 100% { top: 110%; opacity: 0; transform: translateX(-50%) rotateX(60deg) scale(1.4); } }

.about-glass-box { position: relative; z-index: 10; width: 85%; max-width: 900px; padding: 60px 40px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 40px; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.05); }
.about-content { position: relative; z-index: 11; }
.typewriter-title { font-family: 'Cairo', sans-serif; font-size: 3.5rem; margin-bottom: 30px; background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; font-weight: 900; }
.typewriter-desc { font-size: 1.3rem; line-height: 2; max-width: 800px; margin: 0 auto; color: #444; font-weight: 500; text-align: justify; text-align-last: center; }

/* Buttons General */
.services-btn-style { background: transparent !important; border: 2px solid var(--neon-purple); color: var(--neon-purple) !important; font-weight: 700; padding: 12px 35px; border-radius: 50px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.services-btn-style:hover { background: var(--neon-purple) !important; color: #fff !important; box-shadow: 0 5px 15px rgba(189, 0, 255, 0.4); transform: translateY(-3px); }
.arrow-btn-style { width: 55px; height: 55px; border-radius: 50%; background: transparent !important; border: 2px solid var(--neon-blue); color: var(--neon-purple) !important; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.arrow-btn-style:hover { background: linear-gradient(to right, var(--neon-blue), var(--neon-purple)) !important; color: #fff !important; border-color: transparent; box-shadow: 0 5px 15px rgba(77, 0, 255, 0.4); transform: translateY(-3px); }
.section4-bottom-actions { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 20px; z-index: 20; }

/* Sec 5 Services */
.cinematic-particles-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle-wave { position: absolute; border-radius: 40%; width: 600px; height: 600px; background: linear-gradient(45deg, rgba(189,0,255,0.15), rgba(77,0,255,0.15)); top: -20%; right: -10%; animation: driftRotate 20s infinite linear; filter: blur(40px); }
.particle-wave.w2 { width: 500px; height: 500px; background: linear-gradient(to bottom, rgba(77,0,255,0.1), rgba(255,255,255,0)); bottom: -10%; left: -10%; animation-duration: 25s; animation-direction: reverse; }
.floating-orb { position: absolute; width: 50px; height: 50px; background: var(--neon-purple); border-radius: 50%; opacity: 0.3; filter: blur(20px); animation: floatOrb 10s infinite ease-in-out; }
.o1 { top: 20%; left: 20%; } .o2 { bottom: 30%; right: 20%; animation-delay: 5s; background: var(--neon-blue); }
@keyframes driftRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatOrb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.services-wheel-layout { display: flex; width: 100%; height: 100%; position: relative; z-index: 10; }
.wheel-container-left { width: 40%; height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 50px; position: relative; border-left: 1px solid rgba(0,0,0,0.05); perspective: 1000px; }
.wheel-list { position: relative; height: 300px; width: 100%; text-align: left; }
.wheel-list-item { font-family: 'Cairo', sans-serif; font-size: 2.2rem; font-weight: 800; color: #ccc; cursor: pointer; transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); position: absolute; width: 100%; left: 0; transform-origin: center right; white-space: nowrap; padding: 10px 0; }
.wheel-list-item.active { color: var(--neon-purple); font-size: 3rem; text-shadow: 0 0 20px rgba(189,0,255,0.3); }
.content-container-right { width: 60%; height: 100%; display: flex; justify-content: center; align-items: center; position: relative; }
.service-detail-box { width: 80%; max-width: 600px; padding: 50px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(189, 0, 255, 0.1); backdrop-filter: blur(20px); border-radius: 30px; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.05); text-align: right; }
.service-detail-box.visible { opacity: 1; transform: translateY(0); }
.service-title-en { font-family: 'Cairo', sans-serif; font-size: 4rem; margin: 0; line-height: 1; opacity: 0.1; position: absolute; top: 20px; left: 20px; user-select: none; }
.service-title-ar { font-family: 'Cairo', sans-serif; font-size: 2.5rem; margin-bottom: 20px; background: linear-gradient(to left, var(--neon-blue), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.service-desc { font-size: 1.2rem; line-height: 1.8; color: #555; margin-bottom: 40px; }
.service-btn { text-decoration: none; color: var(--neon-purple); font-weight: bold; border-bottom: 2px solid var(--neon-purple); padding-bottom: 5px; transition: 0.3s; }
.service-btn:hover { color: var(--neon-blue); border-color: var(--neon-blue); }
.section5-bottom-actions { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 20px; z-index: 20; }

/* Sec 6 Partners */
.radial-grid-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(189, 0, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(189, 0, 255, 0.1) 1px, transparent 1px); background-size: 50px 50px; z-index: 0; mask-image: radial-gradient(circle at center, black 30%, transparent 90%); -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%); }
.glowing-center { position: absolute; top: 50%; left: 50%; width: 60%; height: 60%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(189, 0, 255, 0.15) 0%, transparent 70%); filter: blur(50px); pointer-events: none; z-index: 1; }
.partners-spotlight-container { position: relative; z-index: 10; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.partner-intro-text { font-size: 1.5rem; color: #666; margin-bottom: 30px; font-weight: 500; transition: opacity 0.5s ease; }
.central-partner-stage { position: relative; width: 100%; height: 250px; display: flex; justify-content: center; align-items: center; margin-bottom: 40px; }
.partner-logo-display { transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transform: scale(1); filter: blur(0); opacity: 1; display: flex; justify-content: center; align-items: center; }
.partner-logo-display img { max-width: 400px; max-height: 200px; object-fit: contain; transition: 0.3s; }
.partner-name-text { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 5rem; background: linear-gradient(to right, var(--neon-purple), var(--neon-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.partner-logo-display.exit { transform: scale(1.1); filter: blur(10px); opacity: 0; }
.partner-logo-display.enter { transform: scale(1); filter: blur(0); opacity: 1; }
.view-all-partners-link { font-size: 1.1rem; color: #333; text-decoration: none; border-bottom: 1px solid #ccc; padding-bottom: 5px; transition: 0.3s; }
.view-all-partners-link:hover { color: var(--neon-purple); border-color: var(--neon-purple); }
.section6-back-btn { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); }
.section6-bottom-actions { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 20px; z-index: 20; }

/* Contact */
.contact-bg-glow { position: absolute; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(77, 0, 255, 0.15), transparent 60%), radial-gradient(circle at bottom left, rgba(189, 0, 255, 0.1), transparent 60%); z-index: 0; }
.contact-wrapper { display: flex; width: 90%; max-width: 1200px; justify-content: space-between; align-items: center; z-index: 10; margin-bottom: 80px; flex-wrap: wrap; }
.contact-info-side { flex: 1; min-width: 300px; padding: 20px; color: #fff; text-align: right; }
.contact-headline { font-family: 'Cairo', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; background: linear-gradient(to left, #4f28f3, #a027d2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-sub { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; line-height: 1.6; }
.info-items { display: flex; flex-direction: column; gap: 25px; }
.info-row { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.icon-circle { width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: center; align-items: center; color: var(--neon-purple); transition: 0.3s; }
.info-row:hover .icon-circle { background: var(--neon-purple); color: #fff; box-shadow: 0 0 15px var(--neon-purple); }
.contact-form-side { flex: 1; min-width: 350px; display: flex; justify-content: flex-end; }
.glass-form-box { width: 100%; max-width: 450px; padding: 40px; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.glass-form-box h3 { text-align: center; margin-bottom: 30px; font-family: 'Cairo', sans-serif; color: #fff; }
.input-group { position: relative; margin-bottom: 25px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; color: #fff; font-family: 'Tajawal', sans-serif; outline: none; transition: 0.3s; box-sizing: border-box; }
.input-group textarea { height: 100px; resize: none; }
.input-group label { position: absolute; right: 15px; top: 15px; color: #aaa; pointer-events: none; transition: 0.3s; font-size: 0.9rem; }
.input-group input:focus, .input-group input:not(:placeholder-shown), .input-group textarea:focus, .input-group textarea:not(:placeholder-shown) { border-color: var(--neon-purple); background: rgba(189, 0, 255, 0.05); }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label, .input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label { top: -10px; right: 10px; background: #12021a; padding: 0 5px; color: var(--neon-purple); font-size: 0.8rem; }
.submit-btn { width: 100%; padding: 15px; background: var(--neon-purple); color: #fff; border: none; border-radius: 12px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--neon-blue); box-shadow: 0 0 20px var(--neon-purple); transform: translateY(-3px); }
.footer-dock-container { position: absolute; bottom: 30px; width: 90%; max-width: 1000px; height: 80px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; z-index: 20; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.dock-section { display: flex; align-items: center; gap: 20px; }
.trust-badges .badge-item { font-size: 0.8rem; font-weight: bold; color: #aaa; border: 1px solid #444; padding: 5px 10px; border-radius: 5px; }
.social-links { gap: 15px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 1.2rem; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.social-icon:hover { transform: translateY(-10px) scale(1.2); background: var(--neon-purple); }
.qr-box { width: 50px; height: 50px; background: #fff; border-radius: 8px; overflow: hidden; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.qr-placeholder { color: #000; font-weight: bold; font-size: 0.8rem; }
.qr-box:hover { transform: scale(3) translateY(-20px); border: 2px solid var(--neon-purple); z-index: 30; }
.up-btn-contact { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); }
.live-counter { position: absolute; background: rgba(40, 0, 60, 0.7); padding: 10px 20px; border-radius: 12px; border: 1px solid rgba(189, 0, 255, 0.3); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; animation: floatUp linear forwards; z-index: 2; }
.metric-label { font-size: 0.8rem; color: #aaa; margin-bottom: 5px; letter-spacing: 1px; }
.metric-value-container { display: flex; align-items: center; gap: 5px; }
.metric-val { font-size: 1.4rem; font-weight: bold; color: var(--neon-purple); font-family: monospace; }
.counter-icon { width: 20px; height: auto; filter: drop-shadow(0 0 5px var(--neon-purple)); }
@keyframes floatUp { from { transform: translateY(50px) scale(0.8); opacity: 0; } 20% { opacity: 1; transform: translateY(0) scale(1); } 80% { opacity: 1; } to { transform: translateY(-100px); opacity: 0; } }
.trust-img { height: 35px; width: auto; object-fit: contain; opacity: 0.8; transition: 0.3s; }
.trust-img:hover { opacity: 1; transform: scale(1.1); }
.qr-img { width: 100%; height: 100%; object-fit: cover; }
.trust-badges { display: flex; gap: 15px; }
.partner-logo-img { max-width: 300px; max-height: 150px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(255,255,255,0.2)); transition: transform 0.3s; display: block; }
.partner-logo-img:hover { transform: scale(1.1); }


/* =========================================================
   MOBILE & TABLET OPTIMIZATION (FINAL FIX V6)
   ========================================================= */
@media (max-width: 768px) {

    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        -webkit-overflow-scrolling: touch;
        background-color: var(--bg-deep) !important; 
    }


    .particles-3d-container, #three-canvas, #counters-layer, .grid-floor-container, .horizon-fade { display: none !important; }
    .mobile-header-controls { display: block !important; }


    .mobile-hero-logo {
        display: block;
        width: 238px;
        max-width: 64%;
        margin: 0 auto -18px auto;
    }

    .main-wrapper,
    .horizontal-slider,
    .bottom-slider-wrapper,
    .screen-section {
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        position: relative !important; 
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 !important;
        padding: 11px 15px !important;
        box-sizing: border-box;
        left: auto !important;
        top: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .vertical-section { top: auto !important; } 

    /* 2. الهيدر والقائمة العلوية */
    .glass-header {
        height: auto !important;
        background: transparent !important; 
        backdrop-filter: none !important;
        border-bottom: none !important;
        position: fixed;
        width: 100%;
        z-index: 100;
        padding: 15px 20px;
        pointer-events: none;
    }
    .glass-header .logo-container { display: none !important; }
    .main-nav { display: none !important; }

    .mobile-header-controls { position: fixed; top: 15px; left: 20px; z-index: 200; pointer-events: auto; }
    .mobile-menu-toggle {
        font-size: 1.2rem; color: #fff; cursor: pointer;
        background: rgba(189, 0, 255, 0.15); width: 40px; height: 40px;
        border: 1px solid var(--neon-purple); border-radius: 50%;
        display: flex; justify-content: center; align-items: center;
    }

    .mobile-menu-overlay {
        display: flex !important; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        position: fixed; 
        top: 0; left: 0; 
        width: 100%; height: 100vh;
        /* خلفية زجاجية ضبابية بدلاً من اللون المصمت */
        background: rgba(12, 2, 20, 0.85); 
        backdrop-filter: blur(25px); 
        -webkit-backdrop-filter: blur(25px);
        z-index: 999;
        transform: translateY(-100%); 
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow: hidden;
    }
    .mobile-menu-overlay::before {
        content: '';
        position: absolute;
        top: -10%; left: -10%;
        width: 50%; height: 50%;
        background: radial-gradient(circle, var(--neon-purple), transparent 70%);
        opacity: 0.2;
        filter: blur(60px);
        pointer-events: none;
    }
    .mobile-menu-overlay.active { 
        transform: translateY(0); 
    }
    .close-menu-btn { 
        position: absolute; 
        top: 30px; left: 30px; 
        width: 45px; height: 45px;
        display: flex; justify-content: center; align-items: center;
        font-size: 1.5rem; 
        color: #fff; 
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
    }
    .close-menu-btn:hover {
        background: var(--neon-purple);
        transform: rotate(90deg);
    }
    .mobile-nav-list { 
        list-style: none; 
        padding: 0; 
        width: 80%; 
        display: flex; 
        flex-direction: column; 
        gap: 20px; 
    }
    .mobile-nav-list li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.5s;
    }
    .mobile-menu-overlay.active .mobile-nav-list li {
        animation: slideUpFade 0.5s forwards;
    }
    .mobile-menu-overlay.active .mobile-nav-list li:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu-overlay.active .mobile-nav-list li:nth-child(2) { animation-delay: 0.2s; }
    .mobile-menu-overlay.active .mobile-nav-list li:nth-child(3) { animation-delay: 0.3s; }
    .mobile-menu-overlay.active .mobile-nav-list li:nth-child(4) { animation-delay: 0.4s; }
    .mobile-menu-overlay.active .mobile-nav-list li:nth-child(5) { animation-delay: 0.5s; }

    .mobile-link { 
        display: block;
        font-size: 1.4rem; 
        color: #fff; 
        text-decoration: none; 
        font-weight: 700; 
        font-family: 'IBM Plex Sans Arabic', sans-serif;
        text-align: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        position: relative;
        overflow: hidden;
        transition: 0.3s;
    }
    .mobile-link:active, .mobile-link:hover {
        background: rgba(189, 0, 255, 0.15);
        border-color: var(--neon-purple);
        box-shadow: 0 0 20px rgba(189, 0, 255, 0.3);
        transform: scale(1.02);
    }
    @keyframes slideUpFade {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    /* القسم الرئيسي (Hero) - سحب المحتوى للأعلى */
    #section1 { 
        min-height: auto !important;
        padding-top: 0px !important; 
        padding-bottom: 0px !important;
    }
    .hero-content { 
        margin-top: 0 !important; 
        width: 100%; 
        transform: none !important; 
        opacity: 1 !important; 
        text-align: center; 
        padding-bottom: 0px; 
    }

    /* --- تعديلات الخطوط: تصغير الهيدلاين والوصف --- */
    .hero-title { 
        font-size: 1.5rem !important; 
        line-height: 1.3; 
        white-space: normal;
        margin-bottom: 4px; 
    }
    .hero-desc { 
        font-size: 0.95rem; 
        width: 100%; 
        max-width: 100%; 
        white-space: normal; 
        margin-bottom: 15px; 
        padding: 0 10px;
        text-align: center;
    }
    .btn-group { display: block !important; opacity: 1 !important; margin-top: 0px; }

    /* قسم البطاقات - تقليل المسافة العلوية */
    #section2 { padding-top: 0 !important; padding-bottom: 0px !important; }
    .cards-container { width: 100%; max-width: 100%; padding: 0; }
    .glass-cards-grid { flex-direction: column; width: 100%; gap: 15px; margin-top: 10px; }
    .glass-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
        transform: none !important;
    }

    /* --- تعديلات عناوين الأقسام --- */
    .section-header h2 {
        font-size: 1.2rem !important; 
        line-height: 1.5;
    }

    /* قسم الإحصائيات (2x2 Grid Fixed) */
    #section3 { background: var(--bg-deep); padding-top: 20px !important; }
    .cinematic-stats-grid { 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: wrap !important; 
        width: 100% !important; 
        gap: 10px !important; 
        justify-content: space-between !important; 
        padding-bottom: 5px !important;
    }
    /*إجبار الصناديق على عرض النصف اً */
    .stat-box { 
        width: 48% !important; 
        flex: 0 0 48% !important; 
        min-width: 0 !important; 
        margin: 0 !important; 
        padding: 15px 5px !important; 
        transform: none !important; 
        box-sizing: border-box !important; 
    }
    /* --- تصغير أرقام الإحصائيات --- */
    .counter {
        font-size: 1.8rem !important; 
    }
    .stat-label {
        font-size: 0.85rem !important;
    }
    .stats-title { font-size: 1.8rem !important; opacity: 1 !important; transform: none !important; margin-bottom: 20px; }
    .back-group-center { display: flex !important; opacity: 1 !important; transform: none !important; margin-top: 30px; }

    /* قسم من نحن (إلغاء 3D والمسافات) */
    #section4 { background: var(--bg-deep) !important; padding-top: 10px !important; }
    /* إزالة الكلاسات الخاصة بالثري دي */
    .grid-floor-container, #grid-counters-layer, .horizon-fade { display: none !important; }
    .about-glass-box { 
        width: 100%; max-width: 100%; padding: 20px 10px; margin: 0; 
        opacity: 1 !important; transform: none !important; 
        border: none !important; box-shadow: none !important; 
        background: transparent !important; 
        padding-top: 5px !important; 
        margin-top: 0 !important;
    }
    /* --- تصغير عنوان "مين حنا" --- */
    .typewriter-title { font-size: 1.8rem !important; margin-bottom: 10px; color: var(--text-white); }
    .typewriter-desc { font-size: 0.95rem !important; line-height: 1.6; color: #ccc; }

    /* أزرار التنقل السفلية - تقليل المسافة */
    .section4-bottom-actions, 
    .section5-bottom-actions, 
    .section6-bottom-actions { 
        position: relative !important; 
        bottom: auto !important; 
        margin-top: 20px !important; 
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        transform: none !important;
        left: auto !important;
        padding-top: 5px !important;
    }

    /* قسم الخدمات (تعديل الخلفية والمسافات) */
    #section5 { background: var(--bg-deep) !important; padding-bottom: 20px !important; padding-top: 10px !important; }
    .services-wheel-layout { flex-direction: column-reverse; width: 100%; }
    .wheel-container-left { display: none; }
    .content-container-right { width: 100%; }
    .service-detail-box { width: 100%; max-width: 100%; padding: 20px 10px; opacity: 1 !important; transform: none !important; margin: 0; border: none !important; box-shadow: none !important; background: transparent !important; }

    /* --- تصغير عناوين الخدمات --- */
    .service-title-en { position: relative; font-size: 2.5rem !important; opacity: 0.1; top: 0; left: 0; margin-bottom: -15px; color: var(--text-white); }
    .service-title-ar { font-size: 1.6rem !important; margin-bottom: 10px; }
    .service-desc { color: #ccc; font-size: 0.95rem !important; }

    /* قسم الشركاء (تعديل الخلفية) */
    #section6 {
        background: var(--bg-deep) !important;
        padding-top: 20px !important;
        padding-bottom: 40px !important;
        margin-bottom: 0 !important;
        display: flex; flex-direction: column; justify-content: center;
    }
    .partner-logo-display { opacity: 1 !important; transform: none !important; filter: none !important; }
    .partner-logo-display img { max-width: 70%; height: auto; margin: 0 auto; display: block; }
    .central-partner-stage { height: 120px; margin-bottom: 10px; }
    .partner-intro-text { color: #ccc; font-size: 1.2rem !important; }


    /* قسم التواصل */
    #section7 {
        background: var(--bg-deep) !important;
        padding-top: 40px !important;
        padding-bottom: 20px !important;
        margin-top: 0 !important;
        min-height: auto !important;
    }
    /* إزالة خلفية الوهج */
    .contact-bg-glow { display: none !important; }

    .contact-wrapper {
        flex-direction: column;
        width: 100%;
        margin: 0 0 20px 0; 
    }

    .contact-info-side {
        text-align: center !important;
        padding: 0;
        width: 100%;
        margin-bottom: 20px;
    }
    /* --- تصغير عنوان التواصل --- */
    .contact-headline { font-size: 2rem !important; margin-bottom: 10px; }
    .contact-sub { margin-bottom: 20px; color: #ccc; font-size: 0.95rem !important; }

    /* تعديل الأيقونات لتكون تحت بعضها (Vertical Stack) */
    .info-items {
        align-items: flex-start !important; 
        padding-right: 10px !important; 
    }
    .info-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important; 
        gap: 15px !important; 
        width: 100% !important; 
        direction: rtl !important; 
    }
    .icon-circle {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        flex-shrink: 0; 
    }
    .icon-circle svg { width: 20px; height: 20px; } 
    .info-row span {
        font-size: 1rem;
        color: #fff;
        text-align: right !important; 
        margin-top: 0 !important;
    }

    /* نموذج التواصل */
    .contact-form-side { width: 100%; display: flex; justify-content: center; }
    .glass-form-box { width: 100%; max-width: 100%; padding: 20px; margin: 0; }


    /* 4. الفوتر (إزالة الباركود وتعديل الترتيب) */
    .footer-dock-container {
        position: relative !important; 
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 30px !important; 
        display: flex !important;
        flex-direction: column-reverse !important; 
        gap: 20px !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .dock-section {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    /* إخفاء قسم الباركود في الجوال */
    .qr-code-area { display: none !important; }

    .social-links {
        background: rgba(255,255,255,0.1);
        padding: 15px 25px;
        border-radius: 50px;
        border: 1px solid rgba(255,255,255,0.1);
    }

    /* إخفاء العناصر المخصصة لسطح المكتب فقط */
    .back-group, 
    .up-btn-contact, .back-btn {
        display: none !important;
    }
}
.special-cta-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.5);
    animation: pulse-glow 2s infinite;
    font-weight: 900 !important;
    letter-spacing: 1px;

}

/* تأثير عند الضغط عليه */
.special-cta-btn:active {
    transform: scale(0.95);
}

/* تعريف حركة النبض (Animation) */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(189, 0, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(189, 0, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(189, 0, 255, 0);
    }
}
/* =========================================
   أزرار التواصل العائمة والنافذة المنبثقة
   ========================================= */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9990;
}

.fab-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.fab-btn {
    flex-direction: row; 
}

.fab-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.fab-text {
    background: rgba(255, 255, 255, 0.95);
    color: #12021a;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s;
    pointer-events: none;
}

.fab-btn:hover .fab-text {
    opacity: 1;
    transform: translateX(0);
}

.fab-btn:hover { transform: scale(1.05); }

/* ألوان مميزة للأزرار */
.consult-fab .fab-icon {
    background: linear-gradient(135deg, #bd00ff, #00d4ff); 
    border: 2px solid rgba(255,255,255,0.2);
}

.chat-fab .fab-icon {
    background: #25D366; 
    border: 2px solid rgba(255,255,255,0.2);
}


.consult-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.consult-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.consult-glass-box {
    width: 90%;
    max-width: 450px;
    background: rgba(30, 10, 40, 0.8);
    border: 1px solid rgba(189, 0, 255, 0.3);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(189, 0, 255, 0.15);
    transform: translateY(50px);
    transition: 0.4s;
    position: relative;
}

.consult-modal-overlay.active .consult-glass-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px; left: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }

.modal-header h3 { color: #fff; margin: 0 0 10px 0; font-family: 'Cairo', sans-serif; }
.modal-header p { color: #ccc; font-size: 0.9rem; margin-bottom: 25px; }

.modal-input-group { margin-bottom: 15px; text-align: right; }
.modal-input-group label { display: block; color: #bd00ff; margin-bottom: 5px; font-weight: bold; }
.modal-input-group input, .modal-input-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #507bfb;
    outline: none;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    padding-right: 2px;
}

.modal-row { display: flex; gap: 15px; }

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: linear-gradient(90deg, #00d4ff, #bd00ff);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.modal-submit-btn:hover { box-shadow: 0 0 20px rgba(189, 0, 255, 0.5); }

@media (max-width: 768px) {
    .floating-actions-container { left: 20px; bottom: 20px; }
    .fab-text { display: none; } 
}

/* =========================================
   تعديل ألوان الخلفية (كسر اللون الأبيض الناصع)
   ========================================= */

/* 1. لون الخلفية الأساسي للجسم */
body.white-mode {
    background-color: #f7f7f7 !important;
    color: #333 !important;
}


.white-section {
    background-color: #f7f7f7 !important;
}


body.white-mode .glass-header {
    background: rgba(247, 247, 247, 0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}


body.white-mode .about-glass-box,
body.white-mode .service-detail-box {
    background: rgba(255, 255, 255, 0.6) !important; 
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
/* =========================================
   تغيير لون خلفيات الأقسام (Override)
   ========================================= */
/* =========================================
   تغيير لون خلفيات الأقسام (Override) - الوضع الداكن الموحد
   ========================================= */
#section4, #section5, #section6, 
.white-section {
    background-color: #12021a !important; /* لون جود الداكن */
    background: #12021a !important;
}

/* تعديل البطاقات والنصوص في الكمبيوتر لتكون زجاجية داكنة وفخمة */
.about-glass-box,
.service-detail-box {
    background: rgba(30, 10, 40, 0.6) !important;
    border: 1px solid rgba(189, 0, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.1) !important;
}

/* تفتيح النصوص لتكون مقروءة بوضوح على الخلفية الداكنة */
.service-title-en { color: rgba(255, 255, 255, 0.03) !important; }
.typewriter-title { color: #fff !important; }
.service-desc, .typewriter-desc, .partner-intro-text { color: #ccc !important; }
.wheel-list-item { color: #ccc !important; }

/* =========================================
   إجبار الوضع الداكن في الجوال (Dark Mode Force)
   ========================================= */
@media (max-width: 768px) {
    /* 1. إجبار الخلفية على اللون الداكن الأساسي */
    body.white-mode,
    body.white-mode #mainWrapper,
    body.white-mode .section,
    .white-section,
    #section4, #section5, #section6 {
        background-color: #0f0518 !important; /* الخلفية الداكنة */
        background-image: none !important;
        color: #fff !important; /* النصوص بيضاء */
    }

    /* 2. إعادة البطاقات للستايل الزجاجي الداكن (Glassy Dark) */
    .glass-card, 
    .service-detail-box, 
    .about-glass-box,
    .wheel-container {
        background: rgba(30, 10, 40, 0.6) !important; /* زجاجي داكن */
        border: 1px solid rgba(189, 0, 255, 0.3) !important; /* حدود نيون خفيفة */
        box-shadow: 0 0 20px rgba(189, 0, 255, 0.1) !important;
    }

    /* 3. تصحيح ألوان العناوين والنصوص داخل البطاقات */
    .glass-card h3, .service-detail-box h3, .about-glass-box h3, 
    .wheel-list-item {
        color: #fff !important;
    }

    .glass-card p, .service-detail-box p, .about-glass-box p {
        color: #ccc !important;
    }

    /* 4. الهيدر في الجوال */
    body.white-mode .mobile-header,
    .mobile-header {
        background: rgba(15, 5, 24, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    /* 5. زر القائمة */
    .mobile-menu-toggle i {
        color: #fff !important;
    }
}
/* =========================================
   الضربة القاضية للون الأبيض (Force Dark Mode Everywhere)
   ========================================= */

/* 1. إجبار كل الأقسام والجسم على اللون الداكن دائماً */
body, 
body.white-mode, 
#section4, #section5, #section6, 
.white-section {
    background-color: #12021a !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* 2. تحويل البطاقات لستايل زجاجي داكن (Glassmorphism Dark) */
body.white-mode .about-glass-box,
body.white-mode .service-detail-box,
.about-glass-box,
.service-detail-box,
.white-section .glass-form-box {
    background: rgba(30, 10, 40, 0.6) !important;
    border: 1px solid rgba(189, 0, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.1) !important;
}

/* 3. تفتيح النصوص لتكون واضحة على الداكن */
body.white-mode h2, body.white-mode h3, 
body.white-mode p, body.white-mode .wheel-list-item,
.service-title-en, .service-desc, .typewriter-title, .typewriter-desc {
    color: #ffffff !important;
}
.service-title-en { opacity: 0.05 !important; } /* الكلمة الإنجليزية الكبيرة في الخلفية */
.service-desc, .typewriter-desc, .partner-intro-text { color: #cccccc !important; }

/* 4. الحفاظ على الهيدر داكن وشفاف دائماً */
body.white-mode .glass-header {
    background: rgba(18, 2, 26, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* =========================================
   التنظيف النهائي للوضع الداكن (Final Dark Mode Polish)
   ========================================= */

/* 1. القضاء على الضباب الأبيض في قسم "مين حنا" وتحويله لداكن */
.horizon-fade {
    background: linear-gradient(to bottom, #12021a 20%, transparent 100%) !important;
}

/* 2. تثبيت الهيدر ليكون داكناً وزجاجياً بشكل دائم */
.glass-header,
body.white-mode .glass-header {
    background: rgba(18, 2, 26, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}

/* 3. إجبار روابط القائمة العلوية على البقاء باللون الفاتح دائماً */
.nav-list li a,
body.white-mode .nav-list li a {
    color: #cccccc !important;
}
.nav-list li a:hover,
body.white-mode .nav-list li a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px var(--neon-purple) !important;
}

/* 4. الحفاظ على زر "انضم كتاجر" بستايل النيون */
body.white-mode .nav-btn, body.white-mode .secret-btn {
    border-color: var(--neon-purple) !important; 
    color: #fff !important; 
    background: rgba(189,0,255,0.15) !important;
}
.glass-header,
body.white-mode .glass-header {
    background: transparent !important; /* جعل الخلفية شفافة تماماً */
    border-bottom: none !important; /* إزالة الخط السفلي */
    box-shadow: none !important; /* إزالة أي ظل */
    /* backdrop-filter: none !important; */ /* احذف علامتي الملاحظة إذا أردت إزالة تأثير الغبش/الزجاج أيضاً */
}
/* =========================================
   تخصيص شريط التمرير ليتناسب مع هوية جود (Custom Scrollbar)
   ========================================= */

/* 1. التخصيص لمتصفحات فايرفوكس */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) var(--bg-deep);
}

/* 2. التخصيص لمتصفحات كروم، سفاري، إيدج، ومعظم الجوالات */
::-webkit-scrollbar {
    width: 6px; /* جعله نحيفاً وأنيقاً */
    height: 6px;
}

/* خلفية مسار الشريط */
::-webkit-scrollbar-track {
    background: #0a010f; /* لون داكن جداً يندمج مع الخلفية */
    border-radius: 10px;
}

/* الشريط المتحرك نفسه (Thumb) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple)); /* تدرج ألوان جود */
    border-radius: 10px; /* حواف دائرية ناعمة */
}

/* تأثير عند الوقوف عليه بالماوس (للديسكتوب إن ظهر) */
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}