/* ===== Global Reset & Variables ===== */
:root {
    --emerald-50: oklch(0.97 0.02 160);
    --emerald-100: oklch(0.93 0.04 160);
    --emerald-500: oklch(0.6 0.15 160);
    --emerald-600: oklch(0.55 0.17 160);
    --emerald-700: oklch(0.5 0.16 160);
    --emerald-800: oklch(0.4 0.14 160);
    --emerald-900: oklch(0.32 0.12 160);
    --emerald-950: oklch(0.25 0.1 160);
    --gold-400: oklch(0.85 0.15 85);
    --gold-500: oklch(0.8 0.18 85);
    --white: #ffffff;
    --gray-50: oklch(0.98 0 0);
    --gray-100: oklch(0.95 0 0);
    --gray-200: oklch(0.9 0 0);
    --gray-400: oklch(0.7 0 0);
    --gray-500: oklch(0.6 0 0);
    --gray-600: oklch(0.5 0 0);
    --gray-700: oklch(0.4 0 0);
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; direction: rtl; text-align: right; color: var(--gray-700); background: var(--white); line-height: 1.8; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: var(--radius); font-weight: 700; font-family: 'Cairo', sans-serif; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--emerald-800); color: var(--white); }
.btn-primary:hover { background: var(--emerald-900); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: var(--white); backdrop-filter: blur(10px); }
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.btn-gold { background: var(--gold-400); color: var(--emerald-900); }
.btn-gold:hover { background: var(--gold-500); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--gray-100); transition: all 0.3s ease; }
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--emerald-200); }
.logo-text { font-weight: 800; font-size: 1.1rem; color: var(--emerald-900); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; font-size: 0.9rem; color: var(--gray-600); transition: all 0.2s; }
.nav-links a:hover { background: var(--emerald-50); color: var(--emerald-800); }
.nav-cta { background: var(--emerald-800) !important; color: var(--white) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--emerald-900) !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--emerald-900); transition: 0.3s; }
@media (max-width: 900px) {
    .mobile-toggle { display: flex; }
    .nav-links { position: fixed; top: 72px; right: 0; left: 0; background: var(--white); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--gray-100); display: none; box-shadow: var(--shadow-lg); }
    .nav-links.active { display: flex; }
}

/* Hero */
.hero { min-height: 90vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800), var(--emerald-950)); position: relative; overflow: hidden; padding-top: 72px; }
.hero-bg-shapes .shape { position: absolute; border-radius: 50%; opacity: 0.1; }
.shape-1 { width: 288px; height: 288px; background: var(--emerald-400); top: 80px; right: 80px; filter: blur(80px); }
.shape-2 { width: 384px; height: 384px; background: var(--gold-400); bottom: 80px; left: 80px; filter: blur(80px); }
.hero-content { position: relative; z-index: 10; }
.hero-logo-container { display: flex; justify-content: center; margin-bottom: 2rem; }
.hero-logo { width: 96px; height: 96px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.2); box-shadow: var(--shadow-xl); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.1); border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: var(--emerald-100); font-size: 0.9rem; margin-bottom: 1.5rem; }
.hero-title { font-size: 2.5rem; font-weight: 900; color: var(--white); line-height: 1.3; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
.hero-highlight { color: var(--gold-400); display: block; margin-top: 0.5rem; }
.hero-desc { color: rgba(255,255,255,0.9); font-size: 1.1rem; line-height: 1.8; max-width: 500px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; }
.hero-stats-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 2rem; }
.stats-grid-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-mini { text-align: center; padding: 1rem; background: rgba(255,255,255,0.05); border-radius: var(--radius); }
.stat-num { display: block; font-size: 1.5rem; font-weight: 900; color: var(--gold-400); }
.stat-label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* Stats */
.stats-section { position: relative; margin-top: -2rem; z-index: 20; padding-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-lg); border: 1px solid var(--emerald-50); transition: all 0.3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-number { display: block; font-size: 2rem; font-weight: 900; color: var(--emerald-900); }
.stat-label { display: block; font-size: 0.85rem; color: var(--gray-500); margin-top: 0.5rem; }

