/* 
==============================================
OTHERS SECTION STYLING (with enhanced padding)
==============================================
*/

#others {
  padding: clamp(80px, 15vh, 160px) 0;
}

#others .intro-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px; /* Prevents text from hitting viewport edge on mobile */
}

#others .intro-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

#others .intro-header h1 span {
  background: var(--Ramin-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#others .intro-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 60px);
  margin-top: 40px;
  padding: 0 20px; /* Consistent horizontal breathing room */
}

/* Category Section */
.category-section {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: 12px 12px 24px var(--shadow-dark),
    -12px -12px 24px var(--shadow-light);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  overflow: hidden;
  /* Optional: add subtle inner padding via child elements instead of here */
}

.category-section:hover {
  box-shadow: 18px 18px 30px var(--shadow-dark),
    -18px -18px 30px var(--shadow-light);
  transform: translateY(-4px);
}

/* Category Header */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 20px; /* Increased top/bottom & side padding */
  cursor: pointer;
}

.category-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

/* Description */
.category-description {
  padding: 0 32px 20px; /* Match header side padding, add bottom space */
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Link List */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px 32px; /* Generous side and bottom padding */
}

.project-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px; /* Slightly more internal padding */
  border-radius: var(--radius-sm);
  background: var(--surface-color);
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  color: var(--text-main);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-blue);
  box-shadow: inset 6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
  transform: translateX(4px);
}

.project-link i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .category-header,
  .category-description,
  .link-list {
    padding-left: 24px;
    padding-right: 24px;
  }

  .link-list {
    padding-bottom: 28px;
  }

  #others .intro-header {
    padding: 0 16px;
  }

  #others .intro-header p {
    font-size: 1.1rem;
  }
}