/* تعيين الخطوط والألوان الأساسية */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
  --primary-color: #5e72e4;
  --secondary-color: #7795f8;
  --accent-color: #ff6b6b;
  --dark-color: #32325d;
  --light-color: #f8f9fe;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --card-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f5f6fa;
  color: var(--dark-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* تنسيق شريط التنقل */
.navbar {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: var(--transition);
  margin-right: auto;
}

.menu-toggle:hover {
  background-color: rgba(94, 114, 228, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-brand i {
  font-size: 1.8rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  transition: var(--transition);
  z-index: 99;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--primary-color);
  color: white;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* تنسيق قسم البطل */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button i {
  font-size: 1.4rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تنسيق صفحة الاتصال */
.contact-section {
  padding: 4rem 0;
}

.notice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.notice-message {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.notice-message i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.notice-message h2 {
  color: var(--dark-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.notice-message p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #666;
}

.social-contact {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.social-contact h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: var(--transition);
  font-family: 'Tajawal', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: 'Tajawal', sans-serif;
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
  }
}

/* تنسيق الهيدر للأجهزة المحمولة */
/* تحسينات للشاشات المتوسطة */
@media (max-width: 992px) {
  .container {
    width: 95%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: 0.3s ease-in-out;
    display: flex;
    gap: 1rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: var(--primary-color);
    color: white;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle {
    display: block;
    order: 1;
  }

  .nav-brand {
    order: 0;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .category-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    min-width: 130px;
  }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-brand span {
    display: inline-block;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.8rem;
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .categories-container {
    gap: 0.6rem;
  }

  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: 110px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }

  .game-card {
    padding: 1.5rem 1rem;
  }

  .game-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
  }

  .game-actions {
    flex-direction: column;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* تنسيق قسم التصنيفات */
.categories-section {
  padding: 2rem 0;
  margin: 2rem auto;
  position: relative;
  z-index: 10;
  max-width: 1200px;
}

.categories-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
  letter-spacing: 0.5px;
}

.categories-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.categories-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.5rem;
  margin: 0 auto;
}

.category-btn {
  background-color: var(--light-color);
  border: 1px solid var(--primary-color);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.category-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.category-btn:hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s;
  pointer-events: none;
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 1;
  }

  to {
    transform: scale(1);
    opacity: 0;
  }
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 12px 30px rgba(94, 114, 228, 0.3);
  border-color: transparent;
  position: relative;
}

.category-btn.active::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* تنسيق شبكة الألعاب */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 2rem 0;
}

.game-card {
  background-color: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  background-color: rgba(94, 114, 228, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.game-card:hover .game-icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.game-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--dark-color);
}

.game-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.demo-btn {
  background-color: var(--primary-color);
  color: white;
}

.demo-btn:hover {
  background-color: #4a5cd0;
  transform: scale(1.05);
}

.download-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.download-btn:hover {
  background-color: rgba(108, 92, 231, 0.1);
}

/* تنسيق النافذة المنبثقة */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.8rem;
  color: var(--dark-color);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

#modal-game-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.game-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

#game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* تنسيق الفوتر */
footer {
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: auto;
}

/* تحسينات للأجهزة المحمولة */
/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .categories-title {
    font-size: 1.5rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 100px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 1rem;
  }

  .game-card h3 {
    font-size: 1.2rem;
  }

  .modal-content {
    margin: 5% auto;
    padding: 15px;
  }

  #modal-game-title {
    font-size: 1.5rem;
  }

  .close-btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}

.social-icons {
  margin-top: 15px;
  text-align: center;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  color: #fff;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #f8c291;
}



/* زر العودة إلى الأعلى */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  /* في RTL نضعه على اليسار */
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  width: 50px;
  height: 50px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top:active {
  transform: translateY(1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}


/* إضافة تنسيق لرسالة عدم وجود نتائج بحث */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  margin: 3rem auto;
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
}

.no-results i {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

/* تنسيق قسم عن المكتبة */
.about-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  color: var(--dark-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: var(--card-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  color: var(--dark-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: #666;
  line-height: 1.6;
}

.about-features {
  background: white;
  padding: 3rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.about-features h3 {
  color: var(--dark-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #555;
}

.features-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-features {
    padding: 2rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

.no-results h3 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.no-results p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.no-results .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin-top: 1rem;
}

.no-results .btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* تأكيد أن المحتوى الرئيسي يأخذ المساحة المتاحة */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* تنسيقات صفحة طريقة الاستخدام */
.usage-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.usage-section .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.usage-section .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.usage-section .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.usage-section .section-title p {
  font-size: 1.2rem;
  color: var(--dark-color);
  opacity: 0.8;
}

.video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* نسبة 16:9 */
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--card-radius);
  loading: lazy;
  importance: low;
}

.video-info h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-info h3 i {
  font-size: 1.3rem;
}

.video-info p {
  font-size: 1.1rem;
  color: var(--dark-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.video-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.video-features li {
  padding: 0.5rem 0;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.video-features li i {
  color: #27ae60;
  font-size: 1rem;
}

.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #ff0000;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.youtube-link i {
  font-size: 1.2rem;
}

/* تنسيقات قسم الأدوات المستخدمة */
.tools-section {
  padding: 4rem 0;
  background: white;
}

.tools-section .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.tools-section .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.tools-section .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.tools-section .section-title p {
  font-size: 1.2rem;
  color: var(--dark-color);
  opacity: 0.8;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: white;
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.tool-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  transition: var(--transition);
}

.tool-icon.html {
  background: linear-gradient(135deg, #e34f26, #f16529);
  color: white;
}

.tool-icon.css {
  background: linear-gradient(135deg, #1572b6, #33a9dc);
  color: white;
}

.tool-icon.js {
  background: linear-gradient(135deg, #f7df1e, #f0db4f);
  color: #323330;
}

.tool-icon.fontawesome {
  background: linear-gradient(135deg, #339af0, #74c0fc);
  color: white;
}

.tool-icon.googlefonts {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
}

.tool-icon.github {
  background: linear-gradient(135deg, #333, #555);
  color: white;
}

.tool-icon.vscode {
  background: linear-gradient(135deg, #0078d4, #00bcf2);
  color: white;
}

.tool-icon.responsive {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
}

.tool-icon.games-library {
  background: linear-gradient(135deg, #5e72e4, #7795f8);
  color: white;
}

.tool-icon.gemini {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
}

.tool-icon.grok {
  background: linear-gradient(135deg, #000, #333);
  color: white;
}

.tool-card:hover .tool-icon {
  transform: rotateY(360deg);
}

.tool-card h3 {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.tool-card p {
  color: var(--dark-color);
  opacity: 0.8;
  line-height: 1.6;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.tool-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(94, 114, 228, 0.3);
}

.tool-link i {
  font-size: 0.8rem;
}

/* تجاوب الشاشات */
@media (max-width: 768px) {
  .video-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .usage-section .section-title h2,
  .tools-section .section-title h2 {
    font-size: 2rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .tool-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}
