* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Navigation */
nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky; 
  top: 0; 
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s;
}

nav a:hover { 
  background: #667eea; 
  color: white; 
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 20px 80px;
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInDown 0.8s ease;
}

.hero p { 
  font-size: 1.3rem; 
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Cards Grid */
.cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Individual Card */
.card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-top: 4px solid #667eea;
  animation: fadeInUp 0.6s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.card h3 {
  color: #667eea;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card ul {
  text-align: right;
  list-style: none;
}

.card li {
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.card li::before {
  content: "✔️";
  position: absolute;
  right: -5px;
  color: #667eea;
}

/* Call to Action */
.cta {
  text-align: center;
  padding: 50px;
}

.cta a {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s;
}

.cta a:hover { 
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Form Styling */
form {
  display: grid;
  gap: 1.2rem;
}

input, textarea {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button[type="submit"] {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
  background: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 50px;
}

/* Scroll to Top Button */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

#scrollTop:hover {
  background: #764ba2;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN - الهاتف ===== */
@media (max-width: 768px) {
  /* الأزرار بجانب بعضها أفقياً */
  nav ul {
    flex-direction: row;        /* أفقياً بدل عمودي */
    flex-wrap: wrap;            /* يسمح بالتفاف الأزرار */
    justify-content: center;    /* توسيط */
    gap: 0.5rem;                /* مسافة صغيرة بين الأزرار */
    padding: 0;
  }
  
  nav li {
    width: auto;                /* إلغاء العرض الكامل */
  }
  
  nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  /* تحسينات باقي العناصر */
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    padding: 30px 15px;
  }
  
  #scrollTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
}

/* للشاشات الضيقة جداً (أقل من 350px) */
@media (max-width: 350px) {
  nav ul {
    gap: 0.3rem;
  }
  
  nav a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  nav, .cta, #scrollTop, footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}