:root {
    --deep-navy: #040D21;
    --steel-blue: #2C5BA1;
    --light-silver: #D7D9DB;
    --crisp-white: #FFFFFF;
    --navy-light: #061430;
    --navy-card: #0A1A3A;
    --steel-blue-hover: #3A6FB8;
    --steel-blue-glow: rgba(44, 91, 161, 0.35);
    --text-primary: #FFFFFF;
    --text-secondary: #D7D9DB;
    --text-muted: #A0A5B0;
    --bg-primary: #040D21;
    --bg-secondary: #061430;
    --bg-card: #0A1A3A;
    --bg-card-hover: #0D1F45;
    --border-subtle: rgba(215, 217, 219, 0.12);
    --border-card: rgba(215, 217, 219, 0.08);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(44, 91, 161, 0.25);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1280px;
    --navbar-height: 72px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
    --text-primary: #040D21;
    --text-secondary: #1A2A45;
    --text-muted: #5A6070;
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F2F5;
    --border-subtle: rgba(4, 13, 33, 0.1);
    --border-card: rgba(4, 13, 33, 0.06);
    --shadow-card: 0 4px 24px rgba(4, 13, 33, 0.08);
    --shadow-glow: 0 0 30px rgba(44, 91, 161, 0.15);
}

[dir="rtl"] { direction: rtl; }
[dir="rtl"] .hero-stats { justify-content: flex-end; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-height); }
body { background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; transition: background 0.3s, color 0.3s; overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--steel-blue); border-radius: 20px; }
::selection { background: var(--steel-blue); color: #fff; }

/* Background effects */
.bg-pattern { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.03;
    background-image: radial-gradient(circle at 20% 30%, var(--steel-blue) 1px, transparent 1px),
                      radial-gradient(circle at 85% 75%, var(--light-silver) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px; }
[data-theme="light"] .bg-pattern { opacity: 0.05; }

.floating-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(90px); opacity: 0.09; animation: floatOrb 20s ease-in-out infinite; }
.orb-1 { width: 350px; height: 350px; background: var(--steel-blue); top: -100px; right: -80px; }
.orb-2 { width: 280px; height: 280px; background: var(--steel-blue); bottom: -90px; left: -70px; animation-delay: -10s; }
@keyframes floatOrb { 0%,100%{ transform: translate(0,0) scale(1); } 25%{ transform: translate(50px,-40px) scale(1.1); } 50%{ transform: translate(-30px,60px) scale(0.9); } 75%{ transform: translate(-50px,-30px) scale(1.05); } }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--navbar-height);
    background: rgba(4,13,33,0.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle);
    transition: box-shadow 0.3s; }
[data-theme="light"] .navbar { background: rgba(255,255,255,0.9); }
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.3); }
[data-theme="light"] .navbar.scrolled { box-shadow: 0 2px 20px rgba(4,13,33,0.08); }

.navbar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; padding: 10px 16px; border-radius: 28px; transition: 0.25s; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { background: var(--steel-blue); color: #fff; }
.nav-cta { background: var(--steel-blue); color: #fff !important; font-weight: 600; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.lang-toggle, .theme-toggle { background: none; border: 2px solid var(--border-subtle); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text-secondary); transition: 0.2s; }
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--steel-blue); color: var(--steel-blue); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: 0.4s cubic-bezier(.68,-.3,.27,1.3); }
[data-theme="dark"] .icon-sun { transform: translateY(40px); opacity: 0; }
[data-theme="dark"] .icon-moon { transform: translateY(0); opacity: 1; }
[data-theme="light"] .icon-sun { transform: translateY(0); opacity: 1; }
[data-theme="light"] .icon-moon { transform: translateY(-40px); opacity: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--text-primary); border-radius: 4px; transition: 0.35s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(4,13,33,0.55); z-index: 999; backdrop-filter: blur(4px); }
.overlay.active { display: block; }

