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

html, body {
  font-family: 'Inter', Arial, sans-serif;
  background: #ffffff;
  color: #222;
  scroll-behavior: smooth;
  min-height: 100vh;
}

:root {
  --primary-color: #ff6700;
  --accent-orange: #ffaa33;
  --background: #ffffff;
  --background-soft: #f2f2f2;
  --text: #222;
  --text-light: #f8f8f8;
  --gray-border: #cccccc;
  --focus-outline: 2px solid #ff6700;
}

a:focus, button:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.lang-ar {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 999;
  transition: background 0.3s ease;
}
.lang-ar:hover,
.lang-ar:focus {
  background-color: #e65c00;
  color: #fff;
}

.toggle-theme {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--text);
  transition: background 0.3s, opacity 0.3s;
}
.toggle-theme:hover,
.toggle-theme:focus {
  background: rgba(0,0,0,0.10);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-soft);
  background: linear-gradient(135deg, var(--background-soft) 70%, #fff6ed 100%);
  /* Glassmorphism subtle effect */
  backdrop-filter: blur(2px) saturate(150%);
}
.hero-content {
  max-width: 800px;
  background-color: rgba(255,255,255,0.8);
  border: 1px solid var(--gray-border);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.hero-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 0 0 6px #fff3e0;
}

.gradient-text {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}
.card-section:not(:last-child) {
  margin-bottom: 40px;
}
.card-section.center-text {
  text-align: center;
  gap: 20px;
}

.card {
  width: 100%;
  max-width: 800px;
  background: rgba(255,255,255,0.93);
  border: 1px solid var(--gray-border);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s;
  /* subtle glass effect */
  backdrop-filter: blur(1.5px) saturate(120%);
}
.card:hover,
.card:focus-within {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.card h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.card h3 {
  color: #444;
  margin-top: 20px;
  margin-bottom: 10px;
}
.card p, .card li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}
.card.center-text {
  text-align: center;
}
.card ul {
  padding-left: 1.5rem;
}

.map-img {
  width: 100%;
  max-width: 775px;
  border-radius: 12px;
  margin-top: 15px;
  border: 1px solid var(--gray-border);
  aspect-ratio: 775/319;
  object-fit: cover;
}

.footer {
  background: var(--background-soft);
  border-top: 1px solid var(--gray-border);
  text-align: center;
  padding: 30px 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.footer img {
  margin-top: 10px;
  margin-bottom: 10px;
}
.footer nav {
  margin-top: 16px;
}
.footer .d-flex {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(.4,0,.2,1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark {
  background: #1c1c1c;
  color: var(--text-light);
}
body.dark .card,
body.dark .hero,
body.dark .footer,
body.dark .hero-content {
  background-color: #222;
  border-color: #333;
  color: var(--text-light);
  backdrop-filter: blur(3px) saturate(160%);
}
body.dark .card p,
body.dark .card li,
body.dark .card h3,
body.dark .footer,
body.dark a,
body.dark .footer nav {
  color: var(--text-light);
}
body.dark .btn-glass,
body.dark .btn-outline-primary,
body.dark .btn-outline-secondary,
body.dark .btn-outline-dark,
body.dark .btn-outline-danger {
  color: #fff;
  border-color: #888;
}
body.dark .btn-glass:hover,
body.dark .btn-outline-primary:hover,
body.dark .btn-outline-secondary:hover,
body.dark .btn-outline-dark:hover,
body.dark .btn-outline-danger:hover {
  background: var(--primary-color);
  color: #fff;
}
body.dark .toggle-theme {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
body.dark .lang-ar {
  background-color: var(--primary-color);
  color: #222 !important;
}

.ad-img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Accessibility: Large hit area for buttons */
.btn, button, .btn-outline-secondary, .btn-outline-dark, .btn-warning, .btn-success {
  min-width: 44px;
  min-height: 44px;
}

/* Responsive images for smaller screens */
@media (max-width: 600px) {
  .hero-img {
    width: 110px;
    height: 110px;
  }
  .card,
  .hero-content {
    padding: 18px;
    border-radius: 12px;
  }
}
