/* Gexa Cloud Design System */
:root {
  --primary: #0B1F3A;
  --primary-light: #0F2D5C;
  --accent: #1E90FF;
  --accent-light: #00B4D8;
  --accent-gradient: linear-gradient(135deg, #1E90FF 0%, #00B4D8 100%);
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0B1F3A;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en: 'Inter', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-en); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
body[dir="rtl"] { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, h5, h6 { color: var(--primary); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.text-gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-label { display: inline-block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.125rem; max-width: 640px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }
section { padding: 80px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 16px rgba(30, 144, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 144, 255, 0.45); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text); transition: var(--transition); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent-gradient); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 50px; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); transition: var(--transition); }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 31, 58, 0.92) 0%, rgba(15, 45, 92, 0.85) 50%, rgba(30, 144, 255, 0.3) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 720px; color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; font-size: 0.875rem; margin-bottom: 24px; backdrop-filter: blur(8px); }
.hero-badge .dot { width: 8px; height: 8px; background: #25D366; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.hero-stat strong { display: block; font-size: 1.75rem; color: #fff; }
.hero-stat span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(0, 180, 216, 0.1)); border-radius: var(--radius); margin-bottom: 20px; color: var(--accent); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.card-link:hover { gap: 10px; }
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-content { order: 2; }
.service-block.reverse .service-visual { order: 1; }
.service-visual { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.service-visual svg { width: 80px; height: 80px; color: var(--accent); }
.feature-list { margin-top: 20px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--text-muted); font-size: 0.95rem; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.software-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; justify-content: center; }
.software-tab { padding: 10px 20px; border-radius: 50px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: var(--transition); color: var(--text); }
.software-tab:hover, .software-tab.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.software-panel { display: none; }
.software-panel.active { display: block; }
.software-panel-inner { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px; }
.software-panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.software-panel .panel-desc { color: var(--text-muted); margin-bottom: 32px; }
.software-section-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.software-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.software-features li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 0.925rem; color: var(--text-muted); }
.software-features li::before { content: '•'; color: var(--accent); font-weight: 700; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.why-item { text-align: center; padding: 32px 24px; }
.why-number { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--accent-gradient); color: #fff; border-radius: 50%; font-weight: 700; margin: 0 auto 16px; }
.cta-section { background: var(--primary); color: #fff; text-align: center; padding: 80px 0; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.about-image img { max-width: 280px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 48px; }
.value-card { text-align: center; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.value-card h4 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { font-size: 0.875rem; color: var(--text-muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(0, 180, 216, 0.1)); border-radius: var(--radius); color: var(--accent); flex-shrink: 0; }
.contact-form { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; background: var(--bg); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-container { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; height: 360px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.page-header { background: var(--primary); color: #fff; padding: calc(var(--header-h) + 60px) 0 60px; text-align: center; }
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; }
.footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.8); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: var(--transition); }
.footer-social a:hover { background: var(--accent); color: #fff; }
.general-features { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.feature-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feature-item span { font-size: 0.925rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); transform: translateY(-120%); opacity: 0; transition: var(--transition); box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .menu-toggle { display: flex; }
  .nav .btn-sm { display: none; }
  .service-block, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-block.reverse .service-content, .service-block.reverse .service-visual { order: unset; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .software-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}
.bg-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
