/* =========================================
   1. لمسات احترافية (Professional Touches)
   ========================================= */

/* تخصيص شريط التمرير (Scrollbar) ليناسب الهوية */
::-webkit-scrollbar {
    width: 8px; /* تصغير العرض قليلاً */
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-green), var(--dark-green));
    border-radius: 5px;
    border: 2px solid #f8fafc;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* لون تحديد النص (Selection) */
::selection {
    background-color: var(--primary-green);
    color: white;
}

/* =========================================
   2. المتغيرات والإعدادات العامة
   ========================================= */
:root {
    --primary-green: #39ff14;
    --dark-green: #02542d;
    --neon-green: #39ff14;
    --light-gray: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Shadow Variables */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 20px 40px rgba(57, 255, 20, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px rgba(57, 255, 20, 0.25), 0 15px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --light-gray: #1e293b;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Cairo', sans-serif; 
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
    background-color: var(--bg-primary); 
    color: var(--text-primary); 
    overflow-x: hidden;
    max-width: 100vw;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
*:focus { outline: none; box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.3); }

/* Scroll Progress Bar - Enhanced */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--neon-green), #fbbf24);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

/* شاشة التحميل */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-content { text-align: center; }
.loader-content img { width: 80px; animation: pulse 1s infinite alternate; }
.loading-bar { width: 100px; height: 4px; background: #eee; margin: 20px auto; border-radius: 2px; overflow: hidden; position: relative; }
.loading-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 50%; background: var(--primary-green); animation: loading 1s infinite ease-in-out; }
@keyframes loading { 0% { left: -50%; } 100% { left: 100%; } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } }

/* =========================================
   3. الناف بار (Sticky Glass Navbar)
   ========================================= */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    background: transparent; 
    box-shadow: none;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid transparent; 
    transition: all 0.4s ease; 
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 5%; 
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.logo-area { display: flex; align-items: center; gap: 12px; }
.rotating-logo { height: 55px; animation: rotateLogo 25s linear infinite; }
@keyframes rotateLogo { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-area h2 { color: var(--dark-green); font-weight: 900; font-size: 1.6rem; letter-spacing: 1px; background: linear-gradient(to right, var(--dark-green), var(--primary-green)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--dark-green); font-weight: 700; transition: 0.3s; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 3px; background: var(--neon-green); transition: 0.3s; border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-green); }

.nav-buttons { display: flex; align-items: center; gap: 15px; }
#lang-switch { background: transparent; border: 2px solid var(--primary-green); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; color: var(--dark-green); transition: 0.3s; }
#lang-switch:hover { background: var(--primary-green); color: white; box-shadow: 0 0 15px var(--primary-green); }

.btn { padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; margin: 10px; display: inline-block; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; }
.btn-primary, .btn-login { background: linear-gradient(45deg, var(--dark-green), var(--primary-green)); color: white; border: none; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
.glow-effect:hover, .btn-login:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 30px rgba(57, 255, 20, 0.4); }
.btn-secondary { background: white; color: var(--dark-green); border: 2px solid var(--primary-green); }
.btn-secondary:hover { background: var(--primary-green); color: white; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); transform: translateY(-3px); }
.btnav .user-logged-in:hover { background: var(--primary-green); color: white; }

/* Dark Mode Toggle - Enhanced */
.dark-mode-toggle {
    background: var(--bg-card);
    border: 2px solid var(--primary-green);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.dark-mode-toggle:hover {
    transform: scale(1.15) rotate(20deg);
    border-color: var(--neon-green);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.dark-mode-toggle i {
    font-size: 1.2rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
    position: absolute;
}

.dark-mode-toggle i.fa-sun {
    display: none;
}

.dark-mode-toggle i.fa-moon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--bg-card);
    border-color: var(--neon-green);
}

[data-theme="dark"] .dark-mode-toggle i.fa-moon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle i.fa-sun {
    display: block;
    color: var(--neon-green);
}

/* Sections Dark Mode */
section {
    background: var(--bg-primary);
}

.about-section, .why-section, .products-section, .courses-section, 
.team-section, .partners-section, .faq-section, .shop-preview {
    background: var(--bg-primary);
}

.stats-section {
    background: var(--bg-secondary);
}

