/* ================= المتغيرات والإعدادات العامة ================= */
:root {
    --primary: #2563eb;       /* أزرق احترافي */
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;     /* كحلي غامق داكن */
    --text-main: #1e293b;
    --text-sub: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    scroll-behavior: smooth;
}

/* ================= الشريط العلوي (Navbar) ================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 24px; font-weight: 800; color: var(--secondary); text-decoration: none;
    display: flex; align-items: center; gap: 8px;
}
.logo i { color: var(--primary); }
.logo span { font-weight: 400; color: var(--text-sub); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-main); font-weight: 600;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.btn-login {
    background: var(--primary); color: var(--white) !important;
    padding: 8px 20px; border-radius: 8px; font-size: 14px;
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-2px); }

.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 24px;
    color: var(--text-main); cursor: pointer;
}

/* ================= قسم الترحيب (Hero) ================= */
.hero {
    padding: 160px 20px 100px;
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.hero-badge {
    display: inline-block; padding: 6px 15px; border-radius: 20px;
    background: #e0e7ff; color: var(--primary); font-size: 13px; font-weight: 700;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 48px; line-height: 1.3; margin: 0 0 20px 0; color: var(--secondary);
}
.hero h1 span { color: var(--primary); }
.hero p {
    font-size: 18px; color: var(--text-sub); line-height: 1.6; margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 15px; }
.hero-buttons a {
    text-decoration: none; padding: 12px 25px; border-radius: 8px; font-weight: 700;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.hero-buttons .btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }
.hero-buttons .btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.hero-buttons .btn-secondary { background: var(--white); color: var(--text-main); border: 1px solid #cbd5e1; }
.hero-buttons .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.abstract-shape {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    height: 400px; width: 100%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ================= قسم الأدوات ================= */
.tools-section {
    padding: 80px 20px; max-width: 1200px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: var(--secondary); margin-bottom: 10px; }
.section-header p { color: var(--text-sub); font-size: 16px; }

.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.tool-card {
    background: var(--white); padding: 30px; border-radius: 16px;
    border: 1px solid #e2e8f0; text-decoration: none; color: inherit;
    transition: var(--transition); position: relative; overflow: hidden;
}
.tool-card:hover:not(.disabled) {
    transform: translateY(-5px); border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
}
.tool-icon {
    height: 60px; width: 60px; background: #eff6ff; color: var(--primary);
    border-radius: 12px; display: flex; justify-content: center; align-items: center;
    font-size: 24px; margin-bottom: 20px; transition: var(--transition);
}
.tool-card:hover:not(.disabled) .tool-icon { background: var(--primary); color: var(--white); }
.tool-card h3 { margin: 0 0 10px 0; font-size: 20px; color: var(--secondary); }
.tool-card p { color: var(--text-sub); font-size: 14px; line-height: 1.6; margin-bottom: 20px;}
.tool-link { color: var(--primary); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 5px; }

.tool-card.disabled { opacity: 0.7; cursor: not-allowed; }
.tool-badge {
    position: absolute; top: 20px; left: 20px; background: #f1f5f9;
    color: #64748b; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}

/* ================= الفوتر ================= */
footer {
    background: var(--secondary); color: var(--white); padding: 40px 20px; text-align: center;
}
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer-logo i { color: var(--primary); }
footer p { color: #94a3b8; font-size: 14px; margin: 0; }

/* ================= التجاوب (Mobile Responsive) ================= */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--white); flex-direction: column; padding: 20px 0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-top: 1px solid #e2e8f0;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}