:root {
  color-scheme: light;
  --bg: #f3f8ff;
  --bg-surface: #ffffff;
  --line: rgba(16, 42, 67, 0.12);
  --line-bright: rgba(16, 42, 67, 0.24);
  --text: #12263f;
  --text-secondary: #4f6884;
  --accent-teal: #06a67c;
  --accent-blue: #118ab2;
  --accent-amber: #f4b942;
  --accent-orange: #e7791f;
  --gradient-main: linear-gradient(135deg, #06a67c, #118ab2);
  --gradient-warm: linear-gradient(135deg, #f4b942, #e7791f);
  --gradient-mix: linear-gradient(135deg, #06a67c 0%, #118ab2 50%, #f4b942 100%);
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-hover: rgba(255, 255, 255, 0.96);
  --shadow-lg: 0 20px 54px rgba(7, 25, 42, 0.12);
  --shadow-glow: 0 0 36px rgba(17, 138, 178, 0.1);
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-hover-bg: rgba(255, 255, 255, 0.9);
  --header-scroll-bg: rgba(255, 255, 255, 0.96);
  --header-hover-shadow: 0 8px 32px rgba(7, 25, 42, 0.12);
  --header-scroll-shadow: 0 4px 24px rgba(7, 25, 42, 0.14);
  --grid-line: rgba(16, 42, 67, 0.06);
  --ghost-bg: rgba(16, 42, 67, 0.05);
  --ghost-bg-hover: rgba(16, 42, 67, 0.1);
  --nav-link-hover-bg: rgba(16, 42, 67, 0.08);
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --radius-xl: 1.8rem;
  --font-heading: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060e18;
  --bg-surface: #0c1a2b;
  --line: rgba(255, 255, 255, 0.07);
  --line-bright: rgba(255, 255, 255, 0.14);
  --text: #eaf2fb;
  --text-secondary: #8da5be;
  --accent-teal: #06d6a0;
  --accent-blue: #118ab2;
  --accent-amber: #ffd166;
  --accent-orange: #f77f00;
  --gradient-main: linear-gradient(135deg, #06d6a0, #118ab2);
  --gradient-warm: linear-gradient(135deg, #ffd166, #f77f00);
  --gradient-mix: linear-gradient(135deg, #06d6a0 0%, #118ab2 50%, #ffd166 100%);
  --card-bg: rgba(12, 26, 43, 0.65);
  --card-hover: rgba(16, 34, 56, 0.8);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(6, 214, 160, 0.08);
  --header-bg: rgba(8, 18, 32, 0.72);
  --header-hover-bg: rgba(8, 18, 32, 0.85);
  --header-scroll-bg: rgba(8, 18, 32, 0.92);
  --header-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --header-scroll-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --grid-line: rgba(255, 255, 255, 0.03);
  --ghost-bg: rgba(255, 255, 255, 0.03);
  --ghost-bg-hover: rgba(255, 255, 255, 0.07);
  --nav-link-hover-bg: rgba(255, 255, 255, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  margin: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 10% 15%, rgba(6, 214, 160, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(247, 127, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(17, 138, 178, 0.06) 0%, transparent 70%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb--teal {
  width: 32rem;
  height: 32rem;
  background: rgba(6, 214, 160, 0.14);
  top: -10rem;
  left: -8rem;
}

.orb--amber {
  width: 26rem;
  height: 26rem;
  background: rgba(247, 127, 0, 0.10);
  bottom: -8rem;
  right: -6rem;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.orb--blue {
  width: 20rem;
  height: 20rem;
  background: rgba(17, 138, 178, 0.08);
  top: 40%;
  left: 50%;
  animation-duration: 25s;
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  width: 100%;
  max-width: 1200px;
  margin: 0.75rem auto 0;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header:hover {
  background: var(--header-hover-bg);
  box-shadow: var(--header-hover-shadow);
}

.site-header.is-scrolled {
  background: var(--header-scroll-bg);
  box-shadow: var(--header-scroll-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-nav {
  display: flex;
  gap: 0.15rem;
}

.top-nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.top-nav a:hover {
  color: var(--text);
  background: var(--nav-link-hover-bg);
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.top-nav a:hover::after {
  width: 60%;
  left: 20%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.lang-switch:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.2);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--ghost-bg);
  box-shadow: 0 0 12px rgba(17, 138, 178, 0.18);
}

.theme-toggle .theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.theme-toggle .theme-icon--sun {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle .theme-icon--moon {
  opacity: 0;
  transform: scale(0.65);
}

[data-theme="dark"] .theme-toggle .theme-icon--sun {
  opacity: 0;
  transform: scale(0.65);
}

[data-theme="dark"] .theme-toggle .theme-icon--moon {
  opacity: 1;
  transform: scale(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #050d16;
  background: var(--gradient-main);
  box-shadow: 0 4px 18px rgba(6, 214, 160, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta svg {
  display: inline-block;
  vertical-align: middle;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(6, 214, 160, 0.35);
}

.hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.65rem;
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  max-width: 14ch;
  line-height: 1.08;
}

.hero h1 .gradient-text {
  background: var(--gradient-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.2rem;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  color: #050d16;
  background: var(--gradient-main);
  box-shadow: 0 8px 28px rgba(6, 214, 160, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(6, 214, 160, 0.32);
}

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--text);
  background: var(--ghost-bg);
}

.btn-ghost:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--line-bright);
  transform: translateY(-1px);
}

.overview-cards {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.overview-card {
  position: relative;
  padding: 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s ease;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.overview-card:hover {
  background: var(--card-hover);
  border-color: var(--line-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.overview-card:hover::before {
  opacity: 1;
}

.overview-card:nth-child(1)::before { background: var(--gradient-main); }
.overview-card:nth-child(2)::before { background: linear-gradient(135deg, #118ab2, #6c63ff); }
.overview-card:nth-child(3)::before { background: var(--gradient-warm); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon--electric { background: rgba(6, 214, 160, 0.1); color: var(--accent-teal); }
.card-icon--software { background: rgba(17, 138, 178, 0.12); color: var(--accent-blue); }
.card-icon--marketing { background: rgba(255, 209, 102, 0.1); color: var(--accent-amber); }

.overview-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.overview-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.section {
  margin-top: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.section-badge svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.section-header h2 {
  font-size: 1.6rem;
  max-width: 22ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  position: relative;
  padding: 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--card-hover);
  border-color: var(--line-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.svc-icon svg {
  width: 22px;
  height: 22px;
}

.section--electric .svc-icon { background: rgba(6, 214, 160, 0.08); color: var(--accent-teal); }
.section--software .svc-icon { background: rgba(17, 138, 178, 0.1); color: var(--accent-blue); }
.section--marketing .svc-icon { background: rgba(255, 209, 102, 0.08); color: var(--accent-amber); }

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  position: relative;
  padding: 1.6rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient-mix);
  border-radius: 2px;
  opacity: 0.4;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 3rem 0;
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
}

.site-footer {
  margin-top: 4rem;
  margin-bottom: 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-mix);
}

.site-footer h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-info a {
  transition: color 0.2s ease;
}

.footer-info a:hover {
  color: var(--accent-teal);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

html[dir="rtl"] {
  --font-heading: 'IBM Plex Sans Arabic', 'Segoe UI', 'Tahoma', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', 'Tahoma', sans-serif;
}

html[dir="rtl"] body {
  font-family: var(--font-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

html[dir="rtl"] .brand-name {
  font-family: var(--font-heading);
}

html[dir="rtl"] .section-badge {
  text-transform: none;
  letter-spacing: 0;
}

html[dir="rtl"] .hero h1 {
  max-width: 18ch;
}

html[dir="rtl"] .section-header h2 {
  max-width: 30ch;
}

html[dir="rtl"] .site-footer {
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 681px) {
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 3.2rem; }
  .section-header h2 { font-size: 2rem; }
  .site-footer h2 { font-size: 1.6rem; }
}

@media (min-width: 981px) {
  .hero { padding-top: 8rem; }
  .hero h1 { font-size: 4.2rem; }
  .section { margin-top: 6rem; }
  .section-divider { margin: 5rem 0; }
  .stats { margin-top: 6rem; }
  .site-footer { margin-top: 6rem; }
  .section-header h2 { font-size: 2.6rem; }
  .site-footer h2 { font-size: 2rem; }
}

@media (max-width: 980px) {
  .top-nav { display: none; }
  .overview-cards,
  .service-grid,
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .site-header { border-radius: var(--radius-lg); padding: 0.7rem 0.9rem; }
  .nav-cta { display: none; }
  .overview-cards,
  .service-grid,
  .stats { grid-template-columns: 1fr; }
}