.vmg-card, .feature-box, .product-card, .course-card, 
.team-card, .faq-item, .order-card {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.about-reveal-container {
    background: var(--bg-card);
}

footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* ستايل المستخدم المسجل */
.user-logged-in { background: var(--light-gray); color: var(--dark-green); border: 1px solid var(--primary-green); box-shadow: none; display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
.user-logged-in i { font-size: 1.2rem; color: var(--primary-green); }

/* =========================================
   4. الأقسام والعناصر (UI Components)
   ========================================= */

/* أزرار عائمة */
.scroll-top { position: fixed; bottom: 30px; right: 30px; background: var(--primary-green); color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s; z-index: 999; opacity: 0; visibility: hidden; }
.scroll-top.active { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); background: var(--dark-green); color: white; }
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: white; width: 55px; height: 55px; border-radius: 50%; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; color: white; }

/* الهيرو سكشن */
.hero-section { height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #ffffff 50%, #e0f2fe 100%); }
.hero-bg-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); animation: moveBackground 60s linear infinite; opacity: 0.5; }
@keyframes moveBackground { from { background-position: 0 0; } to { background-position: 100% 100%; } }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-content h1 { font-size: 3.8rem; color: var(--dark-green); margin-bottom: 20px; font-weight: 900; text-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.text-highlight { color: transparent; background: linear-gradient(to right, var(--primary-green), var(--neon-green)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; animation: pulseText 2.5s infinite ease-in-out; }
@keyframes pulseText { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.05); filter: brightness(1.2); } }
.hero-content p { font-size: 1.2rem; color: var(--text-light); max-width: 700px; margin: 0 auto 45px auto; line-height: 1.7; }

/* العناوين */
.section-header { text-align: center; margin-bottom: 70px; }
.section-header .title { font-size: 2.5rem; color: var(--dark-green); font-weight: 800; position: relative; display: inline-block; }
.section-header .line { width: 80px; height: 4px; background: var(--primary-green); margin: 20px auto 0; border-radius: 2px; position: relative; overflow: hidden; }
.section-header .line::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: linear-gradient(to right, transparent, var(--neon-green), transparent); animation: lineShine 3s infinite ease-in-out; }
@keyframes lineShine { 100% { left: 100%; } }

/* عن الشركة */
.about-section { padding: 100px 0; background-color: transparent; overflow: hidden; }
.about-reveal-container { position: relative; max-width: 900px; margin: 0 auto 80px auto; padding: 50px; background: rgba(255, 255, 255, 0.8); border-radius: 25px; border: 1px solid rgba(16, 185, 129, 0.2); box-shadow: var(--shadow-soft); backdrop-filter: blur(15px); }
.definition-text p { font-size: 1.3rem; line-height: 1.9; color: var(--dark-green); font-weight: 600; text-align: center; }
.reveal-overlay { position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-green), var(--dark-green)); display: flex; align-items: center; justify-content: center; border-radius: 25px; z-index: 2; animation: revealTextAction 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards; animation-delay: 0.3s; }
.reveal-overlay img { height: 90px; filter: brightness(0) invert(1); animation: pulseLogo 1.5s infinite alternate ease-in-out; }
@keyframes pulseLogo { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.1); opacity: 1; } }
html[dir="rtl"] .reveal-overlay { animation-name: revealTextActionRTL; right: auto; left: 0; }
@keyframes revealTextActionRTL { 0% { width: 100%; } 100% { width: 0%; } }
html[dir="ltr"] .reveal-overlay { animation-name: revealTextActionLTR; left: 0; right: auto; }
@keyframes revealTextActionLTR { 0% { width: 100%; } 100% { width: 0%; } }

