/* style_v3.css - مع تحسينات موقع الشرح */
:root {
    --primary-black: #111111;
    --logo-green: #6CC24A;
    --bg-white: #ffffff;
    --bg-light-green: #d1f2d6; 
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

body {
    margin: 0; padding: 0;
    font-family: var(--font-en);
    background-color: var(--bg-white);
    color: var(--primary-black);
    transition: background-color 0.4s ease-in-out; 
    overflow-x: hidden;
}

/* Header */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; 
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 60px; height: auto; }
.brand-name { font-size: 1.8rem; font-weight: 800; color: var(--primary-black); margin: 0; text-decoration: none; }
.green-text { color: var(--logo-green); }

select { 
    padding: 8px 15px; border-radius: 20px; 
    border: 1px solid rgba(0,0,0,0.1); 
    background: rgba(255,255,255,0.5);
    font-weight: bold; cursor: pointer; outline: none; 
}

/* Sections */
section { padding: 80px 10%; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.content-wrapper { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.text-col { flex: 1; min-width: 300px; }
.img-col { flex: 1; min-width: 300px; }
.feature-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transition: transform 0.5s; }
.feature-img:hover { transform: scale(1.02); }

h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
p { font-size: 1.2rem; line-height: 1.8; color: #444; }

/* Grid Systems */
.platforms-grid { 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; /* مهم جداً لمحاذاة العناصر من الأعلى */
    gap: 20px; 
    flex-wrap: wrap; 
    margin-top: 40px; 
}

/* العنصر الذي يحوي البطاقة + الشرح */
.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px; /* تحديد عرض ثابت ليكون الشرح مرتباً */
}

.platform-card { 
    background: rgba(255,255,255,0.9); 
    padding: 30px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    width: 150px; /* عرض البطاقة */
    transition: transform 0.3s, border 0.3s; 
    cursor: pointer;
    margin-bottom: 15px; /* مسافة بين البطاقة والشرح */
}

.platform-card:hover { transform: translateY(-10px); border: 1px solid var(--logo-green); }
.platform-card:active { transform: scale(0.95); }
.platform-card i { font-size: 2.5rem; color: var(--logo-green); margin-bottom: 15px; }
.platform-card span { display: block; font-weight: bold; }

/* صندوق الشرح الجديد (تحت كل جهاز) */
.platform-desc-box {
    display: none; /* مخفي افتراضياً */
    background: rgba(108, 194, 74, 0.1); 
    border-radius: 15px; 
    border-left: 4px solid #6CC24A; 
    padding: 15px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-box { background: rgba(255,255,255,0.9); padding: 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.feature-box i { font-size: 2.5rem; color: var(--logo-green); margin-bottom: 15px; }

.contact-btn { display: inline-block; background-color: var(--logo-green); color: white; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.2rem; margin-bottom: 30px; transition: background 0.3s; }
.contact-btn:hover { background-color: #5ab03e; }

footer { background-color: var(--primary-black); color: white; text-align: center; padding: 60px 20px; }
.copyright { color: #888; font-size: 0.9rem; }

#scrollToTopBtn { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: none; outline: none; background-color: var(--primary-black); color: white; cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px; transition: background-color 0.3s; }
#scrollToTopBtn:hover { background-color: var(--logo-green); }

body.green-mode { background-color: var(--bg-light-green); }
.scroll-reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .brand-name { font-size: 1.2rem; } h2 { font-size: 1.8rem; } section { padding: 50px 5%; }
    .platform-item { width: 100%; max-width: 300px; } /* تحسين للموبايل */
}