:root {
  /* Colors */
  --bg: #1a1629;
  --primary-500: #50b1d7;
  --primary-400: #54b9da;
  --primary-600: #4090c7;
  --accent-orange: #e96e3d;
  --accent-yellow: #eead45;
  --surface: #f1f8fc;

  /* Typography */
  --font-ar: "Cairo", "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  --font-en: "Inter", "Poppins", sans-serif;
  --base-size: 16px;
  --line-height: 1.6;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Interactive Elements */
button,
.button,
.cta-button,
input[type="submit"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

button:focus,
.button:focus,
.cta-button:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-400);
}

html {
  font-size: var(--base-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  line-height: var(--line-height);
  background-color: var(--bg);
  color: var(--surface);
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-400);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar.scrolled {
  background-color: rgba(26, 22, 41, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--surface);
  transition: opacity 0.3s ease;
}

html[dir="rtl"] .logo-text {
  font-family: "Cairo", sans-serif;
}

html[dir="ltr"] .logo-text {
  font-family: "Inter", sans-serif;
}

.logo:hover .logo-text {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links ul li a {
  position: relative;
  color: var(--surface);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

html[dir="ltr"] .nav-links ul li a::after {
  transform-origin: left;
}

.nav-links ul li a:hover {
  color: var(--primary-300);
}

.nav-links ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

html[dir="ltr"] .nav-links ul li a:hover::after {
  transform-origin: right;
}

.lang-toggle {
  background: none;
  border: 1.5px solid var(--primary-400);
  color: var(--primary-400);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-toggle .current-lang,
.lang-toggle .other-lang {
  min-width: 24px;
  text-align: center;
}

.lang-toggle .separator {
  opacity: 0.5;
}

.lang-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-400);
  opacity: 0.1;
  transition: transform 0.25s ease-in-out;
}

.lang-toggle:hover {
  border-color: var(--primary-500);
  color: var(--primary-500);
}

.lang-toggle:hover::before {
  transform: translateX(100%);
}

.lang-toggle:active {
  transform: scale(0.98);
}

.cta-button {
  background: var(--primary-500);
  color: var(--surface);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-in-out;
}

.cta-button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--surface);
  opacity: 1;
}

.cta-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cta-button:active {
  transform: translateY(0);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--surface);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 75vh;
  padding: 6rem 1rem 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.animated-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: var(--accent-orange);
  color: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-400);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.button {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  border: none;
}

.button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-in-out;
}

.button.primary {
  background: var(--primary-500);
  color: var(--surface);
  box-shadow: 0 2px 4px rgba(80, 177, 215, 0.1);
}

.button.primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(80, 177, 215, 0.15);
  text-decoration: none;
}

.button.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(80, 177, 215, 0.1);
}

.button.outline {
  background: transparent;
  border: 1.5px solid var(--primary-500);
  color: var(--primary-500);
}

.button.outline:hover {
  color: var(--surface);
  background: var(--primary-500);
  border-color: var(--primary-500);
  transform: translateY(-1px);
  text-decoration: none;
}

.button.outline:active {
  transform: translateY(0);
}

.button.outline::after {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease;
  }

  html[dir="ltr"] .nav-links {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  html[dir="ltr"] .nav-links.active {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Section Styles */
.section {
  padding: 6rem 1rem;
}

.section:nth-child(even) {
  background: linear-gradient(
    180deg,
    rgba(80, 177, 215, 0.03) 0%,
    rgba(26, 22, 41, 0) 50%,
    rgba(233, 110, 61, 0.02) 100%
  );
  backdrop-filter: blur(100px);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.125rem;
}

/* About Section */
.team-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

.team-leader {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.team-leader .team-card {
  max-width: 400px;
  margin: 0 auto;
}

.team-leader .member-avatar {
  width: 120px;
  height: 120px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
}
.team-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.member-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-400);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--surface);
}

.member-role {
  color: var(--primary-400);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.member-skills {
  list-style: none;
  padding: 0;
}

.member-skills li {
  display: inline-block;
  background: rgba(80, 177, 215, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  margin: 0.25rem;
  color: var(--primary-400);
}

/* Project Section */
.project-blocks {
  display: grid;
  gap: 3rem;
}

.project-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
}

.project-block h3 {
  color: var(--primary-400);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.impact-list {
  list-style: none;
  padding: 0;
}

.impact-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(80, 177, 215, 0.1);
  border-radius: 8px;
  font-size: 1.125rem;
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
}

.progress-indicator::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(80, 177, 215, 0.2);
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.progress-step.active .step-number {
  background: var(--primary-400);
  color: var(--bg);
}

.step-text {
  font-size: 0.875rem;
  color: var(--primary-400);
}

/* Goals Section */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.goal-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-5px);
}

.goal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.goal-card h3 {
  color: var(--primary-400);
  margin-bottom: 1rem;
}

.metrics {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-400);
  display: block;
}

.metric-label {
  font-size: 1rem;
  color: var(--surface);
  opacity: 0.8;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--surface);
}

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--surface);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--surface);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-400);
  color: var(--bg);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .team-grid,
  .goals-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    flex-direction: column;
    gap: 2rem;
  }

  .progress-indicator {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .progress-indicator::before {
    display: none;
  }

  .progress-step {
    flex-direction: row;
    gap: 1rem;
  }

  .step-text {
    margin: 0;
  }
}

/* Footer */
footer {
  background: rgba(26, 22, 41, 0.95);
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  height: 120px;
  width: auto;
}

.footer-content {
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--surface);
}

.footer-links .separator {
  margin: 0 1rem;
  color: var(--surface);
}

.copyright {
  color: var(--surface);
  opacity: 0.7;
  font-size: 0.875rem;
}
