/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Noto Sans Arabic', 'Noto Sans Kurdish', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
body[dir="rtl"] { direction: rtl; text-align: right; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; font-size: .95rem; }
.btn-sm { padding: 8px 20px; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gradient); color: #fff; border-color: transparent; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,.4); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,255,255,.3); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(20px); box-shadow: var(--shadow); padding: 10px 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: #fff; }
.navbar.scrolled .nav-logo { color: var(--text); }
.logo-icon { width: 40px; height: 40px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; }
.navbar.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switcher { position: relative; }
.lang-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.navbar.scrolled .lang-btn { background: var(--bg-alt); border-color: var(--border); color: var(--text); }
.lang-btn:hover { background: rgba(255,255,255,.25); }
.navbar.scrolled .lang-btn:hover { background: var(--border); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-xl); min-width: 140px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); overflow: hidden; z-index: 100; }
.lang-dropdown.active, .lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: block; padding: 10px 16px; font-size: .9rem; color: var(--text); font-weight: 500; }
.lang-dropdown a:hover { background: var(--bg-alt); color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.navbar.scrolled .mobile-toggle { color: var(--text); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--bg-dark); overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero-shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; animation: float 8s ease-in-out infinite; }
.hero-shape-2 { width: 400px; height: 400px; background: #a855f7; bottom: -100px; left: -100px; animation: float 10s ease-in-out infinite reverse; }
.hero-shape-3 { width: 300px; height: 300px; background: #ec4899; top: 50%; left: 50%; animation: float 12s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { color: #fff; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.3); border-radius: 50px; font-size: .85rem; font-weight: 600; color: var(--primary-light); margin-bottom: 20px; animation: fadeInUp .6s ease-out; }
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; animation: fadeInUp .6s ease-out .1s both; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 520px; animation: fadeInUp .6s ease-out .2s both; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; animation: fadeInUp .6s ease-out .3s both; }
.hero-stats { display: flex; gap: 40px; animation: fadeInUp .6s ease-out .4s both; }
.stat-item { text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Hero Dashboard Visual */
.hero-visual { animation: fadeInRight .8s ease-out .3s both; }
.hero-dashboard { background: rgba(255,255,255,.08); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.dashboard-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.dashboard-dots { display: flex; gap: 6px; }
.dashboard-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-dots span:nth-child(1) { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #f59e0b; }
.dashboard-dots span:nth-child(3) { background: #22c55e; }
.dashboard-title { font-size: .8rem; color: rgba(255,255,255,.5); font-weight: 600; }
.dashboard-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.dash-card { background: rgba(255,255,255,.08); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.dash-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.dash-card-value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.dash-card-label { font-size: .75rem; color: rgba(255,255,255,.5); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; padding: 6px 16px; background: rgba(99,102,241,.08); color: var(--primary); border-radius: 50px; font-size: .85rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: .95rem; line-height: 1.6; }

/* ===== MODULES ===== */
.modules { padding: 100px 0; }
.module-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.module-tab { padding: 10px 24px; border: 2px solid var(--border); border-radius: 50px; background: #fff; color: var(--text-light); font-weight: 600; font-size: .9rem; cursor: pointer; transition: var(--transition); }
.module-tab:hover { border-color: var(--primary); color: var(--primary); }
.module-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.module-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.module-card.hidden { display: none; }
.module-header { padding: 24px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; min-height: 120px; }
.module-body { padding: 20px 24px 24px; }
.module-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.module-body p { color: var(--text-light); font-size: .88rem; margin-bottom: 12px; line-height: 1.5; }
.module-features li { position: relative; padding-left: 18px; font-size: .82rem; color: var(--text-light); margin-bottom: 4px; }
.module-features li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
body[dir="rtl"] .module-features li { padding-left: 0; padding-right: 18px; }
body[dir="rtl"] .module-features li::before { left: auto; right: 0; }

/* ===== WHY US ===== */
.why { padding: 100px 0; background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); border: 1px solid var(--border); text-align: center; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.why-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: rgba(99,102,241,.08); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.4rem; transition: var(--transition); }
.why-card:hover .why-icon { background: var(--gradient); color: #fff; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-light); font-size: .92rem; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; }
.cta-box { background: var(--gradient); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: rgba(255,255,255,.1); border-radius: 50%; }
.cta-box::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px; background: rgba(255,255,255,.08); border-radius: 50%; }
.cta-box h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; gap: 16px; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.contact-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.contact-icon { width: 48px; height: 48px; background: rgba(99,102,241,.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.contact-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: .88rem; color: var(--text-light); line-height: 1.5; }
.contact-card a { color: var(--primary); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .95rem; font-family: inherit; transition: var(--transition); background: var(--bg-alt); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; max-width: 300px; }
.footer-links h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .85rem; }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; background: var(--gradient); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99; box-shadow: var(--shadow-lg); }
.back-to-top.visible, .back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* ===== ANIMATIONS ===== */
[data-aos] { opacity: 0; transition: all .6s ease-out; }
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(.95); }
[data-aos].aos-animate { opacity: 1; transform: translate(0) scale(1); }

/* ===== RTL ===== */
body[dir="rtl"] .hero h1 { direction: rtl; }
body[dir="rtl"] .hero-desc { direction: rtl; }
body[dir="rtl"] .section-header h2 { direction: rtl; }
body[dir="rtl"] .contact-card { flex-direction: row-reverse; }
body[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { max-width: 500px; margin: 40px auto 0; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); gap: 0; }
    .nav-links.active { display: flex; }
    .nav-links a { color: var(--text) !important; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-actions .btn { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.6rem; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .stat-number { font-size: 1.4rem; }
    .dashboard-body { grid-template-columns: 1fr; }
}
