/* ===================================================
   پورتفولیو بین‌المللی - International Portfolio
   طراحی مدرن و خلاقانه با استانداردهای جهانی
   =================================================== */

/* Base Styles */
.international-portfolio {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
  }
  
  .international-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
  }
  
  /* Section Header */
  .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
  }
  
  .section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
  }
  
  .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .section-title .highlight {
    color: #333;
    -webkit-text-fill-color: #333;
  }
  
  .section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
  }
  
  /* Projects Grid */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
  }
  
  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
  
  /* Project Card */
  .project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
  }
  
  .project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.15),
      0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
  }
  
  .project-card:hover::before {
    opacity: 1;
  }
  
  /* Project Image */
  .project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.1);
  }
  
  .project-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
  }
  
  .project-card:hover .project-overlay {
    opacity: 1;
  }
  
  .project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .tag {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
  }
  
  /* Project Content */
  .project-content {
    padding: 30px;
  }
  
  .project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
  }
  
  .project-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
  }
  
  /* Project Stats */
  .project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
  }
  
  .stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }
  
  .stat i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
  }
  
  .stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
  }
  
  .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
  }
  
  /* Project Actions */
  .project-actions {
    display: flex;
    gap: 15px;
  }
  
  .btn-primary, .btn-outline {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    text-decoration: none;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    flex: 1;
    justify-content: center;
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  }
  
  .btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    justify-content: center;
  }
  
  .btn-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
  }
  
  /* Portfolio Navigation */
  .portfolio-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
  }
  
  .nav-dots {
    display: flex;
    gap: 10px;
  }
  
  .nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }
  
  .nav-dot.active {
    background: #667eea;
    transform: scale(1.3);
  }
  
  .nav-dot:hover:not(.active) {
    background: rgba(102, 126, 234, 0.6);
  }
  
  .nav-arrows {
    display: flex;
    gap: 15px;
  }
  
  .nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }
  
  .nav-arrow:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
  }
  
  /* Project Modal */
  .project-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    animation: modalFadeIn 0.3s ease;
  }
  
  .project-modal.active {
    display: block;
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .modal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
  }
  
  .modal-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translate(50%, -40%);
    }
    to {
      opacity: 1;
      transform: translate(50%, -50%);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-close:hover {
    background: #667eea;
    color: white;
    transform: rotate(90deg);
  }
  
  .modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .projects-grid {
      grid-template-columns: 1fr;
      max-width: 600px;
      margin: 0 auto 40px;
    }
    
    .section-title {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 768px) {
    .international-portfolio {
      padding: 60px 0;
    }
    
    .project-stats {
      flex-direction: column;
      gap: 15px;
    }
    
    .project-actions {
      flex-direction: column;
    }
    
    .portfolio-navigation {
      flex-direction: column;
      gap: 20px;
    }
    
    .modal-content {
      width: 95%;
    }
    
    .modal-body {
      padding: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .section-title {
      font-size: 1.8rem;
    }
    
    .project-image {
      height: 250px;
    }
    
    .project-content {
      padding: 20px;
    }
  }
  
  /* Dark Mode Support */
  @media (prefers-color-scheme: dark) {
    .international-portfolio {
      background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    }
    
    .project-card {
      background: #1e1e1e;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .project-title {
      color: #fff;
    }
    
    .project-description {
      color: #aaa;
    }
    
    .project-stats {
      background: linear-gradient(135deg, #252525 0%, #1e1e1e 100%);
      border-color: rgba(102, 126, 234, 0.2);
    }
    
    .stat-value {
      color: #fff;
    }
    
    .stat-label {
      color: #aaa;
    }
    
    .btn-outline {
      border-color: #667eea;
      color: #667eea;
    }
    
    .nav-arrow {
      background: #252525;
      border-color: rgba(102, 126, 234, 0.3);
    }
  }
  
  /* Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-image img,
    .project-overlay,
    .tag,
    .btn-primary,
    .btn-outline,
    .nav-arrow,
    .modal-close {
      transition: none;
      animation: none;
    }
    
    .project-card:hover {
      transform: none;
    }
  }