/* الكروت (3D) */
.vmg-grid, .team-grid, .app-grid, .features-grid, .stats-grid, .courses-grid { display: grid; gap: 30px; }
.vmg-grid, .team-grid, .courses-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.hover-3d { 
    background: white; 
    border-radius: 25px; 
    padding: 40px 30px; 
    text-align: center; 
    box-shadow: var(--shadow-soft); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    position: relative; 
    overflow: hidden; 
    perspective: 1000px; 
    transform-style: preserve-3d; 
}
.hover-3d::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 6px; 
    background: linear-gradient(to right, var(--primary-green), var(--neon-green)); 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: 0.4s; 
    z-index: 1; 
}
.hover-3d:hover { 
    transform: translateY(-15px) scale(1.05); 
    box-shadow: var(--shadow-hover); 
    border-color: rgba(57, 255, 20, 0.3); 
}
.hover-3d:hover::before { 
    transform: scaleX(1); 
}
.icon-wrapper { width: 85px; height: 85px; background: var(--light-gray); color: var(--primary-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 25px auto; transition: 0.5s; box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.1); position: relative; z-index: 2; }
.hover-3d:hover .icon-wrapper { background: linear-gradient(135deg, var(--primary-green), var(--neon-green)); color: white; box-shadow: 0 15px 30px rgba(57, 255, 20, 0.4); transform: rotateY(360deg) translateZ(20px); }
.vmg-card h3, .member-info h3, .course-content h3 { font-size: 1.5rem; color: var(--dark-green); margin-bottom: 15px; font-weight: 800; }
.vmg-card p { color: var(--text-light); line-height: 1.6; }