@media (max-width: 900px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-secondary); flex-direction: column; padding: 100px 32px; gap: 8px; transition: right 0.4s; box-shadow: -8px 0 40px rgba(0,0,0,0.4); border-left: 1px solid var(--border-subtle); }
    .nav-links.open { right: 0; }
    .hamburger { display: flex; }
}

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--navbar-height); }
.hero-grid { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; width: 100%; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.hero-tag { display: inline-block; padding: 6px 20px; background: var(--steel-blue); color: #fff; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 24px; }
.hero-content h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.accent { color: var(--steel-blue); position: relative; }
.accent::after { content: ''; position: absolute; bottom: 6px; left: 0; width: 100%; height: 6px; background: var(--steel-blue); opacity: 0.2; border-radius: 4px; }
.hero-content p { font-size: 1.15rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: 0.3s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--steel-blue); color: #fff; box-shadow: 0 4px 20px var(--steel-blue-glow); }
.btn-primary:hover { background: var(--steel-blue-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-subtle); }
.btn-outline:hover { border-color: var(--steel-blue); color: var(--steel-blue); }
.hero-stats { display: flex; gap: 32px; }
.stat { color: var(--text-muted); font-size: 0.95rem; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--steel-blue); }

.hero-geo { width: 280px; height: 280px; position: relative; margin: 0 auto; }
.geo-shape { position: absolute; border-radius: var(--radius-lg); }
.shape-1 { width: 180px; height: 180px; background: var(--steel-blue); top: 10px; left: 10px; opacity: 0.7; border-radius: 36% 64% 50% 50% / 40% 50% 50% 60%; animation: geoFloat1 8s ease-in-out infinite; }
.shape-2 { width: 140px; height: 140px; background: var(--deep-navy); border: 3px solid var(--light-silver); bottom: 20px; right: 0px; opacity: 0.9; border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; animation: geoFloat2 10s ease-in-out infinite; }
.shape-3 { width: 70px; height: 70px; background: var(--light-silver); top: 100px; right: 40px; opacity: 0.5; border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; animation: geoFloat3 8s ease-in-out infinite; }
@keyframes geoFloat1 { 0%,100%{ transform: translate(0,0) rotate(0); } 33%{ transform: translate(12px,-16px) rotate(4deg); } 66%{ transform: translate(-8px,10px) rotate(-3deg); } }
@keyframes geoFloat2 { 0%,100%{ transform: translate(0,0) rotate(0); } 33%{ transform: translate(-14px,8px) rotate(-5deg); } 66%{ transform: translate(10px,-12px) rotate(3deg); } }
@keyframes geoFloat3 { 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(8px,-20px) scale(1.1); } }

/* Sections */
.section { padding: 80px 24px; max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.tag { display: inline-block; padding: 6px 18px; background: var(--steel-blue); color: #fff; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 36px 28px; transition: 0.4s; box-shadow: var(--shadow-card); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow-glow); border-color: var(--steel-blue); }
.service-card .svg-icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--steel-blue); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.clients-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.client-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 16px 24px; transition: 0.3s; }
.client-item:hover { border-color: var(--steel-blue); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.client-item img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.client-item span { font-weight: 600; color: var(--text-secondary); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.contact-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px; text-align: center; border: 1px solid var(--border-card); transition: 0.3s; }
.contact-card:hover { border-color: var(--steel-blue); }
.contact-link { color: var(--steel-blue); font-weight: 600; text-decoration: none; word-break: break-word; display: block; margin: 8px 0; }
.social-links a { display: block; color: var(--text-secondary); text-decoration: none; margin: 4px 0; }
.domain-text { font-weight: 700; font-size: 1.1rem; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 48px 24px 24px; position: relative; z-index: 1; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-col h4 { margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--steel-blue); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-card); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-weight: 600; }
.footer-social a:hover { background: var(--steel-blue); color: #fff; }
.footer-bottom { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } .footer-social { justify-content: center; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
