/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-bio {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    order: -1; /* يظهر كارت الصورة قبل النصوص في التابلت والموبايل */
  }

  .availability-badge {
    display: inline-block;
    text-align: center;
    line-height: 1.7;
    padding: 8px 18px;
  }

  .availability-badge .badge-dot {
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px 2px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero-section {
    padding: 100px 0 40px 0;
  }

  .profile-card {
    max-width: 300px;
    padding: 12px;
  }

  .profile-image-container {
    height: 320px;
  }

  .scroll-indicator {
    display: none; /* إخفاء مؤشر التمرير في الموبايل لتوفير المساحة */
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .project-header {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .project-number {
    display: none;
  }

  .contact-wrapper {
    padding: 50px 20px;
  }

  .contact-details {
    margin-bottom: 40px;
  }

  .contact-link-large {
    word-break: break-word;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .cursor-dot,
  .cursor-follower {
    display: none !important;
  }

  .preloader-content {
    padding: 30px 26px;
    gap: 20px;
    width: calc(100% - 32px);
    max-width: 360px;
  }

  .preloader-bar {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .profile-card {
    max-width: 100%;
  }

  .profile-image-container {
    height: 280px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-nav-link {
    font-size: 1.6rem;
  }

  .brand-avatar {
    width: 60px;
    height: 68px;
  }

  .brand-text .developer-name {
    font-size: 1.1rem;
  }

  .contact-cta-title {
    font-size: 1.85rem;
  }

  .contact-link-large {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}