/* Services */
.services-section { padding: 5rem 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: var(--emerald-50); color: var(--emerald-700); border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: 2rem; font-weight: 900; color: var(--emerald-900); margin-bottom: 0.5rem; }
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-desc { color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-100); transition: all 0.3s; display: block; }
.service-card:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.service-card-header { width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-weight: 900; color: var(--white); }
.service-card-research { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); }
.service-card-writing { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); }
.service-card-publishing { background: linear-gradient(135deg, #d97706, #b45309); }
.service-card-technical { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.service-number { font-size: 1.25rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--emerald-900); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }
.service-card-footer { margin-top: 1rem; font-size: 0.85rem; color: var(--emerald-600); font-weight: 600; opacity: 0; transition: opacity 0.3s; }
.service-card:hover .service-card-footer { opacity: 1; }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800)); padding: 8rem 0 4rem; text-align: center; }
.page-hero h1 { font-size: 2.5rem; font-weight: 900; color: var(--white); margin-bottom: 0.5rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.back-link { display: inline-block; color: var(--gold-400); font-weight: 600; margin-bottom: 1rem; }
.back-link:hover { text-decoration: underline; }

/* Content */
.content-section { padding: 4rem 0; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.content-text h2 { font-size: 1.75rem; font-weight: 900; color: var(--emerald-900); margin-bottom: 1rem; margin-top: 2rem; }
.content-text h2:first-child { margin-top: 0; }
.content-text p { color: var(--gray-600); line-height: 1.9; margin-bottom: 1rem; }
.content-text h3 { font-size: 1.25rem; font-weight: 700; color: var(--emerald-800); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.5rem 0; padding-right: 1.5rem; position: relative; color: var(--gray-600); }
.feature-list li::before { content: '\2713'; position: absolute; right: 0; color: var(--emerald-600); font-weight: bold; }
.steps-list { padding: 0; counter-reset: steps; list-style: none; }
.steps-list li { padding: 0.75rem 0; padding-right: 2.5rem; position: relative; counter-increment: steps; color: var(--gray-600); }
.steps-list li::before { content: counter(steps); position: absolute; right: 0; width: 28px; height: 28px; background: var(--emerald-100); color: var(--emerald-700); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.steps-list strong { color: var(--emerald-800); }

/* Values */
.values-section { padding: 4rem 0; background: var(--emerald-50); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all 0.3s; }
.value-card:hover { box-shadow: var(--shadow-lg); }
.value-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--emerald-900); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--gray-500); }

/* CTA */
.cta-section { padding: 4rem 0; background: var(--emerald-900); text-align: center; }
.cta-section h2 { font-size: 2rem; font-weight: 900; color: var(--white); margin-bottom: 0.5rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* Service Detail */
.service-detail-grid { max-width: 800px; margin: 0 auto; }
.service-detail-desc { font-size: 1.1rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 2rem; }

/* Contact */
.contact-grid { max-width: 600px; margin: 0 auto; }
.contact-info { background: var(--emerald-50); border-radius: var(--radius); padding: 2rem; }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--emerald-900); margin-bottom: 1.5rem; }
.contact-item { margin-bottom: 1.5rem; }
.contact-item h3 { font-size: 0.9rem; font-weight: 600; color: var(--gray-500); margin-bottom: 0.25rem; }
.contact-link { color: var(--emerald-800); font-weight: 600; font-size: 1.1rem; }
.contact-link:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--emerald-950); padding: 3rem 0 0; color: rgba(255,255,255,0.8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand .footer-logo { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 0.75rem; }
.footer-brand h3 { color: var(--white); font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-links h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #25D366; color: var(--white); border-radius: 8px; font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; margin-top: 2rem; }
.footer-bottom p { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; z-index: 999; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); transition: all 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
