* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Header */
.site-header {
  background: #1e293b;
  position: relative !important;
  z-index: 100;
  height: auto !important;
  padding: 15px 0 !important;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto !important;
  min-height: 56px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.main-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  gap: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.main-nav::-webkit-scrollbar {
  display: none !important;
}
.main-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 600;
  padding: 6px 8px !important;
  border-radius: 6px;
  transition: 0.2s;
}
.main-nav a:hover {
  color: #fff;
  background: #334155;
}
/* Hero */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}
.tool-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.tool-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.tool-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
}
.tool-card p {
  font-size: 14px;
  color: #64748b;
}
/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 20px 40px;
}
.feature {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}
.feature p {
  font-size: 14px;
  color: #64748b;
}
/* Footer */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 30px 20px;
}
.footer-links {
  margin-bottom: 12px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}
.footer-links a:hover {
  color: #fff;
}
.copyright {
  font-size: 13px;
}
/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-btn {
  background: #334155;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #cbd5e1;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.lang-btn:hover {
  background: #475569;
  color: #fff;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 6px;
  display: none;
  z-index: 200;
}
.lang-dropdown.open {
  display: block;
}
.lang-dropdown a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: 0.15s;
}
.lang-dropdown a:hover {
  background: #334155;
  color: #fff;
}
/* RTL support (Arabic) */
html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}
html[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 8px;
}
/* Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .tools-grid { grid-template-columns: 1fr; padding: 20px; }
  .features { grid-template-columns: 1fr; padding: 0 20px 20px; }
}
