@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) translateX(15px) rotate(5deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #1a0005;
  color: #ffe6e6;
  overflow-x: hidden;
  background-image: linear-gradient(135deg, #1a0005, #33000d);
}

.navbar {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: inline-block;
  background: linear-gradient(90deg, #4d0013, #800020, #4d0013);
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(128, 0, 32, 0.4);
}

.navbar a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 16px 30px;
  text-decoration: none;
  font-size: 18px;
  margin: 0;
  float: right;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.content {
  padding: 120px 20px 50px;
  text-align: center;
  min-height: 100vh;
}

.ios-title {
  font-size: 70px;
  font-weight: 900;
  letter-spacing: 5px;
  margin: 80px 0 60px;
  text-shadow: 0 0 30px rgba(128, 0, 32, 0.5);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s, transform 1s;
  background: linear-gradient(to right, #800020, #cc0033, #800020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 100%;
  animation: gradient 8s ease infinite;
}

@keyframes gradient {
  0% {background-position: 0% 50%}
  50% {background-position: 100% 50%}
  100% {background-position: 0% 50%}
}

.section-text {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 18px;
  line-height: 1.6;
  background-color: rgba(77, 0, 19, 0.6); /* أحمر غامق شفاف */
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid #800020; /* أحمر بورجوندي */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #ffe6e6; /* أبيض مائل للوردي */
}

.section-text i.fas {
  margin-left: 10px;
}

.section-text .fa-star {
  color: #ff4d4d !important; /* أحمر ساطع */
}

.section-text .fa-crown {
  color: #ff9900 !important; /* برتقالي محمر */
}

/* ========== تصميم جديد لبطاقات التطبيقات ========== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 20px;
}

.app-card {
  background: linear-gradient(145deg, #4d0013, #1a0005);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(128, 0, 32, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.1), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.app-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(128, 0, 32, 0.5),
    inset 0 0 25px rgba(128, 0, 32, 0.3);
  z-index: 2;
}

.app-header {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-bottom: 2px solid rgba(128, 0, 32, 0.3);
}

.app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-card:hover .app-image {
  transform: scale(1.08);
}

.app-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(26, 0, 5, 0.9));
}

.app-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(45deg, #800020, #cc0033);
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(128, 0, 32, 0.4);
  transform: rotate(3deg);
  transition: all 0.3s ease;
}

.app-card:hover .app-badge {
  transform: rotate(0) translateY(-5px);
  box-shadow: 0 8px 20px rgba(128, 0, 32, 0.6);
}

.app-body {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.app-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.app-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #800020, #cc0033);
  border-radius: 3px;
}

.app-description {
  font-size: 16px;
  line-height: 1.6;
  color: #ffd9d9;
  margin-bottom: 20px;
  min-height: 80px;
}

.app-features {
  margin: 25px 0;
  padding: 15px;
  background: rgba(77, 0, 19, 0.3);
  border-radius: 12px;
  border-left: 3px solid #800020;
}

.app-feature {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  text-align: right;
  font-size: 15px;
  color: #f9c2c2;
}

.feature-icon {
  margin-left: 10px;
  color: #cc0033;
  font-size: 20px;
  background: rgba(128, 0, 32, 0.15);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.app-button {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-btn {
  background: linear-gradient(45deg, #800020, #cc0033);
  color: white;
  box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}

.download-btn:hover {
  background: linear-gradient(45deg, #cc0033, #800020);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(128, 0, 32, 0.5);
}

.info-btn {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* تأثيرات إضافية */
.app-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #800020, #cc0033, #800020);
  z-index: -1;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.app-card:hover::after {
  opacity: 0.8;
}

/* ========== نهاية التصميم الجديد للبطاقات ========== */

.features-title {
  font-size: 36px;
  font-weight: 800;
  margin: 80px auto 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  color: white;
  text-shadow: 0 0 15px rgba(128, 0, 32, 0.7);
  background: linear-gradient(45deg, #800020, #cc0033);
  padding: 15px 40px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s, transform 1s;
}

.features-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.category-tab {
  padding: 12px 25px;
  background: rgba(77, 0, 19, 0.4);
  color: white;
  border: 1px solid rgba(128, 0, 32, 0.3);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}

.category-tab:hover, .category-tab.active {
  background: linear-gradient(45deg, #800020, #cc0033);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(128, 0, 32, 0.3);
}

.installation-guide {
  max-width: 800px;
  margin: 60px auto;
  background: rgba(77, 0, 19, 0.4);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(128, 0, 32, 0.3);
}

.guide-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 25px;
  color: white;
  text-align: center;
  text-shadow: 0 0 10px rgba(128, 0, 32, 0.4);
}

.guide-steps {
  counter-reset: step-counter;
}

.guide-step {
  position: relative;
  padding: 0 0 25px 50px;
  counter-increment: step-counter;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.guide-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(45deg, #800020, #cc0033);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.step-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f9c2c2;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  animation: float 15s infinite ease-in-out;
}

/* أشكال هندسية متنوعة */
.particle.square {
  background-color: rgba(128, 0, 32, 0.3);
  border-radius: 5px;
  width: 15px;
  height: 15px;
}

.particle.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 17px solid rgba(204, 0, 51, 0.4);
}

.particle.circle {
  background-color: rgba(128, 0, 32, 0.25);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.particle.star {
  width: 0;
  height: 0;
  position: relative;
  color: rgba(255, 200, 200, 0.3);
}

.particle.star:before, .particle.star:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
}

.particle.star:before {
  transform: rotate(30deg);
}

.particle.star:after {
  transform: rotate(60deg);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 0, 19, 0.6);
  border-radius: 50%;
  font-size: 24px;
  color: white;
  transition: all 0.3s;
  border: 1px solid rgba(128, 0, 32, 0.3);
}

.social-icon:hover {
  transform: translateY(-5px);
  background: #800020;
  box-shadow: 0 10px 20px rgba(128, 0, 32, 0.5);
}

footer {
  padding: 50px 20px;
  text-align: center;
  background-color: rgba(26, 0, 5, 0.7);
  margin-top: 100px;
}

.footer-text {
  font-size: 16px;
  color: #f9c2c2;
  max-width: 800px;
  margin: 0 auto;
}

.animated-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #800020, 0 0 40px #800020;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #cc0033, 0 0 40px #cc0033, 0 0 50px #cc0033;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: linear-gradient(135deg, #4d0013, #800020);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding-top: 70px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-items li {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease;
}

.mobile-menu.active .mobile-menu-items li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active .mobile-menu-items li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(4) {
  transition-delay: 0.4s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(5) {
  transition-delay: 0.5s;
}

.mobile-menu-items li a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: right;
}

.mobile-menu-items li a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-right: 35px;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #800020, #cc0033);
  border-radius: 50%;
  z-index: 2001;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(128, 0, 32, 0.5);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(128, 0, 32, 0.7);
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 24px;
  background: white;
  opacity: 1;
  right: 8px;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 12px;
}

.menu-toggle span:nth-child(2) {
  top: 19px;
}

.menu-toggle span:nth-child(3) {
  top: 26px;
}

.menu-toggle.active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  right: -30px;
}

