@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;
}

.search-form {
  display: flex;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto 50px;
  justify-content: center;
}

.search-input {
  flex: 1;
  padding: 16px 24px;
  background: rgba(77, 0, 19, 0.4);
  border: 2px solid #800020;
  border-radius: 15px;
  color: white;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
}

.search-input::placeholder {
  color: rgba(255, 230, 230, 0.6);
}

.search-input:focus {
  outline: none;
  border-color: #cc0033;
  background: rgba(77, 0, 19, 0.6);
  box-shadow: 0 0 20px rgba(128, 0, 32, 0.3);
}

.search-btn {
  padding: 16px 40px;
  background: linear-gradient(45deg, #800020, #cc0033);
  border: none;
  border-radius: 15px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.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;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.pagination-btn {
  padding: 12px 28px;
  background: rgba(77, 0, 19, 0.4);
  color: white;
  border: 1px solid rgba(128, 0, 32, 0.3);
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
}

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

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  color: #f9c2c2;
  font-size: 15px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.empty-state p {
  font-size: 20px;
  color: #f9c2c2;
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results p {
  font-size: 20px;
  color: #f9c2c2;
  font-weight: 600;
}

.loading {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(128, 0, 32, 0.2);
  border-top-color: #cc0033;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 30px rgba(128, 0, 32, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.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-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);
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-step:hover {
  background: rgba(128, 0, 32, 0.1);
  padding-right: 15px;
  border-radius: 10px;
}

.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;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, rgba(77, 0, 19, 0.9), rgba(26, 0, 5, 0.9));
  border: 2px solid #800020;
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(128, 0, 32, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(204, 0, 51, 0.2);
  border: 2px solid #cc0033;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.modal-close:hover {
  background: #cc0033;
  transform: rotate(90deg);
}

.modal-body {
  margin-top: 20px;
}

.script-code {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #800020;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.script-code code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #cc0033;
  word-break: break-all;
  line-height: 1.8;
}

.copy-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(45deg, #800020, #cc0033);
  border: none;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
}

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

.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);
}

.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-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-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;
}

@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;
  }
  
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .search-form {
    flex-direction: column;
  }
}

@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;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-header {
    height: 180px;
  }
  
  .app-title {
    font-size: 22px;
  }
  
  .app-buttons {
    flex-direction: column;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a0005;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #800020, #cc0033);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #cc0033, #800020);
}