/* قسم الكورسات */
.courses-section { padding: 80px 0; background: linear-gradient(to top, var(--light-gray), #fff); }
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.course-icon { height: 120px; background: linear-gradient(135deg, var(--dark-green), var(--primary-green)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--neon-green); clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); margin-bottom: 20px; }
.course-content { padding: 0 25px 30px; }
.course-content p { font-size: 1rem; color: var(--text-light); margin-bottom: 20px; min-height: 60px; }
.course-meta { display: flex; justify-content: space-between; margin-bottom: 20px; border-top: 1px solid #eee; padding-top: 15px; font-size: 0.9rem; color: var(--dark-green); font-weight: bold; }
.course-meta i { color: var(--primary-green); margin-left: 5px; }

/* لماذا نحن */
.why-section { padding: 80px 0; background-color: transparent; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-box { padding: 35px 25px; }
.feature-box i { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 20px; display: inline-block; transition: 0.4s; }
.feature-box:hover i { transform: scale(1.2) rotate(10deg); color: var(--neon-green); }
.feature-box h4 { font-size: 1.3rem; color: var(--dark-green); margin-bottom: 10px; font-weight: 700; }
.feature-box p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }

/* الإحصائيات */
.stats-section { background: linear-gradient(135deg, var(--dark-green), #051a14); padding: 60px 0; color: white; position: relative; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat-item h2 { font-size: 3.5rem; font-weight: 900; color: var(--neon-green); display: inline-block; margin: 0; text-shadow: 0 0 20px rgba(57, 255, 20, 0.4); }
.stat-item span { font-size: 2.5rem; color: var(--primary-green); }
.stat-item p { font-size: 1.2rem; color: #d1d5db; margin-top: 10px; }

/* المنتجات */
.products-section { padding: 100px 0; background: linear-gradient(to bottom, var(--light-gray) 0%, #ffffff 100%); position: relative; }
.products-section::before { content: ""; position: absolute; top: -50px; left: 0; width: 100%; height: 100px; background: inherit; clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%); z-index: 0; }
.product-showcase { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin-bottom: 120px; position: relative; z-index: 1; }
.product-showcase.reverse { flex-direction: row-reverse; }
.prod-content { flex: 1; }
.prod-image { flex: 1; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.floating-animate { width: 100%; max-width: 500px; height: auto; object-fit: contain; filter: drop-shadow(0 35px 50px rgba(16, 185, 129, 0.25)); animation: floatImg 5s ease-in-out infinite; transition: 0.5s; }
.product-showcase:hover .floating-animate { transform: scale(1.05) rotateY(8deg) rotateX(2deg); }
@keyframes floatImg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
.badge { display: inline-block; background: linear-gradient(to right, var(--primary-green), var(--neon-green)); color: var(--dark-green); padding: 8px 22px; border-radius: 30px; font-size: 0.95rem; font-weight: 900; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(57, 255, 20, 0.3); animation: pulseBadge 2s infinite; }
@keyframes pulseBadge { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(57, 255, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); } }
.prod-content h3 { font-size: 2.4rem; color: var(--dark-green); margin-bottom: 20px; font-weight: 900; }
.prod-desc { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 25px; }
.features-list li { margin-bottom: 18px; font-size: 1.15rem; color: var(--dark-green); display: flex; align-items: center; gap: 12px; transition: 0.3s; border-radius: 10px; padding: 5px; }
.features-list li:hover { transform: translateX(10px); background: var(--light-gray); }
.features-list i { color: var(--neon-green); font-size: 1.4rem; filter: drop-shadow(0 2px 5px rgba(57, 255, 20, 0.5)); }
.app-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 30px; }
.app-item { display: flex; align-items: center; gap: 15px; font-size: 1rem; color: var(--dark-green); font-weight: 700; padding: 18px; border-radius: 15px; background: var(--light-gray); transition: 0.3s; border: 1px solid transparent; }
.app-item:hover { background: white; box-shadow: var(--shadow-glow); transform: translateY(-7px); border-color: var(--neon-green); }
.app-item i { color: var(--primary-green); background: white; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.3rem; box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1); transition: 0.4s; }
.app-item:hover i { background: var(--primary-green); color: white; transform: rotate(360deg) scale(1.1); box-shadow: 0 0 15px var(--neon-green); }

/* فريق العمل */
.team-section { padding: 100px 0; background-color: transparent; position: relative; z-index: 1; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.15rem; margin-top: 20px; }
.fixed-order { direction: rtl !important; }
.fixed-order .member-card { direction: initial; }
.member-card { padding: 50px 25px; }
.member-img { width: 190px; height: 190px; margin: 0 auto 30px; border-radius: 50%; overflow: hidden; background: linear-gradient(to bottom, var(--primary-green), var(--dark-green)); padding: 4px; box-shadow: var(--shadow-soft); position: relative; transition: 0.5s; z-index: 2; }
.member-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: 0.5s; filter: grayscale(30%); border-radius: 50%; background: white; }
.member-card:hover .member-img { box-shadow: 0 0 30px rgba(57, 255, 20, 0.6); transform: scale(1.05) translateZ(20px); }
.member-card:hover .member-img img { filter: grayscale(0%); transform: scale(1.1); }
.member-info .role { color: var(--primary-green); font-weight: 800; letter-spacing: 1px; margin-bottom: 20px; display: block; text-transform: uppercase; }
.social-links a { width: 40px; height: 40px; line-height: 40px; background: var(--light-gray); border-radius: 50%; color: var(--dark-green); margin: 0 8px; font-size: 1.2rem; transition: 0.3s; display: inline-block; border: 1px solid rgba(0,0,0,0.05); }
.social-links a:hover { background: var(--primary-green); color: white; transform: translateY(-5px) rotate(360deg); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4); border-color: transparent; }

/* شركاء النجاح */
.partners-section { padding: 80px 0; background-color: #ffffff; overflow: hidden; }
.logos-slider { overflow: hidden; white-space: nowrap; position: relative; padding: 20px 0; }
.logos-slider::before, .logos-slider::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.logos-slider::before { left: 0; background: linear-gradient(to right, white, transparent); }
.logos-slider::after { right: 0; background: linear-gradient(to left, white, transparent); }
.logos-track { display: flex; gap: 60px; animation: scroll 25s linear infinite; width: max-content; }
.partner-logo { display: flex; align-items: center; justify-content: center; }
.partner-logo img { height: 70px; filter: grayscale(100%); opacity: 0.6; transition: 0.4s; cursor: pointer; }
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.partner-logo.tech { font-size: 1.2rem; font-weight: bold; color: #888; display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0.7; transition: 0.4s; }
.partner-logo.tech i { font-size: 2.5rem; color: #ccc; }
.partner-logo.tech:hover { opacity: 1; color: var(--dark-green); }
.partner-logo.tech:hover i { color: var(--primary-green); transform: scale(1.1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* الأسئلة الشائعة */
.faq-section { padding: 80px 0; background-color: transparent; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: 15px; margin-bottom: 15px; box-shadow: var(--shadow-soft); overflow: hidden; border: 1px solid rgba(0,0,0,0.05); transition: 0.3s; }
.faq-item:hover { border-color: var(--primary-green); }
.faq-question { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-question h4 { font-size: 1.1rem; color: var(--dark-green); font-weight: 700; margin: 0; }
.faq-question i { color: var(--primary-green); transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background-color: var(--light-gray); padding: 0 25px; }
.faq-answer p { padding: 20px 0; color: var(--text-light); line-height: 1.6; margin: 0; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* الفوتر */
footer { background: linear-gradient(to bottom, var(--dark-green), #02120f); color: white; padding: 0 0 30px; margin-top: 80px; position: relative; overflow: hidden; }
.footer-wave { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.footer-wave::before { content: ""; display: block; width: 100%; height: 60px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center; background-size: cover; }
footer::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 10%, transparent 60%); animation: rotateFooter 25s linear infinite; z-index: 0; }
@keyframes rotateFooter { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; padding-top: 80px; margin-bottom: 60px; text-align: right; position: relative; z-index: 2; }
.footer-brand h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--neon-green); font-weight: 900; text-shadow: 0 0 15px rgba(57, 255, 20, 0.4); letter-spacing: 2px; }
.footer-brand p { color: #d1d5db; line-height: 1.8; font-size: 1.15rem; max-width: 300px; margin-left: auto; }
.footer-contact-info h3, .footer-social h3 { font-size: 1.5rem; margin-bottom: 30px; color: white; position: relative; padding-bottom: 15px; font-weight: 800; }
.footer-contact-info h3::after, .footer-social h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60px; height: 4px; background: linear-gradient(to right, var(--primary-green), var(--neon-green)); border-radius: 2px; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.contact-item i { color: var(--neon-green); font-size: 1.4rem; filter: drop-shadow(0 0 8px var(--neon-green)); transition: 0.3s; }
.contact-item i.fa-whatsapp { color: #25D366; filter: drop-shadow(0 0 8px #25D366); }
.contact-item a { text-decoration: none; color: #e5e7eb; font-size: 1.15rem; transition: 0.3s; font-weight: 500; }
.contact-item a:hover { color: var(--neon-green); padding-right: 10px; text-shadow: 0 0 10px var(--neon-green); }
.contact-item:hover i { transform: scale(1.2); }
.social-icons-grid { display: flex; gap: 18px; }
.social-link { width: 55px; height: 55px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: white; font-size: 1.5rem; transition: 0.4s; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); position: relative; overflow: hidden; }
.social-link::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom right, rgba(255,255,255,0.2), transparent); opacity: 0; transition: 0.4s; }
.social-link:hover { transform: translateY(-7px) rotate(360deg); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.social-link:hover::before { opacity: 1; }
.social-link.fb:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 0 25px #1877f2; }
.social-link.in:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 0 25px #0077b5; }
.social-link.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border: none; box-shadow: 0 0 25px #dc2743; }
.social-link.tt:hover { background: #000000; border-color: #00f2ea; box-shadow: 0 0 25px #00f2ea; color: #ff0050; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 30px 0; text-align: center; color: #9ca3af; font-size: 1rem; position: relative; z-index: 2; background: rgba(0,0,0,0.2); backdrop-filter: blur(10px); }

/* === Modal Styles === */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px); 
    animation: fadeIn 0.3s; 
}

.modal-content { 
    background-color: #fefefe; 
    margin: 10% auto; 
    padding: 40px; 
    border: 1px solid #888; 
    width: 90%; 
    max-width: 450px; 
    border-radius: 20px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); 
    position: relative; 
    animation: slideUp 0.4s; 
}

@keyframes slideUp { from {transform: translateY(50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.close-modal { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
}
.close-modal:hover { color: var(--primary-green); }

.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h3 { color: var(--dark-green); font-size: 1.8rem; margin-bottom: 10px; }

.auth-tabs { display: flex; justify-content: space-around; margin-bottom: 25px; border-bottom: 2px solid #eee; }
.auth-tab { background: none; border: none; padding: 10px 20px; font-size: 1.1rem; cursor: pointer; color: #6b7280; font-weight: bold; transition: 0.3s; border-bottom: 3px solid transparent; }
.auth-tab.active { color: var(--primary-green); border-bottom-color: var(--primary-green); }

.user-type-selector { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; background: #f0fdf4; padding: 15px; border-radius: 15px; }
.user-type-selector label { font-weight: bold; color: var(--dark-green); cursor: pointer; display: flex; align-items: center; gap: 8px; }

/* =========================================
   5. تحسينات الخانات وزر جوجل (New Styles)
   ========================================= */

/* تحسين شكل خانات الإدخال */
.input-group { 
    position: relative; 
    margin-bottom: 15px; 
}

.input-group i { 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--primary-green); 
    z-index: 10; 
}

.input-group input, 
.input-group select { 
    width: 100%; 
    padding: 12px 45px 12px 15px !important; 
    border-radius: 10px !important; 
    border: 2px solid #eee !important; 
    transition: 0.3s; 
    font-size: 1rem !important; 
    font-family: 'Cairo', sans-serif;
}

.input-group input:focus { 
    border-color: var(--primary-green) !important; 
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); 
    outline: none;
}

/* زر جوجل العصري */
.btn-google { 
    display: flex !important;
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    background: #ffffff; 
    color: #444; 
    border: 1px solid #dadce0; 
    padding: 10px 16px; 
    border-radius: 10px; 
    cursor: pointer; 
    width: 100%; 
    font-weight: 600; 
    margin-top: 15px; 
    transition: background-color .2s, box-shadow .2s; 
    font-family: 'Cairo', sans-serif;
}

.btn-google:hover { 
    background: #f8f8f8; 
    box-shadow: 0 1px 3px 0 rgba(60,64,67,.30), 0 4px 8px 3px rgba(60,64,67,.15); 
}

.btn-google img { 
    width: 20px; 
    height: 20px;
}

/* الفاصل بين الطرق */
.divider { 
    text-align: center; 
    position: relative; 
    margin: 20px 0; 
}

.divider::before { 
    content: ""; 
    position: absolute; 
    width: 100%; 
    height: 1px; 
    background: #eee; 
    top: 50%; 
    right: 0; 
}

.divider span { 
    background: white; 
    padding: 0 15px; 
    position: relative; 
    color: #999; 
    font-size: 0.9rem; 
}

/* =========================================
   🎨 ADVANCED MODERN FEATURES
   ========================================= */

/* Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 18px 28px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    border-left: 5px solid;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left-color: var(--primary-green);
    background: linear-gradient(to right, rgba(57, 255, 20, 0.1), white);
}

.toast-success i {
    color: var(--primary-green);
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 5px rgba(57, 255, 20, 0.3));
}

.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.1), white);
}

.toast-error i {
    color: #ef4444;
    font-size: 1.8rem;
}

/* Reveal on Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Gradient Backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.animated-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, var(--light-gray));
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    margin: 20px;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

.author-info h4 {
    color: var(--dark-green);
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-green), #064e3b);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 10%, transparent 60%);
    animation: rotateBackground 20s linear infinite;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--neon-green);
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.3);
}

.newsletter-btn {
    padding: 15px 35px;
    background: var(--neon-green);
    color: var(--dark-green);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.4);
}

/* Enhanced Button Effects */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-shimmer:hover::before {
    left: 100%;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Improved Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-green);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Enhanced Shop Section */
.shop-preview {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--light-gray), white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 800;
    margin-bottom: 15px;
}

.product-rating {
    color: #fbbf24;
    margin-bottom: 15px;
}

/* =======================================================
   🍔 HAMBURGER MENU STYLES
   ======================================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
    border-radius: 8px;
    transition: background 0.3s;
}
.hamburger:hover { background: rgba(57, 255, 20, 0.1); }
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-overlay.show { display: block; opacity: 1; }

/* Mobile nav buttons (hidden on desktop) */
.nav-btns-mobile { display: none; }

/* =======================================================
   🔥🔥🔥 استجابة الموبايل (RESPONSIVE FIXES) 🔥🔥🔥
   ======================================================= */
@media screen and (max-width: 900px) {
    
    /* ==== HAMBURGER: إظهار السطر الثلاثي ==== */
    .hamburger { display: flex; }
    
    /* ==== NAV LINKS: تتحول لـ sidebar ==== */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 85vw);
        height: 100dvh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 80px 0 30px;
        z-index: 1060;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        overflow-y: auto;
        align-items: stretch;
        border-radius: 0;
    }
    .nav-links.open { right: 0; }
    
    .nav-links li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-links a {
        display: block;
        padding: 18px 30px;
        font-size: 1.1rem;
        color: var(--dark-green);
        font-weight: 700;
        width: 100%;
        text-align: right;
        transition: all 0.2s;
    }
    .nav-links a:hover, .nav-links a:active {
        background: #f0fdf4;
        color: var(--primary-green);
        padding-right: 40px;
    }
    .nav-links a::after { display: none; }
    
    /* Mobile lang button inside nav */
    .nav-btns-mobile {
        display: block;
        padding: 20px 30px;
        border-bottom: none !important;
    }
    .nav-btns-mobile button {
        background: linear-gradient(45deg, var(--dark-green), var(--primary-green));
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: bold;
        color: white;
        font-family: 'Cairo', sans-serif;
        font-size: 1rem;
        width: 100%;
    }
    
    /* ==== NAV BUTTONS: إخفاء lang switch الرئيسي ==== */
    #lang-switch { display: none; }
    
    /* ==== الناف بار العام ==== */
    nav {
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0,0,0,0.08);
        border-bottom: 1px solid rgba(16,185,129,0.1);
        justify-content: space-between;
    }
    
    /* ==== زر تسجيل الدخول على الموبايل: صغير وأنيق ==== */
    .nav-buttons {
        gap: 8px;
    }
    .nav-buttons .btn-login {
        display: flex !important;
        padding: 8px 14px;
        font-size: 0.8rem;
        margin: 0;
        border-radius: 20px;
        white-space: nowrap;
    }
    .nav-buttons .user-logged-in {
        display: flex !important;
        padding: 7px 12px;
        font-size: 0.8rem;
        margin: 0;
        border-radius: 20px;
    }
    
    .logo-area h2 { font-size: 1.3rem; }
    .rotating-logo { height: 42px; }

    /* ==== HERO SECTION ==== */
    .hero-section {
        height: auto;
        min-height: 90vh;
        padding: 100px 20px 60px;
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        line-height: 1.35;
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        padding: 0;
        margin-bottom: 30px;
    }
    .cta-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .cta-group .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        margin: 0;
    }
    
    /* ==== العناوين والأقسام ==== */
    .section-header { margin-bottom: 40px; }
    .section-header .title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section-subtitle { font-size: 1rem; padding: 0 10px; }
    
    .about-reveal-container { padding: 30px 20px; margin: 0 0 50px; }
    .definition-text p { font-size: 1rem; }
    
    /* ==== VMG Cards grid ==== */
    .vmg-grid, .features-grid, .stats-grid, .courses-grid {
        grid-template-columns: 1fr;
    }
    .vmg-card, .feature-box { padding: 30px 20px; }
    
    /* ==== PRODUCTS ==== */
    .products-section { padding: 70px 0; }
    .product-showcase, .product-showcase.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 50px;
    }
    .prod-content h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
    .prod-desc { font-size: 1rem; }
    .floating-animate { max-width: 280px; }
    .features-list li { font-size: 1rem; }
    .app-grid { grid-template-columns: 1fr; gap: 15px; }
    .app-integration { padding: 20px; }
    
    /* ==== SHOP ==== */
    .shop-preview { padding: 70px 0; }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* ==== STATS ==== */
    .stats-section { padding: 50px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-item h2 { font-size: 2.8rem; }
    
    /* ==== TEAM ==== */
    .team-section { padding: 70px 0; }
    .team-grid { grid-template-columns: 1fr !important; max-width: 380px; margin: 0 auto; }
    .member-card { padding: 35px 20px; }
    .member-img { width: 160px; height: 160px; }
    
    /* ==== FAQ ==== */
    .faq-section { padding: 60px 0; }
    .faq-question h4 { font-size: 1rem; }
    
    /* ==== NEWSLETTER ==== */
    .newsletter-section { padding: 60px 0; }
    .newsletter-content h2 { font-size: 1.8rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-btn { width: 100%; }
    .newsletter-input { text-align: center; }
    
    /* ==== FOOTER ==== */
    footer { padding: 0 0 20px; margin-top: 50px; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 60px;
    }
    .footer-brand p { margin: 0 auto; }
    .footer-contact-info h3::after, .footer-social h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .contact-item { justify-content: center; }
    .social-icons-grid { justify-content: center; }
    .footer-brand h2 { font-size: 2rem; }

    /* ==== General ==== */
    .container { width: 92%; }
    img { max-width: 100%; height: auto; }
    .btn { padding: 12px 24px; font-size: 0.9rem; margin: 5px; }
    .btn-sm { padding: 8px 16px; font-size: 0.85rem; }
    
    /* Fix floating buttons */
    .scroll-top { bottom: 20px; right: 15px; width: 40px; height: 40px; }
    .whatsapp-float { bottom: 20px; left: 15px; width: 50px; height: 50px; font-size: 26px; }
    
    /* Toast responsive */
    .toast {
        right: 10px;
        left: 10px;
        bottom: 80px;
        min-width: unset;
    }
    
    /* Courses section */
    .courses-section { padding: 60px 0; }
    .course-content p { min-height: auto; }
    
    /* Partners */
    .partners-section { padding: 50px 0; }
    
    /* About section */
    .about-section { padding: 70px 0; }
    .why-section { padding: 60px 0; }
}

/* Extra small phones */
@media screen and (max-width: 400px) {
    .hero-content h1 { font-size: 1.6rem; }
    .section-header .title { font-size: 1.4rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item h2 { font-size: 2.2rem; }
    .member-img { width: 140px; height: 140px; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-brand h2 { font-size: 1.7rem; }
    nav { padding: 10px 15px; }
    .logo-area h2 { font-size: 1.1rem; }
    .rotating-logo { height: 36px; }
}

/* =========================================
   User Dropdown Menu
   ========================================= */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 2000;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown .dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown-menu a:hover {
    background: #f0fdf4;
    color: var(--primary-green);
    padding-right: 25px;
}

.user-dropdown .dropdown-menu a i {
    color: var(--primary-green);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-dropdown .dropdown-menu a:last-child i {
    color: #ef4444;
}

.user-dropdown .dropdown-menu a:last-child:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Logged in user button style */
.btn-login.user-logged-in {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* =========================================================
   Mobile Professional UX Enhancements
========================================================= */

/* 1. Mobile Bottom Action Bar (hidden on desktop) */
.mobile-bottom-bar {
    display: none;
}

@media screen and (max-width: 900px) {
    /* Show Bottom Bar */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
        padding: 5px 15px;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        border-top: 1px solid rgba(16, 185, 129, 0.1);
        padding-bottom: calc(5px + env(safe-area-inset-bottom));
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* Wrap the CTA in a flex container so items stay symmetric */
    .mobile-bottom-bar > a {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .bottom-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none;
        font-size: 0.7rem;
        gap: 4px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        width: 100%;
    }

    .bottom-bar-item i {
        font-size: 1.25rem;
        margin-bottom: 2px;
    }

    .bottom-bar-item:active {
        color: var(--primary-green);
        transform: scale(0.95);
    }

    .bottom-bar-cta {
        background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
        color: white !important;
        padding: 10px;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        transform: translateY(-20px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
        flex: none;
        border: 4px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-bar-cta i {
        font-size: 1.6rem;
        margin: 0;
    }
    
    .bottom-bar-cta span {
        display: none;
    }

    /* Adjust body padding so content isn't hidden behind bottom bar */
    body {
        padding-bottom: 70px;
    }

    /* 2 & 4. Eliminate heavy hover-3d processing on touch & remove tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .product-card:hover, .service-card:hover, .feature-card:hover, .vmg-card:hover {
        transform: translateY(-2px); /* Smoother, lighter transform for mobile scroll */
        box-shadow: var(--shadow-md);
    }
    
    /* 3. Improved Full-Screen Modal on Mobile */
    .modal-content {
        width: 95%;
        margin: auto;
        margin-top: 5vh;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    /* 5. Product Cards Adjustment for Mobile readability */
    .product-img {
        height: 220px; 
    }
    
    .product-info {
        padding: 20px;
    }
    
    /* Adjust floating buttons positioning */
    .whatsapp-float {
        display: none !important; /* Replaced by bottom bar */
    }
    
    .scroll-top {
        bottom: 90px; /* Shift up above bottom bar */
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}