.menu-toggle.active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.version-tag {
  display: inline-block;
  background: rgba(128, 0, 32, 0.3);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 10px;
  border: 1px solid rgba(128, 0, 32, 0.5);
}

.rating {
  display: flex;
  gap: 5px;
  margin: 10px 0;
  justify-content: center;
}

.star {
  color: #ffd700;
  font-size: 18px;
}

/* تحسينات عامة للتجاوب مع جميع الأحجام */
@media screen and (max-width: 1200px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 992px) {
  .ios-title {
    font-size: 60px;
    margin: 60px 0 40px;
  }
  
  .installation-guide {
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .content {
    padding-top: 80px;
  }
  
  .ios-title {
    font-size: 50px;
    letter-spacing: 3px;
    margin: 50px 0 30px;
  }
  
  .section-text {
    padding: 20px;
    font-size: 16px;
  }
  
  .features-title {
    font-size: 30px;
    padding: 12px 30px;
  }
  
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .guide-step {
    padding-left: 40px;
  }
  
  .guide-step::before {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media screen and (max-width: 576px) {
  .ios-title {
    font-size: 40px;
    letter-spacing: 2px;
    margin: 40px 0 20px;
  }
  
  .content {
    padding: 100px 10px 30px;
  }
  
  .section-text {
    margin-bottom: 30px;
    padding: 15px;
    font-size: 14px;
  }
  
  .features-title {
    font-size: 24px;
    padding: 10px 20px;
    margin: 40px auto 20px;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-tab {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .guide-title {
    font-size: 24px;
  }
  
  .step-title {
    font-size: 18px;
  }
  
  .app-buttons {
    flex-direction: column;
  }
  
  /* تعديلات للهواتف على البطاقات الجديدة */
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .app-header {
    height: 180px;
  }
  
  .app-title {
    font-size: 22px;
  }
  
  .app-description {
    min-height: auto;
  }
  
  .app-buttons {
    flex-direction: column;
  }
}

@media screen and (max-width: 400px) {
  .ios-title {
    font-size: 32px;
  }
  
  .guide-step {
    padding-left: 35px;
  }
  
  .guide-step::before {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
}

/* تحسينات لمنع الأخطاء في التخطيط على الأجهزة الصغيرة */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* تحسينات لتجربة المستخدم على الأجهزة باللمس */
@media (hover: none) {
  .app-card:hover {
    transform: none;
  }
  
  .app-card:hover .app-image {
    transform: none;
  }
  
  .download-btn:hover {
    transform: none;
  }
  
  .info-btn:hover {
    transform: none;
  }
}

/* تحسين عرض الجزيئات على الأجهزة الصغيرة */
@media screen and (max-width: 768px) {
  .particles .particle {
    width: 50px !important;
    height: 50px !important;
  }
}

/* قسم شروحات الايفون */
.tutorials-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tutorial-card {
  background: rgba(77, 0, 19, 0.4);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 1px solid rgba(128, 0, 32, 0.3);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--order) * 0.1s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(128, 0, 32, 0.4);
  border-color: rgba(128, 0, 32, 0.6);
}

.tutorial-thumbnail {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.tutorial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tutorial-card:hover .tutorial-image {
  transform: scale(1.1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(128, 0, 32, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  z-index: 2;
  opacity: 0.9;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(128, 0, 32, 0.5);
}

.tutorial-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 0 30px rgba(128, 0, 32, 0.8);
}

.tutorial-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tutorial-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.tutorial-description {
  font-size: 15px;
  line-height: 1.5;
  color: #f9c2c2;
  flex-grow: 1;
  margin-bottom: 15px;
}

.tutorial-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #f9c2c2;
}

.tutorial-duration, .tutorial-date {
  display: flex;
  align-items: center;
}

.tutorial-duration i, .tutorial-date i {
  margin-left: 5px;
  color: rgba(204, 0, 51, 0.7);
}

#tutorials-title {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInTitle 1s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInTitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تحسينات تجاوب قسم الشروحات مع أحجام الشاشات المختلفة */
@media screen and (max-width: 992px) {
  .tutorials-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .tutorial-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 576px) {
  .tutorial-thumbnail {
    height: 180px;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .tutorial-title {
    font-size: 18px;
  }
  
  .tutorial-description {
    font-size: 14px;
  }
}

/* قسم زر يوتيوب */
.youtube-button-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px auto;
  position: relative;
}

.youtube-container {
  position: relative;
  width: 500px;
  height: 120px;
  perspective: 1000px;
}

.youtube-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, #800020, #4d0013);
  border-radius: 15px;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(128, 0, 32, 0.4);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.youtube-button:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 6s infinite;
  z-index: -1;
}

@keyframes shine {
  0% {
    transform: translateX(-150%) translateY(-150%) rotate(45deg);
  }
  50% {
    transform: translateX(150%) translateY(150%) rotate(45deg);
  }
  100% {
    transform: translateX(-150%) translateY(-150%) rotate(45deg);
  }
}

.youtube-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #800020, #4d0013);
  z-index: -2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.youtube-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.youtube-icon-wrapper i {
  font-size: 45px;
  color: #ff0000;
  transition: transform 0.5s ease;
}

.youtube-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-right: 10px;
}

.youtube-main-text {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.youtube-sub-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.youtube-arrow {
  margin-right: 25px;
  margin-left: 5px;
  color: white;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

/* تأثيرات التفاعل */
.youtube-button:hover {
  transform: translateY(-10px) scale(1.03) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(128, 0, 32, 0.6);
}

.youtube-button:hover .youtube-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.youtube-button:hover .youtube-icon-wrapper i {
  transform: scale(1.2);
}

.youtube-button:hover .youtube-main-text {
  transform: translateX(-10px);
}

.youtube-button:hover .youtube-sub-text {
  transform: translateX(-5px);
}

.youtube-button:hover .youtube-arrow {
  opacity: 1;
  transform: translateX(0);
}

.youtube-button:active {
  transform: translateY(-5px) scale(0.98);
  box-shadow: 0 15px 25px rgba(128, 0, 32, 0.5);
}

/* تحسينات للأجهزة المحمولة */
@media screen and (max-width: 768px) {
  .youtube-container {
    width: 90%;
    max-width: 400px;
    height: 100px;
  }
  
  .youtube-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-right: 15px;
  }
  
  .youtube-icon-wrapper i {
    font-size: 35px;
  }
  
  .youtube-main-text {
    font-size: 20px;
  }
  
  .youtube-sub-text {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .youtube-container {
    height: 90px;
  }
  
  .youtube-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
  
  .youtube-icon-wrapper i {
    font-size: 28px;
  }
  
  .youtube-main-text {
    font-size: 16px;
  }
  
  .youtube-sub-text {
    font-size: 10px;
  }
  
  .youtube-arrow {
    margin-right: 15px;
  }
}

/* تصميم الصندوق المميز */
.premium-box {
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.8), rgba(77, 0, 19, 0.9));
  border-radius: 18px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  border: 2px solid #ff4d4d;
  box-shadow: 0 10px 30px rgba(128, 0, 32, 0.4),
              0 0 0 3px rgba(255, 77, 77, 0.2);
  position: relative;
  overflow: hidden;
}

.premium-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
}

.premium-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.premium-icon {
  color: #ffcc00;
  font-size: 28px;
  margin-left: 15px;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.premium-header h3 {
  color: #fff;
  font-size: 24px;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.premium-content p {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #ffe6e6;
  margin: 15px 0;
}

.premium-content .fa-check {
  color: #4dff4d;
  margin-left: 10px;
  font-size: 20px;
}

.premium-content .fa-star {
  color: #ffcc00;
  margin-left: 10px;
  font-size: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}