/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;600;700;800&family=IBM+Plex+Mono&display=swap');

:root {
  /* Dark Mode Default */
  --color-bg-base: #050D1A;
  --color-bg-surface: #0D1A2E;
  --color-bg-surface-elevated: #122238;
  --color-border-default: #1A2E4A;
  --color-border-subtle: #0F1D33;
  --color-text-primary: #F0F4FA;
  --color-text-secondary: #8899B4;
  --color-text-muted: #4D6080;
  
  --color-brand-primary: #00C8B4;
  --color-brand-secondary: #007A8A;
  --color-brand-glow: rgba(0,200,180,0.15);
  --color-brand-light: rgba(0,200,180,0.08);
  
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  --font-family-base: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-family-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-base: 200ms ease;
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
}

[data-theme="light"] {
  --color-bg-base: #F5F7FA;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-elevated: #EEF2F8;
  --color-border-default: #D6DFF0;
  --color-border-subtle: #E8EDF5;
  --color-text-primary: #0D1A2E;
  --color-text-secondary: #4A6080;
  --color-text-muted: #8899B4;
  
  --color-brand-primary: #007A8A;
  --color-brand-secondary: #00A89A;
  --color-brand-glow: rgba(0,122,138,0.10);
  --color-brand-light: #E0F5F3;

  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-error: #DC2626;
  
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Typography */
h1 { font-size: 48px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 36px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
p { font-size: 16px; margin-bottom: 12px; color: var(--color-text-secondary); }

.text-teal { color: var(--color-brand-primary); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background-color: var(--color-brand-primary);
  color: #050D1A;
  padding: 14px 28px;
  font-size: 15px;
}
[data-theme="light"] .btn-primary { color: #FFFFFF; }
.btn-primary:hover {
  background-color: #00E5CE;
  transform: translateY(-2px);
}
[data-theme="light"] .btn-primary:hover { background-color: #005F6E; }

.btn-secondary {
  background-color: transparent;
  color: var(--color-brand-primary);
  border: 1.5px solid var(--color-brand-primary);
  padding: 14px 28px;
}
.btn-secondary:hover {
  background-color: var(--color-brand-light);
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: transparent;
  transition: var(--transition-base);
  height: 64px;
}
.header.scrolled {
  background-color: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-default);
}
[data-theme="light"] .header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
}
.light-logo {
  display: none;
}
[data-theme="light"] .dark-logo {
  display: none;
}
[data-theme="light"] .light-logo {
  display: block;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding: 8px 0;
}
.nav-links a.active {
  color: var(--color-brand-primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-brand-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 24px;
  cursor: pointer;
}
.theme-toggle {
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  font-size: 20px;
}

/* Footer */
.footer {
  background-color: #030912;
  color: var(--color-text-secondary);
  padding: 64px 0 24px;
  margin-top: auto;
}
[data-theme="light"] .footer {
  background-color: #0D1A2E;
  color: #8899B4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #F0F4FA;
  margin-bottom: 24px;
  font-size: 18px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a:hover {
  color: var(--color-brand-primary);
}
.footer-bottom {
  border-top: 1px solid var(--color-border-default);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border-default);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
}
.newsletter-form button {
  background: var(--color-brand-primary);
  border: none;
  border-radius: var(--radius-md);
  width: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  color: #050D1A;
}
.newsletter-form button:hover {
  background: #00E5CE;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-bg-base);
  border: 1.5px solid var(--color-border-default);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  transition: var(--transition-base);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-glow);
}
select.form-control {
  appearance: none;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand-primary);
}

/* Common Section Styles */
.section-padding {
  padding: 64px 0;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.tag-label {
  display: inline-block;
  background-color: var(--color-brand-primary);
  color: #050D1A;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
[data-theme="light"] .tag-label { color: #FFFFFF; }
